Home
last modified time | relevance | path

Searched refs:shortcutType (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityUtil.java207 static void optInValueToSettings(Context context, @UserShortcutType int shortcutType, in optInValueToSettings() argument
209 final String targetKey = convertKeyFromSettings(shortcutType); in optInValueToSettings()
213 if (hasValueInSettings(context, shortcutType, componentName)) { in optInValueToSettings()
252 static void optOutValueFromSettings(Context context, @UserShortcutType int shortcutType, in optOutValueFromSettings() argument
255 final String targetKey = convertKeyFromSettings(shortcutType); in optOutValueFromSettings()
304 static boolean hasValueInSettings(Context context, @UserShortcutType int shortcutType, in hasValueInSettings() argument
306 final String targetKey = convertKeyFromSettings(shortcutType); in hasValueInSettings()
351 static String convertKeyFromSettings(@UserShortcutType int shortcutType) { in convertKeyFromSettings() argument
352 switch (shortcutType) { in convertKeyFromSettings()
361 "Unsupported userShortcutType " + shortcutType); in convertKeyFromSettings()
DToggleScreenMagnificationPreferenceFragment.java433 @UserShortcutType int shortcutType) { in optInMagnificationValueToSettings() argument
434 if (shortcutType == UserShortcutType.TRIPLETAP) { in optInMagnificationValueToSettings()
440 if (hasMagnificationValueInSettings(context, shortcutType)) { in optInMagnificationValueToSettings()
444 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in optInMagnificationValueToSettings()
472 @UserShortcutType int shortcutType) { in optOutMagnificationValueFromSettings() argument
473 if (shortcutType == UserShortcutType.TRIPLETAP) { in optOutMagnificationValueFromSettings()
479 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in optOutMagnificationValueFromSettings()
518 @UserShortcutType int shortcutType) { in hasMagnificationValueInSettings() argument
519 if (shortcutType == UserShortcutType.TRIPLETAP) { in hasMagnificationValueInSettings()
524 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in hasMagnificationValueInSettings()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityUtilTest.java149 final int shortcutType = AccessibilityUtil.getUserShortcutTypesFromSettings(mContext, in getUserShortcutTypeFromSettings_putOneValue_hasValue() local
152 (shortcutType & UserShortcutType.SOFTWARE) == UserShortcutType.SOFTWARE).isTrue(); in getUserShortcutTypeFromSettings_putOneValue_hasValue()
160 final int shortcutType = AccessibilityUtil.getUserShortcutTypesFromSettings(mContext, in getUserShortcutTypeFromSettings_putTwoValues_hasValue() local
163 (shortcutType & UserShortcutType.SOFTWARE) == UserShortcutType.SOFTWARE).isTrue(); in getUserShortcutTypeFromSettings_putTwoValues_hasValue()
165 (shortcutType & UserShortcutType.HARDWARE) == UserShortcutType.HARDWARE).isTrue(); in getUserShortcutTypeFromSettings_putTwoValues_hasValue()