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

123456

/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/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
H A DAppCompatNightModeDialog.java46 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog);
47 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO);
48 dialog.setTitle(R.string.dialog_title);
49 dialog.setContentView(R.layout.dialog_content);
50 dialog.show();
54 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog);
55 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES);
56 dialog.setTitle(R.string.dialog_title);
57 dialog.setContentView(R.layout.dialog_content);
58 dialog
[all...]
H A DAppCompatNightModeAlertDialog.java40 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 DDialogUsage.java46 // 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/com/example/android/supportv7/app/
H A DAppCompatNightModeDialog.java46 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog);
47 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO);
48 dialog.setTitle(R.string.dialog_title);
49 dialog.setContentView(R.layout.dialog_content);
50 dialog.show();
54 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog);
55 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES);
56 dialog.setTitle(R.string.dialog_title);
57 dialog.setContentView(R.layout.dialog_content);
58 dialog
[all...]
H A DAppCompatNightModeAlertDialog.java40 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 DDialogUsage.java46 // 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/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...]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAppCompatDialogFragment.java31 * 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 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/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/core/java/android/preference/
H A DPreferenceScreen.java200 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 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
/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/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/cards/
H A DCardExampleActivity.java22 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 DDialogExampleActivity.java15 package android.support.v17.leanback.supportleanbackshowcase.app.dialog;
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/cards/
H A DCardExampleActivity.java22 import android.support.v17.leanback.supportleanbackshowcase.app.dialog.DialogExampleFragment;
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/dialog/
H A DDialogExampleActivity.java15 package android.support.v17.leanback.supportleanbackshowcase.app.dialog;

Completed in 1166 milliseconds

123456