Searched refs:mFrameworkObjectProvider (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/java/com/android/internal/accessibility/ |
D | AccessibilityShortcutController.java | 84 public FrameworkObjectProvider mFrameworkObjectProvider = new FrameworkObjectProvider(); field in AccessibilityShortcutController 246 Toast warningToast = mFrameworkObjectProvider.makeToastFromText( in performAccessibilityShortcut() 253 mFrameworkObjectProvider.getAccessibilityManagerInstance(mContext) in performAccessibilityShortcut() 268 final AlertDialog alertDialog = mFrameworkObjectProvider.getAlertDialogBuilder( in createShortcutWarningDialog() 270 mFrameworkObjectProvider.getSystemUiContext()) in createShortcutWarningDialog() 297 mFrameworkObjectProvider.getAccessibilityManagerInstance(mContext); in getInfoForTargetService() 315 final AccessibilityServiceInfo serviceInfo = mFrameworkObjectProvider in getShortcutFeatureDescription() 332 mFrameworkObjectProvider.getAccessibilityManagerInstance(mContext); in isServiceEnabled() 349 final Ringtone tone = mFrameworkObjectProvider.getRingtone(mContext, in playNotificationTone() 385 mTts = mFrameworkObjectProvider.getTextToSpeech(mContext, this); in TtsPrompt()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/ |
D | AccessibilityShortcutControllerTest.java | 105 private @Mock FrameworkObjectProvider mFrameworkObjectProvider; field in AccessibilityShortcutControllerTest 147 when(mFrameworkObjectProvider.getAccessibilityManagerInstance(mContext)) in setUp() 149 when(mFrameworkObjectProvider.getAlertDialogBuilder(mContext)) in setUp() 151 when(mFrameworkObjectProvider.makeToastFromText(eq(mContext), anyObject(), anyInt())) in setUp() 153 when(mFrameworkObjectProvider.getSystemUiContext()).thenReturn(mContext); in setUp() 154 when(mFrameworkObjectProvider.getTextToSpeech(eq(mContext), any())) in setUp() 156 when(mFrameworkObjectProvider.getRingtone(eq(mContext), any())).thenReturn(mRingtone); in setUp() 333 verify(mFrameworkObjectProvider, times(0)).getTextToSpeech(any(), any()); in testOnAccessibilityShortcut_firstTime_showsWarningDialog() 471 verify(mFrameworkObjectProvider).getTextToSpeech(any(), onInitCap.capture()); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt() 495 verify(mFrameworkObjectProvider).getTextToSpeech(any(), onInitCap.capture()); in testOnAccessibilityShortcut_showsWarningDialog_ttsInitFail_noSpokenPrompt() [all …]
|