Commit graph

84 commits

Author SHA1 Message Date
Roshan Pius
d749a472a0 Revert "raviole(nfc): Modify NFC overlays for NFC apex"
Revert submission 2802548-nfc_apex

Reason for revert: Causing bootloop with signed builds

Reverted changes: /q/submissionid:2802548-nfc_apex

Bug: 309117462
Test: Compiles, device boots up
Merged-In: I2716c95474b35fff59726c1cb9a54e5ea42f941e
Change-Id: I2716c95474b35fff59726c1cb9a54e5ea42f941e
2023-11-06 19:46:05 +00:00
Roshan Pius
8c24309054 raviole(nfc): Modify NFC overlays for NFC apex
Bug: 307763519
Test: Manual flash and tested the overlay values are taking effect.
Change-Id: I9a6de12915c42f22cca35543e665ff0a003938dd
2023-10-25 14:56:26 -07:00
Richard Chang
0337a84b9f raviole: remove customizedMaxCachedProcesses
With project Snowbird in U, the MaxCachedProcesses is 1024 by default

Bug: 278086134
Test: Build
Change-Id: I9672bc93d6212bee842c7a86a351d4e286eeda67
2023-05-15 02:29:10 +00:00
chengfeitao
9639724097 Replace slowJepg build time overlay with runtime overlay
Use runtime resource overlay instead of build time
config overlay so that P21 and later devices are covered
automatically

Bug: 274172776
Test: Manual testing with Messenger app video call
Change-Id: I56f1ab98c09120460af68a5c44c6a243d8d70690
2023-05-05 19:48:31 +00:00
Suprabh Shukla
166b0791d3 Add couple of mappings for wakeup reasons
Adding mappings for sensor and cellular data wakeup reasons.

Test: Manually inspect the output of
`adb shell dumpsys batterystats --wakeups`

Bug: 276498460
Bug: 275436924
Change-Id: Ide367e74e7d8eb48ca940feb3a8e7dc9c1665600
2023-04-20 12:55:40 +00:00
Suprabh Shukla
c64d94bb94 Adding irq mapping for sound_trigger wakeups
Test: Manually, on a raven or oriole, inspect the output of
`dumpsys batterystats --wakeups`

Bug: 267717665
Change-Id: I92fce56d81a5915184b2c83d3b9c93af54d10af4
2023-04-13 00:05:15 +00:00
chengfeitao
96b853c5f1 Force slowJpegMode on certain camera1 apps
Turn off the large JPEG stream on camera1 apps
that experience high power consumption during
video call

Bug: 254350466
Test: Manual testing with Messenger app video call
Change-Id: Ic695299a03fe442e36a35b0770b855ac989c0923
2023-03-29 21:19:15 +00:00
Beverly
7099d94793 Remove unused dimen auth_ripple_alpha_in_duration
Bug: 274785453
Test: device builds
Change-Id: Ic6686d9508b6082e704caf1e360ae6d4bb8d72e7
2023-03-22 18:20:49 +00:00
George Chang
3a5e088ed2 [NFC] Add antenna position coordinates
Bug: 272406680
Test: manual
Change-Id: I181bccd705a12c336b4d38d1c623cbcb8ea176fe
2023-03-13 07:05:10 +00:00
Suprabh Shukla
45a3d0666d Add wakeup reason mapping for the wifi subsystem
Test: Manually: Build and flash a raven/oriole target and run:
adb shell dumpsys batterystats --wakeups

Bug: 265742148
Change-Id: I918fb6e071b6dda9250a0bde242b8b132592a53d
2023-03-03 02:27:38 +00:00
George
b486996267 [NFC] Set tag_intent_app_pref_supported
Bug: 244272155
Test: atest android.permission.cts.NfcPermissionTest
Test: atest NfcFeatureFlagTest
Change-Id: Id0df7652660c6e4677d8997d10e2ca3360a9c9fc
2023-02-01 18:00:29 +08:00
Shawn Lin
73f3280279 Add display shape config for oriole/raven
Bug: 236935288
Test: make
Change-Id: I00b485477e0c13b778a3b509b78c8c3efb8d611a
2022-12-01 07:34:25 +00:00
Shawn Lin
f25453deae Update status bar height to center the hole punch cutout am: b0dabc8ab3 am: 97185c7b13
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/20194790

Change-Id: Ife7224f1c015e7fa59b7961f9bbfac13e463f212
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-27 07:42:50 +00:00
Shawn Lin
b0dabc8ab3 Update status bar height to center the hole punch cutout
Bug: 253071694
Test: make
Change-Id: I036eff89d66fd93a7dba13408d920b726bf644bd
2022-10-25 18:59:35 +08:00
Suprabh Shukla
aec7fae739 Adding irq device map for oriole and raven
This mapping is used by the framework for attributing wakeups. Each
hardware device that can cause wakeups can be mapped to a list of
subsystems that rely on that device for functioning properly.

Adding the mapping of rtc clock in these devices to the "Alarm"
subsystem, which is the only subsystem currently defined by the
framework for wakeup attribution. More mappings can be added as more
subsystems are defined.

Test: Manually: Build and flash a raven/oriole target and run:
adb shell dumpsys batterystats --wakeups

The map output should match the xml file.

Bug: 249370357
Bug: 195684213
Change-Id: I11b8297ac07dee2bba3715e6047271026093c5c8
2022-10-12 19:54:38 +00:00
Ilya Matyukhin
0f700d6226 oriole: remove unused udfps_illumination_transition_ms
Bug: 243818429
Test: N/A
Change-Id: Ied840bbf22a52a96e8d1df58058ff091aad776e5
Merged-In: Ied840bbf22a52a96e8d1df58058ff091aad776e5
2022-09-19 23:50:26 +00:00
Ilya Matyukhin
46792c3373 oriole: remove unused udfps_illumination_transition_ms
Bug: 243818429
Test: N/A
Change-Id: Ied840bbf22a52a96e8d1df58058ff091aad776e5
2022-09-19 19:20:57 +00:00
Beverly
dcf3acc812 Update udfps burn in vertical translation
So that the mm conversion is less than 1.

Bug: 237311757
Test: manual
Change-Id: I79ec7b66005d6d79fdec3c63d3a3a28e1c0b46eb
2022-07-29 17:25:49 +00:00
SianyiHuang
aa61be1b30 Config: Update Auto Brightness debounce and ambient threshold setting
for p21

Bug: 234143564
Test: adb shell dumpsys display and check debounce and ambien threshold
seting

Change-Id: I29c714eb3ff87cf1563f1132e8f6fa7ea1c46ea9
2022-07-22 05:28:08 +00:00
Sam Ou
46c85eb745 power_profile: update modem power numbers
Bug: 209525694
Change-Id: Idb89f5e49e809a5fb41687111a55f07168f3bda3
Signed-off-by: Sam Ou <samou@google.com>
2022-07-18 03:58:38 +00:00
Jing Ji
ba78c78d87 Turn on auto restricted bucket on abusive bg battery usage
For devices with ODPM support only.

Bug: 203105544
Test: dumpsys activity -a
Change-Id: I086b202c99d65472d143ee695b6c81d1c1897f70
2022-05-13 18:01:56 +00:00
Jason Chang
3b29f815ee Phase out config_roundedCornerMultipleRadius from overlay package
[O6/R4]

Phasing out config_roundedCornerMultipleRadius config from device
overlay package.

Bug: 224688507

Test: Build ROM and pass presubmit tes
Change-Id: Ie0b0c7b9e3591f11e4a481440943cf0a8b328340
2022-04-21 06:17:44 +00:00
shawnlin
8142ccbe43 [automerge] Update status bar height res to correct size 2p: fb9b9c83c4 am: b079c10eb3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/17686747

Change-Id: Id2331d2e592e977747e7c7e74992415f8f511748
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12 02:35:46 +00:00
shawnlin
fb9b9c83c4 Update status bar height res to correct size
Test: make
Bug: 216782082
Change-Id: Ibc23f990e4fda040a86b52f78effce6da0235931
2022-04-11 11:52:09 +08:00
shawnlin
a8eb458e82 Fixed status bar glitch for apps that access internal resource dimen am: ab0dbdbc86 am: b355d1cd2e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/17529726

Change-Id: I65f3b15310129858d8a1d526ed748f5c7b744f9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-07 14:21:39 +00:00
shawnlin
ab0dbdbc86 Fixed status bar glitch for apps that access internal resource dimen
Bring back old usage of status_bar_height, status_bar_height_portrait,
and status_bar_height_landscape by set the size containing cutout size.

Bug: 216782082
Test: make
Change-Id: I05142c120f05bdb5fa0543e61a6f50f46f6b0d82
2022-04-07 13:33:27 +00:00
Lais Andrade
2cd7779f90 Revert notification patterns to default pre-S ones
Fix: 210535717
Test: manual
Change-Id: I6ead011f1cc28ea0c061941ab1665ed8250c3784
(cherry picked from commit ba9024c780)
2022-03-23 14:31:50 +00:00
Gary Jian
8e1b6a6f1c Handle the network selection restoring in modem side
Bug: 222483102
Test: manual
Change-Id: Iad7af99ce56714001e0a35bd092b491af52ffdf2
2022-03-16 14:25:55 +00:00
Lais Andrade
e7fc69f520 Revert "Update notification PWLE patterns to a higher frequency range"
This reverts commit 25c80c8cca.

Reason for revert: This frequency range is still unstable, needs to be validated before it can be used.

Bug: 223739586
Change-Id: Id3853b1041d441f80b19965f5875040f2aabb8ab
2022-03-14 08:01:55 +00:00
Lais Andrade
25c80c8cca Update notification PWLE patterns to a higher frequency range
Make pattern vibrate on a higher frequency range to increase the overall
vibration intensity and make the notification vibration more noisy when
the phone is on a solid surface, to address user feedback.

Bug: 210535717
Test: manual
Change-Id: Ic7d97d35e271b23e34dde8afb92dfcee29e7563a
2022-03-08 16:16:28 +00:00
Lais Andrade
ba9024c780 Revert notification patterns to default pre-S ones [DO NOT MERGE]
Bug: 210535717
Test: manual
Change-Id: I6ead011f1cc28ea0c061941ab1665ed8250c3784
2022-03-08 16:07:40 +00:00
Chris Kuiper
2a08ff2983 Merge changes from topic "better-autobrightness-in-qpr3" into sc-v2-dev-plus-aosp am: ad141762cc
Original change: undetermined

Change-Id: I97940c2e4409e30fca67dc2cde3e47baaa273ca7
2022-02-16 16:51:39 +00:00
SianyiHuang
5d41f2aaa9 Config: fine tune the ambient threshold to improve the brightness
stability

Bug: 215655995
Test: adb shell dumpsys display and check the log.
Change-Id: If75b3ed85d4cc2dccb24cb6bfb71e7e0958d986a
2022-02-16 16:32:05 +00:00
samou
cbc19f8cb5 power_profile: Correct CPU topology and power number for P21
Bug: 214127772
Signed-off-by: samou <samou@google.com>
Change-Id: I97273304126fd395ec2feafc002d91bdbac37dd7
2022-02-08 01:45:26 +00:00
Yohei Yukawa
504fe7e8ca Migrate "rounded_corner_content_padding" for raven/oriole
This CL updates resource overlay of

  rounded_corner_content_padding

for raven/oriole so that the same device-specific value can be seen
from both the Framework code and the SysUI.

With my previous CL [1], the SysUI continues to see the same value
even after this migration.

 [1]: I0c3717c0bdfc928167c6eba06247b37caabf33b9
      24d6b891f572f7be419d3acc9793ca68d062cf35

Bug: 215554582
Test: presubmit
Change-Id: Id95b8c063ece7eb43d91f96afe21b4fb01e8b489
2022-01-28 12:03:33 -08:00
SianyiHuang
14150a77b9 Config: fine tune the ambient threshold to improve the brightness
stability

Bug: 215655995
Test: adb shell dumpsys display and check the log.
Change-Id: If75b3ed85d4cc2dccb24cb6bfb71e7e0958d986a
2022-01-21 07:35:07 +00:00
Lais Andrade
aa73129ab3 Add PWLE notification vibration patterns for P21 devices
Add the PWLE vibration pattern to the config.xml overlays for Pixel 2021
devices that support frequency control.

The patterns use the amplitude and frequency hand-designed for both
raven and oriole devices. The amplitude is using the maximum supported
value of 0.4, to allow scaling based on user settings.

Bug: 212366218
Test: manual
Change-Id: I73a2f3e50901b80aef299f4c8e9807a551170bbc
Merged-In: I73a2f3e50901b80aef299f4c8e9807a551170bbc
2022-01-13 13:52:54 +00:00
Lais Andrade
acf62bc171 Add PWLE notification vibration patterns for P21 devices
Add the PWLE vibration pattern to the config.xml overlays for Pixel 2021
devices that support frequency control.

The patterns use the amplitude and frequency hand-designed for both
raven and oriole devices. The amplitude is using the maximum supported
value of 0.4, to allow scaling based on user settings.

Bug: 212366218
Test: manual
Change-Id: I73a2f3e50901b80aef299f4c8e9807a551170bbc
2022-01-13 10:40:50 +00:00
Avinash Malipatil
4b540fc70f Control ONS Auto provisioning via device configuration
Bug: 211649038
Test: Manual. Modify the enable_ons_auto_provisioning flag to true in config.xml, build, flash and adb log should not have ERR_AUTO_PROVISIONING_DISABLED
Change-Id: Ia684e5b55fd69cbb15cfbcc0f511d01baa955c5a
2021-12-21 19:20:33 +00:00
shawnlin
b7cc9eee54 Remove resource overlays for system bar heights
With the new added APIs, we don't need to overlay status_bar_height that
contains cutout size and quick_qs_offset_height anymore.

Bug: 186604541
Test: make
Change-Id: Ib2ebacbc3250a1c2a2ad2b26f92eda6651fec37a
2021-10-25 04:07:08 +00:00
Gil
da5a0267be [AOD] R4O6 Modify AOD brightness setting
Modify High/Sun value to systme brightness format on 50 nits

Bug: b/184728677
Test: Dump brightness while entry AOD mode
      panel-samsung-s6e3hc3 1c2c0000.drmdsim.0: req: 216, br: 216
      panel-samsung-s6e3hc3 1c2c0000.drmdsim.0: req: 198, br: 198
Change-Id: Ica79bc6fa0c8d15c6c123f9584d48bd71eaeb094
2021-10-04 03:16:58 +00:00
Daniel Solomon
2402decf7b display: Update O6R4 refresh rate limitations
Limit high brightness mode for HDR to 60Hz on both O6 and R4.

Bug: 196691596
Change-Id: I2bebff0b5c0677e83a55168332bb2271a073bae1
2021-09-29 06:33:51 +00:00
Beverly
80e3da7342 Remove doze_brightness_uses_prox config
Moving forward, binned brightness will not
use prox. Let's get rid of this unnecessary config.

Test: manual
Bug: 194151347
Change-Id: I3352a3007138232c32aeb43ce4ec3ce97dad239d
2021-09-13 16:07:09 +00:00
George Chang
8cfdea1128 Allow NFC polling disable by system apps am: 40e1218f96
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15659822

Change-Id: I2136855a1aef6c177fba09def72575effe79e281
2021-08-25 06:02:18 +00:00
George Chang
675c8f7b6e Allow NFC polling disable by system apps
Bug: 195429557
Test: manual
Change-Id: Ib2a67580ffd5716e6b6b371c4502b8d377952568
2021-08-25 05:50:10 +00:00
Bill Lin
72d9258aa8 Adjust 0.5dp padding for KeyguardStatusBarView am: 86fc105032
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15582267

Change-Id: Ifb7a11479bf225d63fec74f8fe2f2f49ebea009d
2021-08-23 00:50:32 +00:00
Bill Lin
9b61605560 Adjust 0.5dp padding for KeyguardStatusBarView
There's still 2px offset when transitioning from
KeyguardStatusBarView to PhoneStatusBarView.
To make the visual perfect, we can adjust more 0.5dp.

Test: Visual
Test: atest SystemUITests
Bug: 195670442
Change-Id: I84d10f2dad665fcbdb01665f5056d08b3c20e0d7
2021-08-23 00:37:20 +00:00
Beverly
b03fc73cf1 Add config for brightness sensor using prox
Binned brightness sensor on R4O6 don't use the
prox sensor.

Test: manual
Bug: 194151347
Change-Id: I339a4a4612c7eb5f90196835ef9121b114cdece3
2021-08-17 13:53:56 +00:00
Beverly
a7db0950b2 Don't have an alpha-in fade for the auth ripple
Since R4O6 ripple comes from UDFPS, we don't need
to fade it in.

Test: manual
Bug: 196006323
Change-Id: If7e41bfe87823a763a8247a9125f8cc54ba769a6
2021-08-13 20:41:18 +00:00
Bill Lin
73e2784392 Fix system icons container x-axis shift between Keyguard/Home StatusBar
Adjust the system_icons_keyguard_padding_end for O6/R4

Consider below scenario:
1. Enable/Disable multi-user: This case must have x-asix shift due to
   home StatusBar did not designed to show avator icon
2. Keyguard/Home StatusBar alignment
3. w/ & w/o privacy dot
4. w/ & w/o plug-in USB cable
5. w/ & w/o show battery percentage

Test: build and check the visual
Bug: 195670442
Change-Id: I783c026e46d7cc01839a4e56fed9fdb89ca6b194
2021-08-07 09:26:58 +00:00