Commit Graph

112 Commits

Author SHA1 Message Date
chasewu 46d645318c vibrator: Update property naming rule
Bug: 158802146
Test: manual check properies value
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I2a092f79ca8105dc175ba026561234ce553da933
2020-06-17 16:37:47 +08:00
More Kuo 28fda48381 Add the default Bluetooth SAR table for ROW
1. Add the new Bluetooth SAR table as default table for ROW (default fall
   back version when there is no SKU+RegDomain match in other csvs).
2. Rename bluetooth_power_limits_redfin_ce.csv to
   bluetooth_power_limits_redfin_eu.csv

Bug: 158774295
Test: Manual
Change-Id: Ib3f43978ee2ac86d46ab4e66635039d7ec66b9f2
2020-06-12 10:55:22 +08:00
Cyan_Hsieh ee61f152d0 Merge branch 'rvc-dev' into rvc-d1-dev
Change-Id: I6ec66f04fee0d2fd8a1a78b7dad67af40e9f1c62
2020-06-02 18:48:49 +08:00
Yan Wang 6871a58d9f iorap: Enable pinner for camera on redfin
Bug: 157667363
Test: Make
Change-Id: Id2f4c00e77c562ed78ed99b42715acd12f4a0c8f
2020-06-02 18:39:24 +08:00
More Kuo 426b2479d0 Add the Bluetooth SAR table for EU
Add the Bluetooth SAR table for EU and the default table

Bug: 157267001
Test: Manual
Change-Id: I630ce0f24c2484094e4bd35155ac92c50fffb6f0
2020-05-29 21:22:46 +08:00
More Kuo 91f0712b1a Rename the Bluetooth SAR table for US
Rename the Bluetooth SAR table file name according to the Regulatory
domain.

Bug: 156994868
Test: Manual
Change-Id: I1f3ac204f8932c0e497943e092b74e279ac9246a
2020-05-29 21:22:45 +08:00
More Kuo 1c9e4fd89b Add the Bluetooth SAR table for US
This Bluetooth SAR table is tuned by the Antenna and RF teams
and is used for the certification test.

Bug: 156994868
Test: Manual
Change-Id: Ied2ac2185ffb62c468327e48339f070f5bf2c51d
2020-05-29 21:22:42 +08:00
TreeHugger Robot a2d0b79cfb Merge "battery: disable wireless for pts battery test" into rvc-d1-dev
Change-Id: I4121069c41ca0e87fa06bf99909751320485d41b
Change-Id: I5d2a0b4bef6e02e5e0646b00e4428fd1851ba0c8
Change-Id: I4a6f17d4e5964e9a985a9f39940ea67e89dcb39b
Change-Id: Id1909ecd8e9a9ae3d52caff7513575fd3898c7c7
Change-Id: Idb5288c116016520b31abcb382629be661df4a48
2020-05-29 21:22:39 +08:00
Jack Wu e2bd20f2ce battery: disable wireless for pts battery test
Disable wireless charging during drain, usb charging,
and charger stress test
  - vendor.disable.wlc 1
If device put onto dreamliner and shutdwon(drain out),
it would boot up by DC_CHG and keep shutdown(0%)-boot up
(by DC_CHG) continously. To avoid this symptom, limit wireless
current_max as 75000 after device boot up
  - persist.vendor.limit.wlc.current=1

How to verify:
  adb shell setprop vendor.disable.wlc 1
  adb shell cat /sys/class/power_supply/wireless/online >>>> 0

  adb shell setprop persist.vendor.limit.wlc.current 1
  adb shell cat /sys/class/power_supply/dc/current_max >>>> 75000

Bug: 117845723
Test: set the property manually and query the result from file node.
Signed-off-by: Jack Wu <wjack@google.com>
Signed-off-by: Maggie White <maggiewhite@google.com>
Change-Id: Ic5791c53f735caa19c73bae750651d774c0d4615
(cherry picked from commit bff033f25b8b41bc28b37d86b3c3ab3bb4deb3fb)
2020-05-29 21:22:39 +08:00
TreeHugger Robot 37feddecf0 Merge "audio: redfin: seperate sound_trigger_mixer_paths.xml table" into rvc-d1-dev
Change-Id: I06f3da1e7ccb34e60daa451c3523326523951fec
Change-Id: Ie5d9a9fd1fe1a4554b543150ba4a8afd0bf56412
Change-Id: I9b959a602e51f4b325aa985204fcd14c0a3f4170
Change-Id: I4fdd7866fa70afcf9043b23a57dca24c3f0b770e
Change-Id: I495e522f5fe52850975534bc66c65cd06e23755a
2020-05-29 21:22:35 +08:00
Jason Hsu 5b7922e7cc audio: redfin: seperate sound_trigger_mixer_paths.xml table
Bug: 156272507
Test: manual test
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I12f16c2ab0be614d313037d033c7e27612d99cb9
2020-05-29 21:22:34 +08:00
Justin Weng d7db92276a Merge "audio: apply thermal listener config" into rvc-d1-dev
Change-Id: I8bc79fc148d3a73830c518e664e46a41794db6e5
Change-Id: Id567520db3cb96ea9bbe6258f94ebc78189b8c7f
Change-Id: Ied34bfd0eeebb4ff98b2ac5920e0b61c3af30553
Change-Id: I94ea1a569d1934d568fdbf9c49238f382c02f654
Change-Id: I8d16ece93aa32ee662168361c325e1f052f9fed0
2020-05-29 21:22:31 +08:00
justinweng 13f7ecaf13 audio: apply thermal listener config
- apply PTL in acdb for speaker path
- add thermal listener configuration
- enable thermal listener

Bug: 143265000
Test: manual

Signed-off-by: justinweng <justinweng@google.com>
Change-Id: I7426e9febf678b1e50f511fdd89ded6902347175
2020-05-29 21:22:30 +08:00
Chenglu Lin 4918e8ee68 Select vintf kernel for user build
Disable debugfs only to pass VINTF compliance for user build
and keep other debug capability still.

Bug: 155999580
Test: compile and check kernel config
Change-Id: Ie60d050f8a1771f07085f22e8bbd67e9323ca199
2020-05-29 21:22:25 +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
Midas Chien fb818e71b6 Merge "redfin: add display fps deferral" into rvc-d1-dev
Change-Id: Ieed16749cc835232aab1d58e6408204a17ffce18
Change-Id: I5b0a9d9904a4913e61213d7758ffe07595af017f
Change-Id: Ie634d3be926e1d9e8dfecf271a6492ab9c684746
Change-Id: I32d9a48164c79f5266c591327fcda39dea60beaa
2020-05-29 21:22:10 +08:00
Jason Hsu 77b2387786 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 21:22:09 +08:00
Jason Hsu 893dad9288 audio: enable devicestate_listener feature on redfin am: 3e520d4ffd
Change-Id: Id998753bccab1ae2e54d598383333b4ccc17c40d
2020-05-29 21:22:09 +08:00
Midas Chien 52bcc2dcc1 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: 152468927
Bug: 154607334
Test: 60/90 switching, no noise line
Test: systrace to check vsync period
Change-Id: I47284578d13c203b14b3213081faf258dd9a542b
2020-05-29 21:22:09 +08:00
Chenglu Lin 15722ff935 Select performance kernel for user build
CONFIG_DEBUG_FS is not allowed to be enabled as kernel config
in user builds but is allowed for userdebug builds. Disable
CONFIG_DEBUG_FS in performance kernel and select it for user build.

Bug: 149437148
Test: compile and check kernel config
Change-Id: I184287a0c92b126c8b0d68fa6fdea5e4be48f419
2020-05-29 21:22:08 +08:00
chasewu ccacf4a4ab vibrator: Update 1st version haptics tuning result
Click 1: 0.15g
Click 2: 0.27g
Click 3: 0.32g
Click 4: 0.48g
Click 5: 0.62g
High motion: 1.2g
Non-motion: 0.4g

Duration bin file as attachment
Texture tick 6ms
TICK 6ms
CLICK 6ms
DOUBLE_CLICKS 8 + 139+ 12 ms
HEAVY_CLICK 6ms

Bug: 151275921
Test: UT member test
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I0ac830e030916524333fa7654f678235130c11b7
2020-05-29 21:22:07 +08:00
chasewu aeea8a8447 vibrator: Sync up the delta from leading project
1. Add motion awareness
2. Switch from HIDL to AIDL

Bug: 148249136
Bug: 150916170
Bug: 150737103
Test: VTS, Unit Test
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I50e317d880ca9d01bf3eff16b754c9dc91617b49
2020-05-29 21:21:59 +08:00
TeYuan Wang 9166968a6a thermal: remove QC thermal-engine
Remove QC thermal-engine because we migrate thermal throttling to thermal core driver

Bug: 119196930
Test: confirm thermal-engine related files are removed
Change-Id: Ibb218e696f4bfdc6f709698a2cf7cb11f05073d6
Signed-off-by: TeYuan Wang <kamewang@google.com>
2020-05-29 21:21:57 +08:00
yixuanjiang 4ead6dab47 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 21:21:53 +08:00
Midas Chien c08bdbff22 Merge "Revert "redfin: add display fps deferral"" into rvc-dev
Change-Id: Ia06c4f6fba4a1cf6b4e226f990551f89568ca4d6
Change-Id: I01e67222382281bc3c351a159bf047d96f25df5b
Change-Id: I82a9d231d171e80c048aab3a65890c042b870d7f
Change-Id: I806cbaaded9bf5f4cc9f8659b96915f37a7103c5
2020-05-29 21:21:50 +08:00
Midas Chien 382ef60709 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 21:21:49 +08:00
Chase Wu 1b357cdfb5 Merge "vibrator: Add effects voltage limitation" into rvc-dev
Change-Id: I740adfcbc20169305a95e82f7ba998c2c755539b
Change-Id: I4bbcbb5cc290b242b3d0757233cc667acf4dd96c
Change-Id: I314a9270a5924cb502c275cb55f0ee6cae055468
Change-Id: If9c2b1f08f6c4f227029be5f6054c2f6997d47a9
2020-05-29 21:21:42 +08:00
chasewu 43b2f4a98c 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 21:21:42 +08:00
Chase Wu 971205fdfc Merge "vibrator: Add a temperature awareness mechanism" into rvc-dev
Change-Id: I2f50ab6d567e96612319bb8945e01d2a589a689d
Change-Id: I818a9c27988de083905758cf8a21200ffdbc33b8
Change-Id: Ibc5f1c5c938e29e71bcdcd5578e7649eec8bc00a
Change-Id: Iee6fea0ed8c662f4e685b6935af257a8320f733b
2020-05-29 21:21:40 +08:00
chasewu 2f2d7e9d43 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 21:21:40 +08:00
Daniel Bright 14a8cf7a31 Rollback telephony-resources
Bug: 149776042
Test: TeleServiceTests
Change-Id: I7fcb2af4a63227ba834a3c1aedced9aa9ef30245
Merged-In: I7fcb2af4a63227ba834a3c1aedced9aa9ef30245
(cherry picked from commit a269cee5372ce25a7c1688b66fe5668de178a60a)
2020-05-29 21:21:36 +08:00
Midas Chien 81b18483f1 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 21:21:32 +08:00
Jack Wu 9789f4d7fd 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 21:21:21 +08:00
Automerger Merge Worker 988a6d1af8 redfin: audio: support audio zoom topology. am: c81d0dc378
Change-Id: I4c0b96bea9dbafec8bd93c21d0ac21d873551d33
2020-05-29 21:21:19 +08:00
justinweng 5b33332b52 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 21:21:18 +08:00
chasewu 0e929aa649 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 21:21:12 +08:00
TreeHugger Robot 66ada3e90d Merge "health: HAL 2.1 for redfin" into rvc-dev
Change-Id: Iedd64fabca7f73b42e95022a0d443fb0d06114bd
Change-Id: I7dceb30dde4c78377fa939bf5c183f2f647a6747
Change-Id: I1935f2286c5165bde10068ca32dddcfd325206eb
Change-Id: I268c336d96f50d0e712d79f3030e171e405461e2
2020-05-29 21:21:02 +08:00
Jack Wu 151a2ea897 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 21:21:02 +08:00
tangrobin 2724e13042 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 21:21:01 +08:00
Hungyen Weng 150ff07f8c Update dumpstate HAL to V1.1
Bug: 143184495
Test: atest VtsHalDumpstateV1_1TargetTest pass
Change-Id: I087622c49e2632d7e759a6384c5e09102e072fd7
2020-05-29 21:20:46 +08:00
Daniel Bright 0a31f96fbc Merge "Moved telephony overlays for Redfin"
Change-Id: I7f9033ba3d934853357eb5020c966c7f4331d054
Change-Id: Icfb6484017bfd7087e6b24b179db4b310b64e82c
Change-Id: Ice9671a8f3c0334b8a73c72899c8af847933ddf0
Change-Id: I1bccf7aa5e15242ddc9451a64252cb4fd87d7489
2020-05-29 21:20:44 +08:00
Daniel Bright f6da46ce32 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 21:20:44 +08:00
Automerger Merge Worker 2481ebe4b3 Merge "audio: change audio table location" into qt-qpr1-dev am: 28b5a042b2 am: f103279b60
Change-Id: I687502d6d35ea08638acd9f37f196a582bd96758
2020-05-29 21:20:43 +08:00
TreeHugger Robot 9bcc8e22d5 Merge "audio: change audio table location" into qt-qpr1-dev
Change-Id: Ia91a1ce2356e7edaa943dd51faf40d2a138df34f
2020-05-29 21:20:42 +08:00
vincenttew cd95ddce9c 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 21:20:42 +08:00
chasewu 3673167161 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 21:20:39 +08:00
Ady Abraham 9e3f7fec0a Merge "redfin: rename use_smart_90_for_video flag"
Change-Id: Ieb6b7cdbc48a375a65f447db0dc517d055c844b7
Change-Id: I3c44924ddf0b62ebd2f6a7d076beca438d5d703b
2020-05-29 21:20:38 +08:00
chasewu 1ccb101fe3 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 21:20:38 +08:00