Home
last modified time | relevance | path

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

123

/cts/tests/app/src/android/app/cts/
DProgressDialogTest.java101 ProgressDialog dialog = ProgressDialog.show(mContext, TITLE, MESSAGE, false); in testShow2() local
107 assertTrue(dialog.isIndeterminate()); in testShow2()
109 dialog = ProgressDialog.show(mContext, TITLE, MESSAGE, true); in testShow2()
110 assertTrue(dialog.isIndeterminate()); in testShow2()
115 public void onCancel(DialogInterface dialog) { in testShow3()
123 ProgressDialog dialog = ProgressDialog.show(mContext, TITLE, MESSAGE, true, false); in testShow3()
125 dialog.setOnCancelListener(cL); in testShow3()
126 dialog.onBackPressed(); in testShow3()
127 dialog.dismiss(); in testShow3()
137 ProgressDialog dialog = ProgressDialog.show(mContext, TITLE, MESSAGE, true, true); in testShow3()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDialogFrameTests.java89 WindowState dialog = getSingleWindow(DIALOG_WINDOW_NAME); in doSingleTest() local
92 t.doTest(parent, dialog); in doSingleTest()
99 doParentChildTest(TEST_MATCH_PARENT, (parent, dialog) -> in testMatchParentDialog()
100 assertEquals(parent.getContentFrame(), dialog.getFrame()) in testMatchParentDialog()
109 doParentChildTest(TEST_MATCH_PARENT_LAYOUT_IN_OVERSCAN, (parent, dialog) -> in testMatchParentDialogLayoutInOverscan()
110 assertEquals(parent.getFrame(), dialog.getFrame()) in testMatchParentDialogLayoutInOverscan()
119 doParentChildTest(TEST_EXPLICIT_SIZE, (parent, dialog) -> { in testExplicitSizeDefaultGravity()
126 assertEquals(expectedFrame, dialog.getFrame()); in testExplicitSizeDefaultGravity()
132 doParentChildTest(TEST_EXPLICIT_SIZE_TOP_LEFT_GRAVITY, (parent, dialog) -> { in testExplicitSizeTopLeftGravity()
139 assertEquals(expectedFrame, dialog.getFrame()); in testExplicitSizeTopLeftGravity()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodPresentMediaDialog.java62 ByodPresentMediaDialog dialog = new ByodPresentMediaDialog(); in newImageInstance() local
65 dialog.setArguments(args); in newImageInstance()
66 return dialog; in newImageInstance()
73 ByodPresentMediaDialog dialog = new ByodPresentMediaDialog(); in newVideoInstance() local
76 dialog.setArguments(args); in newVideoInstance()
77 return dialog; in newVideoInstance()
84 ByodPresentMediaDialog dialog = new ByodPresentMediaDialog(); in newAudioInstance() local
87 dialog.setArguments(args); in newAudioInstance()
88 return dialog; in newAudioInstance()
103 final Dialog dialog = new Dialog(getActivity()); in onCreateDialog() local
[all …]
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DScopedDirectoryAccessClientTest.java114 final UiAlertDialog dialog = openExternalDirectoryValidPath(volume, dir); in userRejectsTest() local
115 dialog.noButton.click(); in userRejectsTest()
198 UiAlertDialog dialog = openExternalDirectoryValidPath(volume, dir); in testDeniesOnceButAllowsAskingAgain() local
199 dialog.assertDoNotAskAgainVisibility(false); in testDeniesOnceButAllowsAskingAgain()
200 dialog.noButton.click(); in testDeniesOnceButAllowsAskingAgain()
204 dialog = openExternalDirectoryValidPath(volume, dir); in testDeniesOnceButAllowsAskingAgain()
205 dialog.assertDoNotAskAgainVisibility(true); in testDeniesOnceButAllowsAskingAgain()
206 dialog.noButton.click(); in testDeniesOnceButAllowsAskingAgain()
229 UiAlertDialog dialog = openExternalDirectoryValidPath(volume, dir); in deniesOnceForAllTest() local
230 dialog.assertDoNotAskAgainVisibility(false); in deniesOnceForAllTest()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleConnectionPriorityServerBaseActivity.java121 public void onCancel(DialogInterface dialog) { in showErrorDialog()
142 public void onCancel(DialogInterface dialog) {
213 public void onClick(DialogInterface dialog, int which) {
219 public void onCancel(DialogInterface dialog) {
235 ProgressDialog dialog = new ProgressDialog(this); in showProgressDialog() local
236 dialog.setTitle(R.string.ble_test_running); in showProgressDialog()
237 dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); in showProgressDialog()
238 dialog.setMessage(getString(R.string.ble_test_running_message)); in showProgressDialog()
239 dialog.setCanceledOnTouchOutside(false); in showProgressDialog()
240 mDialog = dialog; in showProgressDialog()
DBleConnectionPriorityClientBaseActivity.java117 ProgressDialog dialog = new ProgressDialog(this); in showProgressDialog() local
118 dialog.setTitle(R.string.ble_test_running); in showProgressDialog()
119 dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); in showProgressDialog()
120 dialog.setMessage(getString(R.string.ble_test_running_message)); in showProgressDialog()
121 dialog.setCanceledOnTouchOutside(false); in showProgressDialog()
122 mDialog = dialog; in showProgressDialog()
133 public void onCancel(DialogInterface dialog) { in showErrorDialog()
220 public void onCancel(DialogInterface dialog) {
DBleEncryptedClientBaseActivity.java144 public void onCancel(DialogInterface dialog) { in showErrorDialog()
162 ProgressDialog dialog = new ProgressDialog(this); in showProgressDialog() local
163 dialog.setTitle(R.string.ble_test_running); in showProgressDialog()
164 dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); in showProgressDialog()
165 dialog.setMessage(getString(R.string.ble_test_running_message)); in showProgressDialog()
166 dialog.setCanceledOnTouchOutside(false); in showProgressDialog()
167 mDialog = dialog; in showProgressDialog()
DBleClientTestBaseActivity.java152 ProgressDialog dialog = new ProgressDialog(this); in showProgressDialog() local
153 dialog.setTitle(R.string.ble_test_running); in showProgressDialog()
154 dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); in showProgressDialog()
155 dialog.setMessage(getString(R.string.ble_test_running_message)); in showProgressDialog()
156 dialog.setCanceledOnTouchOutside(false); in showProgressDialog()
157 mDialog = dialog; in showProgressDialog()
193 public void onCancel(DialogInterface dialog) { in showErrorDialog()
394 public void onClick(DialogInterface dialog, int which) {
DBleInsecureEncryptedServerTestActivity.java82 public void onCancel(DialogInterface dialog) { in showErrorDialog()
102 public void onCancel(DialogInterface dialog) {
/cts/hostsidetests/systemui/app/src/android/systemui/cts/
DTestTileService.java109 final Dialog dialog = new Dialog(this); in handleShowDialog() local
110 dialog.setContentView(new FocusView(this, dialog)); in handleShowDialog()
112 showDialog(dialog); in handleShowDialog()
121 public FocusView(Context context, Dialog dialog) { in FocusView() argument
123 mDialog = dialog; in FocusView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DTagVerifierActivity.java317 public void onClick(DialogInterface dialog, int which) { in createTestableTagDiscoveredDialog()
323 public void onCancel(DialogInterface dialog) { in createTestableTagDiscoveredDialog()
340 ProgressDialog dialog = new ProgressDialog(this);
341 dialog.setMessage(getString(R.string.nfc_writing_tag));
342 return dialog;
346 ProgressDialog dialog = new ProgressDialog(this);
347 dialog.setMessage(getString(R.string.nfc_reading_tag));
348 return dialog;
362 protected void onPrepareDialog(int id, Dialog dialog, Bundle args) {
365 prepareVerifyResultDialog(dialog, args);
[all …]
DNfcDialogs.java37 public void onClick(DialogInterface dialog, int which) { in createNotEnabledDialog()
52 public void onClick(DialogInterface dialog, int which) {
77 public void onClick(DialogInterface dialog, int which) {
DNdefPushReceiverActivity.java137 protected void onPrepareDialog(int id, Dialog dialog, Bundle args) { in onPrepareDialog() argument
141 AlertDialog alert = (AlertDialog) dialog; in onPrepareDialog()
151 super.onPrepareDialog(id, dialog, args); in onPrepareDialog()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Dialogs/
DLap2Dialog.java34 Lap2Dialog dialog = new Lap2Dialog(); in newInstance() local
35 return dialog; in newInstance()
52 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
DAccuracyResultDialog.java33 AccuracyResultDialog dialog = new AccuracyResultDialog(); in newInstance() local
34 dialog.setup(resultObject); in newInstance()
35 return dialog; in newInstance()
DComplexMovementResultDialog.java33 ComplexMovementResultDialog dialog = new ComplexMovementResultDialog(); in newInstance() local
34 dialog.setup(resultObject); in newInstance()
35 return dialog; in newInstance()
DRobustnessResultDialog.java33 RobustnessResultDialog dialog = new RobustnessResultDialog(); in newInstance() local
34 dialog.setup(resultObject); in newInstance()
35 return dialog; in newInstance()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/
DAccuracyFragment.java226 AccuracyResultDialog dialog = AccuracyResultDialog.newInstance(result); in onResult() local
227 dialog.setTargetFragment(AccuracyFragment.this, DIALOG_FRAGMENT); in onResult()
228 dialog.show(getActivity().getFragmentManager(), "ResultDialogFragment"); in onResult()
276 AlertDialog dialog = builder.create(); in showInitialDialog() local
277 dialog.show(); in showInitialDialog()
284 DialogFragment dialog = Lap2Dialog.newInstance(); in onBackToFirstWaypoint() local
285 dialog.setTargetFragment(AccuracyFragment.this, DIALOG_FRAGMENT); in onBackToFirstWaypoint()
286 dialog.show(getActivity().getFragmentManager(), "Lap2DialogFragment"); in onBackToFirstWaypoint()
DComplexMovementFragment.java182 AlertDialog dialog = builder.create(); in showInitialDialog() local
183 dialog.show(); in showInitialDialog()
199 ComplexMovementResultDialog dialog = ComplexMovementResultDialog.newInstance(result); in onResult() local
200 dialog.setTargetFragment(ComplexMovementFragment.this, DIALOG_FRAGMENT); in onResult()
201 dialog.show(getActivity().getFragmentManager(), "ResultDialogFragment"); in onResult()
DRobustnessFragment.java192 AlertDialog dialog = builder.create(); in showInitialDialog() local
193 dialog.show(); in showInitialDialog()
202 RobustnessResultDialog dialog = RobustnessResultDialog.newInstance(result); in onResult()
203 dialog.setTargetFragment(RobustnessFragment.this, DIALOG_FRAGMENT); in onResult()
204 dialog.show(getActivity().getFragmentManager(), "ResultDialogFragment"); in onResult()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DNavigationBarColorTest.java175 final AlertDialog dialog = new AlertDialog.Builder(activity) in showDialogIfNecessary()
178 dialog.getWindow().setFlags(FLAG_DIM_BEHIND | FLAG_ALT_FOCUSABLE_IM, in showDialogIfNecessary()
180 dialog.show(); in showDialogIfNecessary()
181 return dialog; in showDialogIfNecessary()
194 final AlertDialog dialog = new AlertDialog.Builder(activity) in showDialogIfNecessary()
197 dialog.getWindow().setFlags(FLAG_DIM_BEHIND, in showDialogIfNecessary()
199 dialog.show(); in showDialogIfNecessary()
200 return dialog; in showDialogIfNecessary()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DNavigationBarInfo.java170 final AlertDialog dialog; in getBottomNavigationBarBitmapForActivity() local
172 dialog = getOnMainSync(() -> { in getBottomNavigationBarBitmapForActivity()
183 dialog = null; in getBottomNavigationBarBitmapForActivity()
192 if (dialog != null) { in getBottomNavigationBarBitmapForActivity()
195 dialog.dismiss(); in getBottomNavigationBarBitmapForActivity()
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DWebLinkActivity.java44 public void onClick(DialogInterface dialog, int which) { in onCreate()
52 public void onClick(DialogInterface dialog, int which) { in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DDialogTestListActivity.java152 public void onClick(DialogInterface dialog, int which) { in showManualTestDialog()
158 public void onClick(DialogInterface dialog, int which) { in showManualTestDialog()
168 final AlertDialog dialog = dialogBuilder.show(); in showManualTestDialog() local
171 dialog.getButton(AlertDialog.BUTTON_NEUTRAL).setOnClickListener(new OnClickListener() { in showManualTestDialog()
175 dialog.dismiss(); in showManualTestDialog()
/cts/tests/app/app/src/android/app/stubs/
DAppStubActivity.java79 protected void onPrepareDialog(int id, Dialog dialog) { in onPrepareDialog() argument
80 super.onPrepareDialog(id, dialog); in onPrepareDialog()

123