Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java78 private AlertDialog mAlertDialog; field in AccessibilityShortcutController
212 mAlertDialog = createShortcutWarningDialog(userId); in performAccessibilityShortcut()
213 if (mAlertDialog == null) { in performAccessibilityShortcut()
216 if (!performTtsPrompt(mAlertDialog)) { in performAccessibilityShortcut()
219 Window w = mAlertDialog.getWindow(); in performAccessibilityShortcut()
223 mAlertDialog.show(); in performAccessibilityShortcut()
228 if (mAlertDialog != null) { in performAccessibilityShortcut()
229 mAlertDialog.dismiss(); in performAccessibilityShortcut()
230 mAlertDialog = null; in performAccessibilityShortcut()
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DAccessibilityShortcutControllerTest.java109 private @Mock AlertDialog mAlertDialog; field in AccessibilityShortcutControllerTest
176 when(mAlertDialogBuilder.create()).thenReturn(mAlertDialog); in setUp()
191 when(mAlertDialog.getWindow()).thenReturn(window); in setUp()
329 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_firstTime_showsWarningDialog()
367 verify(mAlertDialog, times(2)).show(); in testOnAccessibilityShortcut_ifCanceledFirstTime_showsWarningDialog()
415 verifyZeroInteractions(mAlertDialogBuilder, mAlertDialog); in testOnAccessibilityShortcut_afterDialogShown_shouldCallServer()
468 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
476 verify(mAlertDialog).setOnDismissListener(onDismissCap.capture()); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
477 onDismissCap.getValue().onDismiss(mAlertDialog); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
492 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_showsWarningDialog_ttsInitFail_noSpokenPrompt()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainer.java88 private AlertDialog mAlertDialog; field in KeyguardSecurityContainer
154 if (mAlertDialog != null) { in onPause()
155 mAlertDialog.dismiss(); in onPause()
156 mAlertDialog = null; in onPause()
339 if (mAlertDialog != null) { in showDialog()
340 mAlertDialog.dismiss(); in showDialog()
343 mAlertDialog = new AlertDialog.Builder(mContext) in showDialog()
350 mAlertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); in showDialog()
352 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DConnectionFailureNotifierTest.java63 @Mock private AlertDialog mAlertDialog; field in ConnectionFailureNotifierTest
83 any())).thenReturn(mAlertDialog); in setUp()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNetworkSuggestionsManager.java115 private AlertDialog mAlertDialog; field in WifiNetworkSuggestionsManager
817 if(mAlertDialog!=null){ in sendUserApprovalNotification()
818 mAlertDialog.dismiss(); in sendUserApprovalNotification()
819 mAlertDialog = null; in sendUserApprovalNotification()
850 mAlertDialog = builder.create(); in sendUserApprovalNotification()
851 mAlertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); in sendUserApprovalNotification()
853 mAlertDialog.show(); in sendUserApprovalNotification()
/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()