summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Lais Andrade <lsandrade@google.com> 2022-01-10 22:20:42 +0000
committer Lais Andrade <lsandrade@google.com> 2022-01-24 12:15:11 +0000
commitcb3718bfd48357a25301535632793951d67aaa04 (patch)
tree63fe52e9d1e3a82072df74176c6d493591b97643 /libs/androidfw/StringPool.cpp
parent6ae72448036fd6480429871690bd35fe3f367cc2 (diff)
Create VibratorFrequencyProfile in Vibrator API.
Create public class to represent the vibrator response for the supported frequency range to the Vibrator public API, with basic implementation that extracts these values from FrequencyMapping. Integrate this data with the result of Vibrator.hasFrequencyControl method, which also checks the HAL capabilities. Also make public the methods to provide resonant frequency and Q-factor of the device. Update the SystemVibrator to handle multi-vibrator scenario and return values when all vibrators have the same configurations. This includes returning the intersection of all vibrator max amplitude measurements in the new profile object. Add validation to HAL values and CTS to cover expected ranges based on the device support for frequency control. Bug: 203785430 Test: android.os.cts.VibratorTest & VibratorInfoTest Change-Id: I0b7cf599ae6039355a0a198f4bdaafb85fb7422c
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions