Searched refs:mAlertDialog (Results 1 – 5 of 5) sorted by relevance
114 private @Mock AlertDialog mAlertDialog; field in AccessibilityShortcutControllerTest188 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 …]
102 private AlertDialog mAlertDialog; field in AccessibilityShortcutController232 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()
90 private AlertDialog mAlertDialog; field in KeyguardSecurityContainer380 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()
39 protected AlertDialog mAlertDialog; field in ColorPickerDialog119 mAlertDialog = new AlertDialog.Builder(activity) in onCreateDialog()124 return mAlertDialog; in onCreateDialog()
2018 private AlertDialog mAlertDialog; field in EditStyledText.StyledTextDialog2193 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()