/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/ |
H A D | AppCompatNightModeDialog.java | 40 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); 41 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO); 42 dialog.setTitle(R.string.dialog_title); 43 dialog.setContentView(R.layout.dialog_content); 44 dialog.show(); 48 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); 49 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES); 50 dialog.setTitle(R.string.dialog_title); 51 dialog.setContentView(R.layout.dialog_content); 52 dialog [all...] |
H A D | AppCompatNightModeAlertDialog.java | 40 AlertDialog dialog = createAlertDialog(); 41 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO); 42 dialog.show(); 46 AlertDialog dialog = createAlertDialog(); 47 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES); 48 dialog.show(); 52 AlertDialog dialog = createAlertDialog(); 53 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_AUTO); 54 dialog.show();
|
H A D | DialogUsage.java | 46 // Add an OnClickListener to show our selected dialog 67 Dialog dialog = new AppCompatDialog(this); 68 dialog.setTitle(R.string.dialog_title); 69 dialog.setContentView(R.layout.dialog_content); 70 dialog.show(); 74 Dialog dialog = new AppCompatDialog(this); 75 dialog.setTitle(R.string.dialog_title); 76 dialog.setContentView(R.layout.dialog_content_buttons); 77 dialog.show();
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/ |
H A D | AppCompatNightModeDialog.java | 40 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); 41 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO); 42 dialog.setTitle(R.string.dialog_title); 43 dialog.setContentView(R.layout.dialog_content); 44 dialog.show(); 48 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); 49 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES); 50 dialog.setTitle(R.string.dialog_title); 51 dialog.setContentView(R.layout.dialog_content); 52 dialog [all...] |
H A D | AppCompatNightModeAlertDialog.java | 40 AlertDialog dialog = createAlertDialog(); 41 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO); 42 dialog.show(); 46 AlertDialog dialog = createAlertDialog(); 47 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES); 48 dialog.show(); 52 AlertDialog dialog = createAlertDialog(); 53 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_AUTO); 54 dialog.show();
|
H A D | DialogUsage.java | 46 // Add an OnClickListener to show our selected dialog 67 Dialog dialog = new AppCompatDialog(this); 68 dialog.setTitle(R.string.dialog_title); 69 dialog.setContentView(R.layout.dialog_content); 70 dialog.show(); 74 Dialog dialog = new AppCompatDialog(this); 75 dialog.setTitle(R.string.dialog_title); 76 dialog.setContentView(R.layout.dialog_content_buttons); 77 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/support/v7/appcompat/src/main/java/androidx/appcompat/app/ |
H A D | AppCompatDialogFragment.java | 32 * platform-styled dialog. 46 public void setupDialog(Dialog dialog, int style) { argument 47 if (dialog instanceof AppCompatDialog) { 48 // If the dialog is an AppCompatDialog, we'll handle it 49 AppCompatDialog acd = (AppCompatDialog) dialog; 52 dialog.getWindow().addFlags( 62 super.setupDialog(dialog, style);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | SystemUIDialog.java | 78 public static void setShowForAllUsers(Dialog dialog, boolean show) { argument 80 dialog.getWindow().getAttributes().privateFlags |= 83 dialog.getWindow().getAttributes().privateFlags &= 88 public static void setWindowOnTop(Dialog dialog) { argument 90 dialog.getWindow().setType(LayoutParams.TYPE_STATUS_BAR_PANEL); 92 dialog.getWindow().setType(LayoutParams.TYPE_STATUS_BAR_SUB_PANEL); 96 public static AlertDialog applyFlags(AlertDialog dialog) { argument 97 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL); 98 dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM 100 return dialog; 103 registerDismissListener(Dialog dialog) argument 118 DismissReceiver(Dialog dialog) argument 134 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_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/packages/SystemUI/src/com/android/systemui/net/ |
H A D | NetworkOverLimitActivity.java | 58 public void onClick(DialogInterface dialog, int which) { 63 final Dialog dialog = builder.create(); 64 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 65 dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { 66 public void onDismiss(DialogInterface dialog) { 71 dialog.show();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SlicePermissionActivity.java | 60 AlertDialog dialog = new AlertDialog.Builder(this) 67 dialog.getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); 68 dialog.show(); 69 TextView t1 = dialog.getWindow().getDecorView().findViewById(R.id.text1); 71 TextView t2 = dialog.getWindow().getDecorView().findViewById(R.id.text2); 73 mAllCheckbox = dialog.getWindow().getDecorView().findViewById( 83 public void onClick(DialogInterface dialog, int which) { argument 92 public void onDismiss(DialogInterface dialog) { argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | CustomDialogPreference.java | 69 protected void onClick(DialogInterface dialog, int which) { argument 117 final Dialog dialog = super.onCreateDialog(savedInstanceState); 118 dialog.setOnShowListener(getCustomizablePreference().getOnShowListener()); 119 return dialog; 123 public void onClick(DialogInterface dialog, int which) { argument 124 super.onClick(dialog, which); 125 getCustomizablePreference().onClick(dialog, which);
|
H A D | CustomEditTextPreference.java | 56 final Dialog dialog = mFragment.getDialog(); 57 if (dialog != null) { 58 return (EditText) dialog.findViewById(android.R.id.edit); 79 protected void onClick(DialogInterface dialog, int which) { argument 129 public void onClick(DialogInterface dialog, int which) { argument 130 super.onClick(dialog, which); 131 getCustomizablePreference().onClick(dialog, which);
|
/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/support/mediarouter/src/androidTest/java/androidx/mediarouter/app/ |
H A D | MediaRouteChooserDialogTest.java | 63 MediaRouteChooserDialog dialog = new MediaRouteChooserDialog(context); 64 typedArray = dialog.getContext().obtainStyledAttributes(R.styleable.AppCompatTheme); 69 dialog = new MediaRouteChooserDialog(context, R.style.HasWindowTitle); 70 typedArray = dialog.getContext().obtainStyledAttributes(R.styleable.AppCompatTheme); 76 dialog = new MediaRouteChooserDialog(context); 77 typedArray = dialog.getContext().obtainStyledAttributes(R.styleable.AppCompatTheme); 82 dialog = new MediaRouteChooserDialog(context, R.style.HasWindowTitle); 83 typedArray = dialog.getContext().obtainStyledAttributes(R.styleable.AppCompatTheme);
|
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/ |
H A D | MediaRouteChooserDialogFragment.java | 28 * Media route chooser dialog fragment. 31 * this dialog fragment to customize the media route chooser dialog. 41 * Creates a media route chooser dialog fragment. 94 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); 95 if (dialog != null) { 96 dialog.setRouteSelector(selector); 102 * Called when the chooser dialog is being created. 104 * Subclasses may override this method to customize the dialog.
|
/frameworks/ml/nn/runtime/test/benchmark/src/com/example/android/nn/benchmark/ |
H A D | NNSettings.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/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/mediarouter/src/main/java/androidx/mediarouter/app/ |
H A D | MediaRouteChooserDialogFragment.java | 28 * Media route chooser dialog fragment. 31 * this dialog fragment to customize the media route chooser dialog. 41 * Creates a media route chooser dialog fragment. 94 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); 95 if (dialog != null) { 96 dialog.setRouteSelector(selector); 102 * Called when the chooser dialog is being created. 104 * 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) {
|