/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/ |
D | ImeiInfoDialogControllerTest.java | 65 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/Settings/tests/robotests/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusDialogControllerTest.java | 90 private SimStatusDialogFragment mDialog; field in SimStatusDialogControllerTest 119 when(mDialog.getContext()).thenReturn(mContext); in setup() 122 mController = spy(new SimStatusDialogController(mDialog, mLifecycle, 0 /* phone id */)); in setup() 157 verify(mDialog).setText(NETWORK_PROVIDER_VALUE_ID, carrierName); in initialize_updateNetworkProviderWithFoobarCarrier_shouldUpdateCarrierWithFoobar() 167 verify(mDialog).setText(PHONE_NUMBER_VALUE_ID, phoneNumber); in initialize_updatePhoneNumberWith1111111111_shouldUpdatePhoneNumber() 176 verify(mDialog).removeSettingFromScreen(OPERATOR_INFO_LABEL_ID); in initialize_updateLatestAreaInfoWithCdmaPhone_shouldRemoveOperatorInfoSetting() 177 verify(mDialog).removeSettingFromScreen(OPERATOR_INFO_VALUE_ID); in initialize_updateLatestAreaInfoWithCdmaPhone_shouldRemoveOperatorInfoSetting() 187 verify(mDialog).setText(SERVICE_STATE_VALUE_ID, inServiceText); in initialize_updateServiceStateWithInService_shouldUpdateTextToBeCInService() 199 verify(mDialog).setText(SERVICE_STATE_VALUE_ID, offServiceText); in initialize_updateServiceStateWithPowerOff_shouldUpdateTextAndResetSignalStrength() 200 verify(mDialog).setText(SIGNAL_STRENGTH_VALUE_ID, "0"); in initialize_updateServiceStateWithPowerOff_shouldUpdateTextAndResetSignalStrength() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/ |
D | OperationProgressDialog.java | 36 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/UnifiedEmail/src/com/android/mail/browse/ |
D | AttachmentProgressDialogFragment.java | 37 private ProgressDialog mDialog; field in AttachmentProgressDialogFragment 68 mDialog = new ProgressDialog(getActivity()); in onCreateDialog() 69 mDialog.setTitle(R.string.fetching_attachment); in onCreateDialog() 70 mDialog.setMessage(mAttachment.getName()); in onCreateDialog() 71 mDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); in onCreateDialog() 72 mDialog.setIndeterminate(true); in onCreateDialog() 73 mDialog.setMax(mAttachment.size); in onCreateDialog() 74 mDialog.setProgressNumberFormat(null); in onCreateDialog() 76 return mDialog; in onCreateDialog() 81 mDialog = null; in onDismiss() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusDialogController.java | 113 private final SimStatusDialogFragment mDialog; field in SimStatusDialogController 136 mDialog.setText(OPERATOR_INFO_VALUE_ID, latestAreaInfo); 146 mDialog = dialog; in SimStatusDialogController() 225 mDialog.setText(NETWORK_PROVIDER_VALUE_ID, carrierName); in updateNetworkProvider() 230 mDialog.setText(PHONE_NUMBER_VALUE_ID, BidiFormatter.getInstance().unicodeWrap( in updatePhoneNumber() 255 mDialog.setText(CELLULAR_NETWORK_STATE, networkStateValue); in updateDataState() 265 mDialog.removeSettingFromScreen(OPERATOR_INFO_LABEL_ID); in updateLatestAreaInfo() 266 mDialog.removeSettingFromScreen(OPERATOR_INFO_VALUE_ID); in updateLatestAreaInfo() 296 mDialog.setText(SERVICE_STATE_VALUE_ID, serviceStateValue); in updateServiceState() 313 mDialog.removeSettingFromScreen(SIGNAL_STRENGTH_LABEL_ID); in updateSignalStrength() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/simstatus/ |
D | SimStatusDialogController.java | 101 private final SimStatusDialogFragment mDialog; field in SimStatusDialogController 124 mDialog.setText(OPERATOR_INFO_VALUE_ID, latestAreaInfo); 134 mDialog = dialog; in SimStatusDialogController() 210 mDialog.setText(NETWORK_PROVIDER_VALUE_ID, serviceState.getOperatorAlphaLong()); in updateNetworkProvider() 215 mDialog.setText(PHONE_NUMBER_VALUE_ID, BidiFormatter.getInstance().unicodeWrap( in updatePhoneNumber() 240 mDialog.setText(CELLULAR_NETWORK_STATE, networkStateValue); in updateDataState() 250 mDialog.removeSettingFromScreen(OPERATOR_INFO_LABEL_ID); in updateLatestAreaInfo() 251 mDialog.removeSettingFromScreen(OPERATOR_INFO_VALUE_ID); in updateLatestAreaInfo() 281 mDialog.setText(SERVICE_STATE_VALUE_ID, serviceStateValue); in updateServiceState() 295 mDialog.removeSettingFromScreen(SIGNAL_STRENGTH_LABEL_ID); in updateSignalStrength() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothRenameDialogFragmentTest.java | 47 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/ |
D | ImeiInfoDialogController.java | 69 private final ImeiInfoDialogFragment mDialog; field in ImeiInfoDialogController 75 mDialog = dialog; in ImeiInfoDialogController() 95 final Resources res = mDialog.getContext().getResources(); in updateDialogForCdmaPhone() 96 mDialog.setText(ID_MEID_NUMBER_VALUE, getMeid()); in updateDialogForCdmaPhone() 97 mDialog.setText(ID_MIN_NUMBER_VALUE, in updateDialogForCdmaPhone() 102 mDialog.setText(ID_MIN_NUMBER_LABEL, in updateDialogForCdmaPhone() 106 mDialog.setText(ID_PRL_VERSION_VALUE, getCdmaPrlVersion()); in updateDialogForCdmaPhone() 110 mDialog.setText(ID_IMEI_VALUE, in updateDialogForCdmaPhone() 112 mDialog.setText(ID_IMEI_SV_VALUE, in updateDialogForCdmaPhone() 116 mDialog.removeViewFromScreen(ID_GSM_SETTINGS); in updateDialogForCdmaPhone() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/ |
D | ImeiInfoDialogController.java | 70 private final ImeiInfoDialogFragment mDialog; field in ImeiInfoDialogController 76 mDialog = dialog; in ImeiInfoDialogController() 108 final Resources res = mDialog.getContext().getResources(); in updateDialogForCdmaPhone() 109 mDialog.setText(ID_MEID_NUMBER_VALUE, getMeid()); in updateDialogForCdmaPhone() 111 mDialog.setText(ID_MIN_NUMBER_VALUE, mSubscriptionInfo != null in updateDialogForCdmaPhone() 116 mDialog.setText(ID_MIN_NUMBER_LABEL, in updateDialogForCdmaPhone() 120 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/ |
D | BluetoothRequestPermissionActivity.java | 69 private AlertDialog mDialog; field in BluetoothRequestPermissionActivity 109 mDialog = createRequestDisableBluetoothDialog(); in onCreate() 110 mDialog.show(); in onCreate() 123 mDialog = createRequestEnableBluetoothDialog(); in onCreate() 124 mDialog.show(); in onCreate() 147 mDialog = createRequestEnableBluetoothDialogWithTimeout(mTimeout); in onCreate() 148 mDialog.show(); in onCreate() 151 mDialog = createDiscoverableConfirmDialog(mTimeout); in onCreate() 152 mDialog.show(); in onCreate() 198 if (mDialog != null) { in finishWithResult() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | ContactMultiDeletionInteraction.java | 84 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 …]
|
D | ContactDeletionInteraction.java | 90 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 …]
|
/packages/services/Telecomm/src/com/android/server/telecom/settings/ |
D | CallBlockDisabledActivity.java | 31 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/ |
D | ContactEditorAccountsChangedActivity.java | 58 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/ |
D | WifiDialogActivity.java | 61 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()
|
D | WifiScanModeActivity.java | 41 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/ |
D | MenuExecutor.java | 60 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/ |
D | WifiDialogActivity.java | 60 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()
|
D | WifiScanModeActivity.java | 40 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/apps/Settings/src/com/android/settings/inputmethod/ |
D | SpellCheckersSettings.java | 54 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/ |
D | SpellCheckersSettings.java | 54 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/ |
D | ConfirmExitRetailModeDialogTest.java | 43 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/apps/PermissionController/src/com/android/packageinstaller/permission/ui/ |
D | GrantPermissionsWatchViewHandler.java | 47 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/ |
D | ConfirmRemoveScreenLockDialogTest.java | 40 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/ |
D | ActionDisabledByAdminDialogTest.java | 36 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()
|