Commit Graph

97 Commits

Author SHA1 Message Date
Bob Badour 29871fbe4f [LSC] Add LOCAL_LICENSE_KINDS to device/google/redfin
Added SPDX-license-identifier-Apache-2.0 to:
  redfin/overlay/packages/apps/NoCutoutOverlay/Android.bp
  vibrator/drv2624/bench/Android.bp
  vibrator/drv2624/tests/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I6be36c525cd8e9f4ed6b60044e17bbad0bbe1951
2021-03-19 05:04:55 -07:00
Christine Franks 0bcc1bdeb9 Add rbc coefficients for redfin
Bug: 179387548
Test: n/a
Change-Id: I1de41e0491f1a84be29811d2e2516eb2f3be2b34
2021-02-04 14:48:31 -08:00
George Chang cc9b68404e Enable require device unlock for NFC for all SKU
Bug: 164002915
Test: check settings menu
Change-Id: I8f517bf4c859361dd0ff61a1791ef60d24e82c29
2021-02-02 09:28:51 +00:00
Kevin Chyn b2354250e6 Move config_biometric_sensors to device/google
Bug: 176822128
Test: auth on redfin and aosp_redfin
Change-Id: I317fe33f918f5a560d9ff890d552b63267b414f9
2021-01-06 15:55:44 -08:00
Fiona Campbell 0f51a6b7c1 Revert "Add display config file for redfin."
This reverts commit 94793dcf22.

Reason for revert: b/174824024

Change-Id: Ia91840865aea6801bffe8bbf65f1465a87aa0f81
2020-12-07 16:04:27 +00:00
Santos Cordon 94793dcf22 Add display config file for redfin.
Test: Check config is loaded in logs, test brightness.
Bug: 174757213
Change-Id: If64238103a2087d269daa7d5208386ed952ba65d
2020-12-03 17:28:57 +00:00
TreeHugger Robot fbd26da954 Merge "Set brightness threshold for high brightness" 2020-12-01 03:32:49 +00:00
shawnlin 7e7c744ece Add & update the configs for hide display cutout(Redfin)
Bug: 157388722
Test: make
Change-Id: Ibcaa9dd5c8b382c2347691581ed05b3f1ab75c81
2020-11-25 13:26:54 +08:00
raylinhsu fb890abc53 Set brightness threshold for high brightness
Set 60Hz as default refresh rate in the blocking zone of
the high brightness.

Bug: 166581675
Test: no fps transition in the blocking zone
Change-Id: Ib793bcc69f61452edb21b1bc957be255e50581d2
2020-11-24 03:37:26 +00:00
Kai Shi ad0ca5e298 Update wifi idle current
Update wifi idle current to align with other Pixel devices. Blueline has
the same RF component as Blueline and thus should use the same 79mA for
idle current.

Bug: 168049228
Test: reviewed power numbers and check bug report.
Change-Id: I8d74a4c20b980a146b2213af51c0529b5b737ab6
2020-09-08 14:07:59 -07:00
Yichi Chen 025e155c51 HbmManager: Reduce compensation because of LBE interaction effect
To reduce LBE interaction effect and to prevent over compensation, the
patch reduces the compensation with lower alpha value in the images and
removes the compensation image for over 50K level.

Bug: 151886711
Test: user study
Change-Id: I0a1978c1a053c47368e02ed0db3ea3fe78f081b1
2020-09-01 08:47:08 +00:00
TreeHugger Robot 3070ff7642 Merge "HbmManager: Configure compensation_filter_horizon to 3500" into rvc-d1-dev 2020-08-07 06:04:12 +00:00
TreeHugger Robot c82b38f315 Merge "Remove overlay for status_bar_padding_left" into rvc-d1-dev 2020-08-06 21:09:44 +00:00
George Chang effa31c9fe Disable enable_antenna_blocked_alert
Bug: 162723079
Test: manual
Change-Id: I385181d6e80727a215ecf7d56dd6802e94bf9080
2020-08-03 11:42:06 +00:00
Yichi Chen 5e56e985f6 HbmManager: Configure compensation_filter_horizon to 3500
Current user study suggested that we increase the response time and also
the threshold for the compensation images. The patch increases the
filter horizon to 3500 and changes the first level to 15k lux.

Bug: 161650321
Test: User study
Change-Id: I00b5a659798550ef8c2788b45ed9d400aa22b6ad
2020-07-23 14:57:57 +08:00
Ken Huang 79c5681343 s6e3hc2: update thresholds for 90hz
Add zone2 condition for 90Hz

Bug: 158448810
Test: no fps transition in the blocking zone
Change-Id: I1391a5f9cd31b7c7246700635169cb6201ed5d9a
2020-07-20 14:34:36 +08:00
Evan Laird a855a9ec01 Remove overlay for status_bar_padding_left
Changes in R remove the usage of rounded_corner_content_padding when
there is a corner cutout. Therefore we don't need to set the padding
back to 0

Test: manual
Bug: 160374368
Change-Id: I6aa653b3a01c04d23ce0091934938d6b19df970f
2020-07-14 15:57:12 -04:00
Yichi Chen 6e02bc5880 HbmManager: Support R3-specific configurations
The patch provides the compensation images and threshold configurations
for R3.

Bug: 151886711
Test: Enale HBM and check compensation layer

Change-Id: Ibf0cc557d385953beea28f7af6b18e3940882250
2020-07-03 14:56:51 +00:00
edisonchou 2abecb3b1d Disable AoD by default
Follow legacy Pixels to disable AoD

Bug: 149363453
Test: Check if AoD is off by default
Change-Id: I8b10493ab55e98a6fb67ff39d0b76d360e1d92f0
Signed-off-by: edisonchou <edisonchou@google.com>
2020-06-30 08:32:45 +00:00
Evan Laird 4468efc8e2 Redfin corner updates
Bottom corners on this device are non-square, so rounded_corner_bottom
reflects that.

- Status bar set to 145px (52dp)
- Updated bottom and top paths
- Status bar top padding set to 2dp for better centering of icons

Test: visual
Bug: 156017682
Bug: 156017028
Bug: 156016494
Bug: 157612517
Change-Id: I0883b97569e7174bf2a67611ca03137da2f37894
2020-06-19 18:47:00 -04:00
Jack Yu 349b2e5dae Allow to disable NFC polling in redfin am: 724a37a542
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11807221

Change-Id: If6cb889cbaa4bc170b0ac7f944b4f5efd8296ca8
2020-06-17 15:52:48 +00:00
Jack Yu 724a37a542 Allow to disable NFC polling in redfin
Config overlay in redfin to allow disable Nfc polling with
setReaderMode().

Bug: 157173627
Test: build pass
Change-Id: Iffdef5bd3582c8fb7a983dccce0fb66b6caa6c47
2020-06-15 09:27:36 +00:00
Bill Lin 38205c0473 Tuning Redfin rounded anti aliasing corner curve
Test: adb root; adb shell setprop debug.screenshot_rounded_corners true;
      adb shell pidof com.android.systemui |xargs -i adb shell kill -9 {}
Test: manual check visual
Bug: 155372020
Change-Id: Icfa805de1dcc8915e0245ba785d1336fc7a89513
2020-06-02 18:49:28 +08:00
Ken Huang f188002378 redfin: enable peak refresh rate (90hz)
Enables default setting to 90hz mode, this can be disabled through
Settings app

Bug: 155011573
Test: wipe user settings and check default peak refresh rate enabled
Change-Id: Ieccb820c9bc19e00aa20e3b9dfbe5401c44a88d7
2020-05-29 21:22:49 +08:00
Ken Huang cd6613117b redfin: Set brightness threshold for peak refresh rate
Set 90Hz as default refresh rate in the blocking zone

Bug: 156462520
Test: no fps transition in the blocking zone
Change-Id: Iac4c8ef6a36e4d3a108bb9a17716c7c729e513db
2020-05-29 21:22:42 +08:00
Yuncheol Heo 63b7bff995 Adjust the paddings of Status Bar in landscape. am: fbd40791aa
Change-Id: I0c455a1e8e117f12674b844d68cb3b5d8286a874
2020-05-29 21:22:40 +08:00
Yuncheol Heo d1fedd523d Adjust the paddings of Status Bar in landscape.
Bug: 153488559
Test: Checks the clock in the status bar has the appropriate space in landscape.
Change-Id: I1b66e1919917a1a13148d79dac8656bddaaec8be
2020-05-29 21:22:40 +08:00
Steven Thomas dd732e8327 Merge "Add default frame rate setting" into rvc-d1-dev
Change-Id: I7aeb530628914f13e7cec67527ed3cf48dbdc3d4
Change-Id: Ibed0273f2d201ab04fd0af0f0531fdbb0afa48fc
Change-Id: I7932979852c879c12d942ed7869777df87521f3e
Change-Id: I8eefe292c4581c26555466613e212680ca90c384
Change-Id: I60f52e09f570afdc06abddaadebdaa79f6ebbf60
2020-05-29 21:22:36 +08:00
Steven Thomas c1bad512b6 Add default frame rate setting
Add a new priority PRIORITY_DEVICE_PEAK_REFRESH_RATE, and a new config
setting config_defaultRefreshRate which maps to that priority. This
allows an OEM to easily specify a default frame rate different from the
peak frame rate.

Bug: 148978450
Bug: 154648391

Test: - Added new unit tests to verify DisplayModeDirector handles min,
        peak, and default refresh rate settings correctly.

- Modified a Pixel 4 to set config_defaultRefreshRate to 60Hz, confirmed
  we default to 60, but that an app calling setFrameRate(90) switches us
  to 90.

- Confirmed that the "smooth display" and "force 90Hz" options on Pixel
  4 work correctly.

- Confirmed Redfin works as it did before - still constrained to 60Hz.

Change-Id: I9e5b33ae4d8cb6753b9af70ec5407b3576e75dc3
2020-05-29 21:22:35 +08:00
Sam Ou 948da2f4b9 Merge "power_profile: Correct CPU topology, battery and power number" into rvc-dev am: 2aeb6154d3
Change-Id: I372591b33c148c6f202f32e2b3cd498a5f73962d
2020-05-29 21:22:28 +08:00
Sam Ou cb7464ac65 power_profile: Correct CPU topology, battery and power number
Bug: 155988446
Change-Id: Ia542e04b679fcd00b47093bb78dfd1a752924d8c
Signed-off-by: samou <samou@google.com>
2020-05-29 21:22:27 +08:00
Blake Kragten b7eaa3d9a6 Update Power Profile For Redfin
Estimated power constants: https://docs.google.com/spreadsheets/d/1dHcJC1xCqZkbe3-rOkm91jr4Pyr1-56NBNg4d7aSeTw/edit?usp=drive_web&ouid=103882653818665213772

Bug: 155925796
Test: On Device
Change-Id: Icb4746f49fc08ec164d53cfb1d31d3897b034e6b
2020-05-29 21:22:24 +08:00
Nicole Huang 31ef5467b1 Merge "Revert "Enable dark theme by defaut"" into rvc-dev am: fd5dbf92e4
Change-Id: I84f1a9f98fe892b61ad105458023ef640919a20b
2020-05-29 21:22:19 +08:00
Nicole Huang e0ec405cb8 Merge "Revert "Enable dark theme by defaut"" into rvc-dev
Change-Id: Ia06b6443b5c6b3da0c33a803c065eff71427feaa
Change-Id: Ib7326b0b97617b62770c48a85cc4a5dcfd66202f
Change-Id: Ie3e44dc1b599e8974abd0920943ed055b8d9f9d8
Change-Id: Ifbbcb8aa28d9641e7c3f6e8b08be08c22eb00805
2020-05-29 21:22:18 +08:00
Nicole Huang 32aa43b1a7 Revert "Enable dark theme by defaut"
Revert submission 11049460-p20_dark_theme_by_default

Reason for revert: For P20 default dark mode will adopt the solution in b/154171431#comment19. System keep default light, let SUW to change the dark mode.
Reverted Changes:
I38c78a4ee:Enable dark theme by defaut
Ia3b0b43b5:Enable dark theme by defaut

Bug: 154171431
Change-Id: I04cc71a166093136ed2df5b16ad5e2a3a66af9fd
2020-05-29 21:22:18 +08:00
TreeHugger Robot 368a4806b4 Merge "Extract regulatory_info into RRO" into rvc-dev am: fa507d7965
Change-Id: Id1e35a07dde00e3f28966353ccafb7676838d03b
2020-05-29 21:22:15 +08:00
TreeHugger Robot d88eb11780 Merge "Extract regulatory_info into RRO" into rvc-dev
Change-Id: I3c68c8448efacb769186c95a70ecd2df221653b7
Change-Id: I660cd5815644606562b81a97eefcc3d25dd6b211
Change-Id: I7210d499c791608ab0df2ed129f0f0cea073a81f
Change-Id: I7f7e8e790a6301f41f5553ddb34d765c57b97562
2020-05-29 21:22:14 +08:00
Jeongik Cha 46f60ac795 Extract regulatory_info into RRO
Bug: 152926806
Test: Set sku value, and check if settings show proper info image according to sku
Change-Id: I34651b0117415b00d4c9c6d03ee30b73533c9232
2020-05-29 21:22:14 +08:00
Peter Wang 103f05c226 Merge "Add 5G RAT for bramble and redfin" into rvc-dev am: 2ffeb6d6b8
Change-Id: I6c69a3e6bd82e3d2d06e1a679a347524507bc5d2
2020-05-29 21:22:13 +08:00
Peter Wang fe86431138 Add 5G RAT for bramble and redfin
Bug: 151964705
Fix: 151964705
Test: Build
Change-Id: I93d5bd43c8728eef9da5d0a6fd71ac7053c1c083
2020-05-29 21:22:12 +08:00
Dave Mankoff 588e479325 Add new latch threshold for Redfin prox sensor.
Bug: 147026387
Test: manual.
Change-Id: Ib034b7e55a5381a8ea0c82adbeaa2b334d04e40e
2020-05-29 21:22:12 +08:00
linpeter c4df36cf1e Update the adaptive brightness curve to -1 sigma
According to user survey data, the new brightness curve addressed user
preference in low brightness areas and enhanced those areas. The max
brightness of panel is 500 nits, so set 600.0 nits for the 10,000 lux.

Bug: 153696528

Test: Check brightness table
Change-Id: Ibedc1b1e46f5fef61525076e142bc65d22864866
2020-05-29 21:22:07 +08:00
Dave Mankoff ae7d8157b6 Enable secondary prox sensor for redfin.
Bug: 147026387
Test: manual
Change-Id: Idc5bd0c3050aa5fda9c7f0ed317b991ba6593742
2020-05-29 21:22:06 +08:00
linpeter c293417064 Display: Update the default adaptive brightness curve
Bug: 153696528

Test: Check brightness table
Change-Id: I504c4ff7d74873d96f9c6917631d07b2cb5622d8
2020-05-29 21:22:04 +08:00
Jay Aliomer 080c1f37ee Enable dark theme by defaut
Change config to enable dark theme by default

Fixes: 153999803
Test: manually rest phone
Change-Id: I38c78a4ee9497369c38a3427f30ae3c018e556f9
2020-05-29 21:22:00 +08:00
George Chang a302e64abc Enable an improvement feature when NFC tag dispatch failed
Bug: 151708408
Bug: 149273649
Test: manual
Change-Id: I82324bc428bc82cc104e7834ffe3dfab791a8e4a
2020-05-29 21:21:58 +08:00
Bill Lin 3a3e31c0f1 Customize for S/W anti-aliasing of rounded corner on Redfin
1. H/W Camera center(77,77) and radius=39px, size(78x78)
2. Punch Edge (L,T,R,B): (42, 39, 120,39, 116)
3. Rounded corner edge 156x156 to prevent jegged edge
4. Redfin density ratio = 440 / 160 = 2.75
5. H/W corner radious are different between top & bottom

Test: manual
Bug: 143222961
Change-Id: Iad58b86101a4d5666d9aa7000d66ce33f3d40247
2020-05-29 21:21:49 +08:00
Gil Liu a1747d1885 Merge "[Display] R3: Set AOD dim brightness value" into rvc-dev
Change-Id: If239d7b032d3eb9c08bf8f95d7f8d5fa2ca6ff10
Change-Id: Ia7df38948f2d496265a7eac3791f0b18e1bf2161
Change-Id: Ifcc7b77c21636631b004dd395aeab62d4cc9c3d6
Change-Id: I623104722eeee51c32101b7d3f6115ffb709abd8
2020-05-29 21:21:46 +08:00
Gil 13f4b70139 [Display] R3: Set AOD dim brightness value
Set the AOD dim mode to brightness to 2 nits.

Bug: 142222142
Test: Boot test and measure brightness
Change-Id: Ie19ee2c89dd2eff10a1cd3c0efd868ac1851a4ef
2020-05-29 21:21:46 +08:00
Gil Liu 02c69f3e97 Merge "[Display] Set R3 Default Brightness on 144 nits" into rvc-dev
Change-Id: I84c70e9204b7ced48d8d9b88e1c97620e26084d8
Change-Id: I254f8a0c77cb58204a9c61f2a1d20f517071b9f3
Change-Id: Ia6d5721f7758856e3645465be45d8f15f5e9dadb
Change-Id: I5bba5ec6abf7cd459fde61aebaaef38e93a7f6e3
2020-05-29 21:21:35 +08:00