/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/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/Settings/tests/unit/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusDialogControllerTest.java | 73 private SimStatusDialogFragment mDialog; field in SimStatusDialogControllerTest 102 when(mDialog.getContext()).thenReturn(mContext); in setup() 123 mController = new SimStatusDialogController(mDialog, mLifecycle, 0 /* phone id */) { in setup() 159 verify(mDialog).setText(NETWORK_PROVIDER_VALUE_ID, carrierName); in initialize_updateNetworkProviderWithFoobarCarrier_shouldUpdateCarrierWithFoobar() 175 verify(mDialog).removeSettingFromScreen(OPERATOR_INFO_LABEL_ID); in initialize_updateLatestAreaInfoWithCdmaPhone_shouldRemoveOperatorInfoSetting() 176 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_shouldUpdateText() 213 verify(mDialog).setText(SERVICE_STATE_VALUE_ID, offServiceText); in initialize_updateVoiceDataOutOfService_shouldUpdateSetting() 225 verify(mDialog).setText(SERVICE_STATE_VALUE_ID, inServiceText); in initialize_updateVoiceOutOfServiceDataInService_shouldUpdateTextToBeInService() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/ |
D | ImeiInfoDialogController.java | 51 private final ImeiInfoDialogFragment mDialog; field in ImeiInfoDialogController 57 mDialog = dialog; in ImeiInfoDialogController() 89 final Resources res = mDialog.getContext().getResources(); in updateDialogForCdmaPhone() 90 mDialog.setText(ID_MEID_NUMBER_VALUE, getMeid()); in updateDialogForCdmaPhone() 92 mDialog.setText(ID_MIN_NUMBER_VALUE, mSubscriptionInfo != null in updateDialogForCdmaPhone() 97 mDialog.setText(ID_MIN_NUMBER_LABEL, in updateDialogForCdmaPhone() 101 mDialog.setText(ID_PRL_VERSION_VALUE, getCdmaPrlVersion()); in updateDialogForCdmaPhone() 106 mDialog.setText(ID_IMEI_VALUE, mTelephonyManager.getImei(mSlotId)); in updateDialogForCdmaPhone() 107 mDialog.setText(ID_IMEI_SV_VALUE, in updateDialogForCdmaPhone() 111 mDialog.removeViewFromScreen(ID_GSM_SETTINGS); in updateDialogForCdmaPhone() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusDialogController.java | 118 private final SimStatusDialogFragment mDialog; field in SimStatusDialogController 180 mDialog = dialog; in SimStatusDialogController() 295 mDialog.setText(NETWORK_PROVIDER_VALUE_ID, carrierName); in updateNetworkProvider() 301 mDialog.setText(PHONE_NUMBER_VALUE_ID, in updatePhoneNumber() 326 mDialog.setText(CELLULAR_NETWORK_STATE, networkStateValue); in updateDataState() 340 mDialog.setText(OPERATOR_INFO_VALUE_ID, in updateAreaInfoText() 410 mDialog.removeSettingFromScreen(OPERATOR_INFO_LABEL_ID); in updateLatestAreaInfo() 411 mDialog.removeSettingFromScreen(OPERATOR_INFO_VALUE_ID); in updateLatestAreaInfo() 438 mDialog.setText(SERVICE_STATE_VALUE_ID, serviceStateValue); in updateServiceState() 443 mDialog.setSettingVisibility(SIGNAL_STRENGTH_LABEL_ID, isVisible); in updateSignalStrength() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/settings/ |
D | CallBlockDisabledActivity.java | 33 private AlertDialog mDialog; field in CallBlockDisabledActivity 58 mDialog = builder in showCallBlockingOffDialog() 82 mDialog.setCanceledOnTouchOutside(false); in showCallBlockingOffDialog() 83 mDialog.show(); in showCallBlockingOffDialog() 91 mDialog.dismiss(); in dismissCallBlockingOffDialog() 93 mDialog = null; in dismissCallBlockingOffDialog() 102 return (mDialog != null && mDialog.isShowing()); in isShowingCallBlockingOffDialog()
|
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/ |
D | TaskOverlayFactoryGo.java | 120 private OverlayDialogGo mDialog; field in TaskOverlayFactoryGo.TaskOverlayGo 136 if (mDialog != null && mDialog.isShowing()) { in initOverlay() 138 mDialog.dismiss(); in initOverlay() 139 showDialog(mDialog.getAction(), mDialog.getType()); in initOverlay() 189 if (mDialog != null && mDialog.isShowing()) { in reset() 190 mDialog.dismiss(); in reset() 358 mDialog = new OverlayDialogGo(activity, type, action); in showDialog() 359 mDialog.setView(view); in showDialog() 360 mDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); in showDialog() 361 mDialog.show(); in showDialog() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/ |
D | GrantPermissionsAutoViewHandler.java | 62 private AlertDialog mDialog; field in GrantPermissionsAutoViewHandler 111 if (mDialog != null) { in update() 112 mDialog.setOnDismissListener(null); in update() 113 mDialog.dismiss(); in update() 114 mDialog = null; in update() 121 mDialog = null; in update() 162 mDialog = builder.create(); in update() 163 mDialog.show(); in update() 179 mDialog.setOnDismissListener(null); in createListItem() 180 mDialog.dismiss(); in createListItem() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingDialogHelperTest.java | 49 @Mock AlertDialog mDialog; field in AudioSharingDialogHelperTest 54 when(mDialog.findViewById(android.R.id.message)).thenReturn(mTextView); in updateMessageStyle_updateStyle() 55 AudioSharingDialogHelper.updateMessageStyle(mDialog); in updateMessageStyle_updateStyle() 66 when(mFragment.getDialog()).thenReturn(mDialog); in getDialogIfShowing_notShowing_returnNull() 67 when(mDialog.isShowing()).thenReturn(false); in getDialogIfShowing_notShowing_returnNull() 74 when(mFragment.getDialog()).thenReturn(mDialog); in getDialogIfShowing_showing_returnDialog() 75 when(mDialog.isShowing()).thenReturn(true); in getDialogIfShowing_showing_returnDialog() 77 .isEqualTo(mDialog); in getDialogIfShowing_showing_returnDialog()
|
/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 | 94 private AlertDialog mDialog; field in ContactDeletionInteraction 180 if (mDialog != null && mDialog.isShowing()) { in onDestroyView() 181 mDialog.setOnDismissListener(null); in onDestroyView() 182 mDialog.dismiss(); in onDestroyView() 183 mDialog = null; in onDestroyView() 220 if (mDialog != null) { in onStop() 221 mDialog.hide(); in onStop() 235 if (mDialog != null) { in onLoadFinished() 236 mDialog.dismiss(); in onLoadFinished() 237 mDialog = null; in onLoadFinished() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothRequestPermissionActivity.java | 81 private AlertDialog mDialog; field in BluetoothRequestPermissionActivity 124 mDialog = createRequestDisableBluetoothDialog(); in onCreate() 125 mDialog.show(); in onCreate() 138 mDialog = createRequestEnableBluetoothDialog(); in onCreate() 139 mDialog.show(); in onCreate() 170 mDialog = createRequestEnableBluetoothDialogWithTimeout(mTimeout); in onCreate() 171 mDialog.show(); in onCreate() 179 mDialog = createDiscoverableConfirmDialog(mTimeout); in onCreate() 180 mDialog.show(); in onCreate() 251 if (mDialog != null) { in finishWithResult() [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() 74 assertThat(mDialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled()).isFalse(); in noUserInput_positiveButtonDisabled() 82 assertThat(mDialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled()).isTrue(); in userInput_positiveButtonEnabled() 90 assertThat(mDialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled()).isFalse(); in userInput_emptyName_positiveButtonDisabled() 100 assertThat(mDialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled()).isFalse(); in nameUpdatedByCode_positiveButtonDisabled() 109 assertThat(mDialog.isShowing()).isFalse(); in editorDoneAction_dismissesDialog() 143 mDialog.getButton(AlertDialog.BUTTON_POSITIVE).performClick(); in positiveButtonClicked_setsDeviceName() 149 return mDialog.findViewById(R.id.textbox); in getEditText()
|
/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() 204 if (mDialog != null && mDialog.isShowing()) { in updateDisplayedAccounts() 205 mDialog.dismiss(); in updateDisplayedAccounts() 207 mDialog = new AlertDialog.Builder(this) in updateDisplayedAccounts() 216 mDialog.show(); in updateDisplayedAccounts()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiDialogActivity.java | 104 WifiDialog mDialog; field in WifiDialogActivity 167 if (mDialog2 != null || mDialog != null || !hasWifiManager()) { in onStart() 181 mDialog = WifiDialog.createModal( in onStart() 192 if (mDialog != null) { in onStart() 193 mDialog.show(); in onStart() 194 mDialog.setOnDismissListener(this); in onStart() 198 if (mDialog2 != null || mDialog != null) { in onStart() 213 mDialog = WifiDialog.createModal(this, this, mAccessPoint, in createDialogWithSuwTheme() 233 if (mDialog != null && mDialog.isShowing()) { in onDestroy() 234 mDialog = null; in onDestroy() [all …]
|
D | WifiScanModeActivity.java | 45 private DialogFragment mDialog; field in WifiScanModeActivity 99 if (mDialog == null) { in createDialog() 100 mDialog = AlertDialogFragment.newInstance(mApp); in createDialog() 101 mDialog.show(getSupportFragmentManager(), "dialog"); in createDialog() 106 if (mDialog != null) { in dismissDialog() 107 mDialog.dismiss(); in dismissDialog() 108 mDialog = null; in dismissDialog()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | UserNoticeDemoUiService.java | 80 private AlertDialog mDialog; field in UserNoticeDemoUiService 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/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()
|
/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() 329 mDialog = createProgressDialog(activity, title, ids.size()); in startAction() 330 mDialog.show(); in startAction() 332 mDialog = null; in startAction() 342 mDialog = null; in startSingleItemAction()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | SpellCheckersSettings.java | 53 private AlertDialog mDialog = null; field in SpellCheckersSettings 188 if (mDialog != null && mDialog.isShowing()) { in showChooseLanguageDialog() 189 mDialog.dismiss(); in showChooseLanguageDialog() 237 mDialog = builder.create(); in showChooseLanguageDialog() 238 mDialog.show(); in showChooseLanguageDialog() 242 if (mDialog != null && mDialog.isShowing()) { in showSecurityWarnDialog() 243 mDialog.dismiss(); in showSecurityWarnDialog() 261 mDialog = builder.create(); in showSecurityWarnDialog() 262 mDialog.show(); in showSecurityWarnDialog()
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | FaceSettingsRemoveButtonPreferenceController.java | 67 private AlertDialog mDialog = null; field in FaceSettingsRemoveButtonPreferenceController.ConfirmRemoveDialog 109 mDialog = builder.create(); in onCreateDialog() 110 mDialog.setCanceledOnTouchOutside(false); in onCreateDialog() 111 mDialog.getOnBackInvokedDispatcher().registerOnBackInvokedCallback(0, this); in onCreateDialog() 112 return mDialog; in onCreateDialog() 124 if (mDialog != null) { in unregisterOnBackInvokedCallback() 125 mDialog.getOnBackInvokedDispatcher().unregisterOnBackInvokedCallback(this); in unregisterOnBackInvokedCallback() 131 if (mDialog != null) { in onBackInvoked() 132 mDialog.cancel(); in onBackInvoked()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiRequestToggleActivity.java | 67 private ConfirmationDialogFragment mDialog; field in WifiRequestToggleActivity 173 if (mDialog != null) { in onStop() 174 mDialog.dismiss(); in onStop() 179 if (mDialog != null) { in updateUi() 180 mDialog.dismiss(); in updateUi() 207 mDialog = builder.build(); in updateUi() 208 mDialog.show(getSupportFragmentManager(), ConfirmationDialogFragment.TAG); in updateUi()
|
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/ |
D | GroupMmsSettingDialog.java | 35 private AlertDialog mDialog; field in GroupMmsSettingDialog 50 Assert.isNull(mDialog); in show() 51 mDialog = new AlertDialog.Builder(mContext) in show() 59 Assert.notNull(mDialog); in changeGroupMmsSettings() 62 mDialog.dismiss(); in changeGroupMmsSettings()
|
/packages/apps/Settings/src/com/android/settings/homepage/ |
D | TopLevelHighlightMixin.java | 44 private DialogInterface mDialog; field in TopLevelHighlightMixin 87 mDialog = dialog; in onShow() 92 mDialog = null; in onDismiss() 207 if (mDialog != null) { in ensureDialogDismissed() 208 onCancel(mDialog); in ensureDialogDismissed() 209 mDialog.dismiss(); in ensureDialogDismissed()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | FullscreenDialogView.java | 43 private Dialog mDialog; field in FullscreenDialogView 81 return mDialog; in getDialog() 86 startExitAnimation(() -> mDialog.dismiss()); in dismiss() 92 mDialog = dialog; in initialize() 105 v.initialize(mActivity, mDialog); in transitionTo()
|