Commit graph

11403 commits

Author SHA1 Message Date
Bruno BELANYI
4a8b8ace61 Enable HDR shader priming in SurfaceFlinger
Bug: 295257834
Test: manual - check that HDR shaders are generated after applying
Change-Id: I62cb104914d41f7402e80c83598006a6a018be27
2023-10-18 12:44:02 +00:00
Xin Li
a17ff7b552 Merge 10952656
Merged-In: Id8af985f49aafa9966da448443421888817bdb34
Change-Id: Ifbd9589b149d126f212eddda871aaf550f589ac8
2023-10-17 10:06:29 -07:00
Xin Li
6249b6ee2f Merge 10952656
Merged-In: Id486c53997b232c2b02d18d1c7a6d773f1319110
Change-Id: I3d2dbaf2421c7f32c5088839e9e7440f2b7d7128
2023-10-17 10:06:29 -07:00
Jasmine Cha
88ae21dc60 audio: fix typo
Bug: 305838207
Test: build pass/ recording runtime tuning

Change-Id: I34f3611cb8c75adc8f72bb3ba126472cfd9293f2
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-10-17 15:10:42 +08:00
Wilson Sung
0c5fff7954 Update SELinux error
Test: scanBugreport
Bug: 305600375
Bug: 305600845
Bug: 305600595
Change-Id: I6bd13a82d02eb063435520be7705c67408b0269f
2023-10-16 05:53:42 +00:00
guibing
e9d930291a init: gs101: update vendor_sched procfs paths
Vendor sched procfs path hierarchy gets updated in kernel.
Update the paths in init rc file and task profiles to match the change.

Bug: 289151587
Test: UIbench ab test
Change-Id: I6f8aa26587578860483d6ededf88e9c04a926644
2023-10-13 17:19:09 +00:00
Minchan Kim
402f9f3f88 gs101: change swap_free_low_percentage to 10
Since LMKD introduced aggressive kill for cached apps, we can change the
swap_free_low_percentage back to 10.

Bug: 300660611
Change-Id: Ib570d579e0d3addee242b226aed72a3a138a0f78
Signed-off-by: Minchan Kim <minchan@google.com>
2023-10-11 20:50:27 -07:00
Xin Li
f22905a1b0 [automerger skipped] Merge Android 14 am: 97c0d04d87 -s ours am: 2218cc84a9 -s ours am: 63b5b3a490 -s ours am: 43e5e5ff3e -s ours am: 9c567b3d76 -s ours
am skip reason: Merged-In Ib4ec351fd5f2d59d161578440e8c0d36f8b68a6f with SHA-1 c6b5b5990a is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2774918

Change-Id: I6fbdc86dd4d90a5c09760cecd45473caa8ee3359
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-07 00:20:46 +00:00
Xin Li
c7a1c28200 [automerger skipped] Merge Android 14 am: 7fabb8cee6 -s ours am: 071bca5489 -s ours am: 14f6e3dd7d -s ours am: bba70e6241 -s ours am: 1ac7c592e6 -s ours
am skip reason: Merged-In I48441749de4eb1de90ce5a307b1d47ae3cb9592d with SHA-1 502fd30697 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs101-sepolicy/+/2774976

Change-Id: I03e153000fc167622dd2ff19693bca57c5739c96
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-07 00:19:55 +00:00
Xin Li
9c567b3d76 [automerger skipped] Merge Android 14 am: 97c0d04d87 -s ours am: 2218cc84a9 -s ours am: 63b5b3a490 -s ours am: 43e5e5ff3e -s ours
am skip reason: Merged-In Ib4ec351fd5f2d59d161578440e8c0d36f8b68a6f with SHA-1 c6b5b5990a is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2774918

Change-Id: Id486c53997b232c2b02d18d1c7a6d773f1319110
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-06 11:01:16 +00:00
Xin Li
1ac7c592e6 [automerger skipped] Merge Android 14 am: 7fabb8cee6 -s ours am: 071bca5489 -s ours am: 14f6e3dd7d -s ours am: bba70e6241 -s ours
am skip reason: Merged-In I48441749de4eb1de90ce5a307b1d47ae3cb9592d with SHA-1 502fd30697 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs101-sepolicy/+/2774976

Change-Id: Id8af985f49aafa9966da448443421888817bdb34
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-06 11:00:25 +00:00
Xin Li
43e5e5ff3e [automerger skipped] Merge Android 14 am: 97c0d04d87 -s ours am: 2218cc84a9 -s ours am: 63b5b3a490 -s ours
am skip reason: Merged-In Ib4ec351fd5f2d59d161578440e8c0d36f8b68a6f with SHA-1 c6b5b5990a is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2774918

Change-Id: I8f0576cf46996c9ff8d02cf69b0c05345e26de64
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-06 09:51:25 +00:00
Xin Li
bba70e6241 [automerger skipped] Merge Android 14 am: 7fabb8cee6 -s ours am: 071bca5489 -s ours am: 14f6e3dd7d -s ours
am skip reason: Merged-In I48441749de4eb1de90ce5a307b1d47ae3cb9592d with SHA-1 502fd30697 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs101-sepolicy/+/2774976

Change-Id: I8f2846beec57d58761717c294fb4e74beae7732f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-06 09:50:34 +00:00
Xin Li
63b5b3a490 [automerger skipped] Merge Android 14 am: 97c0d04d87 -s ours am: 2218cc84a9 -s ours
am skip reason: Merged-In Ib4ec351fd5f2d59d161578440e8c0d36f8b68a6f with SHA-1 c6b5b5990a is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2774918

Change-Id: I1b75b5a02f0f999fd15d601fa4932b0c9f50ca8f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-06 08:59:44 +00:00
Xin Li
14f6e3dd7d [automerger skipped] Merge Android 14 am: 7fabb8cee6 -s ours am: 071bca5489 -s ours
am skip reason: Merged-In I48441749de4eb1de90ce5a307b1d47ae3cb9592d with SHA-1 502fd30697 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs101-sepolicy/+/2774976

Change-Id: I44e5ece889b19439ab5ad57e2b228b6f7c026a09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-06 08:59:00 +00:00
Xin Li
2218cc84a9 [automerger skipped] Merge Android 14 am: 97c0d04d87 -s ours
am skip reason: Merged-In Ib4ec351fd5f2d59d161578440e8c0d36f8b68a6f with SHA-1 c6b5b5990a is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2774918

Change-Id: I51a81140c8882e60540742f189eb9edabd51cc62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-06 07:52:45 +00:00
Xin Li
071bca5489 [automerger skipped] Merge Android 14 am: 7fabb8cee6 -s ours
am skip reason: Merged-In I48441749de4eb1de90ce5a307b1d47ae3cb9592d with SHA-1 502fd30697 is already in history

Original change: https://android-review.googlesource.com/c/device/google/gs101-sepolicy/+/2774976

Change-Id: Iea3ff52c8c300b083c2de5b2ecf45856ae49ba96
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-06 07:51:54 +00:00
Roy Luo
653f31663d Usb: capture and upload Suez metric VendorUsbDataSessionEvent
Upload metrics for the last data session that just ends upon
data role changes. The change is purely metric collection and
does not change any business logic.
This is a direct CP from ag/24816727

Bug: 297224564
Test: Trigger metric upload for both host and device mode and
      verify it by statsd_testdrive
Change-Id: I823ae8712b7914cfc7f6c6379acb3749d13c0974
(cherry picked from commit ccb35c81ff0bbfb013136bae7a572280b196bd1a)
2023-10-05 23:49:40 +00:00
Xin Li
7fabb8cee6 Merge Android 14
Bug: 298295554
Merged-In: I48441749de4eb1de90ce5a307b1d47ae3cb9592d
Change-Id: Ica95e66a8aaacda0452f0025b73835b63855f30a
2023-10-05 15:33:38 -07:00
Xin Li
97c0d04d87 Merge Android 14
Bug: 298295554
Merged-In: Ib4ec351fd5f2d59d161578440e8c0d36f8b68a6f
Change-Id: Ib3de89cedb3c241aec9a8b4474663ea73566920a
2023-10-05 15:33:36 -07:00
Wilson Sung
fb1d860be3 Merge "Update SELinux error" into main 2023-10-05 02:17:39 +00:00
Wilson Sung
15261ed885 Update SELinux error
Test: SELinuxUncheckedDenialBootTest
Bug: 303391666
Bug: 303391687
Bug: 301948771
Change-Id: I16e38ca15d7a9995f7922b9c3be6a6f2f2238c2a
2023-10-04 11:53:34 +00:00
Arthur Hung
2685ea8e57 Add default allow list for VRR small dirty detection
The feature will be enabled by the feature flag

Bug: 283055450
Test: Build
Change-Id: Ia51f69f8b68b0dd74bd454c73a4d6d715f1d658c
2023-10-04 08:06:14 +00:00
Roy Luo
bf5ca96192 usb: upgrade stats AIDL to v2
Upgrade stats AIDL to v2 following pixelstats lib.

Bug: 297224564
Test: Build
Change-Id: I3b68c8ed3ff7ff96c185c8f990b03acabb64e3ad
2023-10-03 20:49:32 +00:00
Will McVicker
b54d8f91e3 usb: Update Usb and UsbGadget i2c logic
Update the logic to find the i2c bus number to use either the named i2c
devices or the static i2c bus numbers. This allows us to support both
cases -- v5.10 uses i2c-<devname> while v6.1 uses <i2c-bus#>-<reg>.

Bug: 291606723
Test: verify no errors from the usb services with v5.10 and v6.1
Change-Id: I6d41ac041ead68e72a3766e03d491bcd478468d3
2023-10-02 16:28:59 +00:00
Will McVicker
b1662cade2 init: update i2c bus numbers and move initialization to ueventd
Update the i2c bus numbers to use the statically assigned numbers
configured in the kernel device tree. In addition, use ueventd to set
the ACL for the i2c devices.

Bug: 291606723
Test: performance boot testing
Test: verify selinux labelling with ls -Z on the modified device nodes
Change-Id: Ib412510e4b6c086c978ad5487486323685732cae
2023-10-02 16:28:59 +00:00
Midas Chien
184fc05293 display: allow hwcomposer to access DRM module debug file
Change the owner and group of the DRM module debug file to system to
grant permission for hwcomposer.

Bug: 301599195
Test: check HWC can access it
Change-Id: I76cb73cf9149347d486354abf8c9fc7d165e1bea
2023-10-02 01:52:28 +00:00
Will McVicker
f0047396de Move i2c-cs40l26a to gs101-sepolicy
The i2c-7/7-0043 label is shared with both i2c-7/i2c-cs40l25a and
i2c-7/i2c-cs40l26a nodes. To make it clear that these all are related,
let's move i2c-7/i2c-cs40l26a to gs101-sepolicy and have all the gs101
vibrator policy labels together.

Bug: 302549624
Bug: 291606723
Test: Verify i2c nodes on r4
Fixes: ccdd975a88d0 ("Update the cs40l26a i2c device node sepolicy labeling")
Change-Id: I2950a2c064e31e300d07f124cf1a7bfc00ae58c3
2023-09-29 09:21:48 -07:00
Will McVicker
d17c49fd0a Update the i2c device node sepolicy labeling
This change needs to be merged with the corresponding kernel change that
sets the i2c bus aliases correctly to match the existing v5.10 bus
probe ordering.

To verify the sepolicy labeling doesn't change, run the below commands
and diff the stdout on builds with and without the changes. For extra
credit, verify the nodes are labeled the same when upgrading the kernel
to v6.1 (with the correct i2c aliases to match the existing policy):

  acpm_bus_array=("acpm_mfd_bus@17500000" "acpm_mfd_bus@17510000")
  for bus in ${acpm_bus_array[@]}; do
    adb shell ls -ZR /sys/devices/platform/${bus}/i2c-*;
  done

  bus_array=("10960000" "10970000" "10d50000" "10900000")
  for bus in ${bus_array[@]}; do
    adb shell ls -ZR /sys/devices/platform/${bus}.hsi2c/i2c-*;
  done

Test: verify on r4
Bug: 291606723
Change-Id: Ifbfc53fbeb39a47cda4263fc706f11af6675d90e
2023-09-29 09:21:44 -07:00
Roy Luo
fb8d2f7d73 Revert "Update the i2c device node sepolicy labeling"
Revert submission 24855741-gs101-i2c-bus-fixes

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.corp.google.com/builds/quarterdeck?branch=git_main&target=bluejay-trunk_food-userdebug&lkgb=10876543&lkbb=10876988&fkbb=10876587, bug b/302549624.

Reverted changes: /q/submissionid:24855741-gs101-i2c-bus-fixes

Change-Id: Iea8fe5b374609225ab07aa13effcb1d6e8d13468
BUG: 302549624
2023-09-28 18:00:13 +00:00
Roy Luo
7bd4fdd98f Revert "init: update i2c bus numbers and move initialization to ..."
Revert submission 24855741-gs101-i2c-bus-fixes

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.corp.google.com/builds/quarterdeck?branch=git_main&target=bluejay-trunk_food-userdebug&lkgb=10876543&lkbb=10876988&fkbb=10876587, bug b/302549624.

Reverted changes: /q/submissionid:24855741-gs101-i2c-bus-fixes

Change-Id: I1c87ea91d0a2eaf441c554b8f4729cefd0eca068
BUG: 302549624
2023-09-28 18:00:06 +00:00
Roy Luo
dae6f56edd Revert "usb: Update Usb and UsbGadget i2c logic"
Revert submission 24855741-gs101-i2c-bus-fixes

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.corp.google.com/builds/quarterdeck?branch=git_main&target=bluejay-trunk_food-userdebug&lkgb=10876543&lkbb=10876988&fkbb=10876587, bug b/302549624.

Reverted changes: /q/submissionid:24855741-gs101-i2c-bus-fixes

Change-Id: I63de07348d45bd1a75e73da01f8ee402982cac30
BUG: 302549624
2023-09-28 18:00:07 +00:00
Will McVicker
901548943c usb: Update Usb and UsbGadget i2c logic
Update the logic to find the i2c bus number to use either the named i2c
devices or the static i2c bus numbers. This allows us to support both
cases -- v5.10 uses i2c-<devname> while v6.1 uses <i2c-bus#>-<reg>.

Bug: 291606723
Test: verify no errors from the usb services with v5.10 and v6.1
Change-Id: Ia68c424a3b6579457be6cfd0d07788e9da44a86e
2023-09-28 16:08:00 +00:00
Will McVicker
d9c462fc17 init: update i2c bus numbers and move initialization to ueventd
Update the i2c bus numbers to use the statically assigned numbers
configured in the kernel device tree. In addition, use ueventd to set
the ACL for the i2c devices.

Bug: 291606723
Test: performance boot testing
Test: verify selinux labelling with ls -Z on the modified device nodes
Change-Id: I579143fa38bc2e9b3bf7dc618b10e63001263e2e
2023-09-28 16:08:00 +00:00
Maciej Żenczykowski
035130fee8 OWNERS: master -> main
Change-Id: Ib8ee84d878c270631e12dd02c8d5ec1eedbd1839
2023-09-28 00:30:02 +00:00
Android Build Coastguard Worker
9652836b87 Snap for 10865315 from 36c9c135fd to udc-qpr1-release
Change-Id: I2189a822ad56f4ad3d2d67b68d927718075a51b4
2023-09-26 23:02:34 +00:00
Ian Elliott
d5f81e1ce8 Revert "gs101: Enable SkiaVk as RenderEngine backend" am: 36c9c135fd am: cbb7eda2fb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/24866271

Change-Id: Ia866558f36426477768058ba393ef11e91002b22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-26 19:16:30 +00:00
Ian Elliott
cbb7eda2fb Revert "gs101: Enable SkiaVk as RenderEngine backend" am: 36c9c135fd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/24866271

Change-Id: I39c49cc34c10660f00bd5a83b90fd00b01cdc24f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-26 18:18:51 +00:00
Ian Elliott
36c9c135fd Revert "gs101: Enable SkiaVk as RenderEngine backend"
This reverts commit b8a0da464b.

Reason for revert: Increased jank reported, especially on the Pixel tablet

Bug: 301846142
Bug: 298975477
Change-Id: I8aa4f335cd61ef2800238424aeac2cedd6dcfb67
2023-09-26 17:40:39 +00:00
Will McVicker
421a5fef33 Update the i2c device node sepolicy labeling
This change needs to be merged with the corresponding kernel change that
sets the i2c bus aliases correctly to match the existing v5.10 bus
probe ordering.

To verify the sepolicy labeling doesn't change, run the below commands
and diff the stdout on builds with and without the changes. For extra
credit, verify the nodes are labeled the same when upgrading the kernel
to v6.1 (with the correct i2c aliases to match the existing policy):

  acpm_bus_array=("acpm_mfd_bus@17500000" "acpm_mfd_bus@17510000")
  for bus in ${acpm_bus_array[@]}; do
    adb shell ls -ZR /sys/devices/platform/${bus}/i2c-*;
  done

  bus_array=("10960000" "10970000" "10d50000" "10900000")
  for bus in ${bus_array[@]}; do
    adb shell ls -ZR /sys/devices/platform/${bus}.hsi2c/i2c-*;
  done

Test: verify on r4
Bug: 291606723
Change-Id: Id5b9021cdbf4b9d3578d5e9ee655463ab62dcd12
2023-09-25 13:04:31 -07:00
Android Build Coastguard Worker
91271d168f Snap for 10850711 from 9d936fe835 to udc-qpr1-release
Change-Id: I00322df3e43794a240b81149ddcd402f9468694e
2023-09-23 01:07:01 +00:00
Avichal Rakesh
19d740a6f4 usb.rc: Advertise 360p and 480p support through UVC am: 9d936fe835 am: 7ba090036c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/24806969

Change-Id: Iae650a5c84e266f0a41945aaf5955ae02f9d5bc9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 18:11:04 +00:00
Avichal Rakesh
7ba090036c usb.rc: Advertise 360p and 480p support through UVC am: 9d936fe835
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/24806969

Change-Id: I83a8e6fea3d254c4d2f746fb348cf76249391f47
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 17:13:34 +00:00
Avichal Rakesh
9d936fe835 usb.rc: Advertise 360p and 480p support through UVC
Many host applications expect and ask for lower resolution streams when
streaming from a USB webcam. To support those applications, this CL
adds support for 640x480 and 640x360 streams.

Bug: 301170431
Test: Manually tested that the resolution is advertised and streamed.
Change-Id: I78e9f97575784996aac94e576c7f23b0874a8d09
2023-09-21 21:00:10 -07:00
Android Build Coastguard Worker
f0a4074821 Snap for 10844344 from b6dd753059 to udc-qpr1-release
Change-Id: I8ae6ed469985f1c4dd7d8c13fbd766c64202f168
2023-09-21 23:02:25 +00:00
Kuen-Han Tsai
0c36feb52e Usb.cpp: Fix typos when unable to disable USB data am: b6dd753059 am: 46915051db
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/24797931

Change-Id: I4a7d6a96cde3e3fb14d9464c82326b8dc222e459
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 11:31:00 +00:00
Kuen-Han Tsai
46915051db Usb.cpp: Fix typos when unable to disable USB data am: b6dd753059
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/24797931

Change-Id: I7c224ca968c3d8e1e386e6248e1730c934d00717
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 10:34:30 +00:00
Kuen-Han Tsai
b6dd753059 Usb.cpp: Fix typos when unable to disable USB data
If Usb.cpp cannot write a zero value to the USB_DATA_PATH file, display
the message of "Not able to turn off usb connection notification".

Test: refactoring CL. Existing tests still pass.
Bug: 301016122
Change-Id: I0c5b7c4dc5bfe21ba17058536b5014eb5d69d1f3
2023-09-21 09:54:59 +00:00
Klines Jiang
0e93cb704a [automerger skipped] [SELinux] Add gyotaku_app doamin to Pixel 2020. am: cd3ffcdd70 am: f71cd944e8 -s ours
am skip reason: Merged-In I3c4e63fb73ea233838a5ea777a340310a18186ed with SHA-1 5c815914ae is already in history

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

Change-Id: Ie4ad4df8a64e06fdd1c161db799cd4b63aa03580
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 07:02:42 +00:00
Klines Jiang
f71cd944e8 [SELinux] Add gyotaku_app doamin to Pixel 2020. am: cd3ffcdd70
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/24742248

Change-Id: I7411fa57385f2d7b97c2b58fc9fc51447454e448
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 06:06:42 +00:00