summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorjasonwshsu <jasonwshsu@google.com>2020-12-18 00:11:53 +0800
committerjasonwshsu <jasonwshsu@google.com>2021-01-07 13:00:33 +0800
commitd6d96c74c40b798331b469342eee71b2c8bde401 (patch)
tree3b5ec73c9ed694645f6a03eb394029fd00e7110c /core/java/android
parent0883daddf17f142163d8ce934275796ecb5177ca (diff)
Add accessibility floating menu settings key
* ACCESSIBILITY_FLOATING_MENU_SIZE: control different size * ACCESSIBILITY_FLOATING_MENU_ICON_TYPE: control icon type * ACCESSIBILITY_FLOATING_MENU_OPACITY: control the opacity value for fade out effect Bug: 173940865 Test: atest SettingsProviderTest Change-Id: I0399366b6ea05268e3d3ad1f24962fffde8d686a
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/provider/Settings.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 4632621b29aa..053ee718a8c8 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -9194,6 +9194,39 @@ public final class Settings {
public static final int ACCESSIBILITY_BUTTON_MODE_FLOATING_MENU = 0x1;
/**
+ * The size of the accessibility floating menu.
+ * <ul>
+ * <li> 0 = small size
+ * <li> 1 = large size
+ * </ul>
+ *
+ * @hide
+ */
+ public static final String ACCESSIBILITY_FLOATING_MENU_SIZE =
+ "accessibility_floating_menu_size";
+
+ /**
+ * The icon type of the accessibility floating menu.
+ * <ul>
+ * <li> 0 = full circle type
+ * <li> 1 = half circle type
+ * </ul>
+ *
+ * @hide
+ */
+ public static final String ACCESSIBILITY_FLOATING_MENU_ICON_TYPE =
+ "accessibility_floating_menu_icon_type";
+
+ /**
+ * The opacity value for the accessibility floating menu fade out effect, from 0.0
+ * (transparent) to 1.0 (opaque).
+ *
+ * @hide
+ */
+ public static final String ACCESSIBILITY_FLOATING_MENU_OPACITY =
+ "accessibility_floating_menu_opacity";
+
+ /**
* Whether the Adaptive connectivity option is enabled.
*
* @hide