Home
last modified time | relevance | path

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

/aosp12/frameworks/base/core/java/com/android/internal/accessibility/dialog/
H A DAccessibilityTargetHelper.java72 @ShortcutType int shortcutType) { in getTargets() argument
75 shortcutType); in getTargets()
114 @ShortcutType int shortcutType) { in getInstalledTargets() argument
123 @ShortcutType int shortcutType) { in getAccessibilityFilteredTargets() argument
156 @ShortcutType int shortcutType) { in getAccessibilityServiceTargets() argument
183 @ShortcutType int shortcutType) { in getAccessibilityActivityTargets() argument
207 shortcutType, in getAllowListingFeatureTargets()
216 shortcutType, in getAllowListingFeatureTargets()
226 shortcutType, in getAllowListingFeatureTargets()
236 shortcutType, in getAllowListingFeatureTargets()
[all …]
H A DAccessibilityActivityTarget.java35 AccessibilityActivityTarget(Context context, @ShortcutType int shortcutType, in AccessibilityActivityTarget() argument
38 shortcutType, in AccessibilityActivityTarget()
40 isShortcutContained(context, shortcutType, in AccessibilityActivityTarget()
45 convertToKey(convertToUserType(shortcutType))); in AccessibilityActivityTarget()
H A DAccessibilityServiceTarget.java36 AccessibilityServiceTarget(Context context, @ShortcutType int shortcutType, in AccessibilityServiceTarget() argument
40 shortcutType, in AccessibilityServiceTarget()
42 isShortcutContained(context, shortcutType, in AccessibilityServiceTarget()
47 convertToKey(convertToUserType(shortcutType))); in AccessibilityServiceTarget()
H A DInvisibleToggleAllowListingFeatureTarget.java31 InvisibleToggleAllowListingFeatureTarget(Context context, @ShortcutType int shortcutType, in InvisibleToggleAllowListingFeatureTarget() argument
33 super(context, shortcutType, AccessibilityFragmentType.INVISIBLE_TOGGLE, in InvisibleToggleAllowListingFeatureTarget()
H A DInvisibleToggleAccessibilityServiceTarget.java40 InvisibleToggleAccessibilityServiceTarget(Context context, @ShortcutType int shortcutType, in InvisibleToggleAccessibilityServiceTarget() argument
43 shortcutType, in InvisibleToggleAccessibilityServiceTarget()
H A DToggleAccessibilityServiceTarget.java38 ToggleAccessibilityServiceTarget(Context context, @ShortcutType int shortcutType, in ToggleAccessibilityServiceTarget() argument
41 shortcutType, in ToggleAccessibilityServiceTarget()
H A DToggleAllowListingFeatureTarget.java37 ToggleAllowListingFeatureTarget(Context context, @ShortcutType int shortcutType, in ToggleAllowListingFeatureTarget() argument
39 super(context, shortcutType, AccessibilityFragmentType.TOGGLE, in ToggleAllowListingFeatureTarget()
H A DVolumeShortcutToggleAccessibilityServiceTarget.java42 VolumeShortcutToggleAccessibilityServiceTarget(Context context, @ShortcutType int shortcutType, in VolumeShortcutToggleAccessibilityServiceTarget() argument
45 shortcutType, in VolumeShortcutToggleAccessibilityServiceTarget()
H A DAccessibilityTarget.java57 public AccessibilityTarget(Context context, @ShortcutType int shortcutType, in AccessibilityTarget() argument
61 mShortcutType = shortcutType; in AccessibilityTarget()
/aosp12/frameworks/base/core/java/com/android/internal/accessibility/util/
H A DShortcutUtils.java51 public static void optInValueToSettings(Context context, @UserShortcutType int shortcutType, in optInValueToSettings() argument
54 final String targetKey = convertToKey(shortcutType); in optInValueToSettings()
58 if (isComponentIdExistingInSettings(context, shortcutType, componentId)) { in optInValueToSettings()
79 Context context, @UserShortcutType int shortcutType, @NonNull String componentId) { in optOutValueFromSettings() argument
81 final String targetsKey = convertToKey(shortcutType); in optOutValueFromSettings()
110 @UserShortcutType int shortcutType, @NonNull String componentId) { in isComponentIdExistingInSettings() argument
111 final String targetKey = convertToKey(shortcutType); in isComponentIdExistingInSettings()
138 public static boolean isShortcutContained(Context context, @ShortcutType int shortcutType, in isShortcutContained() argument
142 final List<String> requiredTargets = am.getAccessibilityShortcutTargets(shortcutType); in isShortcutContained()
H A DAccessibilityStatsLogUtils.java68 ComponentName componentName, @ShortcutType int shortcutType) { in logAccessibilityShortcutActivated() argument
70 convertToLoggingShortcutType(context, shortcutType), UNKNOWN_STATUS); in logAccessibilityShortcutActivated()
85 ComponentName componentName, @ShortcutType int shortcutType, boolean serviceEnabled) { in logAccessibilityShortcutActivated() argument
87 convertToLoggingShortcutType(context, shortcutType), in logAccessibilityShortcutActivated()
170 @ShortcutType int shortcutType) { in convertToLoggingShortcutType() argument
171 switch (shortcutType) { in convertToLoggingShortcutType()
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/
H A DAccessibilityUtil.java213 static void optInValueToSettings(Context context, @UserShortcutType int shortcutType, in optInValueToSettings() argument
215 final String targetKey = convertKeyFromSettings(shortcutType); in optInValueToSettings()
219 if (hasValueInSettings(context, shortcutType, componentName)) { in optInValueToSettings()
258 static void optOutValueFromSettings(Context context, @UserShortcutType int shortcutType, in optOutValueFromSettings() argument
261 final String targetKey = convertKeyFromSettings(shortcutType); in optOutValueFromSettings()
310 static boolean hasValueInSettings(Context context, @UserShortcutType int shortcutType, in hasValueInSettings() argument
312 final String targetKey = convertKeyFromSettings(shortcutType); in hasValueInSettings()
357 static String convertKeyFromSettings(@UserShortcutType int shortcutType) { in convertKeyFromSettings() argument
358 switch (shortcutType) { in convertKeyFromSettings()
367 "Unsupported userShortcutType " + shortcutType); in convertKeyFromSettings()
H A DToggleScreenMagnificationPreferenceFragment.java464 @UserShortcutType int shortcutType) { in optInMagnificationValueToSettings() argument
465 if (shortcutType == UserShortcutType.TRIPLETAP) { in optInMagnificationValueToSettings()
471 if (hasMagnificationValueInSettings(context, shortcutType)) { in optInMagnificationValueToSettings()
475 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in optInMagnificationValueToSettings()
503 @UserShortcutType int shortcutType) { in optOutMagnificationValueFromSettings() argument
504 if (shortcutType == UserShortcutType.TRIPLETAP) { in optOutMagnificationValueFromSettings()
510 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in optOutMagnificationValueFromSettings()
549 @UserShortcutType int shortcutType) { in hasMagnificationValueInSettings() argument
550 if (shortcutType == UserShortcutType.TRIPLETAP) { in hasMagnificationValueInSettings()
555 final String targetKey = AccessibilityUtil.convertKeyFromSettings(shortcutType); in hasMagnificationValueInSettings()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
H A 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()
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAccessibilityManagerService.java1548 @ShortcutType int shortcutType) { in showAccessibilityTargetsSelection() argument
1550 final String chooserClassName = (shortcutType == ACCESSIBILITY_SHORTCUT_KEY) in showAccessibilityTargetsSelection()
2902 @ShortcutType int shortcutType, @Nullable String targetName) { in performAccessibilityShortcutInternal() argument
2916 showAccessibilityTargetsSelection(displayId, shortcutType); in performAccessibilityShortcutInternal()
2945 displayId, shortcutType, targetComponentName)) { in performAccessibilityShortcutInternal()
2951 @ShortcutType int shortcutType) { in performAccessibilityFrameworkFeature() argument
3009 @ShortcutType int shortcutType, ComponentName assignedTarget) { in performAccessibilityShortcutTargetService() argument
3068 FLAGS_ACCESSIBILITY_MANAGER, "shortcutType=" + shortcutType); in getAccessibilityShortcutTargets()
3076 return getAccessibilityShortcutTargetsInternal(shortcutType); in getAccessibilityShortcutTargets()
3083 userState.getShortcutTargetsLocked(shortcutType)); in getAccessibilityShortcutTargetsInternal()
[all …]
H A DAccessibilityUserState.java696 public ArraySet<String> getShortcutTargetsLocked(@ShortcutType int shortcutType) { in getShortcutTargetsLocked() argument
697 if (shortcutType == ACCESSIBILITY_SHORTCUT_KEY) { in getShortcutTargetsLocked()
699 } else if (shortcutType == ACCESSIBILITY_BUTTON) { in getShortcutTargetsLocked()
745 public boolean removeShortcutTargetLocked(@ShortcutType int shortcutType, in removeShortcutTargetLocked() argument
747 return getShortcutTargetsLocked(shortcutType).removeIf(name -> { in removeShortcutTargetLocked()
/aosp12/frameworks/base/core/java/android/view/accessibility/
H A DIAccessibilityManager.aidl80 List<String> getAccessibilityShortcutTargets(int shortcutType); in getAccessibilityShortcutTargets() argument
H A DAccessibilityManager.java1568 public List<String> getAccessibilityShortcutTargets(@ShortcutType int shortcutType) { in getAccessibilityShortcutTargets() argument
1575 return service.getAccessibilityShortcutTargets(shortcutType); in getAccessibilityShortcutTargets()
/aosp12/frameworks/base/core/java/com/android/internal/app/
H A DChooserActivity.java2137 final int shortcutType = (appTargets == null ? TARGET_TYPE_SHORTCUTS_FROM_SHORTCUT_MANAGER :
2156 matchingShortcuts, resultList, appTargets, shortcutType);
2164 msg.arg1 = shortcutType;
2214 @Nullable List<AppTarget> allAppTargets, @ShareTargetType int shortcutType) {
2218 if (shortcutType == TARGET_TYPE_SHORTCUTS_FROM_SHORTCUT_MANAGER) {
2234 if (shortcutType == TARGET_TYPE_SHORTCUTS_FROM_PREDICTION_SERVICE) {
/aosp12/frameworks/base/services/core/java/com/android/server/stats/pull/
H A DStatsPullAtomService.java4517 private int convertToAccessibilityShortcutType(int shortcutType) {
4518 switch (shortcutType) {