/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothRenameDialogFragment.java | 55 private AlertDialog mAlertDialog; field in BluetoothRenameDialogFragment 83 return mAlertDialog; in onCreateDialog() 97 mAlertDialog = builder.create(); in createAlertDialog() 99 mAlertDialog.setOnShowListener(d -> { in createAlertDialog() 142 mAlertDialog = null; in onDestroy() 179 if (mAlertDialog != null && mAlertDialog.isShowing()) { in onEditorAction() 180 mAlertDialog.dismiss(); in onEditorAction() 188 if (mAlertDialog != null) { in refreshRenameButton() 189 Button renameButton = mAlertDialog.getButton(DialogInterface.BUTTON_POSITIVE); in refreshRenameButton() 204 return mAlertDialog.getWindow().findViewById(R.id.textbox); in getDeviceNameView()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothNameDialogFragment.java | 54 AlertDialog mAlertDialog; field in BluetoothNameDialogFragment 95 mAlertDialog = builder.create(); in onCreateDialog() 96 mAlertDialog.setOnShowListener(d -> { in onCreateDialog() 106 return mAlertDialog; in onCreateDialog() 137 if (mAlertDialog != null && mAlertDialog.isShowing()) { in onEditorAction() 138 mAlertDialog.dismiss(); in onEditorAction() 149 mAlertDialog = null; in onDestroy() 158 mOkButton = mAlertDialog.getButton(DialogInterface.BUTTON_POSITIVE); in onResume()
|
D | BluetoothBroadcastDialog.java | 59 private AlertDialog mAlertDialog; field in BluetoothBroadcastDialog 115 mAlertDialog = new AlertDialog.Builder(mContext, in onCreateDialog() 120 return mAlertDialog; in onCreateDialog()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | RestrictedSettingsFragmentTest.java | 38 private AlertDialog mAlertDialog; field in RestrictedSettingsFragmentTest 54 doReturn(true).when(mAlertDialog).isShowing(); in onActivityResult_dismissesDialogOnOk() 55 mFragment.mActionDisabledDialog = mAlertDialog; in onActivityResult_dismissesDialogOnOk() 61 verify(mAlertDialog, times(1)).setOnDismissListener(isNull()); in onActivityResult_dismissesDialogOnOk() 62 verify(mAlertDialog, times(1)).dismiss(); in onActivityResult_dismissesDialogOnOk()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastOptOutActivityTest.java | 39 private AlertDialog mAlertDialog; field in CellBroadcastOptOutActivityTest 46 mAlertDialog = alertDialog; in setCreatedAlertDialog() 60 AlertDialog alertDialog = activityUT.mAlertDialog; in testOnCreate_shouldCreateAlertDialog() 77 assertThat(mAlertDialog).isNotNull(); in testShowOptOutDialog_shouldCreateAlertDialog() 79 verify(mMockShowDialog).show(mAlertDialog); in testShowOptOutDialog_shouldCreateAlertDialog()
|
/packages/apps/Stk/src/com/android/stk/ |
D | ToneDialog.java | 44 private AlertDialog mAlertDialog; field in ToneDialog 92 mAlertDialog = alertDialogBuilder.create(); in onCreate() 93 mAlertDialog.show(); in onCreate() 109 if (mAlertDialog != null && mAlertDialog.isShowing()) { in onDestroy() 110 mAlertDialog.dismiss(); in onDestroy() 111 mAlertDialog = null; in onDestroy()
|
D | StkDialogActivity.java | 62 private AlertDialog mAlertDialog; field in StkDialogActivity 149 mAlertDialog = alertDialogBuilder.create(); in onCreate() 150 mAlertDialog.setCanceledOnTouchOutside(false); in onCreate() 151 mAlertDialog.show(); in onCreate() 221 if (mAlertDialog != null && mAlertDialog.isShowing()) { in onDestroy() 222 mAlertDialog.dismiss(); in onDestroy() 223 mAlertDialog = null; in onDestroy()
|
D | StkAppService.java | 177 private AlertDialog mAlertDialog = null; field in StkAppService 409 if (mAlertDialog != null && mAlertDialog.isShowing()) { in onDestroy() 410 mAlertDialog.dismiss(); in onDestroy() 411 mAlertDialog = null; in onDestroy() 2344 mAlertDialog = new AlertDialog.Builder(mContext) in launchOpenChannelDialog() 2369 mAlertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); in launchOpenChannelDialog() 2372 mAlertDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); in launchOpenChannelDialog() 2375 mAlertDialog.show(); in launchOpenChannelDialog()
|
/packages/services/Telephony/src/com/android/phone/ |
D | EmergencyCallbackModeExitDialog.java | 70 AlertDialog mAlertDialog = null; field in EmergencyCallbackModeExitDialog 222 mAlertDialog.setMessage(text); in showEmergencyCallbackModeExitDialog() 242 mAlertDialog = new AlertDialog.Builder(EmergencyCallbackModeExitDialog.this, in onCreateDialog() 273 mAlertDialog.setOnCancelListener(this); in onCreateDialog() 274 return mAlertDialog; in onCreateDialog() 277 mAlertDialog = new AlertDialog.Builder(EmergencyCallbackModeExitDialog.this, in onCreateDialog() 290 mAlertDialog.setOnCancelListener(this); in onCreateDialog() 291 return mAlertDialog; in onCreateDialog() 353 if (mAlertDialog != null) 354 mAlertDialog.dismiss();
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | ScreenFlashNotificationColorDialogFragmentTest.java | 66 private AlertDialog mAlertDialog; field in ScreenFlashNotificationColorDialogFragmentTest 88 assertThat(mAlertDialog.isShowing()).isTrue(); in test_assertShow() 94 assertThat(mAlertDialog.isShowing()).isTrue(); in clickNeutral_assertShow() 116 assertThat(mAlertDialog.isShowing()).isFalse(); in clickNegative_assertNotShow() 122 assertThat(mAlertDialog.isShowing()).isFalse(); in clickPositive_assertNotShow() 192 mAlertDialog.getButton(whichButton).performClick(); in performClickOnDialog() 215 mAlertDialog = (AlertDialog) fragment.requireDialog(); in setupFragment() 217 mColorSelectorLayout = mAlertDialog.findViewById(R.id.color_selector_preference); in setupFragment()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | ConfirmConnectToWifiNetworkActivity.java | 26 private AlertDialog mAlertDialog; field in ConfirmConnectToWifiNetworkActivity 39 mAlertDialog = new AlertDialog.Builder(this, R.style.DialogAlertDayNight) in onCreate() 56 mAlertDialog.show(); in onCreate() 60 mAlertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener(this); in onCreate() 88 mAlertDialog.dismiss(); in onClick() 139 mAlertDialog.dismiss(); in onDestroy()
|
D | NfcEnableAllowlistActivity.java | 42 AlertDialog mAlertDialog = new AlertDialog.Builder(this, R.style.DialogAlertDayNight) in onCreate() local 48 mAlertDialog.show(); in onCreate() 50 mAlertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener(this); in onCreate() 51 mAlertDialog.getButton(AlertDialog.BUTTON_NEGATIVE).setOnClickListener( in onCreate()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | AbstractGalleryActivity.java | 64 private AlertDialog mAlertDialog = null; field in AbstractGalleryActivity 147 if (mAlertDialog != null) { in onStorageReady() 148 mAlertDialog.dismiss(); in onStorageReady() 149 mAlertDialog = null; in onStorageReady() 180 mAlertDialog = builder.show(); in onStart() 195 if (mAlertDialog != null) { in onStop() 197 mAlertDialog.dismiss(); in onStop() 198 mAlertDialog = null; in onStop()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiDialogManager.java | 478 private AlertDialog mAlertDialog; field in WifiDialogManager.LegacySimpleDialogHandle 529 if (mAlertDialog != null && mAlertDialog.isShowing()) { in launchDialog() 531 mAlertDialog.setOnDismissListener(null); in launchDialog() 532 mAlertDialog.dismiss(); in launchDialog() 540 mAlertDialog = mFrameworkFacade.makeAlertDialogBuilder( in launchDialog() 586 mAlertDialog = null; in launchDialog() 591 mAlertDialog.setCanceledOnTouchOutside(mContext.getResources().getBoolean( in launchDialog() 593 final Window window = mAlertDialog.getWindow(); in launchDialog() 607 mAlertDialog.show(); in launchDialog() 608 TextView messageView = mAlertDialog.findViewById(android.R.id.message); in launchDialog() [all …]
|
/packages/apps/Settings/src/com/android/settings/localepicker/ |
D | LocaleDialogFragment.java | 61 private AlertDialog mAlertDialog; field in LocaleDialogFragment 123 mAlertDialog = builder.create(); in onCreateDialog() 125 mAlertDialog.setCanceledOnTouchOutside(false); in onCreateDialog() 126 mAlertDialog.setOnDismissListener(dialogInterface -> { in onCreateDialog() 127 mAlertDialog.getOnBackInvokedDispatcher().unregisterOnBackInvokedCallback( in onCreateDialog() 131 return mAlertDialog; in onCreateDialog() 165 return mAlertDialog.getOnBackInvokedDispatcher(); in getOnBackInvokedDispatcher()
|
/packages/apps/Car/Settings/src/com/android/car/settings/sound/ |
D | AudioRouteSelectionDialogFragment.java | 38 private AlertDialog mAlertDialog; field in AudioRouteSelectionDialogFragment 68 mAlertDialog = builder.create(); in onCreateDialog() 70 return mAlertDialog; in onCreateDialog()
|
/packages/apps/Settings/src/com/android/settings/ |
D | ResetNetworkConfirm.java | 63 private AlertDialog mAlertDialog; field in ResetNetworkConfirm 111 mAlertDialog = new AlertDialog.Builder(mContext) in onPostExecute() 237 if (mAlertDialog != null) { in onDestroy() 238 mAlertDialog.dismiss(); in onDestroy()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastOptOutActivity.java | 38 public AlertDialog mAlertDialog; field in CellBroadcastOptOutActivity 43 mAlertDialog = showOptOutDialog(this); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintSettings.java | 1152 private AlertDialog mAlertDialog; field in FingerprintSettings.FingerprintSettingsFragment.DeleteFingerprintDialog 1176 mAlertDialog = new AlertDialog.Builder(getActivity()) in onCreateDialog() 1184 return mAlertDialog; in onCreateDialog() 1225 private AlertDialog mAlertDialog; field in FingerprintSettings.FingerprintSettingsFragment.RenameDialog 1256 mAlertDialog = new AlertDialog.Builder(getActivity()) in onCreateDialog() 1283 mAlertDialog.setOnShowListener(new DialogInterface.OnShowListener() { in onCreateDialog() 1286 mDialogTextField = mAlertDialog.findViewById(R.id.fingerprint_rename_field); in onCreateDialog() 1296 mAlertDialog.getButton(AlertDialog.BUTTON_NEGATIVE).setEnabled(false); in onCreateDialog() 1302 return mAlertDialog; in onCreateDialog() 1311 if (mAlertDialog != null) { in enableDelete() [all …]
|
/packages/apps/Traceur/src/com/android/traceur/ |
D | MainFragment.java | 76 private AlertDialog mAlertDialog; field in MainFragment 306 if (mAlertDialog != null) { in onStop() 307 mAlertDialog.cancel(); in onStop() 308 mAlertDialog = null; in onStop()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothNameDialogFragmentTest.java | 48 mBluetoothNameDialogFragment.mAlertDialog = null; in onEditorAction_dialogNull_shouldNotCrash()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | ProviderModelSliceTest.java | 414 private AlertDialog mAlertDialog; field in ProviderModelSliceTest.MockProviderModelSlice 433 return mAlertDialog; in getMobileDataDisableDialog() 462 mAlertDialog = alertDialog; in setMobileDataDisableDialog()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 293 @Mock AlertDialog mAlertDialog; field in WifiP2pServiceImplTest 1483 when(mAlertDialogBuilder.create()).thenReturn(mAlertDialog); in setUpWifiP2pServiceImpl() 1484 when(mAlertDialog.getWindow()).thenReturn(mock(Window.class)); in setUpWifiP2pServiceImpl() 3651 verify(mAlertDialog).show(); in testAcceptFrequencyConflictDialogSendsDisconnectWifiRequest() 3655 clickListener.getValue().onClick(mAlertDialog, DialogInterface.BUTTON_POSITIVE); in testAcceptFrequencyConflictDialogSendsDisconnectWifiRequest() 3720 verify(mAlertDialog).show(); in testDeclineFrequencyConflictDialogEndsP2pConnectionEvent() 3724 clickListener.getValue().onClick(mAlertDialog, DialogInterface.BUTTON_NEGATIVE); in testDeclineFrequencyConflictDialogEndsP2pConnectionEvent() 3766 verify(mAlertDialog).show(); in testFrequencyConflictDialogDismissedOnStateExit() 3767 verify(mAlertDialog).dismiss(); in testFrequencyConflictDialogDismissedOnStateExit() 6334 verify(mAlertDialog).show(); in testProvisionDiscoveryShowPinEventLaunchesInvitationSentDialog() [all …]
|