Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/app/
DDialogFragment.java190 Dialog mDialog; field in DialogFragment
298 if (mDialog != null) { in dismissInternal()
299 mDialog.dismiss(); in dismissInternal()
300 mDialog = null; in dismissInternal()
319 return mDialog; in getDialog()
337 if (mDialog != null) mDialog.setCancelable(cancelable); in setCancelable()
418 mDialog = onCreateDialog(savedInstanceState); in onGetLayoutInflater()
421 mDialog.getWindow().addFlags( in onGetLayoutInflater()
427 mDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); in onGetLayoutInflater()
429 if (mDialog != null) { in onGetLayoutInflater()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogImplTest.java115 VolumeDialogImpl mDialog; field in VolumeDialogImplTest
202 mDialog = new VolumeDialogImpl( in setup()
222 mDialog.init(0, null); in setup()
224 mDialog.onStateChangedH(state); in setup()
226 mActiveRinger = mDialog.getDialogView().findViewById( in setup()
228 mDrawerContainer = mDialog.getDialogView().findViewById(R.id.volume_drawer_container); in setup()
236 mODICaptionsIcon = mDialog.getDialogView().findViewById(R.id.odi_captions_icon); in setup()
238 mDialogRowsView = mDialog.getDialogView().findViewById(R.id.volume_dialog_rows); in setup()
284 mDialog.addSliderHapticsToRows(); in addSliderHaptics_withHapticsDisabled_doesNotDeliverOnProgressChangedHaptics()
288 mDialog.canDeliverProgressHapticsToStream(AudioSystem.STREAM_MUSIC, true, 50); in addSliderHaptics_withHapticsDisabled_doesNotDeliverOnProgressChangedHaptics()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/
DSideFpsEventHandlerTest.java92 private SideFpsToast mDialog; field in SideFpsEventHandlerTest
108 when(mDialog.getWindow()).thenReturn(mWindow); in setup()
115 (ctx) -> mDialog); in setup()
126 verify(mDialog, never()).show(); in ignoresWithoutFingerprintFeature()
138 verify(mDialog, never()).show(); in ignoresWithoutSfps()
151 verify(mDialog, never()).show(); in ignoresWhileWaitingForSfps()
166 verify(mDialog, never()).show(); in ignoresWhenIdleOrUnknown()
177 verify(mDialog, never()).show(); in ignoresOnKeyguard()
188 verify(mDialog, never()).show(); in doesNotpromptWhenBPisActive()
199 verify(mDialog).show(); in promptsWhenEnrolling()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/
DBroadcastDialogDelegateTest.java82 private SystemUIDialog mDialog; field in BroadcastDialogDelegateTest
96 when(mSystemUIDialogFactory.create(any(), any())).thenReturn(mDialog); in setUp()
109 mDialog = new SystemUIDialog( in setUp()
120 mDialog.show(); in setUp()
125 mDialog.dismiss(); in tearDown()
130 mTitle = mDialog.requireViewById(R.id.dialog_title); in onCreate_withCurrentApp_titleIsCurrentAppName()
138 mSubTitle = mDialog.requireViewById(R.id.dialog_subtitle); in onCreate_withCurrentApp_subTitleIsSwitchAppName()
146 mSwitchBroadcastAppButton = mDialog.requireViewById(R.id.switch_broadcast); in onCreate_withCurrentApp_switchBtnIsSwitchAppName()
154 mChangeOutputButton = mDialog.requireViewById(R.id.change_output); in onClick_withChangeOutput_dismissBroadcastDialog()
157 assertThat(mDialog.isShowing()).isFalse(); in onClick_withChangeOutput_dismissBroadcastDialog()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DSideFpsEventHandler.java69 private SideFpsToast mDialog; field in SideFpsEventHandler
111 if (mDialog != null) { in SideFpsEventHandler()
112 mDialog.dismiss(); in SideFpsEventHandler()
113 mDialog = null; in SideFpsEventHandler()
253 if (mDialog != null && mDialog.isShowing()) { in dismissDialog()
254 mDialog.dismiss(); in dismissDialog()
260 if (mDialog != null && mDialog.isShowing()) { in showDialog()
264 mDialog = mDialogProvider.provideDialog(mContext); in showDialog()
266 mDialog.show(); in showDialog()
267 mDialog.setOnClickListener(this); in showDialog()
[all …]
/frameworks/base/core/java/android/preference/
DDialogPreference.java80 private Dialog mDialog; field in DialogPreference
90 mDialog.dismiss();
298 if (mDialog != null && mDialog.isShowing()) return; in onClick()
334 final Dialog dialog = mDialog = mBuilder.create(); in showDialog()
355 if (mDialog != null && mDialog.getWindow() != null) { in getDecorView()
356 return mDialog.getWindow().getDecorView(); in getDecorView()
432 mDialog = null; in onDismiss()
452 return mDialog; in getDialog()
460 if (mDialog == null || !mDialog.isShowing()) { in onActivityDestroy()
464 mDialog.dismiss(); in onActivityDestroy()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesDialogManager.java48 private SystemUIDialog mDialog; field in HearingDevicesDialogManager
75 if (mDialog != null) { in showDialog()
94 mDialog = mDialogFactory.create(!pairedHearingDeviceCheckTask.get()).createDialog(); in showDialog()
102 mDialogTransitionAnimator.show(mDialog, in showDialog()
107 mDialog.show(); in showDialog()
116 mDialog.dismiss(); in destroyDialog()
117 mDialog = null; in destroyDialog()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuDialogHelper.java36 private AlertDialog mDialog; field in MenuDialogHelper
79 mDialog = builder.create(); in show()
80 mDialog.setOnDismissListener(this); in show()
82 WindowManager.LayoutParams lp = mDialog.getWindow().getAttributes(); in show()
89 mDialog.show(); in show()
96 Window win = mDialog.getWindow(); in onKey()
108 Window win = mDialog.getWindow(); in onKey()
141 if (mDialog != null) { in dismiss()
142 mDialog.dismiss(); in dismiss()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/ui/fragments/
DInstallStagingFragment.java35 private AlertDialog mDialog; field in InstallStagingFragment
44 mDialog = new AlertDialog.Builder(requireContext()) in onCreateDialog()
52 mDialog.setCanceledOnTouchOutside(false); in onCreateDialog()
53 return mDialog; in onCreateDialog()
59 mDialog.getButton(DialogInterface.BUTTON_NEGATIVE).setEnabled(false); in onStart()
60 mProgressBar = mDialog.requireViewById(R.id.progress_indeterminate); in onStart()
DAnonymousSourceFragment.java41 private AlertDialog mDialog; field in AnonymousSourceFragment
53 mDialog = new AlertDialog.Builder(requireContext()) in onCreateDialog()
61 return mDialog; in onCreateDialog()
73 mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setFilterTouchesWhenObscured(true); in onStart()
81 mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(false); in onPause()
87 mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(true); in onResume()
DExternalSourcesBlockedFragment.java44 private AlertDialog mDialog; field in ExternalSourcesBlockedFragment
60 mDialog = new AlertDialog.Builder(requireContext()) in onCreateDialog()
71 return mDialog; in onCreateDialog()
83 mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setFilterTouchesWhenObscured(true); in onStart()
91 mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(false); in onPause()
97 mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(true); in onResume()
DInstallConfirmationFragment.java47 private AlertDialog mDialog; field in InstallConfirmationFragment
76 mDialog = new AlertDialog.Builder(requireContext()) in onCreateDialog()
101 return mDialog; in onCreateDialog()
113 mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setFilterTouchesWhenObscured(true); in onStart()
121 mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(false); in onPause()
127 mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(true); in onResume()
DInstallInstallingFragment.java38 private AlertDialog mDialog; field in InstallInstallingFragment
49 mDialog = new AlertDialog.Builder(requireContext()) in onCreateDialog()
59 return mDialog; in onCreateDialog()
65 mDialog.getButton(DialogInterface.BUTTON_NEGATIVE).setEnabled(false); in onStart()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallFailed.java46 private AlertDialog mDialog; field in InstallFailed
59 viewToEnable = mDialog.requireViewById(R.id.install_failed_blocked); in setExplanationFromErrorCode()
62 viewToEnable = mDialog.requireViewById(R.id.install_failed_conflict); in setExplanationFromErrorCode()
65 viewToEnable = mDialog.requireViewById(R.id.install_failed_incompatible); in setExplanationFromErrorCode()
68 viewToEnable = mDialog.requireViewById(R.id.install_failed_invalid_apk); in setExplanationFromErrorCode()
71 viewToEnable = mDialog.requireViewById(R.id.install_failed); in setExplanationFromErrorCode()
127 mDialog = builder.create(); in onCreate()
128 mDialog.show(); in onCreate()
DInstallSuccess.java51 private AlertDialog mDialog; field in InstallSuccess
108 mDialog = builder.create(); in bindUi()
109 mDialog.show(); in bindUi()
110 mDialog.requireViewById(R.id.install_success).setVisibility(View.VISIBLE); in bindUi()
122 Button launchButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in bindUi()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoLockedActivity.java29 private NekoDialog mDialog; field in NekoLockedActivity
39 mDialog = new NekoDialog(this); in onCreate()
40 mDialog.setOnDismissListener(this); in onCreate()
41 mDialog.show(); in onCreate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesDialogDelegateTest.java128 private SystemUIDialog mDialog; field in HearingDevicesDialogDelegateTest
151 .thenReturn(mDialog); in setUp()
156 assertThat(mDialogDelegate.createDialog()).isEqualTo(mDialog); in createDialog_dialogShown()
161 mDialog.show(); in clickPairNewDeviceButton_intentActionMatch()
163 getPairNewDeviceButton(mDialog).performClick(); in clickPairNewDeviceButton_intentActionMatch()
205 mDialog.show(); in showDialog_hasLiveCaption_noRelatedToolsInConfig_showOneRelatedTool()
207 LinearLayout relatedToolsView = (LinearLayout) getRelatedToolsView(mDialog); in showDialog_hasLiveCaption_noRelatedToolsInConfig_showOneRelatedTool()
228 mDialog.show(); in showDialog_hasLiveCaption_oneRelatedToolInConfig_showTwoRelatedTools()
230 LinearLayout relatedToolsView = (LinearLayout) getRelatedToolsView(mDialog); in showDialog_hasLiveCaption_oneRelatedToolInConfig_showTwoRelatedTools()
245 mDialog = new SystemUIDialog( in setUpPairNewDeviceDialog()
[all …]
/frameworks/base/core/java/android/webkit/
DPlugin.java196 private AlertDialog mDialog; field in Plugin.DefaultClickHandler
201 if (mDialog == null) { in handleClickEvent()
202 mDialog = new AlertDialog.Builder(context) in handleClickEvent()
217 mDialog.dismiss(); in onClick()
218 mDialog = null; in onClick()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodPreference.java82 private AlertDialog mDialog = null; field in InputMethodPreference
255 if (mDialog != null && mDialog.isShowing()) { in showSecurityWarnDialog()
256 mDialog.dismiss(); in showSecurityWarnDialog()
284 mDialog = builder.create(); in showSecurityWarnDialog()
285 mDialog.show(); in showSecurityWarnDialog()
294 if (mDialog != null && mDialog.isShowing()) { in showDirectBootWarnDialog()
295 mDialog.dismiss(); in showDirectBootWarnDialog()
304 mDialog = builder.create(); in showDirectBootWarnDialog()
305 mDialog.show(); in showDirectBootWarnDialog()
/frameworks/base/services/core/java/com/android/server/wm/
DUnsupportedDisplaySizeDialog.java44 mDialog = new AlertDialog.Builder(context) in UnsupportedDisplaySizeDialog()
51 mDialog.create(); in UnsupportedDisplaySizeDialog()
53 final Window window = mDialog.getWindow(); in UnsupportedDisplaySizeDialog()
59 final CheckBox alwaysShow = mDialog.findViewById(R.id.ask_checkbox); in UnsupportedDisplaySizeDialog()
DUnsupportedCompileSdkDialog.java59 mDialog = builder.create(); in UnsupportedCompileSdkDialog()
60 mDialog.create(); in UnsupportedCompileSdkDialog()
62 final Window window = mDialog.getWindow(); in UnsupportedCompileSdkDialog()
68 final CheckBox alwaysShow = mDialog.findViewById(R.id.ask_checkbox); in UnsupportedCompileSdkDialog()
DDeprecatedAbiDialog.java49 mDialog = builder.create(); in DeprecatedAbiDialog()
50 mDialog.create(); in DeprecatedAbiDialog()
52 final Window window = mDialog.getWindow(); in DeprecatedAbiDialog()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DBiometricNotificationDialogFactoryTest.java66 @Mock SystemUIDialog mDialog; field in BiometricNotificationDialogFactoryTest
79 when(mSystemUIDialogFactory.create()).thenReturn(mDialog); in setUp()
97 verify(mDialog).setPositiveButton(anyInt(), mOnClickListenerArgumentCaptor.capture()); in testFingerprintReEnrollDialog_onRemovalSucceeded()
123 verify(mDialog).setPositiveButton(anyInt(), mOnClickListenerArgumentCaptor.capture()); in testFingerprintReEnrollDialog_onRemovalError()
147 verify(mDialog).setPositiveButton(anyInt(), mOnClickListenerArgumentCaptor.capture()); in testFingerprintReEnrollDialog_forced()
149 verify(mDialog, never()).setNegativeButton(anyInt(), any()); in testFingerprintReEnrollDialog_forced()
160 verify(mDialog).setPositiveButton(anyInt(), mOnClickListenerArgumentCaptor.capture()); in testFaceReEnrollDialog_onRemovalSucceeded()
186 verify(mDialog).setPositiveButton(anyInt(), mOnClickListenerArgumentCaptor.capture()); in testFaceReEnrollDialog_onRemovalError()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/permission/
DMediaProjectionPermissionActivity.java92 private AlertDialog mDialog; field in MediaProjectionPermissionActivity
262 mDialog = in onCreate()
273 mDialog = dialogBuilder.create(); in onCreate()
284 setUpDialog(mDialog); in onCreate()
285 mDialog.show(); in onCreate()
295 if (mDialog != null) { in onDestroy()
296 mDialog.setOnDismissListener(null); in onDestroy()
297 mDialog.setOnCancelListener(null); in onDestroy()
298 mDialog.dismiss(); in onDestroy()
307 if (mDialog != null) { in onClick()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java126 private SystemUIDialog mDialog; field in KeyboardUI
438 if (mDialog != null) { in handleMessage()
446 mDialog = mBluetoothDialogDelegate.createDialog(); in handleMessage()
447 mDialog.setTitle(R.string.enable_bluetooth_title); in handleMessage()
448 mDialog.setMessage(R.string.enable_bluetooth_message); in handleMessage()
449 mDialog.setPositiveButton( in handleMessage()
451 mDialog.setNegativeButton(android.R.string.cancel, clickListener); in handleMessage()
452 mDialog.setOnDismissListener(dismissListener); in handleMessage()
453 mDialog.show(); in handleMessage()
457 if (mDialog != null) { in handleMessage()
[all …]

123