Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothNameDialogFragment.java54 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()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRenameDialogFragment.java56 private AlertDialog mAlertDialog; field in BluetoothRenameDialogFragment
89 mAlertDialog = builder.create(); in onCreateDialog()
90 mAlertDialog.setOnShowListener(d -> { in onCreateDialog()
100 return mAlertDialog; in onCreateDialog()
136 mRenameButton = mAlertDialog.getButton(DialogInterface.BUTTON_POSITIVE); in onStart()
143 mAlertDialog = null; in onDestroy()
177 if (mAlertDialog != null && mAlertDialog.isShowing()) { in onEditorAction()
178 mAlertDialog.dismiss(); in onEditorAction()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothNameDialogFragment.java54 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()
/packages/services/Telephony/src/com/android/phone/
DEmergencyCallbackModeExitDialog.java62 AlertDialog mAlertDialog = null; field in EmergencyCallbackModeExitDialog
214 mAlertDialog.setMessage(text); in showEmergencyCallbackModeExitDialog()
234 mAlertDialog = new AlertDialog.Builder(EmergencyCallbackModeExitDialog.this, in onCreateDialog()
258 mAlertDialog.setOnCancelListener(this); in onCreateDialog()
259 return mAlertDialog; in onCreateDialog()
262 mAlertDialog = new AlertDialog.Builder(EmergencyCallbackModeExitDialog.this, in onCreateDialog()
275 mAlertDialog.setOnCancelListener(this); in onCreateDialog()
276 return mAlertDialog; in onCreateDialog()
336 if (mAlertDialog != null)
337 mAlertDialog.dismiss();
/packages/apps/Stk/src/com/android/stk/
DToneDialog.java44 private AlertDialog mAlertDialog; field in ToneDialog
93 mAlertDialog = alertDialogBuilder.create(); in onCreate()
94 mAlertDialog.show(); in onCreate()
110 if (mAlertDialog != null && mAlertDialog.isShowing()) { in onDestroy()
111 mAlertDialog.dismiss(); in onDestroy()
112 mAlertDialog = null; in onDestroy()
DStkDialogActivity.java63 private AlertDialog mAlertDialog; field in StkDialogActivity
150 mAlertDialog = alertDialogBuilder.create(); in onCreate()
151 mAlertDialog.setCanceledOnTouchOutside(false); in onCreate()
152 mAlertDialog.show(); in onCreate()
222 if (mAlertDialog != null && mAlertDialog.isShowing()) { in onDestroy()
223 mAlertDialog.dismiss(); in onDestroy()
224 mAlertDialog = null; in onDestroy()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DRestrictedSettingsFragmentTest.java38 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/Gallery2/src/com/android/gallery3d/app/
DAbstractGalleryActivity.java64 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/apps/Nfc/src/com/android/nfc/
DConfirmConnectToWifiNetworkActivity.java24 private AlertDialog mAlertDialog; field in ConfirmConnectToWifiNetworkActivity
36 mAlertDialog = new AlertDialog.Builder(this, R.style.DialogAlertDayNight) in onCreate()
53 mAlertDialog.show(); in onCreate()
57 mAlertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener(this); in onCreate()
85 mAlertDialog.dismiss(); in onClick()
136 mAlertDialog.dismiss(); in onDestroy()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintSettings.java664 private AlertDialog mAlertDialog; field in FingerprintSettings.FingerprintSettingsFragment.DeleteFingerprintDialog
686 mAlertDialog = new AlertDialog.Builder(getActivity()) in onCreateDialog()
694 return mAlertDialog; in onCreateDialog()
716 private AlertDialog mAlertDialog; field in FingerprintSettings.FingerprintSettingsFragment.RenameDialog
738 mAlertDialog = new AlertDialog.Builder(getActivity()) in onCreateDialog()
762 mAlertDialog.setOnShowListener(new DialogInterface.OnShowListener() { in onCreateDialog()
765 mDialogTextField = mAlertDialog.findViewById(R.id.fingerprint_rename_field); in onCreateDialog()
774 mAlertDialog.getButton(AlertDialog.BUTTON_NEGATIVE).setEnabled(false); in onCreateDialog()
780 return mAlertDialog; in onCreateDialog()
785 if (mAlertDialog != null) { in enableDelete()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/
DFingerprintSettings.java661 private AlertDialog mAlertDialog; field in FingerprintSettings.FingerprintSettingsFragment.DeleteFingerprintDialog
683 mAlertDialog = new AlertDialog.Builder(getActivity()) in onCreateDialog()
691 return mAlertDialog; in onCreateDialog()
713 private AlertDialog mAlertDialog; field in FingerprintSettings.FingerprintSettingsFragment.RenameDialog
735 mAlertDialog = new AlertDialog.Builder(getActivity()) in onCreateDialog()
759 mAlertDialog.setOnShowListener(new DialogInterface.OnShowListener() { in onCreateDialog()
762 mDialogTextField = mAlertDialog.findViewById(R.id.fingerprint_rename_field); in onCreateDialog()
771 mAlertDialog.getButton(AlertDialog.BUTTON_NEGATIVE).setEnabled(false); in onCreateDialog()
777 return mAlertDialog; in onCreateDialog()
782 if (mAlertDialog != null) { in enableDelete()
[all …]
/packages/apps/Settings/src/com/android/settings/
DResetNetworkConfirm.java73 private AlertDialog mAlertDialog; field in ResetNetworkConfirm
142 mAlertDialog = new AlertDialog.Builder(mContext) in onPostExecute()
269 if (mAlertDialog != null) { in onDestroy()
270 mAlertDialog.dismiss(); in onDestroy()
/packages/apps/Traceur/src/com/android/traceur/
DMainFragment.java65 private AlertDialog mAlertDialog; field in MainFragment
201 if (mAlertDialog != null) { in onStop()
202 mAlertDialog.cancel(); in onStop()
203 mAlertDialog = null; in onStop()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothNameDialogFragmentTest.java46 mBluetoothNameDialogFragment.mAlertDialog = null; in onEditorAction_dialogNull_shouldNotCrash()