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.java110 public void onCancel(DialogInterface dialog) { in showErrorDialog()
131 public void onCancel(DialogInterface dialog) {
150 public void onClick(DialogInterface dialog, int which) {
156 public void onCancel(DialogInterface dialog) {
187 ProgressDialog dialog = new ProgressDialog(this); in showProgressDialog() local
188 dialog.setTitle(R.string.ble_test_running); in showProgressDialog()
189 dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); in showProgressDialog()
190 dialog.setMessage(getString(R.string.ble_test_running_message)); in showProgressDialog()
191 dialog.setCanceledOnTouchOutside(false); in showProgressDialog()
192 mDialog = dialog; in showProgressDialog()
DBleConnectionPriorityClientBaseActivity.java110 ProgressDialog dialog = new ProgressDialog(this); in showProgressDialog() local
111 dialog.setTitle(R.string.ble_test_running); in showProgressDialog()
112 dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); in showProgressDialog()
113 dialog.setMessage(getString(R.string.ble_test_running_message)); in showProgressDialog()
114 dialog.setCanceledOnTouchOutside(false); in showProgressDialog()
115 mDialog = dialog; in showProgressDialog()
126 public void onCancel(DialogInterface dialog) { in showErrorDialog()
191 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/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/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/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.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/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/biometrics/
DBiometricTest.java146 private DialogInterface.OnClickListener mBiometricPromptButtonListener = (dialog, which) -> {
291 public void onClick(DialogInterface dialog, int which) { in showInstructionDialogForStringsTest()
299 AlertDialog dialog = builder.create(); in showInstructionDialogForStringsTest() local
300 dialog.show(); in showInstructionDialogForStringsTest()
332 public void onClick(DialogInterface dialog, int which) { in showCheckStringsDialog()
358 AlertDialog dialog = builder.create(); in showCheckStringsDialog() local
360 dialog.setView(layout); in showCheckStringsDialog()
361 dialog.show(); in showCheckStringsDialog()
/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/
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/
DDialogStubActivity.java222 public void onCancel(DialogInterface dialog) { in onCreateDialog()
229 public void onCancel(DialogInterface dialog) { in onCreateDialog()
255 public void onCancel(DialogInterface dialog) { in getAlertDialogCancelableInstance()
396 public void onClick(DialogInterface dialog, int which) { in onClick() argument
425 public void onClick(DialogInterface dialog, int which) { in onClick() argument
427 super.onClick(dialog, which); in onClick()

123