Commit graph

2428 commits

Author SHA1 Message Date
Roy Luo
ea65ca11f6 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
2023-11-30 21:43:04 +00:00
Muralidhar Reddy Mule
e18209fef7 Merge "[LPA][Zuma] Add notification pregrant" into udc-qpr-dev am: 7a01eb40ef am: 4dbb989e10
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25269253

Change-Id: I27731b7980f389362287d2a32a2ff9e6dd37bb0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-30 15:34:43 +00:00
Muralidhar Reddy Mule
4dbb989e10 Merge "[LPA][Zuma] Add notification pregrant" into udc-qpr-dev am: 7a01eb40ef
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25269253

Change-Id: I7617597b84f82597b16a635159c15bd67ef3dfb4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-30 14:48:04 +00:00
Muralidhar Reddy Mule
7a01eb40ef Merge "[LPA][Zuma] Add notification pregrant" into udc-qpr-dev 2023-11-30 14:05:26 +00:00
Peter Lin
dc330b5e88 Update default color temperature for night light
Bug: 302396607
Test: adb shell dumpsys color_display | grep "Color temp"
Change-Id: If106f81c0dd2bd81a48e156e1cc75dba4a885aca
2023-11-30 07:51:45 +00:00
Treehugger Robot
73592fb6ac Merge "Ueventd changes for new BT channel in zuma" into main 2023-11-30 00:32:17 +00:00
Treehugger Robot
d05c6ad1e6 Merge "Handle empty read from file." into main 2023-11-29 17:59:23 +00:00
Edgar Arriaga García
6a3349663d Merge "Add webview pinning for zuma devices" into main 2023-11-27 18:05:05 +00:00
Jason Chiu
f16d3f60d2 zuma: include bootctrl_aidl.mk from gs-common
Bug: 265063384
Change-Id: I95cc9feca160004ee1d1c8fdf85da92b894d01d5
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-11-27 17:36:02 +08:00
Jason Chiu
0c71ce55cc zuma: move bootctrl service declaration to gs-common
Bug: 265063384
Change-Id: Ic37e0e5fc5aa4730afdd9378cf7123f9216fb573
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-11-27 17:34:32 +08:00
Jason Chiu
719c85d06e zuma: move bootctrl hal to gs-common
Bug: 265063384
Change-Id: I03d2f96928cfa3d2dc8aa15ac285bdef05780bfd
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-11-27 17:34:03 +08:00
Tai Kuo
f9eedf7d34 Merge "Remove unused vibrator mk" into main 2023-11-27 08:00:23 +00:00
Tai Kuo
04d36f987f Remove unused vibrator mk
Bug: 246459244
Test: n/a
Change-Id: I1b6f5411c38118e72d059c1c93c0a27dce7c1528
2023-11-27 14:27:27 +08:00
Florian Mayer
251d00eb0e Handle empty read from file.
Test: run /vendor/bin/dump/dump_power
Bug: 312681873
Change-Id: I8c49cf7f0048190f02d35d50984abca361d517f1
2023-11-22 11:49:27 +00:00
Martin Liu
e55232fbac adjust PCP high level
We have observed more reclaiming activities as upstream
has changed how PCP high is calculated since 5.15 kernel.
Re-align the level back to 5.10 first so we can monitor
how it impacts the MM metrics.

Bug: 309409009
Test: boot
Change-Id: I7ac1eb88a8dae7c823330a2c75aec9547bd5c427
Signed-off-by: Martin Liu <liumartin@google.com>
2023-11-21 10:24:32 +00:00
kierancyphus
741d0c09d7 LogMaskLibrary: Add newlines and fix posix perms
Bug:302435001
Test: Manually build, flash, `adb shell ls -l \
/data/vendor/radio`

Change-Id: If2696c577e66ee27a042ebe8d6ff61a9e832caec
2023-11-21 05:52:39 +00:00
Luis Delgado de Mendoza
9344919fe5 Ueventd changes for new BT channel in zuma
Bug: 308452948
Test: Validated locally on husky.
Change-Id: I4534d3c007f93e7dbd2ec3ed1f32d30ba8a90ea9
2023-11-17 20:02:43 -08:00
Ruofei Ma
09160b77ca Merge "Enable adaptive playback for BigWave" into udc-qpr-dev am: c9e0f1c3ed am: 2fea711bd5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25398212

Change-Id: I1812a2e5cfd27cf19b397a39a21d67b8ab3d85a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-17 23:03:04 +00:00
Ruofei Ma
2fea711bd5 Merge "Enable adaptive playback for BigWave" into udc-qpr-dev am: c9e0f1c3ed
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25398212

Change-Id: I542cf8cbbf506b1ef8e71d86d93bf1d705013543
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-17 22:29:24 +00:00
RD Babiera
c92ee8d02a Merge "usb: reattempt to enter displayport alt mode if driver entry process fails" into main 2023-11-17 22:12:05 +00:00
Ruofei Ma
c9e0f1c3ed Merge "Enable adaptive playback for BigWave" into udc-qpr-dev 2023-11-17 22:02:44 +00:00
Ruofei Ma
d7b343305d Enable adaptive playback for BigWave
Bug: 309722491

Change-Id: Ibc5a88efc535cc847fbde45541d451ee97c65a1e
Signed-off-by: Ruofei Ma <ruofeim@google.com>
2023-11-16 18:04:53 +00:00
Jerry Huang
228db5e2a5 zuma: 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: Ib66db8bf037de5ece05047f98bc176a79aca8aa7
2023-11-16 12:26:50 +00:00
RD Babiera
04d1e94d10 usb: reattempt to enter displayport alt mode if driver entry process fails
In the kernel, it is possible for the DisplayPort Alt Mode
driver to queue an Enter Mode message to the tcpm and have
that message be interupted by a Power Role or Vconn swap,
which results in the Port Partner never entering Alt Mode.

Add a debounce that checks to make sure that the port partner
enters Alt Mode when DisplayPort Alt Mode is active on the
port. On trigger, reattempt to send Enter Mode through the
tcpm up to 2 times.

Test: Manual test on device - put device into Preferred
      Source role, test to see if Alt Mode reentry triggers
      when original entry is interrupted by PR Swap from
      monitor.
Bug: 308383356
Change-Id: I96563c9900a01e428850e4873371bcdb0225aa07
Signed-off-by: RD Babiera <rdbabiera@google.com>
2023-11-15 22:08:36 +00:00
Roy Luo
c55415c1e2 usb: update usb hal version to v3
Bug: 308700954
Test: atest vts_treble_vintf_vendor_test
Change-Id: I724a170a1403dec7eecbc33d7f532471f09b559f
2023-11-14 20:41:47 +00:00
Treehugger Robot
78a70da442 Merge "zuma: update AIDL IGoogleBattery manifest version to 3" into main 2023-11-13 06:58:05 +00:00
Alan Chen
128a61054b Merge "Add extensive_logging config file" into main 2023-11-13 05:47:28 +00:00
Will McVicker
d6716ccd63 fstab: allow unlocked devices to boot with AVB test key am: 1bc7e21a38 am: 9e663230ab
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25347023

Change-Id: I21eed5267eeff6443478301fe9b039c27aaf3f99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 04:39:36 +00:00
Will McVicker
9e663230ab fstab: allow unlocked devices to boot with AVB test key am: 1bc7e21a38
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25347023

Change-Id: I2af7647f22ccbee3b5dd55f8d022e444d3d461f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 04:07:51 +00:00
Will McVicker
1bc7e21a38 fstab: allow unlocked devices to boot with AVB test key
Set `avb_keys=no_such_key` for dynamic kernel partitions to allow booting
unlocked devices with a custom kernel. This allows a few things:

1) Dogfooders can flash a custom kernel without wiping their device.
   This can help developers track down hard-to-reproduce bugs without
   rolling out a patch to the whole dogfooder population.
2) Developers can uprev their device's kernel without wiping their
   device or packaging the kernel with an Android platform build.

Note: we are using "no_such_key" to ensure an AVB keys file doesn't
accidentally get created.

Test: Flash CI build. Then flash custom kernel on top.
Bug: 274825778
Change-Id: Ibf3cee491404b9efc18c49936edf64c2e3084adf
2023-11-11 15:44:29 -08:00
Jack Wu
5c6e25c1b1 zuma: update AIDL IGoogleBattery manifest version to 3
Bug: 309518527
Test: TH
Change-Id: I6f80e0456eb5906feb4a6b0243765cbf6978b051
Signed-off-by: Jack Wu <wjack@google.com>
2023-11-11 03:46:33 +00:00
Muralidhar Reddy
74433bdbd3 [LPA][Zuma] Add notification pregrant
Bug: 308699419
Test: manual verification
Change-Id: I8529edd2c60e831eaeb7c817bef047bafa7dc890
2023-11-10 16:31:14 +00:00
Alan Chen
9c8f2bdaeb Add extensive_logging config file
Bug: 302417853
Test: manual, file shows on device
Change-Id: I930d93ab5f3275bf39373cea51067b9787286da0
2023-11-10 12:42:40 +08:00
Roy Luo
398ceca7a9 usb: update incompatible charger warning reason
Report COMPLIANCE_WARNING_INPUT_POWER_LIMITED instead of
COMPLIANCE_WARNING_OTHER to flag incompatible chargers. The underlying
logic that generates the warning remains the same, what's changed is
the enum that's being used.
The purpose of the change is to have a warning type that better
represents what actually happens and free up COMPLIANCE_WARNING_OTHER
that was intended to act as a fallback reason code.
The flag enable_input_power_limited_warning controls whether to switch
to the new enum, while the flag enable_usb_data_compliance_warning
controls the new enums that are added as FlaggedApi in the framework.
Both flags need to be on to enable the change.

Bug: 308700954
Test: manual tests with local flag override
Change-Id: I6595706d1b83d533fc2d3e29086773270e045ede
2023-11-09 19:11:32 +00:00
Devika Krishnadas
64853c99f4 Merge "Revert^2 "Use graphics allocator 2"" into main 2023-11-08 23:21:09 +00:00
Treehugger Robot
ff513752a1 Merge "zuma: HWC access to panel refresh_ctrl node" into main 2023-11-08 04:20:23 +00:00
Will McVicker
b832cc86c7 fstab: allow unlocked devices to boot with AVB test key
Set `avb_keys=no_such_key` for dynamic kernel partitions to allow booting
unlocked devices with a custom kernel. This allows a few things:

1) Dogfooders can flash a custom kernel without wiping their device.
   This can help developers track down hard-to-reproduce bugs without
   rolling out a patch to the whole dogfooder population.
2) Developers can uprev their device's kernel without wiping their
   device or packaging the kernel with an Android platform build.

Note: we are using "no_such_key" to ensure an AVB keys file doesn't
accidentally get created.

Test: Flash CI build. Then flash custom kernel on top.
Bug: 274825778
Change-Id: Ibf3cee491404b9efc18c49936edf64c2e3084adf
2023-11-07 10:02:31 -08:00
Devika Krishnadas
4c7ea96e6b Revert^2 "Use graphics allocator 2"
5c5e1b804f

Bug: 287353739
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: I8ba05825ea3aba89b907adc11c01268ae425f6ed
2023-11-07 06:45:50 +00:00
Jack Wu
5f6d9cc357 dump_power: fix the problem of not being able to dump properties
Bug: 309011602
Test: adb bugreport and check dumpstate_board.txt
Change-Id: I8a6251e03bcf16b2c1f4242a724f1949dab75759
Signed-off-by: Jack Wu <wjack@google.com>
2023-11-06 20:42:03 +08:00
Chris Lu
c09eb8dc6b zuma: HWC access to panel refresh_ctrl node
Bug: 295603692
Test: write the node successfully
Change-Id: I7a5e908ec6d253791954d1b2071f3d59871650eb
2023-11-06 08:02:29 +00:00
Jeff Chang
73d96fb40f Merge "Update default allow list for VRR small dirty detection" into main 2023-11-02 10:48:23 +00:00
Jeff Chang
da02d10181 Update default allow list for VRR small dirty detection
The feature will be enabled by the feature flag

Bug: 308742727
Test: Build
Change-Id: Ifb11472ca2c500923508cf175db130ab56ed9386
2023-11-01 10:30:38 +00:00
Jasmine Cha
4a0a7997b5 Merge "audio: remove prescale for BT absolute volume" into main 2023-11-01 06:02:07 +00:00
Treehugger Robot
d2c07f3b87 Merge "dump_power: adding defender logs for charger and active time" into main 2023-10-30 03:25:58 +00:00
Will Song
fa6626b128 Merge "PREUPLOAD: Enforce jsonlint in preupload" into main 2023-10-29 07:20:18 +00:00
Will Song
89c02823d2 PREUPLOAD: Enforce jsonlint in preupload
Checks syntax and simple brace balances for all JSON files.

Test: Edit any json file and try upload
Bug: 127794899
Change-Id: Ia302d5aa13328ca4e0c7c2c8b10bf54c2542a1ff
2023-10-29 05:47:46 +00:00
Jaegeuk Kim
44082e91da Run fsck to resolve possible data corruption
Cherry-picked from 19eb98145d.

Trigger fsck on mount of /data if the value of ro.preventative_fsck is
not equal to the contents of /metadata/vold/preventative_fsck, then set
the file to the property to prevent future runs

See b/305658663 for context

Bug: 305658663
Test: Make sure fsck run after first boot and not after second
Change-Id: Ie6b9fc94752d91e77e8fc48979216917c1fd9ec3
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2023-10-27 20:52:33 +00:00
Daniel Okazaki
ee805f1dcc dump_power: adding defender logs for charger and active time
Bug: 306108267
Test: build/flash
Test: adb bugreport
Change-Id: I3f67e07853334457c74808869df78c323458f2df
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
2023-10-27 18:46:12 +00:00
Android Build Coastguard Worker
804eaebcae Merge cherrypicks of ['googleplex-android-review.googlesource.com/25189351'] into udc-qpr1-release.
Change-Id: I8dd9a61b805ffb437889e934cd95fbd2961b62ff
2023-10-27 03:36:20 +00:00
Jaegeuk Kim
e223cf13b8 [conflict] DO NOT MERGE - Run fsck to resolve possible data corruption am: 19eb98145d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/25175376

Bug: 305658663
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:707c8849e5e5511a8bf009b61a714cdd2fea811b)
Merged-In: Icc611e53d39734b7f6ce9c70ca601d61ec4d4e33
Change-Id: Icc611e53d39734b7f6ce9c70ca601d61ec4d4e33
2023-10-27 03:34:11 +00:00