summaryrefslogtreecommitdiff
path: root/vibrator
AgeCommit message (Collapse)Author
2021-03-20vibrator: implement chirp APIsVince Leung
Implement the chirp APIs and necessary helper methods. This capability is not supported on drv2624 so we return EX_UNSUPPORTED_OPERATION. Bug: 162859057 Test: m Change-Id: Ibcf28b10f9313d94379103cafcf0400afc7b33b4
2021-03-12[LSC] Add LOCAL_LICENSE_KINDS to device/google/bramble am: e36f62cc38Bob Badour
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bramble/+/13844764 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I8319494fc899ade67684ee48acaacf8d836b5538
2021-03-11[LSC] Add LOCAL_LICENSE_KINDS to device/google/brambleBob Badour
Added SPDX-license-identifier-Apache-2.0 to: bramble/overlay_packages/FrameworkOverlayG6QU3/Android.bp bramble/overlay_packages/SettingsOverlayG025E/Android.bp bramble/overlay_packages/SettingsOverlayG025H/Android.bp bramble/overlay_packages/SettingsOverlayG025I/Android.bp bramble/overlay_packages/SettingsOverlayG6QU3/Android.bp dumpstate/Android.mk self-extractors/qcom/staging/Android.mk usb/Android.bp vibrator/drv2624/Android.bp vibrator/drv2624/bench/Android.bp vibrator/drv2624/tests/Android.bp voice_processing/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ic250e3521099ee64699d04282e31238a224edc6a
2021-02-11Add APIs to get resonant frequency and Q factorVince Leung
Actuators can have resonant frequency and Q factor information. Exposing this information can allow for better optimized audio generated haptics. Bug: 178826612 Test: m Change-Id: I55f8996f78fc3cbb0666e834566cd5eaaf50b047
2021-01-21vibrator: declare AIDL version in VINTFYifan Hong
Vibrator HAL uses unstable version, which is currently version 2. Test: pass Bug: 178035621 Change-Id: Iedffc14d40a55d49871f582789ea9ee5c887949e
2021-01-11Combine core and vendor variantsJustin Yun
As we don't create a product variant from a 'vendor_available' module, we may combine the core and vendor variants by using 'vendor_available: true' property. Bug: 153497346 Test: lunch cf_x86_phone-userdebug && m nothing Change-Id: I666a2331e95195f32dcb3019f6526ca26fb31d43
2020-08-07vibrator: Add a threshold to filter out some short vibration caseschasewu
Some app will use short vibration to implement haptics effect and those cases will feel a delay from the motion awareness mechanism. We add this patch to filter out those cases since those behaviors beyond the motion awareness mechanism scope. Bug: 162346934 Test: UT test Signed-off-by: chasewu <chasewu@google.com> Change-Id: Iea85a13d17926c456096246b0332a366d89448ac
2020-07-16vibrator: Update haptic tuning setting V5chasewu
Click 1: [vibrator.hal.effect.strength1]: [190] Click 2: [vibrator.hal.effect.strength2]: [300] Click 3: [vibrator.hal.effect.strength3]: [390] Click 4: [vibrator.hal.effect.strength4]: [660] Click 5: [vibrator.hal.effect.strength5]: [750] High motion: [vibrator.hal.steady.strength1]: [1500] Non-motion: [vibrator.hal.steady.strength3]: [820] Texture tick 7ms TICK 7ms CLICK 7ms DOUBLE_CLICKS 10 + 157 + 13 ms HEAVY_CLICK 7ms Bug: 161412465 Test: build pass Signed-off-by: chasewu <chasewu@google.com> Change-Id: I621c4ac3d353469ca029eedb3cee23b6f0c72e48
2020-07-01vibrator: Update haptic tuning setting V4eddielan
Click 1: [vibrator.hal.effect.strength1]: [190] Click 2: [vibrator.hal.effect.strength2]: [300] Click 3: [vibrator.hal.effect.strength3]: [390] Click 4: [vibrator.hal.effect.strength4]: [590] Click 5: [vibrator.hal.effect.strength5]: [750] High motion: [vibrator.hal.steady.strength1]: [1500] Non-motion: [vibrator.hal.steady.strength3]: [570] Bug: 160290870 Test: Build Pass Change-Id: Iffc8193b949791d7768d9378dad743d7fe45dfcd
2020-06-17vibrator: Update property naming rulechasewu
Bug: 158802146 Test: manual check properies value Signed-off-by: chasewu <chasewu@google.com> Change-Id: Ib9b469edfe9d260e0d12fda4b3aaba5c8f5e0d5d
2020-05-27Merge "vibrator: Use interpolation method for non-motion voltage" into ↵Chase Wu
rvc-d1-dev
2020-05-26Merge "vibrator: Add an initial value for non-motion vibration intensity" ↵TreeHugger Robot
into rvc-d1-dev
2020-05-26vibrator: Use interpolation method for non-motion voltagechasewu
Bug: 156428459 Test: manual check the ol_clamp Signed-off-by: chasewu <chasewu@google.com> Change-Id: I3ef918098391a08d4ed36e057f6ce093a702d924
2020-05-18vibrator: Update 3rd version haptics tuning resultchasewu
1. Increase non-motion target G to 0.5G. 2. Change DOUBLE_CLICKS 10 + 157 + 13 ms Bug: 156048708 Test: manual check od_clamp value changed Signed-off-by: chasewu <chasewu@google.com> Change-Id: Ida3c548776a2b9d99832bd6bb3bc1fc39481b731
2020-05-06vibrator: Add an initial value for non-motion vibration intensitychasewu
Bug: 155709426 Test: remove cal file and trigger vibration Signed-off-by: chasewu <chasewu@google.com> Change-Id: I07e63dc8106a2f5d875b6be665e67e6f8dda9239
2020-04-22Merge "vibrator: Reenable Unit Tests" into rvc-dev am: d14d2354e2TreeHugger Robot
Change-Id: I5fff367828c08488b4d2abbd4aa72ad8f317478e
2020-04-21vibrator: Reenable Unit TestsHarpreet \"Eli\" Sangha
Bug: 150916170 Test: Build Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com> Change-Id: I9fd400a25e80938f6b83e4506a3c83594080a637
2020-04-17vibrator: Remove redundant logschasewu
Those sensor logs are experimential for a while. Bug: 154279225 Test: manual check logs Signed-off-by: chasewu <chasewu@google.com> Change-Id: I44f97a22109d22e7a001ed5d76c6454fef826839
2020-04-15vibrator: Fix wrong strength settingchasewu
In motion awareness function, it was expected to use previous sensor data to apply motion or non-motion strength within 2 secs. However, it used the default value which is 0 to determine the strength. Bug: 153830649 Bug: 153934655 Test: UT and local test Signed-off-by: chasewu <chasewu@google.com> Change-Id: Ic12512a9635d95c42bbe52ad92a0ad603af4081b
2020-04-10vibrator: Modify 2nd version haptics tuning resultchasewu
Tracking for Dofgood tuning setting + non stop solution Click 1: [vibrator.hal.effect.strength1]: [190] Click 2: [vibrator.hal.effect.strength2]: [300] Click 3: [vibrator.hal.effect.strength3]: [390] Click 4: [vibrator.hal.effect.strength4]: [590] Click 5: [vibrator.hal.effect.strength5]: [750] High motion: [vibrator.hal.steady.strength1]: [1300] Non-motion: [vibrator.hal.steady.strength3]: [400] The duration in bin file did not be changed this time. Texture tick 7ms TICK 7ms CLICK 7ms DOUBLE_CLICKS 8 + 140+ 12 ms HEAVY_CLICK 7ms Bug: 153617100 Test: UT member test Signed-off-by: chasewu <chasewu@google.com> Change-Id: I9be532f179ea3687d4b52e6e01a1d103580ebb86
2020-03-27vibrator: Switch from HIDL to AIDLHarpreet \"Eli\" Sangha
Bug: 148249136 Test: VTS, Unit Test Change-Id: Ifbcfd1358161a5643bafc6e5314311a282e70a47 Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2020-03-25vibrator: Modify 1st version haptics tuning resultchasewu
Click 1: [vibrator.hal.effect.strength1]: [220] Click 2: [vibrator.hal.effect.strength2]: [350] Click 3: [vibrator.hal.effect.strength3]: [420] Click 4: [vibrator.hal.effect.strength4]: [570] Click 5: [vibrator.hal.effect.strength5]: [670] High motion: [vibrator.hal.steady.strength1]: [1200] Non-motion: [vibrator.hal.steady.strength3]: [400] Duration bin file as attachment Texture tick 7ms TICK 7ms CLICK 7ms DOUBLE_CLICKS 8 + 140+ 12 ms HEAVY_CLICK 7ms Bug: 151779442 Test: UT member test Signed-off-by: chasewu <chasewu@google.com> Change-Id: I9c8392a694325631f21f854ae72e542829900ed6
2020-03-25vibrator: Add motion awareness mechanismchasewu
1. Get 20 gravity sensor data in 100ms 2. Set sensing sensor data period in 2s 3. Use new tuning result for motion and non-motion 4. Temporarily remove test and benchmark Bug: 150737103 Bug: 150916170 Bug: 151276021 Test: UT test Change-Id: Iedbf3771d1b7e0b7a066998ab9a4b7aef7f83c32 Signed-off-by: chasewu <chasewu@google.com>
2020-03-12vibrator: Add a temperature awareness mechanismchasewu
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: I9a725cf79561487d26b278abe53e7788a512c9d6
2020-03-04vibrator: Update calibration precisionchasewu
Bug: 149885637 Test: manual check logs Signed-off-by: chasewu <chasewu@google.com> Change-Id: I98de96ebd196e2e5d92503f46c4346a568cd1279
2020-02-24vibrator: Update delta from qpr1 branchchasewu
Bug: 149059760 Test: manual check haptics and vibration Change-Id: I97dae2804973d51af7443a786c155fa519e746f9 Signed-off-by: eddielan <eddielan@google.com>
2019-10-02Remove libhwbinder/libhidltransport depsSteven Moreland
Since these were combined into libhidlbase. Bug: 135686713 Test: build only (libhwbinder/libhidltransport are empty) Change-Id: I01984941243f494252354c22299f8c61f0ee8d79
2019-07-26Create aosp_bramble targetRoger Liao
Bug: 138083938 Bug: 137166127 Change-Id: I9c4c318e5c7942fed113131a90ad7a94fd3a8fa6