aboutsummaryrefslogtreecommitdiff
path: root/rro_overlays/SettingsOverlayVeux/res
diff options
context:
space:
mode:
authorUtsavBalar1231 <utsavbalar1231@gmail.com>2022-03-30 11:56:18 -0300
committersinanmohd <pcmsinan@gmail.com>2023-01-05 22:04:15 +0530
commit3b8f5df687446c1687648a0f7b8190f5d7257aed (patch)
tree87a39e0720c02b408f4ff06c03c05bec9a42ef45 /rro_overlays/SettingsOverlayVeux/res
parent43d18b089e05c7e36c3f2c8b986646a82d40b3b6 (diff)
veux: overlay: Update multiple vibration intensity levels config for T
Since commit: https://android.googlesource.com/platform/packages/apps/Settings.git/+/eaaf5331d64ab54ce55a857fc73a186d5f256fc5 multiple intensities configuration flag has been changed to an interger reflect that change in here to allow multiple intensity vibration pattern in settings. Change-Id: I13f9dbf6280623ad1c954ce96ceecbe363140062 Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Diffstat (limited to 'rro_overlays/SettingsOverlayVeux/res')
-rw-r--r--rro_overlays/SettingsOverlayVeux/res/values/config.xml20
1 files changed, 15 insertions, 5 deletions
diff --git a/rro_overlays/SettingsOverlayVeux/res/values/config.xml b/rro_overlays/SettingsOverlayVeux/res/values/config.xml
index d3379dc..a249a1b 100644
--- a/rro_overlays/SettingsOverlayVeux/res/values/config.xml
+++ b/rro_overlays/SettingsOverlayVeux/res/values/config.xml
@@ -22,10 +22,20 @@
<!-- Whether to show min/max refresh rate in display settings -->
<bool name="config_show_refresh_rate_controls">true</bool>
- <!-- Whether or not the device is capable of multiple levels of vibration intensity.
- Note that this is different from whether it can control the vibration amplitude as some
- devices will be able to vary their amplitude but do not possess enough dynamic range to
- have distinct intensity levels -->
- <bool name="config_vibration_supports_multiple_intensities">true</bool>
+ <!-- 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> \ No newline at end of file