Home
last modified time | relevance | path

Searched refs:mAccessibilityManager (Results 1 – 25 of 34) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DAccessibilityUtils.java49 private AccessibilityManager mAccessibilityManager; field in AccessibilityUtils
82 mAccessibilityManager = in initInternal()
94 return ENABLE_ACCESSIBILITY && mAccessibilityManager.isEnabled(); in isAccessibilityEnabled()
105 return isAccessibilityEnabled() && mAccessibilityManager.isTouchExplorationEnabled(); in isTouchExplorationEnabled()
206 if (!mAccessibilityManager.isEnabled()) { in announceForAccessibility()
262 if (mAccessibilityManager.isEnabled()) { in requestSendAccessibilityEvent()
263 mAccessibilityManager.sendAccessibilityEvent(event); in requestSendAccessibilityEvent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/
DAccessibilityUsagePreferenceControllerTest.java51 private ShadowAccessibilityManager mAccessibilityManager; field in AccessibilityUsagePreferenceControllerTest
57 mAccessibilityManager = Shadow.extract( in setUp()
69 mAccessibilityManager.setEnabledAccessibilityServiceList(new ArrayList<>()); in getAvailabilityStatus_noEnabledServices_shouldReturnUnsupported()
78 mAccessibilityManager.setEnabledAccessibilityServiceList( in getAvailabilityStatus_enabledServices_shouldReturnAvailable()
88 mAccessibilityManager.setEnabledAccessibilityServiceList(new ArrayList<>()); in updateState_noEnabledServices_shouldHidePreference()
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/viewmodel/
DFingerprintEnrollEnrollingViewModel.java85 private final AccessibilityManager mAccessibilityManager; field in FingerprintEnrollEnrollingViewModel
98 mAccessibilityManager = application.getSystemService(AccessibilityManager.class); in FingerprintEnrollEnrollingViewModel()
199 mAccessibilityManager.interrupt(); in clearTalkback()
208 return mAccessibilityManager.isEnabled(); in isAccessibilityEnabled()
220 mAccessibilityManager.sendAccessibilityEvent(e); in sendAccessibilityEvent()
229 return mAccessibilityManager.isTouchExplorationEnabled(); in isTouchExplorationEnabled()
DFingerprintEnrollFindSensorViewModel.java63 private final AccessibilityManager mAccessibilityManager; field in FingerprintEnrollFindSensorViewModel
70 mAccessibilityManager = application.getSystemService(AccessibilityManager.class); in FingerprintEnrollFindSensorViewModel()
127 return mAccessibilityManager.isEnabled(); in isAccessibilityEnabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/shortcuts/
DQuickSettingsShortcutOptionControllerTest.java76 private AccessibilityManager mAccessibilityManager; field in QuickSettingsShortcutOptionControllerTest
84 mAccessibilityManager = AccessibilityTestUtils.setupMockAccessibilityManager(mContext); in setUp()
169 when(mAccessibilityManager.getA11yFeatureToTileMap(UserHandle.myUserId())) in isShortcutAvailable_qsTileProvided_returnsTrue()
178 when(mAccessibilityManager.getA11yFeatureToTileMap(UserHandle.myUserId())) in isShortcutAvailable_qsTileNotProvided_returnsFalse()
190 when(mAccessibilityManager.getA11yFeatureToTileMap(UserHandle.myUserId())) in isShortcutAvailable_qsTileProvided_invalidUseCase_returnFalse()
193 when(mAccessibilityManager.getInstalledAccessibilityServiceList()) in isShortcutAvailable_qsTileProvided_invalidUseCase_returnFalse()
205 when(mAccessibilityManager.getA11yFeatureToTileMap(UserHandle.myUserId())) in isShortcutAvailable_qsTileProvided_validUseCase_returnTrue()
208 when(mAccessibilityManager.getInstalledAccessibilityServiceList()) in isShortcutAvailable_qsTileProvided_validUseCase_returnTrue()
DVolumeKeysShortcutOptionControllerTest.java64 private AccessibilityManager mAccessibilityManager; field in VolumeKeysShortcutOptionControllerTest
72 mAccessibilityManager = AccessibilityTestUtils.setupMockAccessibilityManager(mContext); in setUp()
128 verify(mAccessibilityManager).enableShortcutsForTargets( in enableShortcutForTargets_enableVolumeKeysShortcut_callA11yManager()
134 verifyNoMoreInteractions(mAccessibilityManager); in enableShortcutForTargets_enableVolumeKeysShortcut_callA11yManager()
152 verify(mAccessibilityManager).enableShortcutsForTargets( in enableShortcutForTargets_disableVolumeKeysShortcut_callA11yManager()
158 verifyNoMoreInteractions(mAccessibilityManager); in enableShortcutForTargets_disableVolumeKeysShortcut_callA11yManager()
DTwoFingerDoubleTapShortcutOptionControllerTest.java65 private AccessibilityManager mAccessibilityManager; field in TwoFingerDoubleTapShortcutOptionControllerTest
73 mAccessibilityManager = AccessibilityTestUtils.setupMockAccessibilityManager(mContext); in setUp()
163 verify(mAccessibilityManager).enableShortcutsForTargets( in enableShortcutForTargets_enableShortcut_callA11yManager()
169 verifyNoMoreInteractions(mAccessibilityManager); in enableShortcutForTargets_enableShortcut_callA11yManager()
190 verify(mAccessibilityManager).enableShortcutsForTargets( in enableShortcutForTargets_disableShortcut_callA11yManager()
196 verifyNoMoreInteractions(mAccessibilityManager); in enableShortcutForTargets_disableShortcut_callA11yManager()
DTripleTapShortcutOptionControllerTest.java70 private AccessibilityManager mAccessibilityManager; field in TripleTapShortcutOptionControllerTest
75 mAccessibilityManager = AccessibilityTestUtils.setupMockAccessibilityManager(mContext); in setUp()
202 verify(mAccessibilityManager).enableShortcutsForTargets( in enableShortcutForTargets_enableShortcut_callA11yManager()
208 verifyNoMoreInteractions(mAccessibilityManager); in enableShortcutForTargets_enableShortcut_callA11yManager()
229 verify(mAccessibilityManager).enableShortcutsForTargets( in enableShortcutForTargets_disableShortcut_callA11yManager()
235 verifyNoMoreInteractions(mAccessibilityManager); in enableShortcutForTargets_disableShortcut_callA11yManager()
DSoftwareShortcutOptionPreferenceControllerTest.java86 private AccessibilityManager mAccessibilityManager; field in SoftwareShortcutOptionPreferenceControllerTest
92 mAccessibilityManager = AccessibilityTestUtils.setupMockAccessibilityManager(mContext); in setUp()
207 verify(mAccessibilityManager).enableShortcutsForTargets( in enableShortcutForTargets_enableShortcut_callA11yManager()
213 verifyNoMoreInteractions(mAccessibilityManager); in enableShortcutForTargets_enableShortcut_callA11yManager()
247 verify(mAccessibilityManager).enableShortcutsForTargets( in enableShortcutForTargets_disableShortcut_callA11yManager()
253 verifyNoMoreInteractions(mAccessibilityManager); in enableShortcutForTargets_disableShortcut_callA11yManager()
/packages/apps/Settings/src/com/android/settings/privacy/
DAccessibilityUsagePreferenceController.java37 private final AccessibilityManager mAccessibilityManager; field in AccessibilityUsagePreferenceController
43 mAccessibilityManager = mContext.getSystemService(AccessibilityManager.class); in AccessibilityUsagePreferenceController()
44 mEnabledServiceInfos = mAccessibilityManager.getEnabledAccessibilityServiceList( in AccessibilityUsagePreferenceController()
51 mEnabledServiceInfos = mAccessibilityManager.getEnabledAccessibilityServiceList( in updateState()
/packages/apps/PhoneCommon/src/com/android/phone/common/dialpad/
DDialpadKeyButton.java51 private AccessibilityManager mAccessibilityManager; field in DialpadKeyButton
95 mAccessibilityManager = (AccessibilityManager) context.getSystemService( in initForAccessibility()
148 if (mAccessibilityManager.isEnabled() in onHoverEvent()
149 && mAccessibilityManager.isTouchExplorationEnabled()) { in onHoverEvent()
/packages/apps/TV/src/com/android/tv/menu/
DChannelsRowAdapter.java50 private final AccessibilityManager mAccessibilityManager; field in ChannelsRowAdapter
70 mAccessibilityManager = context.getSystemService(AccessibilityManager.class); in ChannelsRowAdapter()
71 mShowChannelUpDown = mAccessibilityManager.isEnabled(); in ChannelsRowAdapter()
72 mAccessibilityManager.addAccessibilityStateChangeListener(this); in ChannelsRowAdapter()
322 mAccessibilityManager.removeAccessibilityStateChangeListener(this); in release()
DMenuView.java197 AccessibilityManager mAccessibilityManager = in onRequestFocusInDescendants() local
200 if(mAccessibilityManager.isEnabled()) in onRequestFocusInDescendants()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DAccessibilityServiceResultTask.java49 private final AccessibilityManager mAccessibilityManager; field in AccessibilityServiceResultTask
63 mAccessibilityManager = in AccessibilityServiceResultTask()
70 final List<AccessibilityServiceInfo> services = mAccessibilityManager in query()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DUdfpsEnrollEnrollingView.java62 private AccessibilityManager mAccessibilityManager; field in UdfpsEnrollEnrollingView
88 mAccessibilityManager = accessibilityManager; in initView()
182 if (!mAccessibilityManager.isEnabled()) return; in setOnHoverListener()
197 mAccessibilityManager.isTouchExplorationEnabled(), mContext, in setOnHoverListener()
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/
DDeviceAsWebcamPreview.java94 private AccessibilityManager mAccessibilityManager; field in DeviceAsWebcamPreview
442 if (mAccessibilityManager != null) { in setupZoomUiControl()
443 mAccessibilityListener.onAccessibilityServicesStateChanged(mAccessibilityManager); in setupZoomUiControl()
615 mAccessibilityManager = getSystemService(AccessibilityManager.class); in onCreate()
616 if (mAccessibilityManager != null) { in onCreate()
617 mAccessibilityManager.addAccessibilityServicesStateChangeListener( in onCreate()
748 if (mAccessibilityManager != null) { in onDestroy()
749 mAccessibilityManager.removeAccessibilityServicesStateChangeListener( in onDestroy()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/remotepreview/
DRemotePreviewSession.java76 private final AccessibilityManager mAccessibilityManager; field in RemotePreviewSession
129 this.mAccessibilityManager = context.getSystemService(AccessibilityManager.class); in RemotePreviewSession()
394 updateAccessibilityState(mAccessibilityManager.isEnabled()); in initUI()
395 mAccessibilityManager.addAccessibilityStateChangeListener( in initUI()
400 mAccessibilityManager.removeAccessibilityStateChangeListener( in tearDownUI()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DToggleScreenMagnificationPreferenceFragmentTest.java134 private AccessibilityManager mAccessibilityManager; field in ToggleScreenMagnificationPreferenceFragmentTest
142 mAccessibilityManager = AccessibilityTestUtils.setupMockAccessibilityManager(mContext); in setUpTestFragment()
448 verify(mAccessibilityManager).enableShortcutsForTargets( in optInAllValuesToSettings_optInValue_callA11yManager()
451 verify(mAccessibilityManager).enableShortcutsForTargets( in optInAllValuesToSettings_optInValue_callA11yManager()
454 verify(mAccessibilityManager).enableShortcutsForTargets( in optInAllValuesToSettings_optInValue_callA11yManager()
457 verify(mAccessibilityManager).enableShortcutsForTargets( in optInAllValuesToSettings_optInValue_callA11yManager()
460 verifyNoMoreInteractions(mAccessibilityManager); in optInAllValuesToSettings_optInValue_callA11yManager()
586 verify(mAccessibilityManager).enableShortcutsForTargets( in optOutAllValuesToSettings_optOutValue_callA11yManager()
589 verify(mAccessibilityManager).enableShortcutsForTargets( in optOutAllValuesToSettings_optOutValue_callA11yManager()
592 verify(mAccessibilityManager).enableShortcutsForTargets( in optOutAllValuesToSettings_optOutValue_callA11yManager()
[all …]
DAccessibilitySettingsForSetupWizardTest.java88 private AccessibilityManager mAccessibilityManager; field in AccessibilitySettingsForSetupWizardTest
100 doReturn(mAccessibilityManager).when(mActivity).getSystemService( in setUp()
102 when(mAccessibilityManager.getInstalledAccessibilityServiceList()).thenReturn( in setUp()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/appprediction/
DAppsDividerView.java58 private final AccessibilityManager mAccessibilityManager; field in AppsDividerView
92 mAccessibilityManager = AccessibilityManager.getInstance(context); in AppsDividerView()
105 if (mAccessibilityManager.isEnabled() && !Utilities.isRunningInTestHarness()) { in setShowAllAppsLabel()
/packages/apps/Settings/src/com/android/settings/display/
DScreenResolutionFragment.java67 private AccessibilityManager mAccessibilityManager; field in ScreenResolutionFragment
78 mAccessibilityManager = context.getSystemService(AccessibilityManager.class); in onAttach()
239 if (mAccessibilityManager.isEnabled()) { in onRadioButtonClicked()
243 mAccessibilityManager.sendAccessibilityEvent(event); in onRadioButtonClicked()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmActivity.kt110 private var mAccessibilityManager: AccessibilityManager? = null variable in com.android.deskclock.alarms.AlarmActivity
175 mAccessibilityManager = getSystemService(ACCESSIBILITY_SERVICE) as AccessibilityManager? in onCreate()
416 if (mAccessibilityManager == null || !mAccessibilityManager!!.isEnabled()) {
419 } else if (mAccessibilityManager!!.isTouchExplorationEnabled()) {
426 mAccessibilityManager!!.getEnabledAccessibilityServiceList(FEEDBACK_GENERIC)
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java109 private AccessibilityManager mAccessibilityManager; field in AddItemActivity
147 mAccessibilityManager = in onCreate()
444 if (mAccessibilityManager.isEnabled()) { in sendWidgetAddedToScreenAccessibilityEvent()
450 mAccessibilityManager.sendAccessibilityEvent(event); in sendWidgetAddedToScreenAccessibilityEvent()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DTabFragment.java99 private AccessibilityManager mAccessibilityManager; field in TabFragment
292 mAccessibilityManager = context.getSystemService(AccessibilityManager.class); in onViewCreated()
293 mIsAccessibilityEnabled = mAccessibilityManager.isEnabled(); in onViewCreated()
305 mAccessibilityManager.addAccessibilityStateChangeListener( in onViewCreated()
312 if (mAccessibilityManager != null) { in onDestroyView()
313 mAccessibilityManager.removeAccessibilityStateChangeListener( in onDestroyView()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarStashController.java232 private final AccessibilityManager mAccessibilityManager; field in TaskbarStashController
272 mAccessibilityManager = mActivity.getSystemService(AccessibilityManager.class); in TaskbarStashController()
1134 mAccessibilityManager.unregisterSystemAction(SYSTEM_ACTION_ID_TASKBAR); in setUpTaskbarSystemAction()
1146 mAccessibilityManager.registerSystemAction(taskbarRemoteAction, in setUpTaskbarSystemAction()
1158 () -> mAccessibilityManager.unregisterSystemAction(SYSTEM_ACTION_ID_TASKBAR)); in onDestroy()
1207 return mAccessibilityManager.getRecommendedTimeoutMillis((int) NO_TOUCH_TIMEOUT_TO_STASH_MS, in getTaskbarAutoHideTimeout()

12