/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
H A D | AppCompatNightModeDialog.java | 39 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); 40 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO); 41 dialog.setTitle(R.string.dialog_title); 42 dialog.setContentView(R.layout.dialog_content); 43 dialog.show(); 47 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); 48 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES); 49 dialog.setTitle(R.string.dialog_title); 50 dialog.setContentView(R.layout.dialog_content); 51 dialog [all...] |
H A D | AppCompatNightModeAlertDialog.java | 39 AlertDialog dialog = createAlertDialog(); 40 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO); 41 dialog.show(); 45 AlertDialog dialog = createAlertDialog(); 46 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES); 47 dialog.show(); 51 AlertDialog dialog = createAlertDialog(); 52 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_AUTO); 53 dialog.show();
|
H A D | DialogUsage.java | 45 // Add an OnClickListener to show our selected dialog 66 Dialog dialog = new AppCompatDialog(this); 67 dialog.setTitle(R.string.dialog_title); 68 dialog.setContentView(R.layout.dialog_content); 69 dialog.show(); 73 Dialog dialog = new AppCompatDialog(this); 74 dialog.setTitle(R.string.dialog_title); 75 dialog.setContentView(R.layout.dialog_content_buttons); 76 dialog.show();
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
H A D | AppCompatNightModeDialog.java | 39 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); 40 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO); 41 dialog.setTitle(R.string.dialog_title); 42 dialog.setContentView(R.layout.dialog_content); 43 dialog.show(); 47 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); 48 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES); 49 dialog.setTitle(R.string.dialog_title); 50 dialog.setContentView(R.layout.dialog_content); 51 dialog [all...] |
H A D | AppCompatNightModeAlertDialog.java | 39 AlertDialog dialog = createAlertDialog(); 40 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO); 41 dialog.show(); 45 AlertDialog dialog = createAlertDialog(); 46 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES); 47 dialog.show(); 51 AlertDialog dialog = createAlertDialog(); 52 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_AUTO); 53 dialog.show();
|
H A D | DialogUsage.java | 45 // Add an OnClickListener to show our selected dialog 66 Dialog dialog = new AppCompatDialog(this); 67 dialog.setTitle(R.string.dialog_title); 68 dialog.setContentView(R.layout.dialog_content); 69 dialog.show(); 73 Dialog dialog = new AppCompatDialog(this); 74 dialog.setTitle(R.string.dialog_title); 75 dialog.setContentView(R.layout.dialog_content_buttons); 76 dialog.show();
|
/frameworks/base/core/java/android/content/ |
H A D | DialogInterface.java | 22 * Interface that defines a dialog-type class that can be shown, dismissed, or 48 * Cancels the dialog, invoking the {@link OnCancelListener}. 51 * dismisses the dialog. 56 * Dismisses the dialog, invoking the {@link OnDismissListener}. 61 * Interface used to allow the creator of a dialog to run some code when the 62 * dialog is canceled. 64 * This will only be called when the dialog is canceled, if the creator 70 * This method will be invoked when the dialog is canceled. 72 * @param dialog the dialog tha 75 onCancel(DialogInterface dialog) argument 89 onDismiss(DialogInterface dialog) argument 103 onShow(DialogInterface dialog) argument 119 onClick(DialogInterface dialog, int which) argument 135 onClick(DialogInterface dialog, int which, boolean isChecked) argument 155 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...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | AppCompatDialogFragment.java | 31 * platform-styled dialog. 45 public void setupDialog(Dialog dialog, int style) { argument 46 if (dialog instanceof AppCompatDialog) { 47 // If the dialog is an AppCompatDialog, we'll handle it 48 AppCompatDialog acd = (AppCompatDialog) dialog; 51 dialog.getWindow().addFlags( 61 super.setupDialog(dialog, style);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | SystemUIDialog.java | 62 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/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_APPLICATION_OVERLAY); 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/core/java/android/preference/ |
H A D | PreferenceScreen.java | 200 Dialog dialog = mDialog = new Dialog(context, context.getThemeResId()); 205 dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE); 211 dialog.setTitle(title); 214 dialog.setContentView(childPrefScreen); 215 dialog.setOnDismissListener(this); 217 dialog.onRestoreInstanceState(state); 221 getPreferenceManager().addPreferencesScreen(dialog); 223 dialog.show(); 226 public void onDismiss(DialogInterface dialog) { argument 228 getPreferenceManager().removePreferencesScreen(dialog); [all...] |
/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/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | DataSaverTile.java | 71 // Shows dialog first 72 SystemUIDialog dialog = new SystemUIDialog(mContext); 73 dialog.setTitle(com.android.internal.R.string.data_saver_enable_title); 74 dialog.setMessage(com.android.internal.R.string.data_saver_description); 75 dialog.setPositiveButton(com.android.internal.R.string.data_saver_enable_button, 78 public void onClick(DialogInterface dialog, int which) { 82 dialog.setNegativeButton(com.android.internal.R.string.cancel, null); 83 dialog.setShowForAllUsers(true); 84 dialog.show();
|
/frameworks/rs/tests/java_api/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/tests/java_api/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/tests/java_api/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/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouteChooserDialogFragment.java | 27 * 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/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A D | CustomListPreference.java | 50 protected Dialog onDialogCreated(DialogFragment fragment, Dialog dialog) { argument 51 return dialog; 60 * should show a confirmation dialog. 63 * @return the message to show in a confirmation dialog, or {@code null} to 70 protected void onDialogStateRestored(DialogFragment fragment, Dialog dialog, argument 102 public void onClick(DialogInterface dialog, int which) { 111 Dialog dialog = super.onCreateDialog(savedInstanceState); 116 return getCustomizablePreference().onDialogCreated(this, dialog); 134 public void onClick(DialogInterface dialog, int which) {
|
H A D | TunerService.java | 95 SystemUIDialog dialog = new SystemUIDialog(context); 96 dialog.setShowForAllUsers(true); 97 dialog.setMessage(R.string.remove_from_settings_prompt); 98 dialog.setButton(DialogInterface.BUTTON_NEGATIVE, context.getString(R.string.cancel), 100 dialog.setButton(DialogInterface.BUTTON_POSITIVE, 103 public void onClick(DialogInterface dialog, int which) { 108 // Make them sit through the warning dialog again. 116 dialog.show();
|
/frameworks/support/v14/preference/src/android/support/v14/preference/ |
H A D | ListPreferenceDialogFragment.java | 84 public void onClick(DialogInterface dialog, int which) { 89 * click, and dismisses the dialog. 91 ListPreferenceDialogFragment.this.onClick(dialog, 93 dialog.dismiss(); 99 * click-on-an-item dismiss the dialog instead of the user having to
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/ |
H A D | ProfileSelectDialog.java | 42 ProfileSelectDialog dialog = new ProfileSelectDialog(); 45 dialog.setArguments(args); 46 dialog.show(manager, "select_profile"); 68 public void onClick(DialogInterface dialog, int which) { argument
|
/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/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/cards/ |
H A D | CardExampleActivity.java | 22 import android.support.v17.leanback.supportleanbackshowcase.app.dialog.DialogExampleFragment;
|
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/dialog/ |
H A D | DialogExampleActivity.java | 15 package android.support.v17.leanback.supportleanbackshowcase.app.dialog;
|