overlay: Settings: Enable multiple vibration strength levels
All production GS101 devices have CS40L2x haptic driver ICs that support multiple intensities, so expose the Off/Low/Medium/High vibration strength options like stock. Co-authored-by: Michael Bestas <mkbestas@gmail.com> Change-Id: I72645b5bd5772e182592a630df86f9b6166b4923
This commit is contained in:
parent
438c93ba0c
commit
ae37e37a4a
1 changed files with 19 additions and 0 deletions
|
@ -24,4 +24,23 @@
|
||||||
<item>2</item>
|
<item>2</item>
|
||||||
<item>3</item>
|
<item>3</item>
|
||||||
</integer-array>
|
</integer-array>
|
||||||
|
|
||||||
|
<!-- The number of vibration intensity levels supported by the device.
|
||||||
|
|
||||||
|
Note that this should correspond to the ability to vary the vibration amplitude, with
|
||||||
|
enough dynamic range to have at least as many distinct intensity levels as defined here.
|
||||||
|
|
||||||
|
Supported values are 1, 2, 3. If '1', the settings app will use a toggle for the settings,
|
||||||
|
otherwise a slider. If '3', the settings app maps intensities directly to the levels
|
||||||
|
supported by the Vibrator HAL APIs. If '2', then the levels will be mapped to
|
||||||
|
VIBRATION_INTENSITY_LOW and VIBRATION_INTENSITY_HIGH, which gives the most range for
|
||||||
|
scaling vibrations. The medium intensity will be skipped.
|
||||||
|
|
||||||
|
The default intensity values are configured at
|
||||||
|
frameworks/base/core/res/res/values/config.xml's config_default[type]VibrationIntensity.
|
||||||
|
Make sure that each default intensity value is consistent with the supported levels set
|
||||||
|
here. If this settings supports only 2 levels, for example, then the default intensity
|
||||||
|
should be either LOW (1) or HIGH (3).
|
||||||
|
-->
|
||||||
|
<integer name="config_vibration_supported_intensity_levels">3</integer>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue