/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. 68 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); 69 if (dialog != null) { 70 dialog.setRouteTypes(types); 79 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); 80 if (dialog != null) { 81 dialog [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | SystemUIDialog.java | 72 public static void setShowForAllUsers(Dialog dialog, boolean show) { argument 74 dialog.getWindow().getAttributes().privateFlags |= 77 dialog.getWindow().getAttributes().privateFlags &= 82 public static void setWindowOnTop(Dialog dialog) { argument 84 dialog.getWindow().setType(LayoutParams.TYPE_STATUS_BAR_PANEL); 86 dialog.getWindow().setType(LayoutParams.TYPE_STATUS_BAR_SUB_PANEL); 90 public static AlertDialog applyFlags(AlertDialog dialog) { argument 91 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL); 92 dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM 94 return dialog; 97 registerDismissListener(Dialog dialog) argument [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/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/support/v7/mediarouter/tests/src/android/support/v7/app/ |
H A D | MediaRouteChooserDialogTest.java | 61 MediaRouteChooserDialog dialog = new MediaRouteChooserDialog(context); 62 typedArray = dialog.getContext().obtainStyledAttributes(R.styleable.AppCompatTheme); 67 dialog = new MediaRouteChooserDialog(context, R.style.HasWindowTitle); 68 typedArray = dialog.getContext().obtainStyledAttributes(R.styleable.AppCompatTheme); 74 dialog = new MediaRouteChooserDialog(context); 75 typedArray = dialog.getContext().obtainStyledAttributes(R.styleable.AppCompatTheme); 80 dialog = new MediaRouteChooserDialog(context, R.style.HasWindowTitle); 81 typedArray = dialog.getContext().obtainStyledAttributes(R.styleable.AppCompatTheme);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | CustomDialogPreference.java | 64 protected void onClick(DialogInterface dialog, int which) { argument 107 public void onClick(DialogInterface dialog, int which) { argument 108 super.onClick(dialog, which); 109 getCustomizablePreference().onClick(dialog, which);
|
H A D | CustomEditTextPreference.java | 69 protected void onClick(DialogInterface dialog, int which) { argument 113 public void onClick(DialogInterface dialog, int which) { argument 114 super.onClick(dialog, which); 115 getCustomizablePreference().onClick(dialog, which);
|
/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/qs/tiles/ |
H A D | DataSaverTile.java | 68 // Shows dialog first 69 SystemUIDialog dialog = new SystemUIDialog(mContext); 70 dialog.setTitle(com.android.internal.R.string.data_saver_enable_title); 71 dialog.setMessage(com.android.internal.R.string.data_saver_description); 72 dialog.setPositiveButton(com.android.internal.R.string.data_saver_enable_button, 74 dialog.setNegativeButton(com.android.internal.R.string.cancel, null); 75 dialog.setShowForAllUsers(true); 76 dialog.show();
|
/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 | 89 SystemUIDialog dialog = new SystemUIDialog(context); 90 dialog.setShowForAllUsers(true); 91 dialog.setMessage(R.string.remove_from_settings_prompt); 92 dialog.setButton(DialogInterface.BUTTON_NEGATIVE, context.getString(R.string.cancel), 94 dialog.setButton(DialogInterface.BUTTON_POSITIVE, 97 public void onClick(DialogInterface dialog, int which) { 102 // Make them sit through the warning dialog again. 110 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
|