Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/app/
DDialogFragment.java189 Dialog mDialog; field in DialogFragment
297 if (mDialog != null) { in dismissInternal()
298 mDialog.dismiss(); in dismissInternal()
299 mDialog = null; in dismissInternal()
318 return mDialog; in getDialog()
336 if (mDialog != null) mDialog.setCancelable(cancelable); in setCancelable()
417 mDialog = onCreateDialog(savedInstanceState); in onGetLayoutInflater()
420 mDialog.getWindow().addFlags( in onGetLayoutInflater()
426 mDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); in onGetLayoutInflater()
428 if (mDialog != null) { in onGetLayoutInflater()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DUnsupportedDisplaySizeDialog.java31 private final AlertDialog mDialog; field in UnsupportedDisplaySizeDialog
46 mDialog = new AlertDialog.Builder(context) in UnsupportedDisplaySizeDialog()
53 mDialog.create(); in UnsupportedDisplaySizeDialog()
55 final Window window = mDialog.getWindow(); in UnsupportedDisplaySizeDialog()
61 final CheckBox alwaysShow = mDialog.findViewById(R.id.ask_checkbox); in UnsupportedDisplaySizeDialog()
72 mDialog.show(); in show()
76 mDialog.dismiss(); in dismiss()
DUnsupportedCompileSdkDialog.java33 private final AlertDialog mDialog; field in UnsupportedCompileSdkDialog
61 mDialog = builder.create(); in UnsupportedCompileSdkDialog()
62 mDialog.create(); in UnsupportedCompileSdkDialog()
64 final Window window = mDialog.getWindow(); in UnsupportedCompileSdkDialog()
70 final CheckBox alwaysShow = mDialog.findViewById(R.id.ask_checkbox); in UnsupportedCompileSdkDialog()
81 mDialog.show(); in show()
85 mDialog.dismiss(); in dismiss()
DDeprecatedTargetSdkVersionDialog.java38 private final AlertDialog mDialog; field in DeprecatedTargetSdkVersionDialog
69 mDialog = builder.create(); in DeprecatedTargetSdkVersionDialog()
70 mDialog.create(); in DeprecatedTargetSdkVersionDialog()
72 final Window window = mDialog.getWindow(); in DeprecatedTargetSdkVersionDialog()
85 mDialog.show(); in show()
89 mDialog.dismiss(); in dismiss()
/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/core/java/android/preference/
DDialogPreference.java82 private Dialog mDialog; field in DialogPreference
92 mDialog.dismiss();
300 if (mDialog != null && mDialog.isShowing()) return; in onClick()
336 final Dialog dialog = mDialog = mBuilder.create(); in showDialog()
360 if (mDialog != null && mDialog.getWindow() != null) { in getDecorView()
361 return mDialog.getWindow().getDecorView(); in getDecorView()
455 mDialog = null; in onDismiss()
475 return mDialog; in getDialog()
483 if (mDialog == null || !mDialog.isShowing()) { in onActivityDestroy()
487 mDialog.dismiss(); in onActivityDestroy()
[all …]
DPreferenceScreen.java103 private Dialog mDialog; field in PreferenceScreen
211 Dialog dialog = mDialog = new Dialog(context, context.getThemeResId()); in showDialog()
238 mDialog = null; in onDismiss()
248 return mDialog; in getDialog()
271 final Dialog dialog = mDialog; in onSaveInstanceState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogImplTest.java59 VolumeDialogImpl mDialog; field in VolumeDialogImplTest
78 mDialog = new VolumeDialogImpl(getContext()); in setup()
79 mDialog.init(0, null); in setup()
81 mDialog.onStateChangedH(state); in setup()
114 mDialog.rescheduleTimeoutH(); in testComputeTimeout()
123 mDialog.showCaptionsTooltip(); in testComputeTimeout_tooltip()
134 View dialog = mDialog.getDialogView(); in testComputeTimeout_withHovering()
163 mDialog.tryToRemoveCaptionsTooltip(); in testComputeTimeout_standard()
164 mDialog.rescheduleTimeoutH(); in testComputeTimeout_standard()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java59 private AlertDialog mDialog; field in MediaProjectionPermissionActivity
149 mDialog = new AlertDialog.Builder(this) in onCreate()
157 mDialog.create(); in onCreate()
158 mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setFilterTouchesWhenObscured(true); in onCreate()
160 final Window w = mDialog.getWindow(); in onCreate()
164 mDialog.show(); in onCreate()
170 if (mDialog != null) { in onDestroy()
171 mDialog.dismiss(); in onDestroy()
185 if (mDialog != null) { in onClick()
186 mDialog.dismiss(); in onClick()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodPreference.java78 private AlertDialog mDialog = null; field in InputMethodPreference
241 if (mDialog != null && mDialog.isShowing()) { in showSecurityWarnDialog()
242 mDialog.dismiss(); in showSecurityWarnDialog()
270 mDialog = builder.create(); in showSecurityWarnDialog()
271 mDialog.show(); in showSecurityWarnDialog()
280 if (mDialog != null && mDialog.isShowing()) { in showDirectBootWarnDialog()
281 mDialog.dismiss(); in showDirectBootWarnDialog()
290 mDialog = builder.create(); in showDirectBootWarnDialog()
291 mDialog.show(); in showDirectBootWarnDialog()
/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/SystemUI/src/com/android/systemui/statusbar/phone/
DSystemUIDialog.java115 private final Dialog mDialog; field in SystemUIDialog.DismissReceiver
119 mDialog = dialog; in DismissReceiver()
123 mDialog.getContext() in register()
130 mDialog.dismiss(); in onReceive()
136 mDialog.getContext().unregisterReceiver(this); in onDismiss()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java116 private BluetoothDialog mDialog; field in KeyboardUI
422 if (mDialog != null) { in handleMessage()
430 mDialog = new BluetoothDialog(mContext); in handleMessage()
431 mDialog.setTitle(R.string.enable_bluetooth_title); in handleMessage()
432 mDialog.setMessage(R.string.enable_bluetooth_message); in handleMessage()
433 mDialog.setPositiveButton( in handleMessage()
435 mDialog.setNegativeButton(android.R.string.cancel, clickListener); in handleMessage()
436 mDialog.setOnDismissListener(dismissListener); in handleMessage()
437 mDialog.show(); in handleMessage()
441 if (mDialog != null) { in handleMessage()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DFaceDialogView.java134 mDialog.getWidth() /* right */, in getOutline()
135 mDialog.getBottom(), /* bottom */ in getOutline()
141 return mDialog.getHeight() - mBiometricIcon.getHeight() - 2 * (int) padding; in calculateSmall()
162 final float iconSmallPositionY = mDialog.getHeight() - mBiometricIcon.getHeight() - padding; in updateSize()
184 mDialog.setOutlineProvider(mOutlineProvider); in updateSize()
187 mDialog.setClipToOutline(true); in updateSize()
188 mDialog.invalidateOutline(); in updateSize()
200 mDialog.invalidateOutline(); in updateSize()
271 mDialog.setClipToOutline(false); in updateSize()
272 mDialog.invalidateOutline(); in updateSize()
DBiometricDialogView.java86 protected final LinearLayout mDialog; field in BiometricDialogView
125 mDialog.animate()
193 mDialog = mLayout.findViewById(R.id.dialog); in BiometricDialogView()
267 mDialog.getLayoutParams().width = (int) mDialogWidth; in onAttachedToWindow()
311 mDialog.animate().cancel(); in onAttachedToWindow()
312 mDialog.setAlpha(1.0f); in onAttachedToWindow()
313 mDialog.setTranslationY(0); in onAttachedToWindow()
317 mDialog.setTranslationY(mAnimationTranslationOffset); in onAttachedToWindow()
359 mDialog.animate() in startDismiss()
377 mDialog.animate().cancel(); in forceRemove()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogComponent.java63 private VolumeDialog mDialog; field in VolumeDialogComponent
83 if (mDialog != null) { in VolumeDialogComponent()
84 mDialog.destroy(); in VolumeDialogComponent()
86 mDialog = dialog; in VolumeDialogComponent()
87 mDialog.init(LayoutParams.TYPE_VOLUME_OVERLAY, mVolumeDialogCallback); in VolumeDialogComponent()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java106 private ActionsDialog mDialog; field in LegacyGlobalActions
168 if (mDialog != null) { in showDialog()
169 mDialog.dismiss(); in showDialog()
170 mDialog = null; in showDialog()
192 mDialog = createDialog(); in handleShow()
201 if (mDialog != null) { in handleShow()
202 WindowManager.LayoutParams attrs = mDialog.getWindow().getAttributes(); in handleShow()
204 mDialog.getWindow().setAttributes(attrs); in handleShow()
205 mDialog.show(); in handleShow()
206 mDialog.getWindow().getDecorView().setSystemUiVisibility( in handleShow()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DCastTile.java68 private Dialog mDialog; field in CastTile
161 mDialog = MediaRouteDialogPresenter.createDialog(mContext, ROUTE_TYPE_REMOTE_DISPLAY, in showDetail()
163 mDialog.dismiss(); in showDetail()
167 mDialog.getWindow().setType(LayoutParams.TYPE_KEYGUARD_DIALOG); in showDetail()
168 SystemUIDialog.setShowForAllUsers(mDialog, true); in showDetail()
169 SystemUIDialog.registerDismissListener(mDialog); in showDetail()
170 SystemUIDialog.setWindowOnTop(mDialog); in showDetail()
171 mUiHandler.post(() -> mDialog.show()); in showDetail()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooter.java67 private AlertDialog mDialog; field in QSSecurityFooter
248 mDialog.dismiss(); in onClick()
264 mDialog = new SystemUIDialog(mContext); in createDialog()
265 mDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); in createDialog()
269 mDialog.setView(dialogView); in createDialog()
270 mDialog.setButton(DialogInterface.BUTTON_POSITIVE, getPositiveButton(), this); in createDialog()
282 mDialog.setButton(DialogInterface.BUTTON_NEGATIVE, getSettingsButton(), this); in createDialog()
330 mDialog.show(); in createDialog()
331 mDialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, in createDialog()
496 mDialog.dismiss(); in onClick()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DSystemUIDialogTest.java43 private SystemUIDialog mDialog; field in SystemUIDialogTest
50 mDialog = new SystemUIDialog(mContextSpy); in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java148 private ActionsDialog mDialog; field in GlobalActionsDialog
218 if (mDialog != null && mDialog.mPanelController != null) { in GlobalActionsDialog()
220 mDialog.mPanelController.onDeviceLockStateChanged(locked); in GlobalActionsDialog()
235 if (mDialog != null) { in showDialog()
236 mDialog.dismiss(); in showDialog()
237 mDialog = null; in showDialog()
267 mDialog = createDialog(); in handleShow()
276 WindowManager.LayoutParams attrs = mDialog.getWindow().getAttributes(); in handleShow()
279 mDialog.getWindow().setAttributes(attrs); in handleShow()
280 mDialog.show(); in handleShow()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DDumpHeapActivity.java57 AlertDialog mDialog; field in DumpHeapActivity
127 mDialog = b.show(); in onCreate()
149 mDialog.dismiss(); in onDestroy()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipSessionGroup.java428 newSession.mDialog = newSession.mServerTransaction.getDialog(); in createNewSession()
453 Dialog dialog = session.mDialog; in processInviteWithReplaces()
541 Dialog mDialog; field in SipSessionGroup.SipSessionImpl
612 if (mDialog != null) mDialog.delete(); in reset()
613 mDialog = null; in reset()
781 if (dialog != null) mDialog = dialog; in process()
850 if (mDialog == event.getDialog()) { in processDialogTerminated()
853 if (SSI_DBG) log("not the current dialog; current=" + mDialog in processDialogTerminated()
986 mDialog = mClientTransaction.getDialog(); in handleAuthentication()
1070 mSipHelper.sendReferNotify(mReferSession.mDialog,
[all …]
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/volume/
DCarVolumeDialogImpl.java98 private CustomDialog mDialog; field in CarVolumeDialogImpl
243 mDialog = new CustomDialog(mContext); in initDialog()
248 mWindow = mDialog.getWindow(); in initDialog()
268 mDialog.setContentView(R.layout.car_volume_dialog); in initDialog()
271 mDialog.setCanceledOnTouchOutside(true); in initDialog()
272 mDialog.setOnShowListener(dialog -> { in initDialog()
312 mDialog.show(); in showH()
355 mDialog.dismiss(); in dismissH()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DSaveUi.java137 private final @NonNull Dialog mDialog; field in SaveUi
258 mDialog = new Dialog(context, mThemeId); in SaveUi()
259 mDialog.setContentView(view); in SaveUi()
263 mDialog.setOnDismissListener((d) -> mListener.onCancel(null)); in SaveUi()
265 final Window window = mDialog.getWindow(); in SaveUi()
523 mDialog.show(); in show()
530 mDialog.hide(); in hide()
543 mDialog.dismiss(); in destroy()
580 final View view = mDialog.getWindow().getDecorView(); in dump()

12