Commit Graph

112 Commits

Author SHA1 Message Date
Ady Abraham a694593b26 redfin: rename use_smart_90_for_video flag
Rename use_smart_90_for_video -> use_content_detection_for_refresh_rate
to better describe what it controls.

Test: Play video and observe the refresh rate
Change-Id: I5ae03073bd670d0b3bc7f2861cbf3ec0d28efbe7
2020-05-29 21:20:38 +08:00
TreeHugger Robot e43aa49812 Merge "redfin: thermal: separate init.hardware.chamber.rc.userdebug by project" into qt-qpr1-dev
Change-Id: I166821ddd3edbc22a3b16dcc78a31113fbec4678
2020-05-29 21:20:36 +08:00
TeYuan Wang 66e62998c6 redfin: thermal: separate init.hardware.chamber.rc.userdebug by project
Bug: 148839492
Test: thermal protection can be disabled/enabled at run time
Change-Id: Iae355f8678da9da83111d3665a429fbf5aa5ca69
2020-05-29 21:20:36 +08:00
Super Liu d1cc42e56e redfin: increase keyboard height ratio
Override the default IME height ratio to match the keyboard height of
previous devices.

Bug: 140591953
Test: make productimage and check /product/build.prop
Change-Id: Idc927054a0e2b4b8eb0f986e50bcc8df7dec05de
Signed-off-by: Super Liu <supercjliu@google.com>
2020-05-29 21:20:18 +08:00
vincenttew c3ae96db97 audio: separate mfg acdb table
seperate audio table to bypass some module in mfg
acdbs

Test: build pass
Bug: 147204623
Change-Id: I01e13053355b94897050568e1e57384ca2f0dfd6
Signed-off-by: vincenttew <vincenttew@google.com>
2020-05-29 21:19:55 +08:00
Midas Chien d7c6bb01af Merge "Port over surfaceflinger configurations from Floral" into qt-qpr1-dev
Change-Id: Id4bc8b686860a5ed8eb88bb7266224ec4b370005
2020-05-29 21:19:51 +08:00
Midas Chien b21ed062b9 Port over surfaceflinger configurations from Floral
Sync surfaceflinger configurations include
9d8197af set idle timer to 80ms
f26b3c95 set touch event timer to 200ms
c688d43e set display power state timer to 1000ms
227e852c enable video detection logic
8fcdab39 enable high fps early phase offset

Bug: 142222472
Bug: 142222407
Test: scrolling, launch, play video
Change-Id: I9fbbeb000fe458cd8b43f2175fb652a435ce869e
2020-05-29 21:19:42 +08:00
Jack Wu 567cd851b5 health: run correct health hal
Bug: 146422159
Test: check android.hardware.health@2.0-service.redfin running
Change-Id: I02c8b3d555df9c58be5f0607ca0726f72b46a49c
Signed-off-by: Jack Wu <wjack@google.com>
2020-05-29 21:18:54 +08:00
TreeHugger Robot cccdf85e36 Merge "Extract regulatory_info into RRO" into rvc-dev
Change-Id: Id2ed96bea4f182622701b5748f3876059579e8cf
Change-Id: Id28d95481a3df73b75d82088e09a2d029f037858
Change-Id: I87b87f9869ffbea62953758762f3dba991715368
Change-Id: I1cd9d83017fa89dd0c174e98217f4bcfa7f912a4
Change-Id: I715080fe2346ee7dcf1182ed0fc894e7c045af00
Change-Id: I7e970c6455f6b668288a161a197c83f19fbb2a3c
2020-05-29 15:46:15 +08:00
Jeongik Cha 92ba53cadf 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 15:46:15 +08:00
Jason Hsu cdbdbf8968 audio: enable devicestate_listener feature on redfin
Bug: 141128522
Test: manual test
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I502bf647f140534d9225c6c0582011e52ea11f7b
Signed-off-by: emilchung <emilchung@google.com>
2020-05-29 15:46:14 +08:00
yixuanjiang 2161f8dc13 audio: seperate policy table
B5/R3 has different config on mic control

Bug: 152833071
Test: local test
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: Ifefd633e3b533b233a882b696c669ee254322848
2020-05-29 15:46:11 +08:00
Midas Chien 1e2cdd438c Merge "Revert "redfin: add display fps deferral"" into rvc-dev
Change-Id: I175aa6b670b047444ffcba96248fb67a886c5db5
Change-Id: I25547f00250247abc765884aa7f457a9f94ca54b
Change-Id: I53b27c67b270f4db0220b619b1841f8892c6b63f
Change-Id: I92b8bae8fb1df419e76ccb94d1800e99a2dafe8b
Change-Id: I7a0519ce3bfe1281c5e1247e13913a1b0b63f517
Change-Id: I513aa8a73dcb019e38509b9c802ae59438ad31e7
2020-05-29 15:46:10 +08:00
Midas Chien cdb61e6ca4 Revert "redfin: add display fps deferral"
This reverts commit 81b59b8fc2c82f8206d88ef7480254937ecb2c73.

Reason for revert: HWComposer stuck at strategy_intf_->Reconfigure()

Bug: 152468927
Test: TouchLatency
Change-Id: I6dfd4591c07f999b794df2f9110c3e35296c3b93
2020-05-29 15:46:09 +08:00
Chase Wu e5d4d02b9c Merge "vibrator: Add effects voltage limitation" into rvc-dev
Change-Id: I3902d326554e3f0666d80416ba8d31b89f3d2a3b
Change-Id: I51a577c1d4d3d2931bc4f6908427eda4c7db155d
Change-Id: Ie67626eb5d24ab684da0fb4b5116636270a2d431
Change-Id: If35bf7a7aefef22d34b6ccea23fe9f7a19ba443e
Change-Id: I23da008bac0e6ea88ffff9fcba30fc1db299f8b6
Change-Id: I490a9d4d5e0611697df89fe7612f40ad7eca99ba
2020-05-29 15:46:06 +08:00
Chase Wu 784d6830df Merge "vibrator: Add a temperature awareness mechanism" into rvc-dev
Change-Id: I3f9f9ab886a38a5c327f7f585340f2fc4821cbc0
Change-Id: I0ad15d11a6d995ed55e2e53e6442e21abbb6dfad
Change-Id: I524b991ff26d3eab2ad9ab6b16100c69ecf6cb98
Change-Id: Ie9133d7ea4166c166796b492df7b9d8abdbd6b05
Change-Id: I74282e78fb336c419e8a45ff2c4fd4d14091d3d9
Change-Id: Iba827867956f578f27cd285fd666fc96a4d5e3c7
2020-05-29 15:46:06 +08:00
chasewu b2c8a6f9d0 vibrator: Add effects voltage limitation
Bug: 151693863
Test: manual check od_clamp value
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: Ic66a7e64a7ead1ab57edc4fbf516d5115ff066f6
2020-05-29 15:46:06 +08:00
chasewu 9c2de471a7 vibrator: Add a temperature awareness mechanism
From component reliability test results, the actuator
operating life is lower in low temperature.
Thus, we changed the voltage when device in a low
temperature to expand the actuator operating life.

Temperature rule:
> 10°C : Switch to "Normal Intensity" => Depends on each device's K file
5 ~ 10°C: This is a buffer period. Keep current voltage setting.
< 5°C: Switch to "Low Bound Intensity" => ~1.8 Vpeak(od_clamp=90), sine wave, F0-10.

Bug: 151063347
Test: remove vibrator properties and test VTS items
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: Ie0d22e561aca94a3b61f5e42ddf50ca4a991bda2
2020-05-29 15:46:05 +08:00
Daniel Bright 99851817c5 Rollback telephony-resources
Bug: 149776042
Test: TeleServiceTests
Change-Id: I7fcb2af4a63227ba834a3c1aedced9aa9ef30245
Merged-In: I7fcb2af4a63227ba834a3c1aedced9aa9ef30245
(cherry picked from commit a269cee5372ce25a7c1688b66fe5668de178a60a)
2020-05-29 15:46:04 +08:00
Midas Chien 4ca198c86f redfin: add display fps deferral
The FPS deferral property allows deferring clock/bandwidth votes when
switching from high refresh rate to low in case hardware takes some
extra time to change refresh rate.

Bug: 144749607
Test: check bus voting during refresh rate switching
Change-Id: Iccaf74616baf64bfe9b2e21957d9e19a43915eb3
2020-05-29 15:46:02 +08:00
Jack Wu c4b2f6edfe health: move health hal 2.1 to redbull
Bug: 145943771
Bug: 150288173
Test: lshal debug android.hardware.health@2.1::IHealth/default
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I1856d3cc6427c3bcdbab28b039e9dc30dc45d9e4
2020-05-29 15:45:58 +08:00
chasewu 8a2a893e4c vibrator: Remove trigger effect support
In the previous projects, only edge sensor
used this trigger effect.
However, edge sensor did not involve in this project,
we decide to remove trigger effect support.

Bug: 149672999
Test: manual check logs
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I393a94d06005f0d4f0c4a28f33aed4edd5dc8d1d
2020-05-29 15:45:54 +08:00
TreeHugger Robot 9fab9e95e3 Merge "health: HAL 2.1 for redfin" into rvc-dev
Change-Id: I4094a9c004857801304e74f3de7be767fdc62d34
Change-Id: Iccfc1ab840dcd31a34d27a5ce102acc9014bb6ee
Change-Id: Iae07729c7db1879e4a4996a0e48766d747e157e0
Change-Id: I0b1ee7f67faf407c58abb3117e1d37aa02aa6412
Change-Id: I982f75a41e5b12f8924f59e1b632ec124d398dbe
Change-Id: I1e4c412923470789cf88e96dc6e7fd422695d41d
2020-05-29 15:45:50 +08:00
Jack Wu 42cb9bdf18 health: HAL 2.1 for redfin
Bug: 145943771
Test: lshal debug android.hardware.health@2.1::IHealth/default
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: Iba389b0f9726efb1da480820a840cd86218e885e
2020-05-29 15:45:50 +08:00
tangrobin a2f84f31aa Redfin: Move the high fps early phase offset to device-common.mk
In Android R, the SurfaceFlinger calculate phase offsets
based on duration. Thus, this does not need to define
specific phase offsets for high refresh rate.

Bug: 143933518
Bug: 142222407
Test: scrolling, app launching/closing, playing video
Change-Id: I5d07af4b505a205060885ac90b4271a8441ffde5
2020-05-29 15:45:49 +08:00
Automerger Merge Worker af6d8659de audio: acdb for FM mic break detection am: 24f9834323 am: 551504fc6d
Change-Id: I8b7d8f24fad4d85eadf93b9da774156f19718e9d
2020-05-29 15:45:41 +08:00
Hungyen Weng 1e5b837090 Update dumpstate HAL to V1.1
Bug: 143184495
Test: atest VtsHalDumpstateV1_1TargetTest pass
Change-Id: I087622c49e2632d7e759a6384c5e09102e072fd7
2020-05-29 15:27:06 +08:00
Daniel Bright af0d50d584 Merge "Moved telephony overlays for Redfin"
Change-Id: I6e4969ad240e8ea682da5cddf5a7baabc6e1b52c
Change-Id: Id3b90391c6353111947d3ecf831917ed161dd26a
Change-Id: I2f9aa784005a7ac7968da0ec72dac343240f48a5
Change-Id: Ia93694666e4631f45d05c2dfb899327be17418e7
Change-Id: Ifa65b78bb6b7770de1940918c7aa8acc9b0d482f
2020-05-29 15:27:05 +08:00
Automerger Merge Worker a06a5c6e8c Merge "audio: change audio table location" into qt-qpr1-dev am: 28b5a042b2 am: f103279b60
Change-Id: I687502d6d35ea08638acd9f37f196a582bd96758
2020-05-29 15:27:04 +08:00
Daniel Bright 06f0255a94 Moved telephony overlays for Redfin
Moved vendor overlays for Redfin
to support backwards compatability.

Bug: 148390250
Test: Built redfin
Change-Id: I058a941658919eb8888c5a885b58d30d122077a0
2020-05-29 15:27:04 +08:00
TreeHugger Robot 38d5f2883f Merge "audio: change audio table location" into qt-qpr1-dev
Change-Id: I1f294c4a99f7f3da35400e333ab24f9cc806678b
2020-05-29 15:27:03 +08:00
vincenttew a3d9042197 audio: change audio table location
change mfg acdb & audio_platform_info directory
old: vendor/google_fih/redfin/factory/packages
new: vendor/google_fih/redfin/factory/prebuilt

Bug: 148644097
Test: build pass
Change-Id: I72df1e2636009a29522920cc4980c2cc9e8b5ccb
Signed-off-by: vincenttew <vincenttew@google.com>
2020-05-29 15:27:03 +08:00
chasewu dadab878ef vibrator: Modify some delta and apply calibration fix
Reference the delta from the leading project.

Bug: 148918900
Test: manual haptics function check and logs
Change-Id: I777d3295a7a92e2ce8547b85886038cfbe32ac5a
Signed-off-by: chasewu <chasewu@google.com>
2020-05-29 15:27:00 +08:00
Ady Abraham 1411bcdf46 Merge "redfin: rename use_smart_90_for_video flag"
Change-Id: Ifc004c3a253abf8cf815f104e2bdbeae20299e76
Change-Id: I0ae094c8252009a9e884168d78a35a414401c39d
Change-Id: Ic00329647dfd10b46518734d2e28a9b58626da6d
2020-05-29 15:27:00 +08:00
chasewu c6f56e3bc7 vibrator: Modify some delta and apply calibration fix
Reference the delta from the leading project.

Bug: 148918900
Test: manual haptics function check and logs
Change-Id: I777d3295a7a92e2ce8547b85886038cfbe32ac5a
Signed-off-by: chasewu <chasewu@google.com>
2020-05-29 15:27:00 +08:00
Ady Abraham 0cdfdf2411 redfin: rename use_smart_90_for_video flag
Rename use_smart_90_for_video -> use_content_detection_for_refresh_rate
to better describe what it controls.

Test: Play video and observe the refresh rate
Change-Id: I5ae03073bd670d0b3bc7f2861cbf3ec0d28efbe7
2020-05-29 15:27:00 +08:00
TreeHugger Robot 654a6c9a22 Merge "redfin: thermal: separate init.hardware.chamber.rc.userdebug by project" into qt-qpr1-dev
Change-Id: I83b6c3155a9d1bd3efcdb4bf63e2a02bb2733b4e
2020-05-29 15:26:58 +08:00
TeYuan Wang 18d046e201 redfin: thermal: separate init.hardware.chamber.rc.userdebug by project
Bug: 148839492
Test: thermal protection can be disabled/enabled at run time
Change-Id: Iae355f8678da9da83111d3665a429fbf5aa5ca69
2020-05-29 15:26:58 +08:00
Super Liu 59b3f1711d redfin: increase keyboard height ratio
Override the default IME height ratio to match the keyboard height of
previous devices.

Bug: 140591953
Test: make productimage and check /product/build.prop
Change-Id: Idc927054a0e2b4b8eb0f986e50bcc8df7dec05de
Signed-off-by: Super Liu <supercjliu@google.com>
2020-05-29 15:26:40 +08:00
vincenttew 3879859b6b audio: separate mfg acdb table
seperate audio table to bypass some module in mfg
acdbs

Test: build pass
Bug: 147204623
Change-Id: I01e13053355b94897050568e1e57384ca2f0dfd6
Signed-off-by: vincenttew <vincenttew@google.com>
2020-05-29 15:26:20 +08:00
Midas Chien 4e10c1cf57 Merge "Port over surfaceflinger configurations from Floral" into qt-qpr1-dev
Change-Id: I32d72e9ccc764eb8c75b0c971833a0bfa1d6ed17
2020-05-29 15:26:17 +08:00
Midas Chien b078675ec2 Port over surfaceflinger configurations from Floral
Sync surfaceflinger configurations include
9d8197af set idle timer to 80ms
f26b3c95 set touch event timer to 200ms
c688d43e set display power state timer to 1000ms
227e852c enable video detection logic
8fcdab39 enable high fps early phase offset

Bug: 142222472
Bug: 142222407
Test: scrolling, launch, play video
Change-Id: I9fbbeb000fe458cd8b43f2175fb652a435ce869e
2020-05-29 15:26:11 +08:00
Jack Wu b96fac26f8 health: run correct health hal
Bug: 146422159
Test: check android.hardware.health@2.0-service.redfin running
Change-Id: I02c8b3d555df9c58be5f0607ca0726f72b46a49c
Signed-off-by: Jack Wu <wjack@google.com>
2020-05-29 15:21:26 +08:00
justinweng c99bb6e69d redfin: audio: support audio zoom topology.
Bug: 151126169
Test: Verify by H/W

Change-Id: I5faf95eec683fae4d01c3ce3006ef895b278264f
Signed-off-by: justinweng <justinweng@google.com>
2020-05-29 11:26:29 +08:00
TreeHugger Robot efa33c7790 Merge "audio: change audio table location" into qt-qpr1-dev
Change-Id: I1e7f8574470400310c28db55d63b202a22a7c159
2020-05-29 11:26:20 +08:00
vincenttew d5350522d8 audio: change audio table location
change mfg acdb & audio_platform_info directory
old: vendor/google_fih/redfin/factory/packages
new: vendor/google_fih/redfin/factory/prebuilt

Bug: 148644097
Test: build pass
Change-Id: I72df1e2636009a29522920cc4980c2cc9e8b5ccb
Signed-off-by: vincenttew <vincenttew@google.com>
2020-05-29 11:26:20 +08:00
chasewu 45372e0fc1 vibrator: Modify some delta and apply calibration fix
Reference the delta from the leading project.

Bug: 148918900
Test: manual haptics function check and logs
Change-Id: I777d3295a7a92e2ce8547b85886038cfbe32ac5a
Signed-off-by: chasewu <chasewu@google.com>
2020-05-29 11:26:18 +08:00
TreeHugger Robot bb373f1bc5 Merge "redfin: thermal: separate init.hardware.chamber.rc.userdebug by project" into qt-qpr1-dev
Change-Id: I86a8a95d8dcc33c122526d19975c00f365cbe90e
2020-05-29 11:26:17 +08:00
TeYuan Wang f5251309fc redfin: thermal: separate init.hardware.chamber.rc.userdebug by project
Bug: 148839492
Test: thermal protection can be disabled/enabled at run time
Change-Id: Iae355f8678da9da83111d3665a429fbf5aa5ca69
2020-05-29 11:26:17 +08:00
Super Liu cae34c5646 redfin: increase keyboard height ratio
Override the default IME height ratio to match the keyboard height of
previous devices.

Bug: 140591953
Test: make productimage and check /product/build.prop
Change-Id: Idc927054a0e2b4b8eb0f986e50bcc8df7dec05de
Signed-off-by: Super Liu <supercjliu@google.com>
2020-05-29 11:26:16 +08:00
vincenttew 90c1e27154 audio: separate mfg acdb table
seperate audio table to bypass some module in mfg
acdbs

Test: build pass
Bug: 147204623
Change-Id: I01e13053355b94897050568e1e57384ca2f0dfd6
Signed-off-by: vincenttew <vincenttew@google.com>
2020-05-29 11:25:59 +08:00
Midas Chien af836813fb Merge "Port over surfaceflinger configurations from Floral" into qt-qpr1-dev
Change-Id: I31db2ddd94e8ae326c9e30bbf568943e552fe65c
2020-05-29 11:25:57 +08:00
Midas Chien 62f998b9ae Port over surfaceflinger configurations from Floral
Sync surfaceflinger configurations include
9d8197af set idle timer to 80ms
f26b3c95 set touch event timer to 200ms
c688d43e set display power state timer to 1000ms
227e852c enable video detection logic
8fcdab39 enable high fps early phase offset

Bug: 142222472
Bug: 142222407
Test: scrolling, launch, play video
Change-Id: I9fbbeb000fe458cd8b43f2175fb652a435ce869e
2020-05-29 11:25:53 +08:00
Jack Wu a378f67fd7 health: run correct health hal
Bug: 146422159
Test: check android.hardware.health@2.0-service.redfin running
Change-Id: I02c8b3d555df9c58be5f0607ca0726f72b46a49c
Signed-off-by: Jack Wu <wjack@google.com>
2020-05-29 11:25:34 +08:00
juyuchen 41c9561449 audio: update cs35l41 B0 and B2 firmware and bin files.
Bug: 140461525
Bug: 143266999
Test: manual audio tests.

Change-Id: I9e1f25f5ac743eeaf456afb7048c9dba27dce7c6
Signed-off-by: juyuchen <juyuchen@google.com>
2019-11-12 17:30:28 +08:00
juyuchen 19d78153b4 audio: add cs35l41 calibration tool into vendor/bin
Bug: 140706091
Test: build pass

Change-Id: I4e7aae5cb35e7cc6f5bdfa10d848ead5b13eb6f8
Signed-off-by: juyuchen <juyuchen@google.com>
2019-09-25 09:33:13 +00:00
Jason Hsu ef2906ef40 audio: rename audio_platform_info.xml and add cs35l41 fw and bins.No.2
Bug: 140462305
Test: build pass

Change-Id: Iaad9ffeefa96462c4f735056be5b2efcc2bc7df1
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
2019-09-18 20:47:00 +08:00
eddielan 471577db31 fingerprint: Enable to build fingerprint
Bug: 140209205
Test: Build Pass
Change-Id: Ic0a76bb991b4cdf0f2dc848bf27c95506f8f25d2
2019-09-17 13:45:59 +08:00
Jason Hsu fa7007acad audio: copy audio table from qcom default and remove unuse file No.3
Test: load audio hal
Bug: 140216758
Test: Manual built
Change-Id: I7365fabb3535e627b7f64618647f791e32270abe
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
2019-09-16 12:25:46 +08:00
ChengYou Ho a7e0f4632c Update to latest and remove common part
to common folder

Bug: 140363359
Change-Id: I9319e1451dbccc9d19568bf4ae4719b2d04450eb
2019-09-10 10:59:47 +08:00
Wilson Sung d2f93f8ab8 Add audio config fix audioserver crash
Bug: 139107810
Change-Id: I182e29fb0d6b22858932c8c7cc26ca787a32464d
Signed-off-by: Wilson Sung <wilsonsung@google.com>
2019-08-30 14:34:17 +08:00
Alex Hong 1c2dbd8222 Create aosp_redfin target
Bug: 139478768
Change-Id: I061f89a72b5e7b81280406abf85cca479b86f340
2019-08-19 12:39:55 +08:00