Home
last modified time | relevance | path

Searched refs:UserShortcutType (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/accessibility/common/
DShortcutConstants.java69 UserShortcutType.DEFAULT,
70 UserShortcutType.SOFTWARE,
71 UserShortcutType.HARDWARE,
72 UserShortcutType.TRIPLETAP,
73 UserShortcutType.TWOFINGER_DOUBLETAP,
74 UserShortcutType.QUICK_SETTINGS,
76 public @interface UserShortcutType { annotation in ShortcutConstants
93 UserShortcutType.SOFTWARE,
94 UserShortcutType.HARDWARE,
95 UserShortcutType.TRIPLETAP,
[all …]
/frameworks/base/core/java/com/android/internal/accessibility/util/
DShortcutUtils.java33 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
60 public static void optInValueToSettings(Context context, @UserShortcutType int shortcutType, in optInValueToSettings()
92 Context context, @UserShortcutType int shortcutType, @NonNull String componentId) { in optOutValueFromSettings()
123 @UserShortcutType int shortcutType, @NonNull String componentId) { in isComponentIdExistingInSettings()
151 public static boolean isShortcutContained(Context context, @UserShortcutType int shortcutType, in isShortcutContained()
165 public static String convertToKey(@UserShortcutType int type) { in convertToKey()
167 case UserShortcutType.SOFTWARE: in convertToKey()
169 case UserShortcutType.HARDWARE: in convertToKey()
171 case UserShortcutType.TRIPLETAP: in convertToKey()
173 case UserShortcutType.TWOFINGER_DOUBLETAP: in convertToKey()
[all …]
DAccessibilityStatsLogUtils.java26 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.HARDWARE;
27 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.QUICK_SE…
28 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.SOFTWARE;
53 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
83 ComponentName componentName, @UserShortcutType int shortcutType) { in logAccessibilityShortcutActivated()
101 @UserShortcutType int shortcutType, boolean serviceEnabled) { in logAccessibilityShortcutActivated()
240 @UserShortcutType int shortcutType) { in convertToLoggingShortcutType()
/frameworks/base/core/java/com/android/internal/accessibility/dialog/
DVolumeShortcutToggleAccessibilityServiceTarget.java19 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.HARDWARE;
26 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
35 @UserShortcutType int shortcutType, @NonNull AccessibilityServiceInfo serviceInfo) { in VolumeShortcutToggleAccessibilityServiceTarget()
DAccessibilityTarget.java19 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.HARDWARE;
20 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.SOFTWARE;
37 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
53 @UserShortcutType
67 public AccessibilityTarget(Context context, @UserShortcutType int shortcutType, in AccessibilityTarget()
156 public @UserShortcutType int getShortcutType() { in getShortcutType()
DAccessibilityTargetHelper.java25 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.SOFTWARE;
43 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
66 @UserShortcutType int shortcutType) { in getTargets()
109 @UserShortcutType int shortcutType) { in getInstalledTargets()
118 @UserShortcutType int shortcutType) { in getAccessibilityFilteredTargets()
151 @UserShortcutType int shortcutType) { in getAccessibilityServiceTargets()
178 @UserShortcutType int shortcutType) { in getAccessibilityActivityTargets()
197 @UserShortcutType int shortcutType) { in getAllowListingFeatureTargets()
278 @UserShortcutType int shortcutType, @NonNull AccessibilityServiceInfo info) { in createAccessibilityServiceTarget()
DInvisibleToggleAllowListingFeatureTarget.java23 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
31 InvisibleToggleAllowListingFeatureTarget(Context context, @UserShortcutType int shortcutType, in InvisibleToggleAllowListingFeatureTarget()
DInvisibleToggleAccessibilityServiceTarget.java26 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
40 Context context, @UserShortcutType int shortcutType, in InvisibleToggleAccessibilityServiceTarget()
DToggleAllowListingFeatureTarget.java28 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
37 ToggleAllowListingFeatureTarget(Context context, @UserShortcutType int shortcutType, in ToggleAllowListingFeatureTarget()
DAccessibilityActivityTarget.java28 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
35 AccessibilityActivityTarget(Context context, @UserShortcutType int shortcutType, in AccessibilityActivityTarget()
DAccessibilityServiceTarget.java28 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
38 AccessibilityServiceTarget(Context context, @UserShortcutType int shortcutType, in AccessibilityServiceTarget()
DToggleAccessibilityServiceTarget.java29 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
48 ToggleAccessibilityServiceTarget(Context context, @UserShortcutType int shortcutType, in ToggleAccessibilityServiceTarget()
DAccessibilityShortcutChooserActivity.java19 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
20 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.HARDWARE;
21 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.SOFTWARE;
52 @UserShortcutType
DAccessibilityButtonChooserActivity.java23 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.SOFTWARE;
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/util/
DShortcutUtilsTest.java114 ShortcutConstants.UserShortcutType.SOFTWARE, UserHandle.myUserId()) in getShortcutTargets_softwareShortcutNoService_emptyResult()
122 mContextSpy, ShortcutConstants.UserShortcutType.HARDWARE, in getShortcutTargets_volumeKeyShortcutNoService_emptyResult()
134 mContextSpy, ShortcutConstants.UserShortcutType.SOFTWARE, in getShortcutTargets_softwareShortcut1Service_return1Service()
146 mContextSpy, ShortcutConstants.UserShortcutType.HARDWARE, in getShortcutTargets_volumeShortcut2Service_return2Service()
159 mContextSpy, ShortcutConstants.UserShortcutType.TRIPLETAP, in getShortcutTargets_tripleTapShortcut_magnificationDisabled_emptyResult()
172 mContextSpy, ShortcutConstants.UserShortcutType.TRIPLETAP, in getShortcutTargets_tripleTapShortcut_magnificationEnabled_returnMagnification()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityManagerServiceTest.java104 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
1040 UserShortcutType.SOFTWARE, in enableShortcutsForTargets_permissionNotGranted_throwsException()
1057 UserShortcutType.SOFTWARE, in enableShortcutsForTargets_enableSoftwareShortcut_shortcutTurnedOn()
1063 mTestableContext, UserShortcutType.SOFTWARE, target in enableShortcutsForTargets_enableSoftwareShortcut_shortcutTurnedOn()
1085 UserShortcutType.HARDWARE, in enableHardwareShortcutsForTargets_shortcutDialogSetting_isShown()
1108 UserShortcutType.SOFTWARE, in enableShortcutsForTargets_disableSoftwareShortcut_shortcutTurnedOff()
1114 mTestableContext, UserShortcutType.SOFTWARE, target in enableShortcutsForTargets_disableSoftwareShortcut_shortcutTurnedOff()
1127 UserShortcutType.SOFTWARE, in enableShortcutsForTargets_enableSoftwareShortcutWithMagnification_menuSizeIncreased()
1150 UserShortcutType.SOFTWARE, in enableShortcutsForTargets_enableSoftwareShortcutWithMagnification_userConfigureSmallMenuSize_menuSizeNotChanged()
1174 UserShortcutType.SOFTWARE, in enableShortcutsForTargets_enableAlwaysOnServiceSoftwareShortcut_turnsOnAlwaysOnService()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityUserState.java29 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
779 public ArraySet<String> getShortcutTargetsLocked(@UserShortcutType int shortcutType) { in getShortcutTargetsLocked()
780 if (shortcutType == UserShortcutType.HARDWARE) { in getShortcutTargetsLocked()
782 } else if (shortcutType == UserShortcutType.SOFTWARE) { in getShortcutTargetsLocked()
784 } else if (shortcutType == UserShortcutType.QUICK_SETTINGS) { in getShortcutTargetsLocked()
786 } else if ((shortcutType == UserShortcutType.TRIPLETAP in getShortcutTargetsLocked()
788 shortcutType == UserShortcutType.TWOFINGER_DOUBLETAP in getShortcutTargetsLocked()
838 @UserShortcutType int shortcutType, ComponentName target) { in removeShortcutTargetLocked()
839 if (shortcutType == UserShortcutType.TRIPLETAP in removeShortcutTargetLocked()
840 || shortcutType == UserShortcutType.TWOFINGER_DOUBLETAP) { in removeShortcutTargetLocked()
[all …]
DAccessibilityManagerService.java49 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
1618 displayId, UserShortcutType.SOFTWARE, targetName)); in notifyAccessibilityButtonClicked()
1723 enableShortcutForTargets(/* enable= */ true, UserShortcutType.QUICK_SETTINGS, in notifyQuickSettingsTilesChanged()
1728 enableShortcutForTargets(/* enable= */ false, UserShortcutType.QUICK_SETTINGS, in notifyQuickSettingsTilesChanged()
2143 userState.getShortcutTargetsLocked(UserShortcutType.HARDWARE); in restoreAccessibilityShortcutTargetService()
2264 @UserShortcutType int shortcutType) { in showAccessibilityTargetsSelection()
2266 final String chooserClassName = (shortcutType == UserShortcutType.HARDWARE) in showAccessibilityTargetsSelection()
3404 userState.getShortcutTargetsLocked(UserShortcutType.HARDWARE); in readAccessibilityShortcutKeySettingLocked()
3420 userState.getShortcutTargetsLocked(UserShortcutType.QUICK_SETTINGS); in readAccessibilityQsTargetsLocked()
3435 userState.getShortcutTargetsLocked(UserShortcutType.SOFTWARE); in readAccessibilityButtonTargetsLocked()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/dialog/
DInvisibleToggleAccessibilityServiceTargetTest.java116 ShortcutConstants.UserShortcutType.HARDWARE, accessibilityServiceInfo); in setUp()
126 eq(ShortcutConstants.UserShortcutType.HARDWARE), in onCheckedChanged_true_callA11yManagerToUpdateShortcuts()
138 eq(ShortcutConstants.UserShortcutType.HARDWARE), in onCheckedChanged_false_callA11yManagerToUpdateShortcuts()
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityManagerTest.java57 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
324 UserShortcutType.HARDWARE, in enableShortcutsForTargets_catchRemoteExceptionAndRethrow()
334 int shortcutTypes = UserShortcutType.HARDWARE | UserShortcutType.TRIPLETAP; in enableShortcutsForTargets_verifyServiceMethodCalled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavBarHelperTest.java45 import com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType;
276 when(mAccessibilityManager.getAccessibilityShortcutTargets(UserShortcutType.SOFTWARE)) in initNavBarHelper_buttonModeNavBar_a11yButtonClickableState()
301 when(mAccessibilityManager.getAccessibilityShortcutTargets(UserShortcutType.SOFTWARE)) in onA11yServicesStateChangedWithMultipleServices_a11yButtonClickableState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewLayerTest.java235 ShortcutConstants.UserShortcutType.SOFTWARE)).thenReturn(stubShortcutTargets); in triggerDismissMenuAction_callsA11yManagerEnableShortcutsForTargets()
241 ShortcutConstants.UserShortcutType.SOFTWARE, in triggerDismissMenuAction_callsA11yManagerEnableShortcutsForTargets()
274 ShortcutConstants.UserShortcutType.HARDWARE)).thenReturn(stubShortcutTargets); in triggerDismissMenuAction_hasHardwareKeyShortcut_keepEnabledStatus()
442 super(context, ShortcutConstants.UserShortcutType.SOFTWARE, 0, false, in TestAccessibilityTarget()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewLayer.java25 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.HARDWARE;
26 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.SOFTWARE;
177 ShortcutConstants.UserShortcutType.SOFTWARE,
DMenuInfoRepository.java25 import static com.android.internal.accessibility.common.ShortcutConstants.UserShortcutType.SOFTWARE;
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavBarHelper.java393 ShortcutConstants.UserShortcutType.SOFTWARE); in updateA11yState()

12