/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
HotspotApBandSelectionPreferenceTest.java | 67 final AlertDialog dialog = mock(AlertDialog.class); local 68 when(fragment.getDialog()).thenReturn(dialog); 69 when(dialog.getButton(anyInt())).thenReturn(mSaveButton); 106 // remove the fragment to make the dialog unavailable 112 // state should only be saved when the dialog is available 122 // When the device dozes the view and dialog can become null
|
/packages/apps/TV/src/com/android/tv/dialog/ |
RecentlyWatchedDialogFragment.java | 17 package com.android.tv.dialog; 20 import android.app.Dialog; 48 public Dialog onCreateDialog(Bundle savedInstanceState) {
|
SafeDismissDialogFragment.java | 17 package com.android.tv.dialog;
|
/packages/apps/TV/src/com/android/tv/license/ |
LicenseSideFragment.java | 26 /** Opens a dialog showing open source licenses. */ 41 LicenseDialogFragment dialog = LicenseDialogFragment.newInstance(license); local 44 .showDialogFragment(LicenseDialogFragment.DIALOG_TAG, dialog, true);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/ |
ProgressDialogFragment.java | 17 package com.android.tv.settings.dialog;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
ActionFragment.java | 17 package com.android.tv.settings.dialog.old;
|
ScrollAdapterFragment.java | 17 package com.android.tv.settings.dialog.old;
|
/packages/services/Telephony/src/com/android/phone/settings/ |
VoicemailDialogUtil.java | 20 import android.app.Dialog; 28 // Voicemail dialog identifiers. 39 public static Dialog getDialog(VoicemailSettingsActivity parent, int id) { 87 // not recoverable on dialog exit. 96 AlertDialog dialog = b.create(); local 98 // make the dialog more obvious by bluring the background. 99 dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); 101 return dialog; 104 ProgressDialog dialog = new ProgressDialog(parent); local 105 dialog.setTitle(parent.getText(R.string.call_settings)) [all...] |
/packages/services/Telephony/src/com/android/phone/settings/fdn/ |
EditPinPreference.java | 36 * for the dialog. 47 * Called when the dialog of {@link #EditPinPreference} is dismissed. 51 * the negative button was clicked or the dialog was canceled (false). 71 * Overridden to setup the correct dialog layout, as well as setting up 76 // set the dialog layout 79 View dialog = super.onCreateDialogView(); local 84 return dialog; 115 * Externally visible method to bring up the dialog to 116 * for multi-step / multi-dialog requests (like changing
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/ |
RobustnessFragment.java | 182 * Shows initial instruction dialog. 192 AlertDialog dialog = builder.create(); local 193 dialog.show(); 202 RobustnessResultDialog dialog = RobustnessResultDialog.newInstance(result); 203 dialog.setTargetFragment(RobustnessFragment.this, DIALOG_FRAGMENT); 204 dialog.show(getActivity().getFragmentManager(), "ResultDialogFragment");
|
/cts/hostsidetests/systemui/app/src/android/systemui/cts/ |
TestTileService.java | 17 import android.app.Dialog; 109 final Dialog dialog = new Dialog(this); local 110 dialog.setContentView(new FocusView(this, dialog)); 112 showDialog(dialog); 119 private final Dialog mDialog; 121 public FocusView(Context context, Dialog dialog) { [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/ |
AuthenticatorActivity.java | 26 import android.app.Dialog; 65 /** Keep track of the progress dialog so we can dismiss it */ 121 protected Dialog onCreateDialog(int id, Bundle args) { 122 final ProgressDialog dialog = new ProgressDialog(this); local 123 dialog.setMessage(getText(R.string.ui_activity_authenticating)); 124 dialog.setIndeterminate(true); 125 dialog.setCancelable(true); 126 dialog.setOnCancelListener(new DialogInterface.OnCancelListener() { 127 public void onCancel(DialogInterface dialog) { 134 // We save off the progress dialog in a field so that we can dismis [all...] |
/external/nist-sip/java/gov/nist/javax/sip/ |
EventScanner.java | 233 SIPDialog dialog = (SIPDialog) eventWrapper.transaction local 235 if (dialog != null) 236 dialog.requestConsumed(); 295 * If the response for a request within a dialog is a 481 297 * Timeout), the UAC SHOULD terminate the dialog. 305 "Removing dialog on 408 or 481 response"); 318 * field, and each represents a distinct dialog, with a 319 * distinct dialog identifier. 322 * does not care about the dialog and gc the dialog afte [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ProgressDialogTest.java | 29 private ProgressDialog dialog; field in class:ProgressDialogTest 34 dialog = new ProgressDialog(null); 35 shadow = Robolectric.shadowOf(dialog); 48 dialog.setMessage(message); 54 assertThat(dialog.isIndeterminate(), equalTo(false)); 56 dialog.setIndeterminate(true); 57 assertThat(dialog.isIndeterminate(), equalTo(true)); 59 dialog.setIndeterminate(false); 60 assertThat(dialog.isIndeterminate(), equalTo(false)); 113 public void onCancel(DialogInterface dialog) { [all...] |
/frameworks/base/core/java/android/app/ |
AlertDialog.java | 46 * A subclass of Dialog that can display one, two or three buttons. If you only want to 47 * display a String in this dialog box, use the setMessage() method. If you 59 * any views in the dialog return true from {@link View#onCheckIsTextEditor() 60 * View.onCheckIsTextEditor()}. Generally you want this set for a Dialog 71 public class AlertDialog extends Dialog implements DialogInterface { 76 * the traditional (pre-Holo) alert dialog theme. 132 * Creates an alert dialog that uses the default alert dialog theme. 134 * The default alert dialog theme is defined by 146 * Creates an alert dialog that uses the default alert dialog theme and 1099 final AlertDialog dialog = new AlertDialog(P.mContext, 0, false); local 1124 final AlertDialog dialog = create(); local [all...] |
ProgressDialog.java | 38 * A dialog showing a progress indicator and an optional text message or view. 41 * <p>The dialog can be made cancelable on back key press.</p> 45 * @deprecated <code>ProgressDialog</code> is a modal dialog, which prevents the 89 * Creates a Progress dialog. 99 * Creates a Progress dialog. 103 * this dialog, or {@code 0} to use the parent 104 * {@code context}'s default alert dialog theme 121 * @param title the title text for the dialog's window 122 * @param message the text to be displayed in the dialog 134 * @param title the title text for the dialog's windo 179 ProgressDialog dialog = new ProgressDialog(context); local [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/Contacts/src/com/android/contacts/dialog/ |
IndeterminateProgressDialog.java | 17 package com.android.contacts.dialog; 19 import android.app.Dialog; 28 * Indeterminate progress dialog wrapped up in a DialogFragment to work even when the device 30 * dialog. There is an additional parameter of the minimum amount of time to display the progress 31 * dialog even after a call to dismiss the dialog {@link #dismiss()} or 34 * To create and show the progress dialog, use 38 * To dismiss the dialog, use {@link #dismiss()} or {@link #dismissAllowingStateLoss()} on the 52 private Dialog mOldDialog; 64 * Creates and shows an indeterminate progress dialog. Once the progress dialog is shown, i 90 final ProgressDialog dialog = new ProgressDialog(getActivity()); local [all...] |
/packages/apps/Dialer/java/com/android/dialer/speeddial/ |
DisambigDialog.java | 20 import android.app.Dialog; 47 /** Disambiguation dialog for favorite contacts in {@link SpeedDialFragment}. */ 57 /** Show a disambiguation dialog for a starred contact without a favorite communication avenue. */ 59 DisambigDialog dialog = new DisambigDialog(); local 60 dialog.lookupKey = lookupKey; 61 dialog.show(manager, DISAMBIG_DIALOG_TAG); 62 return dialog; 66 public Dialog onCreateDialog(Bundle savedInstanceState) { 82 // TODO(calderwoodra): for simplicity, just dismiss the dialog on configuration change and 101 * Inflates and inserts the following in the dialog [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
CreateDirectoryFragment.java | 22 import android.app.Dialog; 51 * Dialog to create a new directory. 57 final CreateDirectoryFragment dialog = new CreateDirectoryFragment(); local 58 dialog.show(fm, TAG_CREATE_DIRECTORY); 62 public Dialog onCreateDialog(Bundle savedInstanceState) { 79 public void onClick(DialogInterface dialog, int which) { 85 final AlertDialog dialog = builder.create(); local 88 Shared.ensureKeyboardPresent(context, dialog); 99 dialog.dismiss(); 107 return dialog; [all...] |
/packages/apps/Email/provider_src/com/android/email/provider/ |
FolderPickerActivity.java | 91 // If we've got them, just start up the picker dialog 156 /// Show "Waiting for folders..." dialog 176 FolderPickerDialog dialog = local 178 dialog.show();
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
UninstallUninstalling.java | 22 import android.app.Dialog; 42 * Start an uninstallation, show a dialog while uninstalling and return result to the caller. 77 // Show dialog, which is the whole UI 79 Fragment prev = getFragmentManager().findFragmentByTag("dialog"); 83 DialogFragment dialog = new UninstallUninstallingFragment(); local 84 dialog.setCancelable(false); 85 dialog.show(transaction, "dialog"); 166 * Dialog that shows that the app is uninstalling. 170 public Dialog onCreateDialog(Bundle savedInstanceState) 177 Dialog dialog = dialogBuilder.create(); local [all...] |
/packages/apps/Settings/src/com/android/settings/accounts/ |
RemoveAccountPreferenceController.java | 26 import android.app.Dialog; 103 * Dialog to confirm with user about account removal 117 final ConfirmRemoveAccountDialog dialog = new ConfirmRemoveAccountDialog(); local 121 dialog.setArguments(bundle); 122 dialog.setTargetFragment(parent, 0); 123 dialog.show(parent.getFragmentManager(), REMOVE_ACCOUNT_DIALOG); 124 return dialog; 136 public Dialog onCreateDialog(Bundle savedInstanceState) { 152 public void onClick(DialogInterface dialog, int which) { 187 * Dialog to tell user about account removal failur 197 final RemoveAccountFailureDialog dialog = new RemoveAccountFailureDialog(); local [all...] |
/packages/apps/Settings/src/com/android/settings/nfc/ |
NfcPaymentPreference.java | 21 import android.app.Dialog; 213 Dialog dialog = getDialog(); local 214 if (dialog != null) 215 dialog.dismiss();
|
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenRuleSelectionDialog.java | 22 import android.app.Dialog; 84 ZenRuleSelectionDialog dialog = new ZenRuleSelectionDialog(); local 85 dialog.setTargetFragment(parent, 0); 86 dialog.show(parent.getFragmentManager(), TAG); 90 public Dialog onCreateDialog(Bundle savedInstanceState) { 109 public void onDismiss(DialogInterface dialog) { 110 super.onDismiss(dialog);
|