Searched refs:shortcutTargets (Results 1 – 4 of 4) sorted by relevance
306 final ArraySet<String> shortcutTargets = new ArraySet<>(); in doesShortcutTargetsStringContain_returnFalse() local307 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() local315 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()
420 String shortcutTargets = Settings.Secure.getStringForUser(mContext.getContentResolver(), in hasShortcutTarget() local424 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() local439 if (shortcutTargets.size() != 1) { in getShortcutTargetComponentName()442 return ComponentName.unflattenFromString(shortcutTargets.get(0)); in getShortcutTargetComponentName()
782 public static boolean doesShortcutTargetsStringContain(Collection<String> shortcutTargets, in doesShortcutTargetsStringContain() argument784 if (shortcutTargets == null || targetName == null) { in doesShortcutTargetsStringContain()789 if (shortcutTargets.contains(targetName)) { in doesShortcutTargetsStringContain()796 for (String stringName : shortcutTargets) { in doesShortcutTargetsStringContain()
2535 final List<String> shortcutTargets = getAccessibilityShortcutTargetsInternal(shortcutType); in performAccessibilityShortcutInternal() local2536 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() local2711 return shortcutTargets; in getAccessibilityShortcutTargetsInternal()2723 shortcutTargets.add(serviceName); in getAccessibilityShortcutTargetsInternal()2726 return shortcutTargets; in getAccessibilityShortcutTargetsInternal()