/frameworks/base/core/java/android/app/ |
RecoverableSecurityException.java | 69 * audiences, which may be shown in a notification or dialog. 101 * may be shown in a notification or dialog. 158 * Convenience method that will show a very simple dialog populated with the 172 final LocalDialog dialog = new LocalDialog(); local 175 dialog.setArguments(args); 184 ft.add(dialog, tag); 197 public Dialog onCreateDialog(Bundle savedInstanceState) { 201 .setPositiveButton(e.mUserAction.getTitle(), (dialog, which) -> {
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
MenuDialogHelper.java | 20 import android.app.Dialog; 29 * Presents a menu as a modal dialog. 44 * Shows menu as a dialog. 52 // Get the builder for the dialog 89 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { 112 dialog.dismiss(); 131 * Dismisses the menu's dialog. 133 * @see Dialog#dismiss() 143 public void onDismiss(DialogInterface dialog) { 165 public void onClick(DialogInterface dialog, int which) [all...] |
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
NekoLockedActivity.java | 42 public void onDismiss(DialogInterface dialog) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
RadioListPreference.java | 18 import android.app.Dialog; 67 protected Dialog onDialogCreated(DialogFragment fragment, Dialog dialog) { 68 Dialog d = new Dialog(getContext(), android.R.style.Theme_DeviceDefault_Settings); 87 protected void onDialogStateRestored(DialogFragment fragment, Dialog dialog, 89 super.onDialogStateRestored(fragment, dialog, savedInstanceState); 90 View view = dialog.findViewById(R.id.content) [all...] |
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/ |
MenuDialogHelper.java | 19 import android.app.Dialog; 47 * Shows menu as a dialog. 55 // Get the builder for the dialog 93 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { 116 dialog.dismiss(); 134 * Dismisses the menu's dialog. 136 * @see Dialog#dismiss() 145 public void onDismiss(DialogInterface dialog) { 168 public void onClick(DialogInterface dialog, int which) {
|
/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
ConfirmRemoveScreenLockDialog.java | 19 import android.app.Dialog; 29 * Dialog to confirm screen lock removal. 37 * Sets a listener for OnRemoveLockConfirmed that will get called if user confirms the dialog. 46 public Dialog onCreateDialog(Bundle savedInstanceState) { 56 public void onClick(DialogInterface dialog, int which) { 64 * the dialog.
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
SelectAccountDialogFragment.java | 21 import android.app.Dialog; 40 * Shows a dialog asking the user which account to chose. 56 * Show the dialog. 92 public Dialog onCreateDialog(Bundle savedInstanceState) { 102 public void onClick(DialogInterface dialog, int which) { 103 dialog.dismiss(); 124 public void onCancel(DialogInterface dialog) { 125 super.onCancel(dialog);
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
FolderPickerDialog.java | 126 public void onClick(DialogInterface dialog, int which) { 139 onClick(dialog, which, true); 145 public void onClick(DialogInterface dialog, int which, boolean isChecked) { 155 public void onCancel(DialogInterface dialog) {
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
ClassZeroActivity.java | 49 /** Default timer to dismiss the dialog. */ 60 /** The timer to dismiss the dialog automatically. */ 190 public void onClick(final DialogInterface dialog, final int whichButton) { 191 dialog.dismiss(); 198 public void onClick(final DialogInterface dialog, final int whichButton) { 201 dialog.dismiss();
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
InstallFailed.java | 21 import android.app.Dialog; 106 // Store label for dialog 111 // Show out of space dialog if needed 126 * Dialog shown when we ran out of space during installation. This contains a link to the 140 public Dialog onCreateDialog(Bundle savedInstanceState) { 144 .setPositiveButton(R.string.manage_applications, (dialog, which) -> { 150 .setNegativeButton(R.string.cancel, (dialog, which) -> mActivity.finish()) 155 public void onCancel(DialogInterface dialog) { 156 super.onCancel(dialog);
|
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/ |
ResetAppsHelper.java | 100 public void onDismiss(DialogInterface dialog) { 101 if (mResetDialog == dialog) { 107 public void onClick(DialogInterface dialog, int which) { 108 if (mResetDialog != dialog) {
|
/packages/apps/Settings/src/com/android/settings/tts/ |
TtsEnginePreference.java | 127 AlertDialog dialog = builder.create(); local 128 dialog.show(); 144 public void onClick(DialogInterface dialog, int which) { 149 public void onClick(DialogInterface dialog, int which) {
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiAPITest.java | 116 public void onClick(DialogInterface dialog, int whichButton) { 129 public void onClick(DialogInterface dialog, int whichButton) { 142 public void onClick(DialogInterface dialog, int whichButton) { 149 public void onClick(DialogInterface dialog, int whichButton) {
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
DialogUtils.java | 28 public void onClick(DialogInterface dialog, int selectedItemIndex) {
|
/packages/services/BuiltInPrintService/src/com/android/bips/ui/ |
AddPrintersFragment.java | 97 AlertDialog dialog = new AddManualPrinterDialog(getActivity(), 99 dialog.setOnDismissListener(d -> updateSavedPrinters()); 100 dialog.show(); 152 .setPositiveButton(R.string.forget, (dialog, which) -> {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/junit/ |
AndroidJUnitTabGroup.java | 36 public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowActivity.java | 5 import android.app.Dialog; 56 private Map<Integer, Dialog> dialogForId = new HashMap<Integer, Dialog>(); 413 final Dialog dialog = dialogForId.get(id); local 414 if (dialog == null) { 418 dialog.dismiss(); 428 Dialog dialog = null; local 431 dialog = dialogForId.get(id) [all...] |
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/ |
AlertDialog.java | 21 import android.app.Dialog; 48 * A subclass of Dialog that can display one, two or three buttons. If you only want to 49 * display a String in this dialog box, use the setMessage() method. If you 61 * any views in the dialog return true from {@link View#onCheckIsTextEditor() 62 * View.onCheckIsTextEditor()}. Generally you want this set for a Dialog 95 * to get the dialog's style (such as {@link R.attr#alertDialogTheme}. 121 * Gets one of the buttons used in the dialog. Returns null if the specified 122 * button does not exist or the dialog has not yet been fully created (for 128 * @return The button from the dialog, or null if a button does not exist. 135 * Gets the list view used in the dialog 981 final AlertDialog dialog = new AlertDialog(P.mContext, mTheme); local 1006 final AlertDialog dialog = create(); local [all...] |
/packages/apps/Dialer/java/com/android/incallui/spam/ |
SpamNotificationActivity.java | 20 import android.app.Dialog; 50 /** Action to show dialog. */ 72 public void onDismiss(DialogInterface dialog) { 195 /** Creates and displays the dialog for whitelisting a number. */ 214 /** Creates and displays the dialog for blocking/reporting a number as spam. */ 245 * Displays the dialog for the first time unknown calls with actions "Add contact", "Block/report 255 * Displays the dialog for first time spam calls with actions "Not spam", "Block", and "Dismiss". 263 /** Checks if the user has migrated to the new blocking and display a dialog if necessary. */ 330 /** Dialog that displays "Not spam", "Block/report spam" and "Dismiss". */ 351 public void onDismiss(DialogInterface dialog) { [all...] |
/packages/apps/Settings/src/com/android/settings/password/ |
ConfirmDeviceCredentialBaseFragment.java | 24 import android.app.Dialog; 322 // Only show popup dialog before the last attempt and before wipe 413 DialogFragment dialog = new LastTryDialog(); local 414 dialog.setArguments(args); 415 dialog.show(from, TAG); 421 LastTryDialog dialog = (LastTryDialog) from.findFragmentByTag(TAG); local 422 if (dialog != null) { 423 dialog.dismissAllowingStateLoss(); 429 * Dialog setup. 431 * To make it less likely that the dialog is dismissed accidentally, for example if th 437 Dialog dialog = new AlertDialog.Builder(getActivity()) local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
BleConnectionPriorityClientBaseActivity.java | 20 import android.app.Dialog;
44 private Dialog mDialog;
117 ProgressDialog dialog = new ProgressDialog(this);
local 118 dialog.setTitle(R.string.ble_test_running);
119 dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
120 dialog.setMessage(getString(R.string.ble_test_running_message));
121 dialog.setCanceledOnTouchOutside(false);
122 mDialog = dialog;
131 builder.setOnCancelListener(new Dialog.OnCancelListener() {
133 public void onCancel(DialogInterface dialog) {
[all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/ |
AccuracyFragment.java | 221 * Called when this phase is done and a result is ready. Shows the results dialog and enables 226 AccuracyResultDialog dialog = AccuracyResultDialog.newInstance(result); local 227 dialog.setTargetFragment(AccuracyFragment.this, DIALOG_FRAGMENT); 228 dialog.show(getActivity().getFragmentManager(), "ResultDialogFragment"); 266 * Shows initial instruction dialog 276 AlertDialog dialog = builder.create(); local 277 dialog.show(); 284 DialogFragment dialog = Lap2Dialog.newInstance(); local 285 dialog.setTargetFragment(AccuracyFragment.this, DIALOG_FRAGMENT); 286 dialog.show(getActivity().getFragmentManager(), "Lap2DialogFragment") [all...] |
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
NavigationBarColorTest.java | 168 // Dialog is not necessary. 175 final AlertDialog dialog = new AlertDialog.Builder(activity) 178 dialog.getWindow().setFlags(FLAG_DIM_BEHIND | FLAG_ALT_FOCUSABLE_IM, 180 dialog.show(); 181 return dialog; 183 // Note: Dialog#dismiss() is a thread safe method so we don't need to call this from 194 final AlertDialog dialog = new AlertDialog.Builder(activity) 197 dialog.getWindow().setFlags(FLAG_DIM_BEHIND, 199 dialog.show(); 200 return dialog; [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
FragmentAlertDialog.java | 23 import android.app.Dialog; 44 ((TextView)tv).setText("Example of displaying an alert dialog with a DialogFragment"); 59 newFragment.show(getFragmentManager(), "dialog"); 73 //BEGIN_INCLUDE(dialog) 85 public Dialog onCreateDialog(Bundle savedInstanceState) { 93 public void onClick(DialogInterface dialog, int whichButton) { 100 public void onClick(DialogInterface dialog, int whichButton) { 108 //END_INCLUDE(dialog)
|
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
UnhandledExceptionHandler.java | 26 * an informative dialog and kills the app. Useful for apps whose 55 DialogInterface dialog, int which) { 56 dialog.dismiss();
|