Home
last modified time | relevance | path

Searched refs:shortcutTargets (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityUserStateTest.java306 final ArraySet<String> shortcutTargets = new ArraySet<>(); in doesShortcutTargetsStringContain_returnFalse() local
307 shortcutTargets.add(COMPONENT_NAME.flattenToString()); in doesShortcutTargetsStringContain_returnFalse()
308 assertFalse(doesShortcutTargetsStringContain(shortcutTargets, in doesShortcutTargetsStringContain_returnFalse()
314 final ArraySet<String> shortcutTargets = new ArraySet<>(); in isAssignedToShortcutLocked_withDifferentTypeComponentString_returnTrue() local
315 shortcutTargets.add(COMPONENT_NAME1.flattenToShortString()); in isAssignedToShortcutLocked_withDifferentTypeComponentString_returnTrue()
316 shortcutTargets.add(COMPONENT_NAME2.flattenToString()); in isAssignedToShortcutLocked_withDifferentTypeComponentString_returnTrue()
318 assertTrue(doesShortcutTargetsStringContain(shortcutTargets, in isAssignedToShortcutLocked_withDifferentTypeComponentString_returnTrue()
320 assertTrue(doesShortcutTargetsStringContain(shortcutTargets, in isAssignedToShortcutLocked_withDifferentTypeComponentString_returnTrue()
/frameworks/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java420 String shortcutTargets = Settings.Secure.getStringForUser(mContext.getContentResolver(), in hasShortcutTarget() local
424 if (shortcutTargets == null) { in hasShortcutTarget()
425 shortcutTargets = mContext.getString(R.string.config_defaultAccessibilityService); in hasShortcutTarget()
427 return !TextUtils.isEmpty(shortcutTargets); in hasShortcutTarget()
436 final List<String> shortcutTargets = mFrameworkObjectProvider in getShortcutTargetComponentName() local
439 if (shortcutTargets.size() != 1) { in getShortcutTargetComponentName()
442 return ComponentName.unflattenFromString(shortcutTargets.get(0)); in getShortcutTargetComponentName()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityUserState.java782 public static boolean doesShortcutTargetsStringContain(Collection<String> shortcutTargets, in doesShortcutTargetsStringContain() argument
784 if (shortcutTargets == null || targetName == null) { in doesShortcutTargetsStringContain()
789 if (shortcutTargets.contains(targetName)) { in doesShortcutTargetsStringContain()
796 for (String stringName : shortcutTargets) { in doesShortcutTargetsStringContain()
DAccessibilityManagerService.java2535 final List<String> shortcutTargets = getAccessibilityShortcutTargetsInternal(shortcutType); in performAccessibilityShortcutInternal() local
2536 if (shortcutTargets.isEmpty()) { in performAccessibilityShortcutInternal()
2541 if (targetName != null && !doesShortcutTargetsStringContain(shortcutTargets, targetName)) { in performAccessibilityShortcutInternal()
2547 if (shortcutTargets.size() > 1) { in performAccessibilityShortcutInternal()
2551 targetName = shortcutTargets.get(0); in performAccessibilityShortcutInternal()
2708 final ArrayList<String> shortcutTargets = new ArrayList<>( in getAccessibilityShortcutTargetsInternal() local
2711 return shortcutTargets; in getAccessibilityShortcutTargetsInternal()
2723 shortcutTargets.add(serviceName); in getAccessibilityShortcutTargetsInternal()
2726 return shortcutTargets; in getAccessibilityShortcutTargetsInternal()