Home
last modified time | relevance | path

Searched refs:mDialog (Results 1 – 25 of 54) sorted by relevance

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/
DImeiInfoDialogControllerTest.java65 private ImeiInfoDialogFragment mDialog; field in ImeiInfoDialogControllerTest
85 when(mDialog.getContext()).thenReturn(mContext); in setup()
87 mController = spy(new ImeiInfoDialogController(mDialog, SLOT_ID)); in setup()
98 mController = spy(new ImeiInfoDialogController(mDialog, SLOT_ID + 1)); in populateImeiInfo_invalidSlot_shouldSetNothing()
102 verify(mDialog, never()).setText(anyInt(), any()); in populateImeiInfo_invalidSlot_shouldSetNothing()
112 verify(mDialog).setText(ID_MEID_NUMBER_VALUE, MEID_NUMBER); in populateImeiInfo_cdmaLteEnabled_shouldSetMeidAndImeiAndMin()
113 verify(mDialog).setText(ID_MIN_NUMBER_VALUE, MIN_NUMBER); in populateImeiInfo_cdmaLteEnabled_shouldSetMeidAndImeiAndMin()
114 verify(mDialog).setText(ID_PRL_VERSION_VALUE, PRL_VERSION); in populateImeiInfo_cdmaLteEnabled_shouldSetMeidAndImeiAndMin()
115 verify(mDialog).setText(eq(ID_IMEI_VALUE), any()); in populateImeiInfo_cdmaLteEnabled_shouldSetMeidAndImeiAndMin()
116 verify(mDialog).setText(eq(ID_IMEI_SV_VALUE), any()); in populateImeiInfo_cdmaLteEnabled_shouldSetMeidAndImeiAndMin()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DOperationProgressDialog.java36 private final ProgressDialog mDialog; field in OperationProgressDialog
43 mDialog = new ProgressDialog(mActivity); in OperationProgressDialog()
44 mDialog.setTitle(mActivity.getString(titleResId)); in OperationProgressDialog()
45 mDialog.setMessage(mActivity.getString(prepareResId)); in OperationProgressDialog()
46 mDialog.setProgress(0); in OperationProgressDialog()
47 mDialog.setMax(100); in OperationProgressDialog()
48 mDialog.setIndeterminate(true); in OperationProgressDialog()
49 mDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); in OperationProgressDialog()
50 mDialog.setCanceledOnTouchOutside(false); in OperationProgressDialog()
52 mDialog.setButton(ProgressDialog.BUTTON_NEGATIVE, in OperationProgressDialog()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogControllerTest.java97 private SimStatusDialogFragment mDialog; field in SimStatusDialogControllerTest
135 when(mDialog.getContext()).thenReturn(mContext); in setup()
150 mController = spy(new SimStatusDialogController(mDialog, mLifecycle, 0 /* phone id */)); in setup()
205 verify(mDialog).setText(NETWORK_PROVIDER_VALUE_ID, carrierName); in initialize_updateNetworkProviderWithFoobarCarrier_shouldUpdateCarrierWithFoobar()
217 verify(mDialog).setText(PHONE_NUMBER_VALUE_ID, phoneNumber); in initialize_updatePhoneNumberWith1111111111_shouldUpdatePhoneNumber()
226 verify(mDialog).removeSettingFromScreen(OPERATOR_INFO_LABEL_ID); in initialize_updateLatestAreaInfoWithCdmaPhone_shouldRemoveOperatorInfoSetting()
227 verify(mDialog).removeSettingFromScreen(OPERATOR_INFO_VALUE_ID); in initialize_updateLatestAreaInfoWithCdmaPhone_shouldRemoveOperatorInfoSetting()
237 verify(mDialog).setText(SERVICE_STATE_VALUE_ID, inServiceText); in initialize_updateServiceStateWithInService_shouldUpdateTextToBeCInService()
249 verify(mDialog).setText(SERVICE_STATE_VALUE_ID, offServiceText); in initialize_updateServiceStateWithPowerOff_shouldUpdateTextAndResetSignalStrength()
250 verify(mDialog).setText(SIGNAL_STRENGTH_VALUE_ID, "0"); in initialize_updateServiceStateWithPowerOff_shouldUpdateTextAndResetSignalStrength()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogController.java145 private final SimStatusDialogFragment mDialog; field in SimStatusDialogController
205 mDialog = dialog; in SimStatusDialogController()
303 mDialog.setText(NETWORK_PROVIDER_VALUE_ID, carrierName); in updateNetworkProvider()
308 mDialog.setText(PHONE_NUMBER_VALUE_ID, in updatePhoneNumber()
333 mDialog.setText(CELLULAR_NETWORK_STATE, networkStateValue); in updateDataState()
347 mDialog.setText(OPERATOR_INFO_VALUE_ID, in updateAreaInfoText()
383 mDialog.removeSettingFromScreen(OPERATOR_INFO_LABEL_ID); in updateLatestAreaInfo()
384 mDialog.removeSettingFromScreen(OPERATOR_INFO_VALUE_ID); in updateLatestAreaInfo()
414 mDialog.setText(SERVICE_STATE_VALUE_ID, serviceStateValue); in updateServiceState()
433 mDialog.removeSettingFromScreen(SIGNAL_STRENGTH_LABEL_ID); in updateSignalStrength()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/simstatus/
DSimStatusDialogController.java102 private final SimStatusDialogFragment mDialog; field in SimStatusDialogController
130 mDialog.setText(OPERATOR_INFO_VALUE_ID, latestAreaInfo);
141 mDialog = dialog; in SimStatusDialogController()
219 mDialog.setText(NETWORK_PROVIDER_VALUE_ID, serviceState.getOperatorAlphaLong()); in updateNetworkProvider()
224 mDialog.setText(PHONE_NUMBER_VALUE_ID, BidiFormatter.getInstance().unicodeWrap( in updatePhoneNumber()
249 mDialog.setText(CELLULAR_NETWORK_STATE, networkStateValue); in updateDataState()
259 mDialog.removeSettingFromScreen(OPERATOR_INFO_LABEL_ID); in updateLatestAreaInfo()
260 mDialog.removeSettingFromScreen(OPERATOR_INFO_VALUE_ID); in updateLatestAreaInfo()
290 mDialog.setText(SERVICE_STATE_VALUE_ID, serviceStateValue); in updateServiceState()
304 mDialog.removeSettingFromScreen(SIGNAL_STRENGTH_LABEL_ID); in updateSignalStrength()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothRenameDialogFragmentTest.java47 private AlertDialog mDialog; field in BluetoothRenameDialogFragmentTest
54 mDialog = (AlertDialog) ShadowDialog.getLatestDialog(); in setUp()
59 EditText editText = mDialog.findViewById(android.R.id.edit); in initialTextIsCurrentDeviceName()
74 assertThat(mDialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled()).isFalse(); in noUserInput_positiveButtonDisabled()
79 EditText editText = mDialog.findViewById(android.R.id.edit); in userInput_positiveButtonEnabled()
82 assertThat(mDialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled()).isTrue(); in userInput_positiveButtonEnabled()
87 EditText editText = mDialog.findViewById(android.R.id.edit); in userInput_emptyName_positiveButtonDisabled()
90 assertThat(mDialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled()).isFalse(); in userInput_emptyName_positiveButtonDisabled()
95 EditText editText = mDialog.findViewById(android.R.id.edit); in nameUpdatedByCode_positiveButtonDisabled()
100 assertThat(mDialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled()).isFalse(); in nameUpdatedByCode_positiveButtonDisabled()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/imei/
DImeiInfoDialogController.java68 private final ImeiInfoDialogFragment mDialog; field in ImeiInfoDialogController
74 mDialog = dialog; in ImeiInfoDialogController()
94 final Resources res = mDialog.getContext().getResources(); in updateDialogForCdmaPhone()
95 mDialog.setText(ID_MEID_NUMBER_VALUE, getMeid()); in updateDialogForCdmaPhone()
96 mDialog.setText(ID_MIN_NUMBER_VALUE, in updateDialogForCdmaPhone()
101 mDialog.setText(ID_MIN_NUMBER_LABEL, in updateDialogForCdmaPhone()
105 mDialog.setText(ID_PRL_VERSION_VALUE, getCdmaPrlVersion()); in updateDialogForCdmaPhone()
109 mDialog.setText(ID_IMEI_VALUE, in updateDialogForCdmaPhone()
111 mDialog.setText(ID_IMEI_SV_VALUE, in updateDialogForCdmaPhone()
115 mDialog.removeViewFromScreen(ID_GSM_SETTINGS); in updateDialogForCdmaPhone()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
DImeiInfoDialogController.java69 private final ImeiInfoDialogFragment mDialog; field in ImeiInfoDialogController
75 mDialog = dialog; in ImeiInfoDialogController()
107 final Resources res = mDialog.getContext().getResources(); in updateDialogForCdmaPhone()
108 mDialog.setText(ID_MEID_NUMBER_VALUE, getMeid()); in updateDialogForCdmaPhone()
110 mDialog.setText(ID_MIN_NUMBER_VALUE, mSubscriptionInfo != null in updateDialogForCdmaPhone()
115 mDialog.setText(ID_MIN_NUMBER_LABEL, in updateDialogForCdmaPhone()
119 mDialog.setText(ID_PRL_VERSION_VALUE, getCdmaPrlVersion()); in updateDialogForCdmaPhone()
124 mDialog.setText(ID_IMEI_VALUE, in updateDialogForCdmaPhone()
126 mDialog.setText(ID_IMEI_SV_VALUE, in updateDialogForCdmaPhone()
130 mDialog.removeViewFromScreen(ID_GSM_SETTINGS); in updateDialogForCdmaPhone()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivity.java70 private AlertDialog mDialog; field in BluetoothRequestPermissionActivity
110 mDialog = createRequestDisableBluetoothDialog(); in onCreate()
111 mDialog.show(); in onCreate()
124 mDialog = createRequestEnableBluetoothDialog(); in onCreate()
125 mDialog.show(); in onCreate()
148 mDialog = createRequestEnableBluetoothDialogWithTimeout(mTimeout); in onCreate()
149 mDialog.show(); in onCreate()
152 mDialog = createDiscoverableConfirmDialog(mTimeout); in onCreate()
153 mDialog.show(); in onCreate()
199 if (mDialog != null) { in finishWithResult()
[all …]
/packages/apps/Contacts/src/com/android/contacts/interactions/
DContactDeletionInteraction.java90 private AlertDialog mDialog; field in ContactDeletionInteraction
176 if (mDialog != null && mDialog.isShowing()) { in onDestroyView()
177 mDialog.setOnDismissListener(null); in onDestroyView()
178 mDialog.dismiss(); in onDestroyView()
179 mDialog = null; in onDestroyView()
216 if (mDialog != null) { in onStop()
217 mDialog.hide(); in onStop()
231 if (mDialog != null) { in onLoadFinished()
232 mDialog.dismiss(); in onLoadFinished()
233 mDialog = null; in onLoadFinished()
[all …]
DContactMultiDeletionInteraction.java84 private AlertDialog mDialog; field in ContactMultiDeletionInteraction
123 if (mDialog != null && mDialog.isShowing()) { in onDestroyView()
124 mDialog.setOnDismissListener(null); in onDestroyView()
125 mDialog.dismiss(); in onDestroyView()
126 mDialog = null; in onDestroyView()
159 if (mDialog != null) { in onStop()
160 mDialog.hide(); in onStop()
185 if (mDialog != null) { in onLoadFinished()
186 mDialog.dismiss(); in onLoadFinished()
187 mDialog = null; in onLoadFinished()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/settings/
DCallBlockDisabledActivity.java31 private AlertDialog mDialog; field in CallBlockDisabledActivity
54 mDialog = builder in showCallBlockingOffDialog()
78 mDialog.setCanceledOnTouchOutside(false); in showCallBlockingOffDialog()
79 mDialog.show(); in showCallBlockingOffDialog()
87 mDialog.dismiss(); in dismissCallBlockingOffDialog()
89 mDialog = null; in dismissCallBlockingOffDialog()
98 return (mDialog != null && mDialog.isShowing()); in isShowingCallBlockingOffDialog()
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorAccountsChangedActivity.java58 private AlertDialog mDialog; field in ContactEditorAccountsChangedActivity
81 if (mDialog != null && !mDialog.isShowing()) { in onResume()
82 mDialog.show(); in onResume()
89 if (mDialog != null) { in onPause()
90 mDialog.dismiss(); in onPause()
203 if (mDialog != null && mDialog.isShowing()) { in updateDisplayedAccounts()
204 mDialog.dismiss(); in updateDisplayedAccounts()
206 mDialog = new AlertDialog.Builder(this) in updateDisplayedAccounts()
215 mDialog.show(); in updateDisplayedAccounts()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialogActivity.java61 private WifiDialog mDialog; field in WifiDialogActivity
81 mDialog = WifiDialog.createModal(this, this, accessPoint, in onCreate()
84 mDialog = WifiDialog.createModal( in onCreate()
87 mDialog.show(); in onCreate()
88 mDialog.setOnDismissListener(this); in onCreate()
100 if (mDialog != null && mDialog.isShowing()) { in onDestroy()
101 mDialog.dismiss(); in onDestroy()
102 mDialog = null; in onDestroy()
174 mDialog = null; in onDismiss()
DWifiScanModeActivity.java41 private DialogFragment mDialog; field in WifiScanModeActivity
69 if (mDialog == null) { in createDialog()
70 mDialog = AlertDialogFragment.newInstance(mApp); in createDialog()
71 mDialog.show(getSupportFragmentManager(), "dialog"); in createDialog()
76 if (mDialog != null) { in dismissDialog()
77 mDialog.dismiss(); in dismissDialog()
78 mDialog = null; in dismissDialog()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMenuExecutor.java60 private ProgressDialog mDialog; field in MenuExecutor
116 if (mDialog != null && !mPaused) mDialog.setProgress(message.arg1); in MenuExecutor()
135 if (mDialog != null && mDialog.isShowing()) mDialog.dismiss(); in stopTaskAndDismissDialog()
136 mDialog = null; in stopTaskAndDismissDialog()
143 if (mDialog != null) mDialog.show(); in resume()
148 if (mDialog != null && mDialog.isShowing()) mDialog.hide(); in pause()
340 mDialog = createProgressDialog(activity, title, ids.size()); in startAction()
341 mDialog.show(); in startAction()
343 mDialog = null; in startAction()
353 mDialog = null; in startSingleItemAction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiDialogActivity.java60 private WifiDialog mDialog; field in WifiDialogActivity
77 mDialog = WifiDialog.createModal( in onCreate()
79 mDialog.show(); in onCreate()
80 mDialog.setOnDismissListener(this); in onCreate()
92 if (mDialog != null && mDialog.isShowing()) { in onDestroy()
93 mDialog.dismiss(); in onDestroy()
94 mDialog = null; in onDestroy()
166 mDialog = null; in onDismiss()
DWifiScanModeActivity.java40 private DialogFragment mDialog; field in WifiScanModeActivity
68 if (mDialog == null) { in createDialog()
69 mDialog = AlertDialogFragment.newInstance(mApp); in createDialog()
70 mDialog.show(getSupportFragmentManager(), "dialog"); in createDialog()
75 if (mDialog != null) { in dismissDialog()
76 mDialog.dismiss(); in dismissDialog()
77 mDialog = null; in dismissDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DSpellCheckersSettings.java54 private AlertDialog mDialog = null; field in SpellCheckersSettings
189 if (mDialog != null && mDialog.isShowing()) { in showChooseLanguageDialog()
190 mDialog.dismiss(); in showChooseLanguageDialog()
238 mDialog = builder.create(); in showChooseLanguageDialog()
239 mDialog.show(); in showChooseLanguageDialog()
243 if (mDialog != null && mDialog.isShowing()) { in showSecurityWarnDialog()
244 mDialog.dismiss(); in showSecurityWarnDialog()
262 mDialog = builder.create(); in showSecurityWarnDialog()
263 mDialog.show(); in showSecurityWarnDialog()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DSpellCheckersSettings.java54 private AlertDialog mDialog = null; field in SpellCheckersSettings
189 if (mDialog != null && mDialog.isShowing()) { in showChooseLanguageDialog()
190 mDialog.dismiss(); in showChooseLanguageDialog()
238 mDialog = builder.create(); in showChooseLanguageDialog()
239 mDialog.show(); in showChooseLanguageDialog()
243 if (mDialog != null && mDialog.isShowing()) { in showSecurityWarnDialog()
244 mDialog.dismiss(); in showSecurityWarnDialog()
262 mDialog = builder.create(); in showSecurityWarnDialog()
263 mDialog.show(); in showSecurityWarnDialog()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DConfirmExitRetailModeDialogTest.java43 private ConfirmExitRetailModeDialog mDialog; field in ConfirmExitRetailModeDialogTest
54 mDialog = new ConfirmExitRetailModeDialog(); in setUpTestActivity()
61 mDialog.setConfirmExitRetailModeListener(listener); in testConfirmExitRetailModeInvokesOnExitRetailModeConfirmed()
65 DialogTestUtils.clickPositiveButton(mDialog); in testConfirmExitRetailModeInvokesOnExitRetailModeConfirmed()
76 DialogTestUtils.clickNegativeButton(mDialog); in testCancelDismissesDialog()
86 DialogTestUtils.clickPositiveButton(mDialog); in testNoConfirmClickListenerDismissesDialog()
92 mDialog.show(mTestFragment); in showDialog()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DUserNoiticeDemoUiService.java80 private AlertDialog mDialog; field in UserNoiticeDemoUiService
114 if (mDialog != null) { in startDialog()
118 mDialog = createDialog(); in startDialog()
120 mDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY); in startDialog()
121 mDialog.setCancelable(false); in startDialog()
123 mDialog.show(); in startDialog()
131 dialog = mDialog; in stopDialog()
132 mDialog = null; in stopDialog()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/
DGrantPermissionsWatchViewHandler.java47 private Dialog mDialog; field in GrantPermissionsWatchViewHandler
126 if (mDialog != null) { in showDialog()
127 mDialog.dismiss(); in showDialog()
128 mDialog = null; in showDialog()
149 mDialog = alertDialog; in showDialog()
162 mDialog = acceptDenyDialog; in showDialog()
164 mDialog.setCancelable(false); in showDialog()
167 mDialog.onRestoreInstanceState(savedInstanceState); in showDialog()
176 b.putBundle(DIALOG_BUNDLE, mDialog.onSaveInstanceState()); in saveInstanceState()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/
DConfirmRemoveScreenLockDialogTest.java40 private ConfirmRemoveScreenLockDialog mDialog; field in ConfirmRemoveScreenLockDialogTest
47 mDialog = new ConfirmRemoveScreenLockDialog(); in setUp()
48 mDialog.setConfirmRemoveScreenLockListener(mListener); in setUp()
50 mTestActivity.showDialog(mDialog, TEST_TAG); in setUp()
60 DialogTestUtils.clickPositiveButton(mDialog); in testConfirmRemoveScreenLockListenerCalled_listenerCalled()
66 DialogTestUtils.clickPositiveButton(mDialog); in testConfirmRemoveScreenLockListenerCalled_dialogDismissed()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogTest.java36 private ActionDisabledByAdminDialog mDialog; field in ActionDisabledByAdminDialogTest
40 mDialog = new ActionDisabledByAdminDialog(); in setUp()
52 assertEquals(expectedAdmin, mDialog.getAdminDetailsFromIntent(intent)); in testGetAdminDetailsFromIntent()
60 assertEquals(expectedAdmin, mDialog.getAdminDetailsFromIntent(null)); in testGetAdminDetailsFromNullIntent()
69 assertEquals(restriction, mDialog.getRestrictionFromIntent(intent)); in testGetRestrictionFromIntent()
74 assertEquals(null, mDialog.getRestrictionFromIntent(null)); in testGetRestrictionFromNullIntent()

123