Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputBroadcastDialog.java83 AlertDialog mAlertDialog; field in MediaOutputBroadcastDialog
104 if (mAlertDialog == null || mBroadcastErrorMessage == null) {
125 Button positiveBtn = mAlertDialog.getButton(AlertDialog.BUTTON_POSITIVE);
145 if (mAlertDialog == null || mBroadcastErrorMessage == null) {
160 Button positiveBtn = mAlertDialog.getButton(AlertDialog.BUTTON_POSITIVE);
442 mAlertDialog = new Builder(mContext) in launchBroadcastUpdatedDialog()
453 mAlertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); in launchBroadcastUpdatedDialog()
454 SystemUIDialog.setShowForAllUsers(mAlertDialog, true); in launchBroadcastUpdatedDialog()
455 SystemUIDialog.registerDismissListener(mAlertDialog); in launchBroadcastUpdatedDialog()
456 mAlertDialog.show(); in launchBroadcastUpdatedDialog()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/logcat/
DLogAccessDialogActivity.java70 private AlertDialog.Builder mAlertDialog; field in LogAccessDialogActivity
116 mAlertDialog = new AlertDialog.Builder(this, themeId); in onCreate()
117 mAlertDialog.setView(mAlertView); in onCreate()
118 mAlertDialog.setOnCancelListener(dialog -> declineLogAccess()); in onCreate()
119 mAlertDialog.setOnDismissListener(dialog -> { in onCreate()
125 mAlert = mAlertDialog.create(); in onCreate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputBroadcastDialogTest.java152 if (mMediaOutputBroadcastDialog.mAlertDialog != null){ in tearDown()
153 mMediaOutputBroadcastDialog.mAlertDialog.dismiss(); in tearDown()
290 EditText editText = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_nameLengthMoreThanMax_showErrorMessage()
292 TextView broadcastErrorMessage = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_nameLengthMoreThanMax_showErrorMessage()
314 EditText editText = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_enterValidNameAfterLengthMoreThanMax_noErrorMessage()
316 TextView broadcastErrorMessage = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_enterValidNameAfterLengthMoreThanMax_noErrorMessage()
344 EditText editText = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_codeLengthMoreThanMax_showErrorMessage()
346 TextView broadcastErrorMessage = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_codeLengthMoreThanMax_showErrorMessage()
368 EditText editText = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_codeLengthLessThanMin_showErrorMessage()
370 TextView broadcastErrorMessage = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_codeLengthLessThanMin_showErrorMessage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegate.java115 private AlertDialog mAlertDialog; field in InternetDialogDelegate
757 mAlertDialog = new AlertDialog.Builder(context) in showTurnOffMobileDialog()
771 mAlertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); in showTurnOffMobileDialog()
772 SystemUIDialog.setShowForAllUsers(mAlertDialog, true); in showTurnOffMobileDialog()
773 SystemUIDialog.registerDismissListener(mAlertDialog); in showTurnOffMobileDialog()
774 SystemUIDialog.setWindowOnTop(mAlertDialog, mKeyguard.isShowing()); in showTurnOffMobileDialog()
775 mDialogTransitionAnimator.showFromDialog(mAlertDialog, dialog, null, false); in showTurnOffMobileDialog()
784 mAlertDialog = new AlertDialog.Builder(context) in showTurnOffAutoDataSwitchDialog()
799 mAlertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); in showTurnOffAutoDataSwitchDialog()
800 SystemUIDialog.setShowForAllUsers(mAlertDialog, true); in showTurnOffAutoDataSwitchDialog()
[all …]
/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/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java130 private AlertDialog mAlertDialog; field in AccessibilityShortcutController
265 mAlertDialog = createShortcutWarningDialog(userId); in performAccessibilityShortcut()
266 if (mAlertDialog == null) { in performAccessibilityShortcut()
269 if (!performTtsPrompt(mAlertDialog)) { in performAccessibilityShortcut()
272 Window w = mAlertDialog.getWindow(); in performAccessibilityShortcut()
276 mAlertDialog.show(); in performAccessibilityShortcut()
285 if (mAlertDialog != null) { in performAccessibilityShortcut()
286 mAlertDialog.dismiss(); in performAccessibilityShortcut()
287 mAlertDialog = null; in performAccessibilityShortcut()
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DAccessibilityShortcutControllerTest.java128 private @Mock AlertDialog mAlertDialog; field in AccessibilityShortcutControllerTest
203 when(mAlertDialogBuilder.create()).thenReturn(mAlertDialog); in setUp()
218 when(mAlertDialog.getWindow()).thenReturn(window); in setUp()
378 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_firstTime_showsWarningDialog()
419 verify(mAlertDialog, times(2)).show(); in testOnAccessibilityShortcut_ifCanceledFirstTime_showsWarningDialog()
631 verifyZeroInteractions(mAlertDialogBuilder, mAlertDialog); in testOnAccessibilityShortcut_afterDialogShown_shouldCallServer()
773 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
781 verify(mAlertDialog).setOnDismissListener(onDismissCap.capture()); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
782 onDismissCap.getValue().onDismiss(mAlertDialog); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
799 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_showsWarningDialog_ttsInitFail_noSpokenPrompt()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainer.java155 private AlertDialog mAlertDialog; field in KeyguardSecurityContainer
440 if (mAlertDialog != null) { in onPause()
441 mAlertDialog.dismiss(); in onPause()
442 mAlertDialog = null; in onPause()
690 if (mAlertDialog != null) { in showDialog()
691 mAlertDialog.dismiss(); in showDialog()
694 mAlertDialog = new AlertDialog.Builder(mContext) in showDialog()
701 mAlertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); in showDialog()
703 mAlertDialog.show(); in showDialog()
/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()