Home
last modified time | relevance | path

Searched refs:mAlertDialog (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DAccessibilityShortcutControllerTest.java114 private @Mock AlertDialog mAlertDialog; field in AccessibilityShortcutControllerTest
188 when(mAlertDialogBuilder.create()).thenReturn(mAlertDialog); in setUp()
203 when(mAlertDialog.getWindow()).thenReturn(window); in setUp()
334 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_firstTime_showsWarningDialog()
373 verify(mAlertDialog, times(2)).show(); in testOnAccessibilityShortcut_ifCanceledFirstTime_showsWarningDialog()
425 verifyZeroInteractions(mAlertDialogBuilder, mAlertDialog); in testOnAccessibilityShortcut_afterDialogShown_shouldCallServer()
494 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
502 verify(mAlertDialog).setOnDismissListener(onDismissCap.capture()); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
503 onDismissCap.getValue().onDismiss(mAlertDialog); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
519 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_showsWarningDialog_ttsInitFail_noSpokenPrompt()
[all …]
/frameworks/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java102 private AlertDialog mAlertDialog; field in AccessibilityShortcutController
232 mAlertDialog = createShortcutWarningDialog(userId); in performAccessibilityShortcut()
233 if (mAlertDialog == null) { in performAccessibilityShortcut()
236 if (!performTtsPrompt(mAlertDialog)) { in performAccessibilityShortcut()
239 Window w = mAlertDialog.getWindow(); in performAccessibilityShortcut()
243 mAlertDialog.show(); in performAccessibilityShortcut()
249 if (mAlertDialog != null) { in performAccessibilityShortcut()
250 mAlertDialog.dismiss(); in performAccessibilityShortcut()
251 mAlertDialog = null; in performAccessibilityShortcut()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainer.java90 private AlertDialog mAlertDialog; field in KeyguardSecurityContainer
380 if (mAlertDialog != null) { in onPause()
381 mAlertDialog.dismiss(); in onPause()
382 mAlertDialog = null; in onPause()
578 if (mAlertDialog != null) { in showDialog()
579 mAlertDialog.dismiss(); in showDialog()
582 mAlertDialog = new AlertDialog.Builder(mContext) in showDialog()
589 mAlertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); in showDialog()
591 mAlertDialog.show(); in showDialog()
/frameworks/opt/colorpicker/src/com/android/colorpicker/
DColorPickerDialog.java39 protected AlertDialog mAlertDialog; field in ColorPickerDialog
119 mAlertDialog = new AlertDialog.Builder(activity) in onCreateDialog()
124 return mAlertDialog; in onCreateDialog()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java2018 private AlertDialog mAlertDialog; field in EditStyledText.StyledTextDialog
2193 if (mAlertDialog != null) { in buildAndShowColorDialogue()
2194 mAlertDialog.setView(null); in buildAndShowColorDialogue()
2195 mAlertDialog.dismiss(); in buildAndShowColorDialogue()
2196 mAlertDialog = null; in buildAndShowColorDialogue()
2207 if (mAlertDialog != null) { in buildAndShowColorDialogue()
2208 mAlertDialog.setView(null); in buildAndShowColorDialogue()
2209 mAlertDialog.dismiss(); in buildAndShowColorDialogue()
2210 mAlertDialog = null; in buildAndShowColorDialogue()
2244 mAlertDialog = mBuilder.show(); in buildAndShowColorDialogue()