Searched refs:dialog (Results 1 - 25 of 115) sorted by relevance

12345

/frameworks/base/core/java/android/content/
H A DDialogInterface.java63 * 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 DMediaRouteChooserDialogFragment.java26 * 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 DAlertController.java153 public ButtonHandler(DialogInterface dialog) { argument
154 mDialog = new WeakReference<>(dialog);
273 * Set the view resource to display in the dialog.
282 * Set the view to display in the dialog.
291 * Set the view to display in the dialog along with the spacing around that view
968 * @param listView The ListView that will be shown in the dialog.
979 public void apply(AlertController dialog) { argument
981 dialog.setCustomTitle(mCustomTitleView);
984 dialog.setTitle(mTitle);
987 dialog
1039 createListView(final AlertController dialog) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAppCompatDialogFragment.java28 * 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 DAlertController.java146 public ButtonHandler(DialogInterface dialog) { argument
147 mDialog = new WeakReference<>(dialog);
250 * Set the view resource to display in the dialog.
259 * Set the view to display in the dialog.
268 * Set the view to display in the dialog along with the spacing around that view
811 * @param listView The ListView that will be shown in the dialog.
822 public void apply(AlertController dialog) { argument
824 dialog.setCustomTitle(mCustomTitleView);
827 dialog.setTitle(mTitle);
830 dialog
879 createListView(final AlertController dialog) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DSystemUIDialog.java62 public static void setShowForAllUsers(AlertDialog dialog, boolean show) { argument
64 dialog.getWindow().getAttributes().privateFlags |=
67 dialog.getWindow().getAttributes().privateFlags &=
72 public static void applyFlags(AlertDialog dialog) { argument
73 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL);
74 dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM
/frameworks/base/core/java/android/preference/
H A DPreferenceScreen.java173 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 DDialogPreference.java43 * 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 DFakeBackgroundService.java76 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 DNetworkOverLimitActivity.java60 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/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DDataSaverTile.java66 // Shows dialog first
67 SystemUIDialog dialog = new SystemUIDialog(mContext);
68 dialog.setTitle(com.android.internal.R.string.data_saver_enable_title);
69 dialog.setMessage(com.android.internal.R.string.data_saver_description);
70 dialog.setPositiveButton(com.android.internal.R.string.data_saver_enable_button,
73 public void onClick(DialogInterface dialog, int which) {
77 dialog.setNegativeButton(com.android.internal.R.string.cancel, null);
78 dialog.setShowForAllUsers(true);
79 dialog.show();
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
H A DProfileSelectDialog.java37 ProfileSelectDialog dialog = new ProfileSelectDialog();
40 dialog.setArguments(args);
41 dialog.show(manager, "select_profile");
63 public void onClick(DialogInterface dialog, int which) { argument
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DIPSettings.java45 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 DIPSettings.java45 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 DBlasSettings.java45 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/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouteChooserDialogFragment.java27 * Media route chooser dialog fragment.
30 * this dialog fragment to customize the media route chooser dialog.
40 * Creates a media route chooser dialog fragment.
93 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog();
94 if (dialog != null) {
95 dialog.setRouteSelector(selector);
101 * Called when the chooser dialog is being created.
103 * Subclasses may override this method to customize the dialog.
/frameworks/support/v14/preference/src/android/support/v14/preference/
H A DListPreferenceDialogFragment.java83 public void onClick(DialogInterface dialog, int which) {
88 * click, and dismisses the dialog.
90 ListPreferenceDialogFragment.this.onClick(dialog,
92 dialog.dismiss();
98 * click-on-an-item dismiss the dialog instead of the user having to
H A DPreferenceDialogFragment.java41 * Abstract base class which presents a dialog associated with a
43 * not be available during fragment re-creation, the necessary information for displaying the dialog
154 // Create the dialog
155 final Dialog dialog = builder.create();
157 requestInputMethod(dialog);
160 return dialog;
164 * Get the preference that requested this dialog. Available after {@link #onCreate(Bundle)} has
165 * been called on the {@link PreferenceFragment} which launched this dialog.
168 * dialog.
181 * Prepares the dialog builde
202 requestInputMethod(Dialog dialog) argument
254 onClick(DialogInterface dialog, int which) argument
259 onDismiss(DialogInterface dialog) argument
[all...]
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZonePickerDialog.java96 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 DColorAndAppearanceFragment.java114 CalibrateDialog dialog = new CalibrateDialog();
115 dialog.setTargetFragment(fragment, 0);
116 dialog.show(fragment.getFragmentManager(), "Calibrate");
148 public void onDismiss(DialogInterface dialog) { argument
149 super.onDismiss(dialog);
174 public void onClick(DialogInterface dialog, int which) { argument
209 public void onCancel(DialogInterface dialog) { argument
210 super.onCancel(dialog);
215 public void onClick(DialogInterface dialog, int which) { argument
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
H A DRenameDocumentFragment.java62 final RenameDocumentFragment dialog = new RenameDocumentFragment();
63 dialog.mDocument = document;
64 dialog.show(fm, TAG_RENAME_DOCUMENT);
68 * Creates the dialog UI.
87 public void onClick(DialogInterface dialog, int which) {
94 final AlertDialog dialog = builder.create();
97 Shared.ensureKeyboardPresent(context, dialog);
108 dialog.dismiss();
114 return dialog;
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DPreferenceDialogFragmentCompat.java40 * Abstract base class which presents a dialog associated with a
42 * not be available during fragment re-creation, the necessary information for displaying the dialog
153 // Create the dialog
154 final Dialog dialog = builder.create();
156 requestInputMethod(dialog);
159 return dialog;
163 * Get the preference that requested this dialog. Available after {@link #onCreate(Bundle)} has
164 * been called on the {@link PreferenceFragmentCompat} which launched this dialog.
167 * dialog.
180 * Prepares the dialog builde
201 requestInputMethod(Dialog dialog) argument
253 onClick(DialogInterface dialog, int which) argument
258 onDismiss(DialogInterface dialog) argument
[all...]
H A DListPreferenceDialogFragmentCompat.java101 public void onClick(DialogInterface dialog, int which) {
106 * click, and dismisses the dialog.
108 ListPreferenceDialogFragmentCompat.this.onClick(dialog,
110 dialog.dismiss();
116 * click-on-an-item dismiss the dialog instead of the user having to
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DCreateDirectoryFragment.java55 final CreateDirectoryFragment dialog = new CreateDirectoryFragment();
56 dialog.show(fm, TAG_CREATE_DIRECTORY);
77 public void onClick(DialogInterface dialog, int which) {
83 final AlertDialog dialog = builder.create();
86 Shared.ensureKeyboardPresent(context, dialog);
97 dialog.dismiss();
105 return dialog;
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuDialogHelper.java29 * 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) { argument
112 dialog.dismiss();
131 * Dismisses the menu's dialog.
143 public void onDismiss(DialogInterface dialog) { argument
165 public void onClick(DialogInterface dialog, int which) { argument

Completed in 875 milliseconds

12345