Home
last modified time | relevance | path

Searched refs:dialog (Results 1 – 25 of 63) 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 …]
DTileServiceTest.java141 Dialog dialog = new AlertDialog.Builder(mContext).create(); in testShowDialog() local
148 mTileService.showDialog(dialog); in testShowDialog()
150 assertTrue(dialog.isShowing()); in testShowDialog()
151 dialog.dismiss(); in testShowDialog()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDialogFrameTests.java91 WindowState dialog = getSingleWindow(DIALOG_WINDOW_NAME); in doSingleTest() local
94 t.doTest(parent, dialog); in doSingleTest()
101 doParentChildTest(TEST_MATCH_PARENT, (parent, dialog) -> in testMatchParentDialog()
102 assertEquals(parent.getContentFrame(), dialog.getFrame()) in testMatchParentDialog()
115 doParentChildTest(TEST_MATCH_PARENT_LAYOUT_IN_OVERSCAN, (parent, dialog) -> in testMatchParentDialogLayoutInOverscan()
116 assertEquals(parent.getFrame(), dialog.getFrame()) in testMatchParentDialogLayoutInOverscan()
125 doParentChildTest(TEST_EXPLICIT_SIZE, (parent, dialog) -> { in testExplicitSizeDefaultGravity()
132 assertEquals(expectedFrame, dialog.getFrame()); in testExplicitSizeDefaultGravity()
138 doParentChildTest(TEST_EXPLICIT_SIZE_TOP_LEFT_GRAVITY, (parent, dialog) -> { in testExplicitSizeTopLeftGravity()
145 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/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) {
DBleCocClientTestBaseActivity.java118 ProgressDialog dialog = new ProgressDialog(this); in showProgressDialog() local
119 dialog.setTitle(R.string.ble_test_running); in showProgressDialog()
120 dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); in showProgressDialog()
121 dialog.setMessage(getString(R.string.ble_test_running_message)); in showProgressDialog()
122 dialog.setCanceledOnTouchOutside(false); in showProgressDialog()
123 mDialog = dialog; in showProgressDialog()
147 public void onCancel(DialogInterface dialog) { in showErrorDialog()
270 public void onClick(DialogInterface dialog, int which) {
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) {
/cts/hostsidetests/systemui/app/src/android/systemui/cts/
DTestTileService.java111 final Dialog dialog = new Dialog(this); in handleShowDialog() local
112 dialog.setContentView(new FocusView(this, dialog)); in handleShowDialog()
114 super.showDialog(dialog); in handleShowDialog()
123 public FocusView(Context context, Dialog dialog) { in FocusView() argument
125 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/
DComplexMovementResultDialog.java33 ComplexMovementResultDialog dialog = new ComplexMovementResultDialog(); in newInstance() local
34 dialog.setup(resultObject); in newInstance()
35 return dialog; in newInstance()
DAccuracyResultDialog.java33 AccuracyResultDialog dialog = new AccuracyResultDialog(); in newInstance() local
34 dialog.setup(resultObject); in newInstance()
35 return dialog; in newInstance()
DLap2Dialog.java34 Lap2Dialog dialog = new Lap2Dialog(); in newInstance() local
35 return dialog; in newInstance()
52 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
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()
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()
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()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DNavigationBarColorTest.java176 final AlertDialog dialog = new AlertDialog.Builder(activity) in showDialogIfNecessary()
179 dialog.getWindow().setFlags(FLAG_DIM_BEHIND | FLAG_ALT_FOCUSABLE_IM, in showDialogIfNecessary()
181 dialog.show(); in showDialogIfNecessary()
182 return dialog; in showDialogIfNecessary()
195 final AlertDialog dialog = new AlertDialog.Builder(activity) in showDialogIfNecessary()
198 dialog.getWindow().setFlags(FLAG_DIM_BEHIND, in showDialogIfNecessary()
200 dialog.show(); in showDialogIfNecessary()
201 return dialog; in showDialogIfNecessary()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DNavigationBarInfo.java172 final AlertDialog dialog; in getBottomNavigationBarBitmapForActivity() local
174 dialog = getOnMainSync(() -> { in getBottomNavigationBarBitmapForActivity()
185 dialog = null; in getBottomNavigationBarBitmapForActivity()
194 if (dialog != null) { in getBottomNavigationBarBitmapForActivity()
197 dialog.dismiss(); in getBottomNavigationBarBitmapForActivity()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/
DBiometricTest.java146 private DialogInterface.OnClickListener mBiometricPromptButtonListener = (dialog, which) -> {
288 public void onClick(DialogInterface dialog, int which) { in showInstructionDialogForStringsTest()
296 AlertDialog dialog = builder.create(); in showInstructionDialogForStringsTest() local
297 dialog.show(); in showInstructionDialogForStringsTest()
329 public void onClick(DialogInterface dialog, int which) { in showCheckStringsDialog()
355 AlertDialog dialog = builder.create(); in showCheckStringsDialog() local
357 dialog.setView(layout); in showCheckStringsDialog()
358 dialog.show(); in showCheckStringsDialog()
/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()

123