Commit graph

4786 commits

Author SHA1 Message Date
Jerry Huang
c67150d613 gs201: update c2.android.av1-dav1d.decoder performance point
c2.android.av1-dav1d.decoder performance has been improved with CL
"C2SoftDav1dDec: Fix performance issues in frame parallel multi-threading"
More detail in b/315828433

Bug: 315828433
Test: run cts -m CtsMediaDecoderTestCases -a arm64-v8a -t android.media.decoder.cts.VideoDecoderPerfTest --module-arg CtsMediaDecoderTestCases:instrumentation-arg:codec-prefix:=c2.android.av1-dav1d.decoder
Change-Id: If4912322095ec112507c2e7f37e5bc1506d8c17a
2024-01-25 11:03:11 +00:00
Spade Lee
df3f348d3b dumpstate: add SoC residency dump
Bug: 319536756
Change-Id: If12b04cca0b5f426709d4f0a8e4c6937d7abc7e2
Signed-off-by: Spade Lee <spadelee@google.com>
2024-01-22 16:50:25 +00:00
Wayne Lin
c1a79afe2d gps: add new certificate
Bug: 319329399
Bug: 319329247
Test: confirm certificate is included
Change-Id: Iafdbb7ad53da68c7f14fa94c1458f56016f70680
2024-01-19 06:36:07 +00:00
Kyle Tso
84e6e2b491 dumpstate: Fix wrong path for tcpm psy uevent
Bug: 320605646
Change-Id: I24ee174bdb5f9bb8127f5ae158c55a8738d852e3
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-01-18 15:12:23 +00:00
Midas Chien
6a34636f89 display: allow hwcomposer to access allow_wakeup_by_state_change
Bug: 311495944
Test: check permission
Change-Id: Id41872449035e16e7abc7f5111cdf95a7914f846
2024-01-17 07:53:09 +00:00
Utku Utkan
6afe88fbce Pregrant ACCESS_FINE_LOCATION as default permission to PCS on G2
Bug: 309676824
Test: m && flashall + pair & connect to remote device Wi-Fi AP
Change-Id: Ic40efe2d77b6d69ec97888fd421a5d0bda51860b
2024-01-12 16:51:42 +00:00
Mahesh Kallelil
9366c5117a Set owner as system for logbuffer_cpif
Setting the owner of /dev/logbuffer_cpif as system to allow the
dump_modem script to read the logs as part of bugreport

Test: Tested bugreport on device
Bug: 305600375
Change-Id: Ic7c64f942985596d9a5d919dfd3ca2127de881d0
Signed-off-by: Mahesh Kallelil <kallelil@google.com>
2024-01-12 06:36:47 +00:00
Devika Krishnadas
58dc835539 Revert^3 "Use graphics allocator 2"
4217a458ba

Reverting to comply with the Allocator VTS for 24Q1, do not merge to main.

Bug: 310046460
Test: VtsHalGraphicsAllocatorAidl_TargetTest
Change-Id: I322cdf9452a80e5da87f1808b324ac2e499fe9cd
2024-01-11 20:58:19 +00:00
Roy Luo
fc280685ca usb: dump flag value in the constructor
Dump flag value in the construtor for easier debugging. Feature flags
are not expected to change in runtime, dumping the value once should
be enough.

Bug: 296119135
Test: manual test
Change-Id: Ie5aca2dff23e59704fb306833cde0e592b9f430d
(cherry picked from commit 9164eae7cdee032381d8bf045fbbed33f62b00bf)
2024-01-10 11:47:02 +00:00
wenchangliu
59ed5b77f5 gs201: uses Codec2 HIDL 1.2 service
- Include mediacodec_samsung setting from gs-common
- Enable Codec2 HIDL 1.2 from BoardConfig and update
manifest hidl version for samsung.hardware.media.c2

Bug: 318793681
Test: run cts -m CtsMediaDecoderTestCases
Test: run cts -m CtsMediaPlayerTestCases
Test: run vts -m vts_treble_vintf_vendor_test
Change-Id: I1f947d2eb75bd4d75d9db1d39b0b083d32f8032f
2024-01-09 14:49:56 +00:00
Limon Mia
4305bf7cd0 Packed vendor log to bugreport for P22
Bug: 316071157
Test: enable vendor log and take bugreport
Change-Id: If9497810763d813e97a893d736bfbdeaf208c904
2024-01-03 02:11:04 +00:00
Roy Luo
5e14ba01be usb: adjust heuristics for flaky connection warning
The state count requirement is very specific to the case where the
signal integrity is the culprit of flaky connection. However,
there could be other cases such as bad receptacles causing data pins
to disconnect randomly.
Remove the state count requirement to cover more cases.

Bug: 296119135
Test: manually trigger the warnings
Change-Id: Ic2ae376ad6062d9930614381503f44e4a5ac760f
2023-12-26 21:49:19 +00:00
Roy Luo
42020dc458 usb: implement heuristics to flag data compliance warnings
Support flagging enum failure and flaky connection in device mode,
flagging enum failure and missing data lines in host mode.
No warning would be flagged until 5 secs after the data session
starts to give ample time for the connection to stabilize, a timer
is added to support it.

Bug: 296119135
Test: manually trigger the warnings
Change-Id: I25f08657e328913946add192b5ecb9ee50c3a1a8
2023-12-22 03:05:06 +00:00
Jaegeuk Kim
a04e12983b Migrate to gs-common/storage/init.storage.rc
Bug: 311655524
Change-Id: I084717957a3bdf0bcbdca06502867d8e108ac139
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2023-12-20 10:22:34 -08:00
Sandeep Dhavale
9ffdaf1c94 Update health AIDL HAL to V3 am: 7bdd0af481 am: cc462adf40 am: c4c2921aad
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2882026

Change-Id: I80d5838d50c521c42404e5ebdd128e2e3daf345b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-19 09:50:00 +00:00
Sandeep Dhavale
c4c2921aad Update health AIDL HAL to V3 am: 7bdd0af481 am: cc462adf40
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2882026

Change-Id: Ia736dc5ff4339bc96c2f6f0d60465529b688af20
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-19 09:17:36 +00:00
Sandeep Dhavale
cc462adf40 Update health AIDL HAL to V3 am: 7bdd0af481
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2882026

Change-Id: I078b2af55d78f2fc7e3421b5299146fd4e8f2d92
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-19 08:47:14 +00:00
Sandeep Dhavale
7bdd0af481 Update health AIDL HAL to V3
Bug: 316837586
Test: TH
Test: vts-tradefed run vts -m vts_treble_vintf_vendor_test
Change-Id: Ib4b240cd28df174257105db5bf6eae6accfae26a
Signed-off-by: Sandeep Dhavale <dhavale@google.com>
2023-12-18 23:36:44 -08:00
Jenny Ho
2542b04a24 Adjust bd_state to system for read
Bug: 316432531
Change-Id: I4964217a9c1782cc60011850ea111bd235b91ef6
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-19 03:24:22 +00:00
Jenny Ho
7755cc6fde dump_power_gs201: lynx: add battery EEPROM dump path
Bug: 316820830
Change-Id: Ia5833d8980f97335b15e9ebb3a81f28b9019adc9
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-18 08:27:05 +00:00
kierancyphus
b9424d9c59 logmasklibrary: update version info and freeze api
The versions were originally not specified in the device manifest and
compatibility matrices. This is changed here to fix the broken vts
tests.

Bug: 310109332
Test: atest vts_treble_vintf_vendor_test -- --abi arm64-v8a
Change-Id: Ib2baeda6a3c81c701e6f813b6c88f561b158e674
2023-12-15 22:46:17 +00:00
Kuen-Han Tsai
8412883458 usb: enable media-presence polling for SD cards
After USB enumeration, some SD card readers do not send signals to the
device when the SD card is inserted or removed.

To support SD card hotplugging, this patch enables in-kernel
media-presence polling, which will check the SD card status every 2
seconds after a SD card reader is attached.

Bug: 186479576
Test: SD card insertion/removal and data copy (see b/301566595)
Change-Id: Ibd7816b717d2fbcb038a7c0ff703b7fab7d2a46c
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2023-12-12 08:06:12 +00:00
Hungyen Weng
6fa3ccb524 config: Use carrier config in ROM by default am: 8dbc173f2b am: 26e7f60254
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/25616534

Change-Id: Ieb8260a470929777b3fad60cc6c66e480a9ffee0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-12 05:45:01 +00:00
Hungyen Weng
26e7f60254 config: Use carrier config in ROM by default am: 8dbc173f2b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/25616534

Change-Id: Icb4bdc42888cbd41d71387574affabc6607f4745
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-12 05:10:55 +00:00
Poomarin Phloyphisut
2ae9b5a025 pixelstats: Fix access permission by adding total call count and update cca path sysfs
Related changes :
ag/24513108

Bug: 289857250
Test: Local test uploading atoms.
Change-Id: I584af796d03585ba3e27baeb8d006af2cab8c24d
2023-12-12 02:12:37 +00:00
Xin Li
75ebe9dcd3 [automerger skipped] Merge Android 14 QPR1 am: d815a6775f -s ours am: d372ef70ff -s ours am: 31e614038a -s ours
am skip reason: Merged-In I484f4446b915cad1347dd065f2539cc12c75beec with SHA-1 e8cf7e19a1 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2863573

Change-Id: I5e8c5e70ff6b013d65d04ca84a1b6c92bd646bc2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 22:57:54 +00:00
Xin Li
31e614038a [automerger skipped] Merge Android 14 QPR1 am: d815a6775f -s ours am: d372ef70ff -s ours
am skip reason: Merged-In I484f4446b915cad1347dd065f2539cc12c75beec with SHA-1 e8cf7e19a1 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2863573

Change-Id: I2b868ab3e8999174c3415cb28f2ad7a72f0729b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 22:02:41 +00:00
Xin Li
d372ef70ff [automerger skipped] Merge Android 14 QPR1 am: d815a6775f -s ours
am skip reason: Merged-In I484f4446b915cad1347dd065f2539cc12c75beec with SHA-1 e8cf7e19a1 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2863573

Change-Id: I0a0102fc588322a247feaa366a600807de6f8aac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 21:16:51 +00:00
Hungyen Weng
8dbc173f2b config: Use carrier config in ROM by default
Bug: 314890118

Test: Flash ROM and confirm the carrier config follows the ROM.
Change-Id: Id0407802e2027397ca7a409345c51273b75079e7
2023-12-11 11:23:16 -08:00
Roy Luo
8d10e34fe0 Revert^2 "usb: introduce UsbDataSessionMonitor class"
a9ac5d5869

Bug: 297224564
Bug: 296119135
Change-Id: I0e15924ff133c8070c923f9072497bfda4370b5b
2023-12-09 00:22:03 +00:00
Xin Li
d815a6775f Merge Android 14 QPR1
Merged-In: I484f4446b915cad1347dd065f2539cc12c75beec
Bug: 315507370
Change-Id: Ib3fcff289774f28e147fe39738f3cf9908a571e4
2023-12-08 13:13:24 -08:00
Xin Li
c0c1b696b3 [automerger skipped] Merge UQ1A.231205.015 am: e8cf7e19a1 -s ours am: 351907775f -s ours
am skip reason: Merged-In I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe with SHA-1 e4a81c0e8f is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/25590758

Change-Id: I994f6d90ddd48844383fa910ea69a754114e8b22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 08:51:04 +00:00
Xin Li
351907775f [automerger skipped] Merge UQ1A.231205.015 am: e8cf7e19a1 -s ours
am skip reason: Merged-In I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe with SHA-1 e4a81c0e8f is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/25590758

Change-Id: I7025d5c373402976626128aa08909c7d0620e95e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 08:21:17 +00:00
Xin Li
e8cf7e19a1 Merge UQ1A.231205.015
Bug: 308969284
Merged-In: I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe
Change-Id: I484f4446b915cad1347dd065f2539cc12c75beec
2023-12-07 15:47:12 -08:00
Jason Chiu
a509a4b067 gs201: use android.hardware.boot aidl interface
Bug: 314215524
Change-Id: Id6e4083674e8e42572952ea516eae244d4d5e8e7
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-06 02:39:05 +00:00
Jason Chiu
dc7845e89a gs201: update manifest HAL android.hardware.boot from hidl 1.2 to aidl
Bug: 314215524
Change-Id: I59988d13f9bedc3a2067f9ffc49d690048383d66
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-06 02:39:05 +00:00
Qian-Hao Huang
a9ac5d5869 Revert "usb: introduce UsbDataSessionMonitor class"
Revert submission 25524752-usbDataSessionMonitor

Reason for revert: Test for gs101/gs201 boot blocking issue (b/314904288)

Reverted changes: /q/submissionid:25524752-usbDataSessionMonitor

Change-Id: I0f762a9ba8345d2963ebfb2d50cb8a7460885221
2023-12-05 17:13:31 +00:00
Jason Chiu
ca538bb2b4 gs201: include bootctrl_hidl_1.2.mk from gs-common
Bug: 265063384
Change-Id: I2e00ddafe970dcda873da691bd64908f5ef1c0f9
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 02:30:54 +00:00
Jason Chiu
2baf1d63eb gs201: move bootctrl service declaration to gs-common
Bug: 265063384
Change-Id: If265211d9b433eef789d0d68df1cae7cc369cfa1
2023-12-05 02:30:54 +00:00
Jason Chiu
fcab3aa32f gs201: move bootctrl hal to gs-common
Bug: 265063384
Change-Id: I11d07835c2785bdcc2a373befc1109bc12e4d11f
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 02:30:54 +00:00
Hiroshi Akiyama
c41e6f519b bcl: adjust heavy clk divider ratio
Bug: 314168856
Test: tbd
Change-Id: If32830eb480a6db99e32b3c1a277a79f058cc43f
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-12-04 21:52:04 +00:00
Roy Luo
3555bbe0a8 usb: introduce UsbDataSessionMonitor class
Migrate the usb data session event functions to the class with the
following additional functionalities;
- Support detecting gadget soft pulldown (usually done during configfs
  function switch) and report usb data session correctly.
- Support reporting usb data compliance warnings to the class USB
  by providing getDataComplianceWarnings call.
- Use boot_clock instead of steady_clock to measure time correctly in
  the case of system suspend.

UsbDataSessionMonitor is self-contained and can be migrated to pixel usb
library after feature maturation.

Bug: 297224564
Bug: 296119135
Test: usb data session upload in device and host mode
Change-Id: Iba001933e193935d64cf5fd0a1257d02a4274fb1
(cherry picked from commit ea65ca11f6fbb6f13b89ef9ed03015f47ec1cedb)
2023-12-01 16:43:41 +00:00
Peter Lin
ad362cf259 Update default color temperature for night light
Bug: 302396607
Test: adb shell dumpsys color_display | grep "Color temp"
Change-Id: I7812dcea6e2d6bceab13d9f103e434e19b6e9477
2023-11-30 07:50:38 +00:00
Edgar Arriaga
baca0e0e4d Add webview pinning for gs201 devices
Bug: 307594624
Change-Id: I13f4c2020b699f68a679fd34f4f6b025c0bfdb98
2023-11-27 18:04:49 +00:00
Ruofei Ma
1ecee14a46 Enable adaptive playback for BigOcean
Bug: 309722491

Change-Id: I8d402be86027ab20b2b633c1a97c6afb8fc13a16
Signed-off-by: Ruofei Ma <ruofeim@google.com>
2023-11-18 05:16:23 +00:00
Jerry Huang
b4cd7bf619 gs201: add c2.android.av1-dav1d.decoder in media_codecs_performance_c2.xml
c2.android.av1-dav1d.decoder is based on dav1d implementation.
This dav1d-based sw av1 decoder provides better decoding throughput
than the default gav1-based av1 decoder on mid-to-low-tier devices.
c2.android.av1.decoder will be deprecate eventually before that we keep
both decoders.

Bug: 309412792
Test: run cts -m CtsMediaDecoderTestCases -t android.media.decoder.cts.VideoDecoderPerfTest --module-arg CtsMediaDecoderTestCases:instrumentation-arg:codec-prefix:=c2.android.av1.decoder
Change-Id: Idc841e76425f333e16cc701869f450f126b2d72d
2023-11-16 12:26:34 +00:00
Roy Luo
a99d48c10e usb: update usb hal version to v3
Bug: 308700954
Test: atest vts_treble_vintf_vendor_test
Change-Id: I13c99d309b925520b529ec2e22a120adc5e834e7
2023-11-14 20:43:36 +00:00
Jack Wu
6d978bc632 gs201: update AIDL IGoogleBattery manifest version to 3
Bug: 309518527
Test: TH
Change-Id: I25f671b2c9cf3998288377c972a490748da0c627
Signed-off-by: Jack Wu <wjack@google.com>
2023-11-11 03:53:13 +00:00
Treehugger Robot
bc4af7cd50 Merge "Remove unused Android.mk under device/google/gs201" into main am: e23a8f2638 am: 5231856db3 am: d1a0918a6c
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2823753

Change-Id: I9d1a9732503b6b811a031391017b627dacd485ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-10 07:46:03 +00:00
Treehugger Robot
63ad4f8b7a Merge "Remove unused Android.mk under device/google/gs201" into main am: e23a8f2638 am: fa5e418afe am: 32b82b2c30
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2823753

Change-Id: I01c6c129b281983bcd2485ef6d49a86ced1905e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-10 07:44:26 +00:00