Home
last modified time | relevance | path

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

/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java67 private AlertDialog mDialog; field in AlertDialog_BuilderTest
111 mDialog = mBuilder.show(); in testSetIconWithParamInt()
122 mDialog = mBuilder.show(); in testSetIconWithParamDrawable()
133 mDialog = mBuilder.show(); in testSetIconAttribute()
144 mDialog = mBuilder.show(); in testSetPositiveButtonWithParamInt()
145 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt()
151 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt()
154 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamInt()
164 mDialog = mBuilder.show(); in testSetPositiveButtonWithParamCharSequence()
165 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamCharSequence()
[all …]
DAlertDialog_BuilderCursorTest.java56 private AlertDialog mDialog; field in AlertDialog_BuilderCursorTest
109 mDialog = null; in setUp()
173 mDialog = mBuilder.show(); in testSetCursor()
174 mListView = mDialog.getListView(); in testSetCursor()
184 verify(mOnClickListener, times(1)).onClick(mDialog, 0); in testSetCursor()
198 mDialog = mBuilder.show(); in testSetSingleChoiceItemsWithParamCursor()
199 mListView = mDialog.getListView(); in testSetSingleChoiceItemsWithParamCursor()
206 verify(mOnClickListener, times(1)).onClick(mDialog, 0); in testSetSingleChoiceItemsWithParamCursor()
224 mDialog = mBuilder.show(); in testSetMultiChoiceItemsWithParamCursor()
225 mListView = mDialog.getListView(); in testSetMultiChoiceItemsWithParamCursor()
[all …]
DDialogTest.java987 private WeakReference<DialogInterface> mDialog; field in DialogTest.MockDismissCancelHandler
992 mDialog = new WeakReference<DialogInterface>(dialog); in MockDismissCancelHandler()
999 ((OnDismissListener) msg.obj).onDismiss(mDialog.get()); in handleMessage()
1002 ((OnCancelListener) msg.obj).onCancel(mDialog.get()); in handleMessage()
/cts/tests/tests/view/src/android/view/cts/
DScrollCaptureScrollViewCtsActivity.java26 private Dialog mDialog; field in ScrollCaptureScrollViewCtsActivity
31 mDialog = new Dialog(this, android.R.style.Theme_DeviceDefault_Dialog_NoActionBar); in onCreate()
32 mDialog.setContentView(R.layout.scrollview_layout); in onCreate()
33 mDialog.show(); in onCreate()
35 mDialog.getWindow().setBackgroundDrawableResource(android.R.color.white); in onCreate()
39 return mDialog; in getDialog()
DOnBackInvokedDispatcherTestActivity.java24 private Dialog mDialog; field in OnBackInvokedDispatcherTestActivity
30 mDialog = new Dialog(this, 0); in onCreate()
31 mDialog.setContentView(R.layout.onbackinvokeddispatcher_dialog_layout); in onCreate()
32 mDialog.show(); in onCreate()
36 return mDialog; in getDialog()
DOnBackInvokedDispatcherTest.java49 private Dialog mDialog; field in OnBackInvokedDispatcherTest
60 mDialog = mActivity.getDialog(); in setUp()
66 OnBackInvokedDispatcher dialogDispatcher = mDialog.getOnBackInvokedDispatcher(); in testGetDispatcherOnDialog()
75 mDialog = mActivity.getDialog(); in findDispatcherOnView()
96 mDialog = mActivity.getDialog(); in findDispatcherOnViewGroup()
/cts/tests/app/app/src/android/app/stubs/
DDialogStubActivity.java100 private Dialog mDialog; field in DialogStubActivity
115 mDialog = new Dialog(this); in onCreateDialog()
116 mDialog.setTitle("Hello, Dialog"); in onCreateDialog()
120 mDialog = new Dialog(this, 1); in onCreateDialog()
124 mDialog = getAlertDialogInstance(false); in onCreateDialog()
128 mDialog = getCustomAlertDialogInstance(false); in onCreateDialog()
132 mDialog = getCustomAlertDialogInstance(true); in onCreateDialog()
136 mDialog = new MockDatePickerDialog(this, mOnDateSetListener, INITIAL_YEAR, in onCreateDialog()
141 mDialog = new MockDatePickerDialog(this, in onCreateDialog()
147 mDialog = new TimePickerDialog(this, new OnTimeSetListener() { in onCreateDialog()
[all …]
DAppStubActivity.java33 private Dialog mDialog; field in AppStubActivity
68 return mDialog; in getDialogById()
74 mDialog = new Dialog(this); in onCreateDialog()
75 return mDialog; in onCreateDialog()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DDialogLauncherActivity.java42 private LoginDialog mDialog; field in DialogLauncherActivity
52 mDialog = new LoginDialog(this); in onCreate()
53 mLaunchButton.setOnClickListener((v) -> mDialog.show()); in onCreate()
57 syncRunOnUiThread(() -> v.visit(mDialog.mUsernameEditText)); in onUsername()
68 final View view = mDialog.getWindow().getDecorView(); in assertInDialogBounds()
82 () -> mDialog.getWindow().setLayout(metrics.widthPixels, metrics.heightPixels)); in maximizeDialog()
86 assertWithMessage("must call launchDialog first").that(mDialog.mUsernameEditText) in expectAutofill()
89 mDialog.mUsernameEditText.addTextChangedListener(mExpectation.mCcUsernameWatcher); in expectAutofill()
90 mDialog.mPasswordEditText.addTextChangedListener(mExpectation.mCcPasswordWatcher); in expectAutofill()
109 : new OneTimeTextWatcher("username", mDialog.mUsernameEditText, username); in FillExpectation()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleConnectionPriorityServerBaseActivity.java45 private Dialog mDialog; field in BleConnectionPriorityServerBaseActivity
97 if (mDialog != null) { in closeDialog()
98 mDialog.dismiss(); in closeDialog()
99 mDialog = null; in closeDialog()
117 mDialog = builder.create(); in showErrorDialog()
118 mDialog.show(); in showErrorDialog()
148 mDialog = new AlertDialog.Builder(BleConnectionPriorityServerBaseActivity.this)
163 mDialog.show();
194 mDialog = dialog; in showProgressDialog()
195 mDialog.show(); in showProgressDialog()
DBleConnectionPriorityClientBaseActivity.java48 private Dialog mDialog; field in BleConnectionPriorityClientBaseActivity
108 if (mDialog != null) { in closeDialog()
109 mDialog.dismiss(); in closeDialog()
110 mDialog = null; in closeDialog()
122 mDialog = dialog; in showProgressDialog()
123 mDialog.show(); in showProgressDialog()
DBleCocClientTestBaseActivity.java57 private Dialog mDialog; field in BleCocClientTestBaseActivity
115 if (mDialog != null) { in closeDialog()
116 mDialog.dismiss(); in closeDialog()
117 mDialog = null; in closeDialog()
129 mDialog = dialog; in showProgressDialog()
130 mDialog.show(); in showProgressDialog()
269 mDialog = new AlertDialog.Builder(BleCocClientTestBaseActivity.this)
DBleEncryptedClientBaseActivity.java48 private Dialog mDialog; field in BleEncryptedClientBaseActivity
160 if (mDialog != null) { in closeDialog()
161 mDialog.dismiss(); in closeDialog()
162 mDialog = null; in closeDialog()
174 mDialog = dialog; in showProgressDialog()
175 mDialog.show(); in showProgressDialog()
DBleClientTestBaseActivity.java96 private Dialog mDialog; field in BleClientTestBaseActivity
163 if (mDialog != null) { in closeDialog()
164 mDialog.dismiss(); in closeDialog()
165 mDialog = null; in closeDialog()
177 mDialog = dialog; in showProgressDialog()
178 mDialog.show(); in showProgressDialog()
435 mDialog = new AlertDialog.Builder(BleClientTestBaseActivity.this)
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DDialogFrameTestActivity.java55 private AlertDialog mDialog; field in DialogFrameTestActivity
60 mDialog.dismiss(); in onStop()
108 mDialog = new AlertDialog.Builder(this).create(); in doLayoutParamTest()
110 mDialog.setMessage("Testing is fun!"); in doLayoutParamTest()
111 mDialog.setTitle(DIALOG_WINDOW_NAME); in doLayoutParamTest()
112 mDialog.create(); in doLayoutParamTest()
114 Window w = mDialog.getWindow(); in doLayoutParamTest()
119 mDialog.show(); in doLayoutParamTest()
/cts/tests/inputmethod/testapp/src/android/view/inputmethod/ctstestapp/
DMainActivity.java49 private AlertDialog mDialog; field in MainActivity
104 mDialog = new AlertDialog.Builder(this).setView(new LinearLayout(this)).create(); in onCreate()
105 mDialog.getWindow().addFlags(FLAG_ALT_FOCUSABLE_IM); in onCreate()
106 mDialog.getWindow().setSoftInputMode(SOFT_INPUT_ADJUST_PAN); in onCreate()
107 mDialog.show(); in onCreate()
177 if (mDialog != null) { in onStart()
178 mDialog.dismiss(); in onStart()
179 mDialog = null; in onStart()
/cts/tests/tests/packageinstaller/contentprovider/src/android/packageinstaller/contentprovider/cts/
DContentProviderAppVisibilityTestsBase.kt43 private var mDialog: UiObject2? = null variable in android.packageinstaller.contentprovider.cts.ContentProviderAppVisibilityTestsBase
94 mDialog = mUiDevice.findObject(By.text(INSTALL_FAIL_DIALOG_TEXT)) in runTest()
121 if (mDialog != null && mButton != null && mButton!!.isEnabled) { in assertErrorDialogVisible()
129 if (mDialog != null || mButton != null) { in assertErrorDialogNotVisible()
/cts/hostsidetests/systemui/app/src/android/systemui/cts/
DTestTileService.java173 private final Dialog mDialog; field in TestTileService.FocusView
177 mDialog = dialog; in FocusView()
187 mDialog.dismiss(); in onWindowFocusChanged()