Commit graph

65 commits

Author SHA1 Message Date
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
Ilya Matyukhin
1ee32ca9ed DO NOT MERGE Remove unintended faceauth configs
Bug: 210921116
Test: N/A
Change-Id: Ie10aaca6892b1246b57941d00b283f202b08035d
2021-12-16 20:22:17 +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
jonerlin
c2e47893cb power_profile: add bluetooth power data
Bug: 195157251
Test: manual
Change-Id: I2de092b8a244d2b6e4debe4ab5590c4a6f7bf930
2021-08-07 01:58:57 +00:00
Beverly
faf942fb1d Update lock icon padding
This should not scale with density size increases b/c the
sensor size is fixed.

Test: manual
Change-Id: I84cd73992b657ee292873fd7ba4bf6e73fc6b349
Fixes: 195564809
2021-08-06 15:04:46 +00:00
Bill Lin
e5402a7297 Fix KeyguardStatusBar height not align StatusBar
Update customization for O6/R4
1. Put status_bar_header_height_kegyuard in correct folder
2. Refine system_icons_super_container_avatarless_margin_end
3. Refine the config_mainBuiltInDisplayCutoutRectApproximation xPos
4. Remove unused system_icons_keyguard_padding_end
5. Adjust window rounded corner radius to match H/W corners

Test: manual build and check visual
Test: In keyguard, launch camera and exit, check provacy dot position
Test: In Keyguard, check keyguard status bar height algin home statusbar
Test: atest SystemUITests
Bug: 194324044
Change-Id: I8856b0ae9d5124b44a3aab89b0de8d8ddbe5a4c8
2021-08-03 07:07:29 +00:00
Beverly
4ac85f0083 Unregister for prox when display isn't OFF/DOZE
Test: manual
Bug: 192699858
Change-Id: Ibd44e372e0171f2eb6129df448e6b66c5b923d02
2021-07-30 12:44:43 -04:00
linpeter
ce87e291e8 raven: add blocking zone for low light
zone condition(15% brightness, 5 Lux) for 120Hz

Bug: 193087466
Test: no refresh rate change in the blocking zone
Change-Id: I4e5918ff5d829a6ad656db1c7f4993e1e8e9c23d
2021-07-30 06:14:41 +00:00
samou
2c99b67e63 power_profile: add battery capacity
Bug: 185956384
Test: Manually verified
Change-Id: Ida34a4415662bd4e24ef9d2ea64520d1070d436d
2021-07-27 02:37:03 +00:00
Chiawei Wang
843ed6b028 Add the customized max cached processes number for O6/R4
Bug: 190531672
Test: make
Test: dumpsys activity | grep CUR_MAX_CACHED_PROCESSES
Change-Id: Ie1c17312a0eadb2c3f033c8a674ceb234abeadb3
2021-07-22 15:55:36 +00:00
Beverly
ed682fcdcd By default, set raven face-auth to non-bypass
Test: manual
Fixes: 192406240
Change-Id: I49e918a0de60062b331ace502390541992492e7d
2021-07-08 21:33:49 +00:00
lbill
84fd199468 Adjust status bar rounded corner and display cutout region
- Customize status_bar_height_portrait/landscape/keyguard
- Adjust punch hole display cutout region
- Adjust rounded radius for window corner

Test: atest SystemUITests
Test: atest android.systemui.cts.WindowInsetsBehaviorTests
Test: manual check visual
Bug: 190381022
Change-Id: If98f721f3e20270c5edfdc3b2f34ff8b8af41de4
Merged-In: If98f721f3e20270c5edfdc3b2f34ff8b8af41de4
2021-07-02 17:30:42 +00:00
Frank Luo
b0c9a1ae1b Set config_suspendWhenScreenOffDueToProximity true
This config indicate whether to allow the device to suspend
when the screen is off due to the proximity sensor.  This
resource should only be set to true if the sensor HAL correctly
handles the proximity sensor as a wake-up source. Otherwise,
the device may fail to wake out of suspend reliably.

Bug: 192324731
Test: 1. Unplug USB. 2. make a phone call.
Test: 3. Cover p-sensor, the screen turns off for 10 seconds
Test: 4. Uncover p-sensor. 5. Plug USB.
Test: 6. 'adb shell dmesg | grep suspend' to check if AP ever suspend in calls.
Change-Id: I90c0ef56211908b5a211d9f887bbfc6693a3be40
2021-07-02 15:40:40 +00:00
Lais Andrade
3dbd9530be Set vibrator ramp down duration
Bug: 188431691
Test: manual
Change-Id: Id029afe5c0d6fa59425c4407da56fed69f083bc1
2021-07-02 13:08:39 +00:00
Calvin Pan
0baeebd8f5 Update ./DevInfo/Mod model name
Bug: 191961582
Test: Build pass
Change-Id: I60fb9d0d4487a3b7ccfc2152cb90cc9df808a4a9
2021-06-25 02:12:11 +00:00
Chris Kuiper
dab5283046 auto-brightness: Change light debounce for R4/O6
This reduces the brightening and darkening light debounce
configuration to match R3 and earlier Pixel devices.

Bug: 185770517
Test: Verified "dumpsys display" shows correct config values.
      Verified brightness transitions are similar to R3 now.

Change-Id: I6bd47cb52c28c63ece6b5247344a6cf062eb31ea
2021-06-23 22:52:45 -07:00
Gil
9dd59a9dda [Display] Re-mapping the Default Brightness
Update the Default brightenss to 0.17429718 for mapping to 140 nits

Bug: 187917731
Test: Dump the display log and check mScreenBrightness
Change-Id: I9836a2dd0127c881b0eceb4d2c908bb52ea709e7
2021-06-23 07:41:19 +00:00
Lais Andrade
354c1e7fad Set audio haptic channel amplitude limit
Bug: 188025353
Test: manual
Change-Id: I9609d812c11f08990c68d73cff20bc1a738f4174
2021-06-22 17:02:18 +00:00
Ilya Matyukhin
de356bd0af raven, oriole: overlay UDFPS illumination transition time
Bug: 189130534
Test: perfetto
Change-Id: Iec7fe726197a2b23547739a8e96824362aa76fc4
2021-06-18 19:52:48 +00:00
Edwin Tung
f3caaf71bf Update gps currents based on the measurement.
Bug: 186995059

Test: manual
Change-Id: I7d4788af5cddb7d020b5d2188395cadc72bff144
2021-06-11 09:19:08 +00:00
Gil
d9ff8cb3c5 [Display] Modify the AOD Brightness
Set night/low as 2 nits, sun/high as 50 nits

Bug: 184728677
Test: Boot test and check AOD brightness
Change-Id: I0e6f5fda297f3e57f21a1d45e2f70b0dcccf04d1
2021-05-25 06:16:20 +00:00
Ilya Matyukhin
1d5482518b raven: include factory/shipping UDFPS based on target
This CL transitions the regular build to the AIDL fingerprint HAL, while
keeping the factory build on HIDL.

AuthService reports "Registering HIDL ID: 0 Modality: 2 Strength: 15"
only for the factory build.

Bug: 188193467
Test: build raven-userdebug
Test: build factory_raven-userdebug
Test: adb logcat | grep AuthService
Change-Id: I3d02e560e5e624aa85f1c3d14d52d7bb5070ee4d
2021-05-19 17:11:58 +00:00
Evan Laird
106bc09824 Exclude as package from camera cutout protection
com.google.android.as is the attention detection package and does not
need the extra light leakage protection.

Test: manual
Fixes: 187917679
Change-Id: I9f8092c278c4799e9c1db52e64592bfa9494062d
2021-05-13 20:04:13 -04:00