/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/ |
H A D | MediaOutputBroadcastDialog.java | 83 AlertDialog mAlertDialog; field in MediaOutputBroadcastDialog 104 if (mAlertDialog == null || mBroadcastErrorMessage == null) { 438 mAlertDialog = new Builder(mContext) in launchBroadcastUpdatedDialog() 450 SystemUIDialog.setShowForAllUsers(mAlertDialog, true); in launchBroadcastUpdatedDialog() 451 SystemUIDialog.registerDismissListener(mAlertDialog); in launchBroadcastUpdatedDialog() 452 mAlertDialog.show(); in launchBroadcastUpdatedDialog() 505 if (mAlertDialog != null) { in handleLeBroadcastStarted() 506 mAlertDialog.dismiss(); in handleLeBroadcastStarted() 528 if (mAlertDialog != null) { in handleLeBroadcastUpdated() 529 mAlertDialog.dismiss(); in handleLeBroadcastUpdated() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/logcat/ |
H A D | LogAccessDialogActivity.java | 70 private AlertDialog.Builder mAlertDialog; field in LogAccessDialogActivity 115 mAlertDialog = new AlertDialog.Builder(this, themeId); in onCreate() 116 mAlertDialog.setView(mAlertView); in onCreate() 117 mAlertDialog.setOnCancelListener(dialog -> declineLogAccess()); in onCreate() 118 mAlertDialog.setOnDismissListener(dialog -> finish()); in onCreate() 121 mAlert = mAlertDialog.create(); in onCreate()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/ |
H A D | MediaOutputBroadcastDialogTest.java | 139 if (mMediaOutputBroadcastDialog.mAlertDialog != null){ in tearDown() 140 mMediaOutputBroadcastDialog.mAlertDialog.dismiss(); in tearDown() 277 EditText editText = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_nameLengthMoreThanMax_showErrorMessage() 279 TextView broadcastErrorMessage = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_nameLengthMoreThanMax_showErrorMessage() 301 EditText editText = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_enterValidNameAfterLengthMoreThanMax_noErrorMessage() 303 TextView broadcastErrorMessage = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_enterValidNameAfterLengthMoreThanMax_noErrorMessage() 331 EditText editText = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_codeLengthMoreThanMax_showErrorMessage() 333 TextView broadcastErrorMessage = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_codeLengthMoreThanMax_showErrorMessage() 355 EditText editText = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_codeLengthLessThanMin_showErrorMessage() 357 TextView broadcastErrorMessage = mMediaOutputBroadcastDialog.mAlertDialog.findViewById( in afterTextChanged_codeLengthLessThanMin_showErrorMessage()
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/ |
H A D | AccessibilityShortcutControllerTest.java | 119 private @Mock AlertDialog mAlertDialog; field in AccessibilityShortcutControllerTest 193 when(mAlertDialogBuilder.create()).thenReturn(mAlertDialog); in setUp() 208 when(mAlertDialog.getWindow()).thenReturn(window); in setUp() 350 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_firstTime_showsWarningDialog() 389 verify(mAlertDialog, times(2)).show(); in testOnAccessibilityShortcut_ifCanceledFirstTime_showsWarningDialog() 441 verifyZeroInteractions(mAlertDialogBuilder, mAlertDialog); in testOnAccessibilityShortcut_afterDialogShown_shouldCallServer() 543 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt() 552 onDismissCap.getValue().onDismiss(mAlertDialog); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt() 568 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_showsWarningDialog_ttsInitFail_noSpokenPrompt() 593 verify(mAlertDialog).show(); in testOnAccessibilityShortcut_showsWarningDialog_ttsLongTimeInit_retrySpoken() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/ |
H A D | InternetDialog.java | 104 private AlertDialog mAlertDialog; field in InternetDialog 683 mAlertDialog = new Builder(mContext) in showTurnOffMobileDialog() 697 SystemUIDialog.setShowForAllUsers(mAlertDialog, true); in showTurnOffMobileDialog() 698 SystemUIDialog.registerDismissListener(mAlertDialog); in showTurnOffMobileDialog() 699 SystemUIDialog.setWindowOnTop(mAlertDialog, mKeyguard.isShowing()); in showTurnOffMobileDialog() 700 mDialogLaunchAnimator.showFromDialog(mAlertDialog, this, null, false); in showTurnOffMobileDialog() 708 mAlertDialog = new Builder(mContext) in showTurnOffAutoDataSwitchDialog() 723 SystemUIDialog.setShowForAllUsers(mAlertDialog, true); in showTurnOffAutoDataSwitchDialog() 724 SystemUIDialog.registerDismissListener(mAlertDialog); in showTurnOffAutoDataSwitchDialog() 725 SystemUIDialog.setWindowOnTop(mAlertDialog, mKeyguard.isShowing()); in showTurnOffAutoDataSwitchDialog() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/accessibility/ |
H A D | AccessibilityShortcutController.java | 120 private AlertDialog mAlertDialog; field in AccessibilityShortcutController 254 mAlertDialog = createShortcutWarningDialog(userId); in performAccessibilityShortcut() 255 if (mAlertDialog == null) { in performAccessibilityShortcut() 258 if (!performTtsPrompt(mAlertDialog)) { in performAccessibilityShortcut() 261 Window w = mAlertDialog.getWindow(); in performAccessibilityShortcut() 265 mAlertDialog.show(); in performAccessibilityShortcut() 271 if (mAlertDialog != null) { in performAccessibilityShortcut() 272 mAlertDialog.dismiss(); in performAccessibilityShortcut() 273 mAlertDialog = null; in performAccessibilityShortcut()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardSecurityContainer.java | 154 private AlertDialog mAlertDialog; field in KeyguardSecurityContainer 437 if (mAlertDialog != null) { in onPause() 438 mAlertDialog.dismiss(); in onPause() 439 mAlertDialog = null; in onPause() 687 if (mAlertDialog != null) { in showDialog() 688 mAlertDialog.dismiss(); in showDialog() 691 mAlertDialog = new AlertDialog.Builder(mContext) in showDialog() 698 mAlertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); in showDialog() 700 mAlertDialog.show(); in showDialog()
|