Commit graph

5514 commits

Author SHA1 Message Date
Jason Lee
07bf326a61 Cap VideoEncoderCap maxFrameRate to 30
Fixes CTS without affecting GCA

Bug: 175830757
Test: GCA, CTS
Change-Id: I5c42e150a5fcc2e6a87b3daa6e1c8c787697168c
2021-05-12 01:33:30 +00:00
Carter Hsu
2e4d1c7d17 audio: add bluenote module
Bug: 186801118
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Icf676c4de46cd38594bb442fcb8dae29dc23e6dd
2021-05-12 01:09:43 +00:00
Carl Tsai
376d3d7379 Revert "gs101: add trusty_metricsd" am: 98d8308f48
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14494377

Change-Id: Ic5dfc9d5a78ccbff29da6e05517d3d126e35e8e0
2021-05-11 23:49:25 +00:00
Carl Tsai
900316d100 Revert "gs101: add trusty_metricsd"
Revert "Trusty metrics reporter service"

Revert submission 14469740-trusty_metrics

Reason for revert: buildbreakage for pdk
Reverted Changes:
Ifdefdd6cc:gs101: add trusty_metricsd
I641d7a5b7:Trusty metrics reporter service

Bug: b/187769789
Test: Pass
Change-Id: I5fc1ad6773795566ba8a3d87d58219660f469d4c
2021-05-11 23:23:06 +00:00
Long Ling
904be22755 display: rename adaptive color file name am: 3c788b3a7d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14418873

Change-Id: I0213a99fddccb3161b0432f12dec11af1acf213e
2021-05-11 19:45:54 +00:00
Long Ling
b2e8b6e82d display: rename adaptive color file name
Bug: 184096624
Test: reboot and verify boosted/adaptive color modes work
Change-Id: Iab15629568a91e1db7f866ca1fc70a44b40fe5aa
2021-05-11 18:54:35 +00:00
Jia-yi Chen
616f6b2ccd Revert "Update power hint for camera workload" am: 5ac313e4fd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14491471

Change-Id: Ia490ea0f87818969e2768fe4a9fbaf0b39d61517
2021-05-11 02:40:38 +00:00
Jia-yi Chen
a6889fd404 Revert "Update power hint for camera workload"
This reverts commit 637fc9e8d727121276cf8dea2976ac52f8da8d15.

Reason for revert: Camera EBUF overflow observed after launching GCA.

Bug: 187760882
Change-Id: I2357d943f4b4d96ffa7a156671ac7c790640a5ed
2021-05-11 02:22:56 +00:00
Tri Vo
99c91db3ef gs101: add trusty_metricsd am: ad7261254c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14469740

Change-Id: Ib6adc58230a357a9ccdf2a48455909a34115f367
2021-05-10 20:14:50 +00:00
Tri Vo
32d3cde120 gs101: add trusty_metricsd
Bug: 173423860
Test: m
Change-Id: Ifdefdd6cc686748d7fd21550f1bc3ef40c05a3d0
2021-05-10 19:56:00 +00:00
Wei Wang
b6c46c01e3 Update power hint for camera workload am: 637fc9e8d7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14351582

Change-Id: If3e5d8ecd2d3729186127d0679563140dd709d0a
2021-05-10 18:48:38 +00:00
Wei Wang
e895392c27 Update power hint for camera workload
1) Enable prefer_high_cap_enable
2) Set high_capacity_start_cpu to 4
3) Set cpu.uclamp.latency_sensitive to 0
4) Change camera-daemon/cpu.uclamp.latency_sensitive owner to root

Bug: 186564130
Test: Boot & check setting values
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I4ea14e82bf65f72a1113359cd163230a767e816b
2021-05-10 18:29:41 +00:00
Jia-yi Chen
1d202eef48 gs101: Change uclamp min value for camera am: 82acc06cbe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14454976

Change-Id: I9b815d3d9b513fe3c6193cac9c10bcbee4cb1ab7
2021-05-07 22:43:05 +00:00
Jia-yi Chen
82acc06cbe gs101: Change uclamp min value for camera
uclamp value is calculated based on the full capacity 1024. Previously
camera-daemon uses 6 which would set the min to 61. This boosts the
camera thread util up and would have power penalty. Change the value
to 1 to have minimum boost.

Bug: 186564130
Test: cat /dev/cpuctl/camera-daemon/cpu.uclamp.min & check power
Change-Id: Ib8f5ae2091848da4ee98211aeae37612ae2b308a
2021-05-07 22:23:28 +00:00
Rick Chen
eee27ee50e Sensor: Support hifi sensor. am: 43206ce7ab
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14444592

Change-Id: I397e4e75458069d19b19327cac33402477d9bf32
2021-05-07 15:13:40 +00:00
Rick Chen
43206ce7ab Sensor: Support hifi sensor.
Bug: 186108264
Test: CTS batch fifo tests passed.
Signed-off-by: Rick Chen <rickctchen@google.com>
Change-Id: Ie2a3bd31ac463f9a09753486381620cbda3aaa76
2021-05-07 14:55:55 +00:00
Roger Fang
90a74f7ec1 gs101: add audio uevent to report mic status for pixelstats am: d351a65154
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14444595

Change-Id: I5697e6446eeb1f9d8575ce078e9c0011bf191f3b
2021-05-07 08:58:39 +00:00
Roger Fang
d351a65154 gs101: add audio uevent to report mic status for pixelstats
ACTION=change
  DEVPATH=/devices/virtual/amcs/amcs
  MIC_BREAK_STATUS=1

Bug: 174994440
Test: Manually test passed
Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: I2a478167960ea9b2e8cbe732e030fa38757204d7
2021-05-07 08:48:18 +00:00
Wei Wang
22bf2aeba1 Adjust little core rate limit am: df79b08139
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14391555

Change-Id: I06966d80465849af8e135b4933456fcc46dee8aa
2021-05-07 07:40:15 +00:00
Wei Wang
df79b08139 Adjust little core rate limit
With recently merged kernel change pa/1916082, down rate limit  will be
adjusted dynamically. Without out this change, we would run into cases
that we too little down rate limit for little.

Bug: 186392111
Bug: 170511089
Test: boot and check rate limit
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I78d9894301c9f4f888d33010c9fcca20d51d4b20
2021-05-07 07:17:29 +00:00
Adam Shih
a2ef328fc7 remove redundant setting am: f2457f2d1e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14460437

Change-Id: I0a6880299782f9b5920a67218f8025c354a28c36
2021-05-07 04:45:25 +00:00
Adam Shih
f2457f2d1e remove redundant setting
The path does not exist.
Bug: 187128213
Test: build pass and boot to home

Change-Id: I18aa60fafe1538972ad2111bfad483b54c6fab06
2021-05-07 04:31:02 +00:00
Carter Hsu
660954b329 haptic: add haptic ampilifer codec am: 5bc59075bd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14211585

Change-Id: I5e1574bfb98403a9e8f01158267e8fd6d8a6add1
2021-05-07 03:35:00 +00:00
Carter Hsu
5bc59075bd haptic: add haptic ampilifer codec
Bug: 178431048
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Id20663a7469f04fda8dd49651fce88a815450af7
2021-05-07 03:10:19 +00:00
terrycrhuang
abfa8c93cc Add Google Dialer and Enable PARIS in PDK ROM am: 0f8dbe476b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14440222

Change-Id: I3369dd4b8ace081d25310033e9c3ffb18b63048e
2021-05-07 00:45:11 +00:00
terrycrhuang
0f8dbe476b Add Google Dialer and Enable PARIS in PDK ROM
Use the environment variable USES_GOOGLE_DIALER_PARIS to decide to
replace AOSP Dialer by Google Dialer and enable PARIS.
The variable should be set in PDK release ROM and User could set it
locally as you want the AOSP build with them.

Bug: 187242540
Test: Loacal build. Google Dialer and Paris work

Change-Id: Ib823f5447db5fd593b9044c8cdb766165ce6cedf
2021-05-07 00:25:48 +00:00
Sunil Ravi
a493b27bcf Wifi: Added supplicant HAL interface declarations 1.3 and 1.4 am: 2832991570
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14456466

Change-Id: I473431032d4b08ac123d210ccb8fc4b357c4783e
2021-05-06 23:55:59 +00:00
Sunil Ravi
e1e2c19229 Revert "Wifi: Move supplicant service init to wpa_supplicant" am: 3d015b03ab
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14454980

Change-Id: I7a8a5802d6a4eba29389494d0952799b0462d57a
2021-05-06 23:55:59 +00:00
Sunil Ravi
2832991570 Wifi: Added supplicant HAL interface declarations 1.3 and 1.4
Bug: 187302501
Bug: 186636898

Test: boot and wifi function is ok
Test: p2p connection and throughput tests.
Change-Id: I599763e8c583f9566833183d4dbec13db1d040bc
2021-05-06 23:33:51 +00:00
Sunil Ravi
3d015b03ab Revert "Wifi: Move supplicant service init to wpa_supplicant"
This reverts commit 788012640b

Reason for revert: Caused throughput issue in p2p b/187302501

Bug: 187302501
Bug: 186636898

Test: boot and wifi function is ok
Test: p2p connection and throughput tests.

Change-Id: I70f4015040f10452acff697ee504b02cfb3c1e27
2021-05-06 23:33:51 +00:00
Lucas Dupin
3df93f2c9f Revert "Enable blurs" am: 3f04ce39c9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14455045

Change-Id: If418e5c5e798531bc27b48f3e94c8775db9297a2
2021-05-06 23:14:36 +00:00
Lucas Dupin
3f04ce39c9 Revert "Enable blurs"
This reverts commit 52cc3f23c6.

Reason for revert: b/187310427
Bug: 187310427

Change-Id: I0190509dd2a5a3e727bce742e02cd21cf921caee
2021-05-06 22:54:48 +00:00
qinyiyan
e51de882f5 Add TPU metrics logger library to the device.mk am: 24815da75e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14444999

Change-Id: Ib25ccaa979b52f68b22c9a1ff4aeec45f74b6a2f
2021-05-06 18:02:07 +00:00
qinyiyan
24815da75e Add TPU metrics logger library to the device.mk
Test: Forrest build with the commit and the libmetrics_logger.so is
present in the build.
Bug:151063663

Change-Id: Ib5b59acfb6bc929d24884740f593417afe392434
2021-05-06 17:45:00 +00:00
Tri Vo
0ee2eab28f Revert "Trusty metrics reporter service" am: b39a771980
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14453915

Change-Id: I04ce220b3434834bc35be4d09ece9b419a6676af
2021-05-06 17:24:11 +00:00
Tri Vo
b39a771980 Revert "Trusty metrics reporter service"
This reverts commit c0dc597e70.

Reason for revert: b/187417029

Change-Id: Ia571b39ef3e5d66c112505bebd323deb2f7cc823
2021-05-06 17:03:37 +00:00
Tri Vo
501fa4a654 Trusty metrics reporter service am: c0dc597e70
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14286216

Change-Id: I88dab151e2ba831cb90c46339845b6f0990287e8
2021-05-06 16:08:09 +00:00
Tri Vo
c0dc597e70 Trusty metrics reporter service
Bug: 173423860
Test: m
Change-Id: Ib54790d883bd797ce1efa98a1cb053b5a4e007f7
2021-05-06 15:52:50 +00:00
Kyle Lin
96b14d9ca0 init.gs101.rc: add memlat settings am: 3a3512c3a3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14242666

Change-Id: Id1b60bb76a940bc7ddde8afc168ed5e73ef25ad5
2021-05-06 07:21:02 +00:00
Kyle Lin
3a3512c3a3 init.gs101.rc: add memlat settings
Bug: 170479743
Test: build and boot
Change-Id: I1f5f3ebdb2e4aeb3fe76de3b82358ea4783a571b
2021-05-06 07:05:34 +00:00
Alex Hong
152a605905 Remove android.hardware.drm@1.0 HAL services am: 5f5a621335
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14440218

Change-Id: I309542df1112b2b8c57cc014ee69c734ad68e623
2021-05-06 04:39:55 +00:00
Alex Hong
5f5a621335 Remove android.hardware.drm@1.0 HAL services
The following interfaces are deprecated for Target FCM version 5
  android.hardware.drm@1.0::ICryptoFactory/default
  android.hardware.drm@1.0::IDrmFactory/default

Test: $ m check-vintf-all
      The device is bootable.
Bug: 186538652
Change-Id: I0babd05f17281406af10e4ea2435aca598910d36
2021-05-06 04:15:49 +00:00
David Li
5ee385665c audio: remove libdsp_aecns.so from device.mk am: e3718f2067
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14436096

Change-Id: Iedaeb706f61c3678720b5e5b117fb317762ab87a
2021-05-06 02:49:32 +00:00
David Li
e3718f2067 audio: remove libdsp_aecns.so from device.mk
Move AEC and NS to the liboffloadeffect

Bug: 187153996
Test: make -j128
Test: run cts --include-filter "CtsMediaTestCases android.media.cts.AudioPreProcessingTest"
Change-Id: Ida949d8ae3c06b4ab6743159cc952cdef3a73de7
2021-05-06 02:28:43 +00:00
Woody Lin
5d0eb0cfbc gs101: dumpstate: Dump s2d.lst to dumpstate_board.txt am: e9f27f4a68
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14440217

Change-Id: Ib89bfca0e29b890ee50dcae7bd382915c9288317
2021-05-05 20:54:21 +00:00
Woody Lin
e9f27f4a68 gs101: dumpstate: Dump s2d.lst to dumpstate_board.txt
Gzip s2d.lst and base64 it for dumping to dumpstate_board.txt.

Bug: 187228956
Change-Id: I911145ed6ecc345177cd979262126b7c49194528
2021-05-05 20:37:42 +00:00
Stephane Lee
43a8d0fe75 BatteryDefender: Explicitly set wireless path to reduce errors logs am: 331796ed8d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14370778

Change-Id: Iaebd6a05728d7db9ad02a15b9441d9d7b827df36
2021-05-05 19:55:41 +00:00
Stephane Lee
331796ed8d BatteryDefender: Explicitly set wireless path to reduce errors logs
For gs101 devices, we must detect whether a wireless charger exists at
runtime, otherwise we'd need to create separate Health.cpp for each
product in order to instantiate the wireless path correctly.

Test: Ensure battery defender triggers via wireless connection.
   Ensure there are no warnings for devices that do not have a wireless
   charger
Bug: 165954398
Change-Id: Ibba202293141c017d3048980b643a80b5fb57ca4
2021-05-05 19:39:49 +00:00
Wei Wang
0931bf06f1 Disable ADPF hint am: 934721c1e0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14430675

Change-Id: Ie2d5a2d8ca1c6c03db5807a98dc6394b93e85f5d
2021-05-05 17:20:14 +00:00
Wei Wang
934721c1e0 Disable ADPF hint
Test: boot
Bug: 170650323
BUg: 187212124
Change-Id: Ifa754efa138803c5cc36836b8313e819079e518a
2021-05-05 17:03:23 +00:00