config.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2007 The Android Open Source Project
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
  14. <!-- The number of vibration intensity levels supported by the device.
  15. Note that this should correspond to the ability to vary the vibration amplitude, with
  16. enough dynamic range to have at least as many distinct intensity levels as defined here.
  17. Supported values are 1, 2, 3. If '1', the settings app will use a toggle for the settings,
  18. otherwise a slider. If '3', the settings app maps intensities directly to the levels
  19. supported by the Vibrator HAL APIs. If '2', then the levels will be mapped to
  20. VIBRATION_INTENSITY_LOW and VIBRATION_INTENSITY_HIGH, which gives the most range for
  21. scaling vibrations. The medium intensity will be skipped.
  22. The default intensity values are configured at
  23. frameworks/base/core/res/res/values/config.xml's config_default[type]VibrationIntensity.
  24. Make sure that each default intensity value is consistent with the supported levels set
  25. here. If this settings supports only 2 levels, for example, then the default intensity
  26. should be either LOW (1) or HIGH (3).
  27. -->
  28. <integer name="config_vibration_supported_intensity_levels">3</integer>
  29. <!-- Whether to show min/max refresh rate in display settings -->
  30. <bool name="config_show_refresh_rate_controls">true</bool>
  31. <bool name="config_supports_dynamic_refresh_rate_controls">false</bool>
  32. </resources>