/frameworks/base/core/java/android/content/ |
H A D | DialogInterface.java | 63 * Interface used to allow the creator of a dialog to run some code when the 64 * dialog is canceled. 66 * This will only be called when the dialog is canceled, if the creator 72 * This method will be invoked when the dialog is canceled. 74 * @param dialog The dialog that was canceled will be passed into the 77 public void onCancel(DialogInterface dialog); argument 81 * Interface used to allow the creator of a dialog to run some code when the 82 * dialog is dismissed. 86 * This method will be invoked when the dialog i 91 onDismiss(DialogInterface dialog) argument 105 onShow(DialogInterface dialog) argument 122 onClick(DialogInterface dialog, int which) argument 137 onClick(DialogInterface dialog, int which, boolean isChecked) argument 156 onKey(DialogInterface dialog, int keyCode, KeyEvent event) argument [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | MediaRouteChooserDialogFragment.java | 26 * Media route chooser dialog fragment. 29 * this dialog fragment to customize the media route chooser dialog. 40 * Creates a media route chooser dialog fragment. 64 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); 65 if (dialog != null) { 66 dialog.setRouteTypes(types); 75 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); 76 if (dialog != null) { 77 dialog [all...] |
H A D | AlertController.java | 152 public ButtonHandler(DialogInterface dialog) { argument 153 mDialog = new WeakReference<DialogInterface>(dialog); 271 * Set the view resource to display in the dialog. 280 * Set the view to display in the dialog. 289 * Set the view to display in the dialog along with the spacing around that view 957 * @param listView The ListView that will be shown in the dialog. 968 public void apply(AlertController dialog) { argument 970 dialog.setCustomTitle(mCustomTitleView); 973 dialog.setTitle(mTitle); 976 dialog 1028 createListView(final AlertController dialog) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | AppCompatDialogFragment.java | 28 * platform-styled dialog. 41 public void setupDialog(Dialog dialog, int style) { argument 42 if (dialog instanceof AppCompatDialog) { 43 // If the dialog is an AppCompatDialog, we'll handle it 44 AppCompatDialog acd = (AppCompatDialog) dialog; 47 dialog.getWindow().addFlags( 57 super.setupDialog(dialog, style);
|
H A D | AlertController.java | 142 public ButtonHandler(DialogInterface dialog) { argument 143 mDialog = new WeakReference<>(dialog); 252 * Set the view resource to display in the dialog. 261 * Set the view to display in the dialog. 270 * Set the view to display in the dialog along with the spacing around that view 665 * @param listView The ListView that will be shown in the dialog. 676 public void apply(AlertController dialog) { argument 678 dialog.setCustomTitle(mCustomTitleView); 681 dialog.setTitle(mTitle); 684 dialog 733 createListView(final AlertController dialog) argument [all...] |
H A D | AppCompatDelegate.java | 121 * Create a {@link android.support.v7.app.AppCompatDelegate} to use with {@code dialog}. 125 public static AppCompatDelegate create(Dialog dialog, AppCompatCallback callback) { argument 126 return create(dialog.getContext(), dialog.getWindow(), callback);
|
H A D | AlertDialog.java | 39 * display a String in this dialog box, use the setMessage() method. If you 51 * any views in the dialog return true from {@link View#onCheckIsTextEditor() 85 * to get the dialog's style (such as {@link android.R.attr#alertDialogTheme}. 114 * Gets one of the buttons used in the dialog. Returns null if the specified 115 * button does not exist or the dialog has not yet been fully created (for 121 * @return The button from the dialog, or null if a button does not exist. 128 * Gets the list view used in the dialog. 130 * @return The {@link ListView} from the dialog. 154 * Set the view to display in that dialog. 161 * Set the view to display in that dialog, specifyin [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouteChooserDialogFragment.java | 26 * Media route chooser dialog fragment. 29 * this dialog fragment to customize the media route chooser dialog. 38 * Creates a media route chooser dialog fragment. 91 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); 92 if (dialog != null) { 93 dialog.setRouteSelector(selector); 99 * Called when the chooser dialog is being created. 101 * Subclasses may override this method to customize the dialog. 111 MediaRouteChooserDialog dialog [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceScreen.java | 173 Dialog dialog = mDialog = new Dialog(context, context.getThemeResId()); 175 dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE); 177 dialog.setTitle(title); 179 dialog.setContentView(childPrefScreen); 180 dialog.setOnDismissListener(this); 182 dialog.onRestoreInstanceState(state); 186 getPreferenceManager().addPreferencesScreen(dialog); 188 dialog.show(); 191 public void onDismiss(DialogInterface dialog) { argument 193 getPreferenceManager().removePreferencesScreen(dialog); [all...] |
H A D | DialogPreference.java | 43 * dialog-based. These preferences will, when clicked, open a dialog showing the 65 /** The dialog, if it is showing. */ 105 * Sets the title of the dialog. This will be shown on subsequent dialogs. 115 * @param dialogTitleResId The dialog title as a resource. 130 * Sets the message of the dialog. This will be shown on subsequent dialogs. 132 * This message forms the content View of the dialog and conflicts with 133 * list-based dialogs, for example. If setting a custom View on a dialog via 145 * @param dialogMessageResId The dialog message as a resource. 160 * Sets the icon of the dialog 335 requestInputMethod(Dialog dialog) argument 386 onClick(DialogInterface dialog, int which) argument 390 onDismiss(DialogInterface dialog) argument [all...] |
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
H A D | FakeBackgroundService.java | 76 Dialog dialog = new Dialog(this, android.R.style.Theme_Holo_Dialog); 77 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 78 dialog.getWindow().setFlags( 88 dialog.getWindow().setDimAmount(0); 89 dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, 91 WindowManager.LayoutParams lp = dialog.getWindow().getAttributes(); 97 dialog.getWindow().setAttributes(lp); 98 dialog.getWindow().setContentView(view); 99 dialog.show();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/ |
H A D | NetworkOverLimitActivity.java | 60 public void onClick(DialogInterface dialog, int which) { 65 final Dialog dialog = builder.create(); 66 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 67 dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { 68 public void onDismiss(DialogInterface dialog) { 73 dialog.show();
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
H A D | IPSettings.java | 45 public void onClick(DialogInterface dialog, int which, boolean isChecked) { 53 public void onClick(DialogInterface dialog, int id) { 59 public void onClick(DialogInterface dialog, int id) {
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | IPSettings.java | 45 public void onClick(DialogInterface dialog, int which, boolean isChecked) { 53 public void onClick(DialogInterface dialog, int id) { 59 public void onClick(DialogInterface dialog, int id) {
|
/frameworks/rs/java/tests/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/ |
H A D | BlasSettings.java | 45 public void onClick(DialogInterface dialog, int which, boolean isChecked) { 53 public void onClick(DialogInterface dialog, int id) { 59 public void onClick(DialogInterface dialog, int id) {
|
/frameworks/support/v14/preference/src/android/support/v14/preference/ |
H A D | ListPreferenceDialogFragment.java | 54 public void onClick(DialogInterface dialog, int which) { 59 * click, and dismisses the dialog. 61 ListPreferenceDialogFragment.this.onClick(dialog, 63 dialog.dismiss(); 69 * click-on-an-item dismiss the dialog instead of the user having to
|
H A D | PreferenceDialogFragment.java | 84 // Create the dialog 85 final Dialog dialog = builder.create(); 87 requestInputMethod(dialog); 95 * Get the preference that requested this dialog. Available after {@link #onCreate(Bundle)} has 99 * dialog. 106 * Prepares the dialog builder to be shown when the preference is clicked. 107 * Use this to set custom properties on the dialog. 115 * Returns whether the preference needs to display a soft input method when the dialog 125 * Sets the required flags on the dialog window to enable input method window to show up. 127 private void requestInputMethod(Dialog dialog) { argument 179 onClick(DialogInterface dialog, int which) argument 184 onDismiss(DialogInterface dialog) argument [all...] |
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | ListPreferenceDialogFragmentCompat.java | 54 public void onClick(DialogInterface dialog, int which) { 59 * click, and dismisses the dialog. 61 ListPreferenceDialogFragmentCompat.this.onClick(dialog, 63 dialog.dismiss(); 69 * click-on-an-item dismiss the dialog instead of the user having to
|
H A D | PreferenceDialogFragmentCompat.java | 82 // Create the dialog 83 final Dialog dialog = builder.create(); 85 requestInputMethod(dialog); 93 * Get the preference that requested this dialog. Available after {@link #onCreate(Bundle)} has 97 * dialog. 104 * Prepares the dialog builder to be shown when the preference is clicked. 105 * Use this to set custom properties on the dialog. 113 * Returns whether the preference needs to display a soft input method when the dialog 123 * Sets the required flags on the dialog window to enable input method window to show up. 125 private void requestInputMethod(Dialog dialog) { argument 177 onClick(DialogInterface dialog, int which) argument 182 onDismiss(DialogInterface dialog) argument [all...] |
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZonePickerDialog.java | 96 Dialog dialog = super.onCreateDialog(savedInstanceState); 97 dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); 98 dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); 99 return dialog;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A D | TunerService.java | 172 SystemUIDialog dialog = new SystemUIDialog(context); 173 dialog.setShowForAllUsers(true); 174 dialog.setMessage(R.string.remove_from_settings_prompt); 175 dialog.setButton(DialogInterface.BUTTON_NEGATIVE, context.getString(R.string.cancel), 177 dialog.setButton(DialogInterface.BUTTON_POSITIVE, 180 public void onClick(DialogInterface dialog, int which) { 185 // Make them sit through the warning dialog again. 193 dialog.show();
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | MenuDialogHelper.java | 47 * Shows menu as a dialog. 55 // Get the builder for the dialog 92 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { argument 115 dialog.dismiss(); 133 * Dismisses the menu's dialog. 144 public void onDismiss(DialogInterface dialog) { argument 166 public void onClick(DialogInterface dialog, int which) { argument
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | MenuDialogHelper.java | 48 * Shows menu as a dialog. 56 // Get the builder for the dialog 93 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { argument 116 dialog.dismiss(); 134 * Dismisses the menu's dialog. 145 public void onDismiss(DialogInterface dialog) { argument 167 public void onClick(DialogInterface dialog, int which) { argument
|
/frameworks/base/core/java/android/app/ |
H A D | AlertDialog.java | 46 * display a String in this dialog box, use the setMessage() method. If you 58 * any views in the dialog return true from {@link View#onCheckIsTextEditor() 75 * the traditional (pre-Holo) alert dialog theme. 131 * Creates an alert dialog that uses the default alert dialog theme. 133 * The default alert dialog theme is defined by 145 * Creates an alert dialog that uses the default alert dialog theme and a 150 * AlertDialog dialog = new AlertDialog(context); 155 * The default alert dialog them [all...] |
H A D | ProgressDialog.java | 38 * <p>A dialog showing a progress indicator and an optional text message or view. 40 * <p>The dialog can be made cancelable on back key press.</p> 110 ProgressDialog dialog = new ProgressDialog(context); 111 dialog.setTitle(title); 112 dialog.setMessage(message); 113 dialog.setIndeterminate(indeterminate); 114 dialog.setCancelable(cancelable); 115 dialog.setOnCancelListener(cancelListener); 116 dialog.show(); 117 return dialog; [all...] |