Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityUtil.java249 static void optInValueToSettings(Context context, @UserShortcutType int shortcutType, in optInValueToSettings() argument
256 shortcutType, in optInValueToSettings()
264 final String targetKey = convertKeyFromSettings(shortcutType); in optInValueToSettings()
268 if (hasValueInSettings(context, shortcutType, componentName)) { in optInValueToSettings()
320 static void optOutValueFromSettings(Context context, @UserShortcutType int shortcutType, in optOutValueFromSettings() argument
327 shortcutType, in optOutValueFromSettings()
336 final String targetKey = convertKeyFromSettings(shortcutType); in optOutValueFromSettings()
393 static boolean hasValueInSettings(Context context, @UserShortcutType int shortcutType, in hasValueInSettings() argument
397 context, shortcutType, UserHandle.myUserId() in hasValueInSettings()
401 final String targetKey = convertKeyFromSettings(shortcutType); in hasValueInSettings()
[all …]
DToggleScreenMagnificationPreferenceFragment.java716 Context context, @UserShortcutType int shortcutType) { in optInMagnificationValueToSettings() argument
722 shortcutType, in optInMagnificationValueToSettings()
730 if (shortcutType == UserShortcutType.TRIPLETAP) { in optInMagnificationValueToSettings()
737 if (shortcutType == UserShortcutType.TWOFINGER_DOUBLETAP) { in optInMagnificationValueToSettings()
746 if (hasMagnificationValueInSettings(context, shortcutType)) { in optInMagnificationValueToSettings()
750 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in optInMagnificationValueToSettings()
763 if (shortcutType == UserShortcutType.SOFTWARE in optInMagnificationValueToSettings()
801 @UserShortcutType int shortcutType) { in optOutMagnificationValueFromSettings() argument
807 shortcutType, in optOutMagnificationValueFromSettings()
815 if (shortcutType == UserShortcutType.TRIPLETAP) { in optOutMagnificationValueFromSettings()
[all …]
DPreferredShortcuts.java122 for (int shortcutType : ShortcutConstants.USER_SHORTCUT_TYPES) { in updatePreferredShortcutsFromSettings()
124 && shortcutType == ShortcutConstants.UserShortcutType.QUICK_SETTINGS) { in updatePreferredShortcutsFromSettings()
129 shortcutType, in updatePreferredShortcutsFromSettings()
131 context, shortcutType, UserHandle.myUserId())); in updatePreferredShortcutsFromSettings()
/packages/apps/Settings/src/com/android/settings/accessibility/shortcuts/
DShortcutOptionPreferenceController.java119 @ShortcutConstants.UserShortcutType int shortcutType = getShortcutType(); in enableShortcutForTargets() local
125 a11yManager.enableShortcutsForTargets(enable, shortcutType, shortcutTargets, in enableShortcutForTargets()
133 ShortcutUtils.optInValueToSettings(mContext, shortcutType, target); in enableShortcutForTargets()
137 ShortcutUtils.optOutValueFromSettings(mContext, shortcutType, target); in enableShortcutForTargets()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityUtilTest.java428 private void setShortcut(@UserShortcutType int shortcutType, String... componentNames) { in setShortcut() argument
434 ShortcutUtils.convertToKey(shortcutType), shortcutComponents.toString()); in setShortcut()