Home
last modified time | relevance | path

Searched refs:dialog (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
H A DTestableAlertDialogTest.kt54 dialog.show()
61 dialog.show()
72 dialog.show()
84 dialog.show()
93 dialog.show()
94 dialog.hide()
103 dialog.show()
115 dialog.show()
139 dialog.show()
151 dialog.show()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
H A DPrivacyDialogV2Test.kt105 dialog.show()
116 dialog.show()
128 dialog.show()
137 dialog.show()
149 dialog.show()
162 dialog.show()
174 dialog.show()
191 dialog.show()
204 dialog.show()
215 dialog.show()
[all …]
H A DPrivacyDialogTest.kt87 dialog.show()
97 dialog.show()
108 dialog.show()
150 dialog.show()
174 dialog.show()
204 dialog.show()
234 dialog.show()
260 dialog.show()
286 dialog.show()
311 dialog.show()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/users/
H A DCreateUserDialogControllerTest.java77 dialog.show(); in positiveButton_grantAdminStage_noValue_OkButtonShouldBeDisabled()
84 dialog.dismiss(); in positiveButton_grantAdminStage_noValue_OkButtonShouldBeDisabled()
94 dialog.show(); in positiveButton_MultipleAdminDisabled_shouldSkipGrantAdminStage()
113 dialog.show(); in editUserInfoController_shouldOnlyBeVisibleOnLastStage()
132 dialog.show(); in positiveButton_MultipleAdminEnabled_shouldShowGrantAdminStage()
153 dialog.show(); in cancelCallback_isCalled_whenCancelled()
154 dialog.cancel(); in cancelCallback_isCalled_whenCancelled()
168 dialog.show(); in cancelCallback_isCalled_whenNegativeButtonClickedOnFirstStage()
184 dialog.show(); in cancelCallback_isNotCalled_whenNegativeButtonClickedOnSecondStage()
204 dialog.show(); in successCallback_isCalled_setNameAndAdminStatus()
[all …]
H A DEditUserInfoControllerTest.java129 dialog.show(); in userNameView_inputLongName_shouldBeConstrained()
144 dialog.show(); in cancelCallback_isCalled_whenCancelled()
145 dialog.cancel(); in cancelCallback_isCalled_whenCancelled()
160 dialog.show(); in cancelCallback_isCalled_whenNegativeClicked()
179 dialog.show(); in successCallback_isCalled_whenNothingChanged()
180 dialog.findViewById(R.id.button_ok).performClick(); in successCallback_isCalled_whenNothingChanged()
197 dialog.show(); in successCallback_calledWithNullIcon_whenOldIconIsNullAndNothingChanged()
198 dialog.findViewById(R.id.button_ok).performClick(); in successCallback_calledWithNullIcon_whenOldIconIsNullAndNothingChanged()
215 dialog.show(); in successCallback_isCalled_whenLabelChanges()
237 dialog.show(); in successCallback_isCalled_whenPhotoChanges()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
H A DTileRequestDialogTest.kt58 dialog.dismiss()
67 dialog.setTileData(tileData)
68 dialog.show()
82 dialog.setTileData(tileData)
83 dialog.show()
96 dialog.show()
111 dialog.show()
125 dialog.show()
140 dialog.show()
156 dialog.show()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
H A DDialogLaunchAnimatorTest.kt68 val dialog = createAndShowDialog() regex
70 assertTrue(dialog.isShowing)
104 assertFalse(dialog.isShowing)
147 val dialog = createAndShowDialog() regex
149 dialog.hide()
190 val dialog = TestDialog(context) regex
203 val dialog = TestDialog(context) regex
206 dialog
275 dialog.dismiss()
307 dialog
[all …]
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
H A DDialogLaunchAnimator.kt210 dialog: Dialog,
217 dialog.show()
237 dialog: Dialog,
278 dialog = dialog,
296 dialog: Dialog,
314 dialog,
358 dialog: Dialog,
374 val dialog = animatedDialog.dialog regex
512 val dialog: Dialog,
592 dialog.create()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenrecord/
H A DScreenRecordPermissionDialogTest.kt60 dialog =
70 dialog.onCreate(null)
76 if (::dialog.isInitialized) {
77 dialog.dismiss()
83 dialog.show()
91 dialog.show()
100 dialog.show()
109 dialog.show()
111 assertThat(dialog.isShowing).isTrue()
116 dialog.show()
[all …]
H A DScreenRecordDialogTest.kt73 private lateinit var dialog: ScreenRecordDialog
79 dialog = ScreenRecordDialog(
87 if (::dialog.isInitialized) {
88 dialog.dismiss()
96 dialog.show()
98 val visibility = dialog.requireViewById<View>(R.id.button_app).visibility
106 dialog.show()
108 val visibility = dialog.requireViewById<View>(R.id.button_app).visibility
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DSystemUIDialog.java324 final Window window = dialog.getWindow(); in setWindowOnTop()
333 final Window window = dialog.getWindow(); in applyFlags()
339 return dialog; in applyFlags()
353 registerDismissListener(dialog, null); in registerDismissListener()
372 dialog.setOnDismissListener(d -> { in registerDismissListener()
380 public static void setDialogSize(Dialog dialog) { in setDialogSize() argument
383 dialog.create(); in setDialogSize()
384 dialog.getWindow().setLayout(getDefaultDialogWidth(dialog), getDefaultDialogHeight()); in setDialogSize()
388 Context context = dialog.getContext(); in getDefaultDialogWidth()
405 width += getHorizontalInsets(dialog); in getDefaultDialogWidth()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DSystemUIDialogTest.java77 dialog.show(); in testRegisterReceiver()
83 dialog.dismiss(); in testRegisterReceiver()
92 dialog.show(); in testNoRegisterReceiver()
94 assertTrue(dialog.isShowing()); in testNoRegisterReceiver()
96 dialog.dismiss(); in testNoRegisterReceiver()
98 assertFalse(dialog.isShowing()); in testNoRegisterReceiver()
107 dialog.show(); in usePredictiveBackAnimFlag()
109 assertTrue(dialog.isShowing()); in usePredictiveBackAnimFlag()
113 dialog.dismiss(); in usePredictiveBackAnimFlag()
135 dialog.show(); in startAndStopAreCalled()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DMediaRouteChooserDialogFragment.java68 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); in setRouteTypes() local
69 if (dialog != null) { in setRouteTypes()
70 dialog.setRouteTypes(types); in setRouteTypes()
79 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); in setExtendedSettingsClickListener() local
80 if (dialog != null) { in setExtendedSettingsClickListener()
81 dialog.setExtendedSettingsClickListener(listener); in setExtendedSettingsClickListener()
99 MediaRouteChooserDialog dialog = onCreateChooserDialog(getActivity(), savedInstanceState); in onCreateDialog() local
100 dialog.setRouteTypes(getRouteTypes()); in onCreateDialog()
101 dialog.setExtendedSettingsClickListener(mExtendedSettingsClickListener); in onCreateDialog()
102 return dialog; in onCreateDialog()
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/
H A DFakeSystemUIDialogController.kt32 val dialog: SystemUIDialog = mock()
38 .whenever(dialog)
41 .whenever(dialog)
45 .whenever(dialog)
48 .whenever(dialog)
51 saveListener(DialogInterface.BUTTON_NEUTRAL).whenever(dialog).setNeutralButton(any(), any())
53 .whenever(dialog)
71 verify(dialog).setOnCancelListener(captor.capture())
72 captor.value.onCancel(dialog)
78 .onClick(dialog, which)
/aosp14/frameworks/base/packages/SystemUI/docs/
H A Ddialogs.md3 ## Creating a dialog
13 The internal elements of the dialog are laid out using the following resources:
33 * `setView`: to set a custom view in the dialog instead of using `setMessage`.
40 ## Showing the dialog
43 nicely animate the dialog from/to that `View`, instead of calling `Dialog.show`.
47 * `showFromView`: animates the dialog show from a view , and the dialog dismissal/cancel/hide to the
49 * `showFromDialog`: animates the dialog show from a currently showing dialog, and the dialog
50 dismissal/cancel/hide back to that dialog. The originating dialog must have been shown using
53 the top-most dialog back into the view that was used in the initial `showFromView`.
60 val dialog = SystemUIDialog(context).apply {
[all …]
/aosp14/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
H A DDialogThemedActivity.java53 AlertDialog dialog = new AlertDialog.Builder(this) in onCreate() local
60 dialog.getWindow().getDecorView().setLayoutParams(attrs); in onCreate()
61 dialog.setCanceledOnTouchOutside(true); in onCreate()
62 dialog.setOnShowListener(d -> textView.setText(textView.getText() in onCreate()
63 + "IME: " + isInsetsVisible(dialog, ime()) + "\n" in onCreate()
64 + "StatusBar: " + isInsetsVisible(dialog, statusBars()) + "\n" in onCreate()
65 + "NavBar: " + isInsetsVisible(dialog, navigationBars()) + "\n") in onCreate()
67 dialog.show(); in onCreate()
68 dialog.setOnDismissListener((d) -> finish()); in onCreate()
/aosp14/frameworks/base/core/java/android/content/
H A DDialogInterface.java75 void onCancel(DialogInterface dialog); in onCancel() argument
89 void onDismiss(DialogInterface dialog); in onDismiss() argument
103 void onShow(DialogInterface dialog); in onShow() argument
119 void onClick(DialogInterface dialog, int which); in onClick() argument
135 void onClick(DialogInterface dialog, int which, boolean isChecked); in onClick() argument
155 boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event); in onKey() argument
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/user/
H A DUserSwitchDialogControllerTest.kt59 private lateinit var dialog: SystemUIDialog
83 `when`(dialog.context).thenReturn(mContext)
91 { dialog }
107 verify(dialog).setShowForAllUsers(true)
113 verify(dialog).setCanceledOnTouchOutside(true)
126 verify(dialog).setPositiveButton(anyInt(), capture(clickCaptor))
128 clickCaptor.value.onClick(dialog, DialogInterface.BUTTON_NEUTRAL)
139 verify(dialog)
143 clickCaptor.value.onClick(dialog, DialogInterface.BUTTON_NEUTRAL)
160 verify(dialog)
[all …]
/aosp14/frameworks/base/core/java/android/preference/
H A DPreferenceScreen.java223 dialog.setTitle(title); in showDialog()
226 dialog.setContentView(childPrefScreen); in showDialog()
227 dialog.setOnDismissListener(this); in showDialog()
229 dialog.onRestoreInstanceState(state); in showDialog()
233 getPreferenceManager().addPreferencesScreen(dialog); in showDialog()
235 dialog.show(); in showDialog()
238 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
240 getPreferenceManager().removePreferencesScreen(dialog); in onDismiss()
272 final Dialog dialog = mDialog; in onSaveInstanceState() local
273 if (dialog == null || !dialog.isShowing()) { in onSaveInstanceState()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/backlight/ui/
H A DKeyboardBacklightDialogCoordinator.kt55 var dialog: KeyboardBacklightDialog? = null
63 dialog?.dismiss()
64 dialog = null
71 if (dialog == null) {
72 dialog = createDialog(model.currentValue, model.maxValue)
74 dialog?.updateState(model.currentValue, model.maxValue)
78 dialog?.show()
/aosp14/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
H A DFakeBackgroundService.java83 Dialog dialog = new Dialog(windowContext, android.R.style.Theme_Holo_Dialog); in onCreate() local
84 dialog.getWindow().setType(TYPE_APPLICATION_OVERLAY); in onCreate()
85 dialog.getWindow().setFlags( in onCreate()
95 dialog.getWindow().setDimAmount(0); in onCreate()
96 dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
98 WindowManager.LayoutParams lp = dialog.getWindow().getAttributes(); in onCreate()
108 dialog.getWindow().setAttributes(lp); in onCreate()
109 dialog.getWindow().setContentView(view); in onCreate()
110 dialog.show(); in onCreate()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
H A DChallengeDialogs.kt91 DialogInterface.OnClickListener { dialog, _ ->
92 if (dialog is Dialog) {
93 dialog.requireViewById<EditText>(R.id.controls_pin_input)
94 val pin = dialog.requireViewById<EditText>(R.id.controls_pin_input)
97 dialog.dismiss()
103 DialogInterface.OnClickListener { dialog, _ ->
105 dialog.cancel()
141 DialogInterface.OnClickListener { dialog, _ ->
143 dialog.dismiss()
147 DialogInterface.OnClickListener { dialog, _ ->
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/backlight/ui/
H A DKeyboardBacklightDialogCoordinatorTest.kt53 @Mock private lateinit var dialog: KeyboardBacklightDialog
63 dialog
89 verify(dialog).show()
98 verify(dialog).updateState(2, 5)
117 verify(dialog).dismiss()
130 verify(dialog, never()).dismiss()
134 verify(dialog, times(1)).dismiss()
142 whenever(dialog.isShowing).thenReturn(false)
147 verify(dialog, times(2)).show()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
H A DControlsRequestDialog.kt59 private var dialog: Dialog? = null
117 dialog = createDialog(label)
119 dialog?.show()
123 dialog?.dismiss()
152 val dialog = AlertDialog.Builder(this) regex
161 SystemUIDialog.registerDismissListener(dialog)
162 dialog.setCanceledOnTouchOutside(true)
163 return dialog
166 override fun onCancel(dialog: DialogInterface?) {
170 override fun onClick(dialog: DialogInterface?, which: Int) {
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DCustomDialogPreferenceCompat.java70 protected void onClick(DialogInterface dialog, int which) { in onClick() argument
118 final Dialog dialog = super.onCreateDialog(savedInstanceState); in onCreateDialog() local
119 dialog.setOnShowListener(getCustomizablePreference().getOnShowListener()); in onCreateDialog()
120 return dialog; in onCreateDialog()
124 public void onClick(DialogInterface dialog, int which) { in onClick() argument
125 super.onClick(dialog, which); in onClick()
126 getCustomizablePreference().onClick(dialog, which); in onClick()

12345678910>>...12