Home
last modified time | relevance | path

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

/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java71 private AlertDialog mDialog; field in AlertDialog_BuilderTest
130 mDialog = mBuilder.show(); in testSetIconWithParamInt()
143 mDialog = mBuilder.show(); in testSetIconWithParamDrawable()
156 mDialog = mBuilder.show(); in testSetIconAttribute()
169 mDialog = mBuilder.show(); in testSetPositiveButtonWithParamInt()
170 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt()
177 verify(mOnClickListener, times(1)).onClick(mDialog, DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt()
180 verify(mOnDismissListener, times(1)).onDismiss(mDialog); in testSetPositiveButtonWithParamInt()
191 mDialog = mBuilder.show(); in testSetPositiveButtonWithParamCharSequence()
192 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamCharSequence()
[all …]
DAlertDialog_BuilderCursorTest.java49 private AlertDialog mDialog; field in AlertDialog_BuilderCursorTest
109 mDialog = null; in setUp()
175 mDialog = mBuilder.show(); in testSetCursor()
176 mListView = mDialog.getListView(); in testSetCursor()
182 verify(mOnClickListener, times(1)).onClick(mDialog, 0); in testSetCursor()
196 mDialog = mBuilder.show(); in testSetSingleChoiceItemsWithParamCursor()
197 mListView = mDialog.getListView(); in testSetSingleChoiceItemsWithParamCursor()
203 verify(mOnClickListener, times(1)).onClick(mDialog, 0); in testSetSingleChoiceItemsWithParamCursor()
220 mDialog = mBuilder.show(); in testSetMultiChoiceItemsWithParamCursor()
221 mListView = mDialog.getListView(); in testSetMultiChoiceItemsWithParamCursor()
[all …]
DDialogTest.java972 private WeakReference<DialogInterface> mDialog; field in DialogTest.MockDismissCancelHandler
977 mDialog = new WeakReference<DialogInterface>(dialog); in MockDismissCancelHandler()
984 ((OnDismissListener) msg.obj).onDismiss(mDialog.get()); in handleMessage()
987 ((OnCancelListener) msg.obj).onCancel(mDialog.get()); in handleMessage()
/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/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()
/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.java43 private Dialog mDialog; field in BleConnectionPriorityServerBaseActivity
95 if (mDialog != null) { in closeDialog()
96 mDialog.dismiss(); in closeDialog()
97 mDialog = null; in closeDialog()
115 mDialog = builder.create(); in showErrorDialog()
116 mDialog.show(); in showErrorDialog()
146 mDialog = new AlertDialog.Builder(BleConnectionPriorityServerBaseActivity.this)
161 mDialog.show();
192 mDialog = dialog; in showProgressDialog()
193 mDialog.show(); in showProgressDialog()
DBleConnectionPriorityClientBaseActivity.java44 private Dialog mDialog; field in BleConnectionPriorityClientBaseActivity
101 if (mDialog != null) { in closeDialog()
102 mDialog.dismiss(); in closeDialog()
103 mDialog = null; in closeDialog()
115 mDialog = dialog; in showProgressDialog()
116 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.java46 private Dialog mDialog; field in BleEncryptedClientBaseActivity
153 if (mDialog != null) { in closeDialog()
154 mDialog.dismiss(); in closeDialog()
155 mDialog = null; in closeDialog()
167 mDialog = dialog; in showProgressDialog()
168 mDialog.show(); in showProgressDialog()
DBleClientTestBaseActivity.java88 private Dialog mDialog; field in BleClientTestBaseActivity
146 if (mDialog != null) { in closeDialog()
147 mDialog.dismiss(); in closeDialog()
148 mDialog = null; in closeDialog()
160 mDialog = dialog; in showProgressDialog()
161 mDialog.show(); in showProgressDialog()
397 mDialog = new AlertDialog.Builder(BleClientTestBaseActivity.this)
/cts/tests/inputmethod/testapp/src/android/view/inputmethod/ctstestapp/
DMainActivity.java54 private AlertDialog mDialog; field in MainActivity
100 mDialog = new AlertDialog.Builder(this) in onCreate()
103 mDialog.getWindow().addFlags(FLAG_ALT_FOCUSABLE_IM); in onCreate()
104 mDialog.getWindow().setSoftInputMode(SOFT_INPUT_ADJUST_PAN); in onCreate()
105 mDialog.show(); in onCreate()
136 if (mDialog != null) { in onStart()
137 mDialog.dismiss(); in onStart()
138 mDialog = null; in onStart()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
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/hostsidetests/systemui/app/src/android/systemui/cts/
DTestTileService.java121 private final Dialog mDialog; field in TestTileService.FocusView
125 mDialog = dialog; in FocusView()
135 mDialog.dismiss(); in onWindowFocusChanged()