Home
last modified time | relevance | path

Searched refs:mFrameworkObjectProvider (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java119 public FrameworkObjectProvider mFrameworkObjectProvider = new FrameworkObjectProvider(); field in AccessibilityShortcutController
254 mFrameworkObjectProvider.getAccessibilityManagerInstance(mContext) in performAccessibilityShortcut()
286 Toast warningToast = mFrameworkObjectProvider.makeToastFromText( in showToast()
299 final AlertDialog alertDialog = mFrameworkObjectProvider.getAlertDialogBuilder( in createShortcutWarningDialog()
301 mFrameworkObjectProvider.getSystemUiContext()) in createShortcutWarningDialog()
359 mFrameworkObjectProvider.getAccessibilityManagerInstance(mContext); in getInfoForTargetService()
374 final AccessibilityServiceInfo serviceInfo = mFrameworkObjectProvider in getShortcutFeatureDescription()
391 mFrameworkObjectProvider.getAccessibilityManagerInstance(mContext); in isServiceEnabled()
408 final Ringtone tone = mFrameworkObjectProvider.getRingtone(mContext, in playNotificationTone()
456 final List<String> shortcutTargets = mFrameworkObjectProvider in getShortcutTargetComponentName()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DAccessibilityShortcutControllerTest.java110 private @Mock FrameworkObjectProvider mFrameworkObjectProvider; field in AccessibilityShortcutControllerTest
154 when(mFrameworkObjectProvider.getAccessibilityManagerInstance(mContext)) in setUp()
158 when(mFrameworkObjectProvider.getAlertDialogBuilder(mContext)) in setUp()
160 when(mFrameworkObjectProvider.makeToastFromText(eq(mContext), anyObject(), anyInt())) in setUp()
162 when(mFrameworkObjectProvider.getSystemUiContext()).thenReturn(mContext); in setUp()
163 when(mFrameworkObjectProvider.getTextToSpeech(eq(mContext), any())) in setUp()
165 when(mFrameworkObjectProvider.getRingtone(eq(mContext), any())).thenReturn(mRingtone); in setUp()
338 verify(mFrameworkObjectProvider, times(0)).getTextToSpeech(any(), any()); in testOnAccessibilityShortcut_firstTime_showsWarningDialog()
497 verify(mFrameworkObjectProvider).getTextToSpeech(any(), onInitCap.capture()); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
522 verify(mFrameworkObjectProvider).getTextToSpeech(any(), onInitCap.capture()); in testOnAccessibilityShortcut_showsWarningDialog_ttsInitFail_noSpokenPrompt()
[all …]