/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
D | AppCompatNightModeDialog.java | 46 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); in setModeNightNo() local 47 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO); in setModeNightNo() 48 dialog.setTitle(R.string.dialog_title); in setModeNightNo() 49 dialog.setContentView(R.layout.dialog_content); in setModeNightNo() 50 dialog.show(); in setModeNightNo() 54 AppCompatDialog dialog = new AppCompatDialog(this, R.style.Theme_AppCompat_DayNight_Dialog); in setModeNightYes() local 55 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES); in setModeNightYes() 56 dialog.setTitle(R.string.dialog_title); in setModeNightYes() 57 dialog.setContentView(R.layout.dialog_content); in setModeNightYes() 58 dialog.show(); in setModeNightYes() [all …]
|
D | AppCompatNightModeAlertDialog.java | 40 AlertDialog dialog = createAlertDialog(); in setModeNightNo() local 41 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO); in setModeNightNo() 42 dialog.show(); in setModeNightNo() 46 AlertDialog dialog = createAlertDialog(); in setModeNightYes() local 47 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_YES); in setModeNightYes() 48 dialog.show(); in setModeNightYes() 52 AlertDialog dialog = createAlertDialog(); in setModeNightAuto() local 53 dialog.getDelegate().setLocalNightMode(AppCompatDelegate.MODE_NIGHT_AUTO); in setModeNightAuto() 54 dialog.show(); in setModeNightAuto()
|
D | DialogUsage.java | 67 Dialog dialog = new AppCompatDialog(this); in showSimpleDialog() local 68 dialog.setTitle(R.string.dialog_title); in showSimpleDialog() 69 dialog.setContentView(R.layout.dialog_content); in showSimpleDialog() 70 dialog.show(); in showSimpleDialog() 74 Dialog dialog = new AppCompatDialog(this); in showButtonBarDialog() local 75 dialog.setTitle(R.string.dialog_title); in showButtonBarDialog() 76 dialog.setContentView(R.layout.dialog_content_buttons); in showButtonBarDialog() 77 dialog.show(); in showButtonBarDialog()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | MediaRouteChooserDialogFragment.java | 64 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); in setRouteTypes() local 65 if (dialog != null) { in setRouteTypes() 66 dialog.setRouteTypes(types); in setRouteTypes() 75 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); in setExtendedSettingsClickListener() local 76 if (dialog != null) { in setExtendedSettingsClickListener() 77 dialog.setExtendedSettingsClickListener(listener); in setExtendedSettingsClickListener() 95 MediaRouteChooserDialog dialog = onCreateChooserDialog(getActivity(), savedInstanceState); in onCreateDialog() local 96 dialog.setRouteTypes(getRouteTypes()); in onCreateDialog() 97 dialog.setExtendedSettingsClickListener(mExtendedSettingsClickListener); in onCreateDialog() 98 return dialog; in onCreateDialog()
|
D | AlertController.java | 155 public ButtonHandler(DialogInterface dialog) { in ButtonHandler() argument 156 mDialog = new WeakReference<>(dialog); in ButtonHandler() 995 public void apply(AlertController dialog) { in apply() argument 997 dialog.setCustomTitle(mCustomTitleView); in apply() 1000 dialog.setTitle(mTitle); in apply() 1003 dialog.setIcon(mIcon); in apply() 1006 dialog.setIcon(mIconId); in apply() 1009 dialog.setIcon(dialog.getIconAttributeResId(mIconAttrId)); in apply() 1013 dialog.setMessage(mMessage); in apply() 1016 dialog.setButton(DialogInterface.BUTTON_POSITIVE, mPositiveButtonText, in apply() [all …]
|
/frameworks/base/docs/html-intl/intl/in/guide/topics/ui/ |
D | dialogs.jd | 24 <li><a href="#ActivityAsDialog">Menampilkan aktivitas sebagai dialog pada layar besar</a></li> 38 <li><a href="{@docRoot}design/building-blocks/dialogs.html">Panduan desain dialog</a></li> 39 …<li><a href="{@docRoot}guide/topics/ui/controls/pickers.html">Picker</a> (dialog Tanggal/Waktu)</l… 50 <p>Untuk informasi tentang cara mendesain dialog, termasuk saran 51 …asa, bacalah panduan Desain <a href="{@docRoot}design/building-blocks/dialogs.html">dialog</a>.</p> 56 <p>Kelas {@link android.app.Dialog} adalah kelas basis untuk dialog, namun Anda 69 <p>Android menyertakan kelas dialog lain yang disebut 70 {@link android.app.ProgressDialog} yang menampilkan dialog berisi progress-bar. Akan tetapi, jika A… 76 <p>Kelas-kelas ini mendefinisikan gaya dan struktur dialog Anda, namun Anda harus 77 menggunakan {@link android.support.v4.app.DialogFragment} sebagai kontainer dialog Anda. [all …]
|
/frameworks/base/docs/html/guide/topics/ui/ |
D | dialogs.jd | 24 <li><a href="#ActivityAsDialog">Showing an activity as a dialog on large screens</a></li> 44 <p>A dialog is a small window that prompts the user to 45 make a decision or enter additional information. A dialog does not fill the screen and is 62 <dd>A dialog that can show a title, up to three buttons, a list of 65 <dd>A dialog with a pre-defined UI that allows the user to select a date or time.</dd> 70 <p>Android includes another dialog class called 71 {@link android.app.ProgressDialog} that shows a dialog with a progress bar. However, if you 77 <p>These classes define the style and structure for your dialog, but you should 78 use a {@link android.support.v4.app.DialogFragment} as a container for your dialog. 80 need to create your dialog and manage its appearance, instead of calling methods [all …]
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceScreen.java | 200 Dialog dialog = mDialog = new Dialog(context, context.getThemeResId()); in showDialog() local 205 dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE); in showDialog() 211 dialog.setTitle(title); in showDialog() 214 dialog.setContentView(childPrefScreen); in showDialog() 215 dialog.setOnDismissListener(this); in showDialog() 217 dialog.onRestoreInstanceState(state); in showDialog() 221 getPreferenceManager().addPreferencesScreen(dialog); in showDialog() 223 dialog.show(); in showDialog() 226 public void onDismiss(DialogInterface dialog) { in onDismiss() argument 228 getPreferenceManager().removePreferencesScreen(dialog); in onDismiss() [all …]
|
D | DialogPreference.java | 311 final Dialog dialog = mDialog = mBuilder.create(); in showDialog() local 313 dialog.onRestoreInstanceState(state); in showDialog() 316 requestInputMethod(dialog); in showDialog() 318 dialog.setOnDismissListener(this); in showDialog() 319 dialog.show(); in showDialog() 335 private void requestInputMethod(Dialog dialog) { in requestInputMethod() argument 336 Window window = dialog.getWindow(); in requestInputMethod() 386 public void onClick(DialogInterface dialog, int which) { in onClick() argument 390 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
|
/frameworks/base/core/java/android/content/ |
D | DialogInterface.java | 77 public void onCancel(DialogInterface dialog); in onCancel() argument 91 public void onDismiss(DialogInterface dialog); in onDismiss() argument 105 public void onShow(DialogInterface dialog); in onShow() argument 122 public void onClick(DialogInterface dialog, int which); in onClick() argument 137 public void onClick(DialogInterface dialog, int which, boolean isChecked); in onClick() argument 156 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event); in onKey() argument
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
D | FakeBackgroundService.java | 76 Dialog dialog = new Dialog(this, android.R.style.Theme_Holo_Dialog); in onCreate() local 77 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); in onCreate() 78 dialog.getWindow().setFlags( in onCreate() 88 dialog.getWindow().setDimAmount(0); in onCreate() 89 dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, in onCreate() 91 WindowManager.LayoutParams lp = dialog.getWindow().getAttributes(); in onCreate() 97 dialog.getWindow().setAttributes(lp); in onCreate() 98 dialog.getWindow().setContentView(view); in onCreate() 99 dialog.show(); in onCreate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | SystemUIDialog.java | 62 public static void setShowForAllUsers(AlertDialog dialog, boolean show) { in setShowForAllUsers() argument 64 dialog.getWindow().getAttributes().privateFlags |= in setShowForAllUsers() 67 dialog.getWindow().getAttributes().privateFlags &= in setShowForAllUsers() 72 public static void applyFlags(AlertDialog dialog) { in applyFlags() argument 73 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL); in applyFlags() 74 dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM in applyFlags()
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | AppCompatDialogFragment.java | 41 public void setupDialog(Dialog dialog, int style) { in setupDialog() argument 42 if (dialog instanceof AppCompatDialog) { in setupDialog() 44 AppCompatDialog acd = (AppCompatDialog) dialog; in setupDialog() 47 dialog.getWindow().addFlags( in setupDialog() 57 super.setupDialog(dialog, style); in setupDialog()
|
D | AlertController.java | 146 public ButtonHandler(DialogInterface dialog) { in ButtonHandler() argument 147 mDialog = new WeakReference<>(dialog); in ButtonHandler() 822 public void apply(AlertController dialog) { in apply() argument 824 dialog.setCustomTitle(mCustomTitleView); in apply() 827 dialog.setTitle(mTitle); in apply() 830 dialog.setIcon(mIcon); in apply() 833 dialog.setIcon(mIconId); in apply() 836 dialog.setIcon(dialog.getIconAttributeResId(mIconAttrId)); in apply() 840 dialog.setMessage(mMessage); in apply() 843 dialog.setButton(DialogInterface.BUTTON_POSITIVE, mPositiveButtonText, in apply() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | DataSaverTile.java | 67 SystemUIDialog dialog = new SystemUIDialog(mContext); in handleClick() local 68 dialog.setTitle(com.android.internal.R.string.data_saver_enable_title); in handleClick() 69 dialog.setMessage(com.android.internal.R.string.data_saver_description); in handleClick() 70 dialog.setPositiveButton(com.android.internal.R.string.data_saver_enable_button, in handleClick() 73 public void onClick(DialogInterface dialog, int which) { in handleClick() 77 dialog.setNegativeButton(com.android.internal.R.string.cancel, null); in handleClick() 78 dialog.setShowForAllUsers(true); in handleClick() 79 dialog.show(); in handleClick()
|
/frameworks/base/docs/html-intl/intl/ja/guide/topics/ui/ |
D | dialogs.jd | 124 // Use the Builder class for convenient dialog construction 128 public void onClick(DialogInterface dialog, int id) { 133 public void onClick(DialogInterface dialog, int id) { 134 // User cancelled the dialog 197 <b>// 2. Chain together various setter methods to set the dialog characteristics</b> 202 AlertDialog dialog = builder.create(); 221 public void onClick(DialogInterface dialog, int id) { 226 public void onClick(DialogInterface dialog, int id) { 227 // User cancelled the dialog 230 // Set other dialog properties [all …]
|
/frameworks/base/docs/html-intl/intl/ko/guide/topics/ui/ |
D | dialogs.jd | 124 // Use the Builder class for convenient dialog construction 128 public void onClick(DialogInterface dialog, int id) { 133 public void onClick(DialogInterface dialog, int id) { 134 // User cancelled the dialog 197 <b>// 2. Chain together various setter methods to set the dialog characteristics</b> 202 AlertDialog dialog = builder.create(); 221 public void onClick(DialogInterface dialog, int id) { 226 public void onClick(DialogInterface dialog, int id) { 227 // User cancelled the dialog 230 // Set other dialog properties [all …]
|
/frameworks/base/docs/html-intl/intl/zh-tw/guide/topics/ui/ |
D | dialogs.jd | 124 // Use the Builder class for convenient dialog construction 128 public void onClick(DialogInterface dialog, int id) { 133 public void onClick(DialogInterface dialog, int id) { 134 // User cancelled the dialog 197 <b>// 2. Chain together various setter methods to set the dialog characteristics</b> 202 AlertDialog dialog = builder.create(); 221 public void onClick(DialogInterface dialog, int id) { 226 public void onClick(DialogInterface dialog, int id) { 227 // User cancelled the dialog 230 // Set other dialog properties [all …]
|
/frameworks/base/docs/html-intl/intl/zh-cn/guide/topics/ui/ |
D | dialogs.jd | 124 // Use the Builder class for convenient dialog construction 128 public void onClick(DialogInterface dialog, int id) { 133 public void onClick(DialogInterface dialog, int id) { 134 // User cancelled the dialog 197 <b>// 2. Chain together various setter methods to set the dialog characteristics</b> 202 AlertDialog dialog = builder.create(); 221 public void onClick(DialogInterface dialog, int id) { 226 public void onClick(DialogInterface dialog, int id) { 227 // User cancelled the dialog 230 // Set other dialog properties [all …]
|
/frameworks/base/docs/html-intl/intl/ru/guide/topics/ui/ |
D | dialogs.jd | 124 // Use the Builder class for convenient dialog construction 128 public void onClick(DialogInterface dialog, int id) { 133 public void onClick(DialogInterface dialog, int id) { 134 // User cancelled the dialog 197 <b>// 2. Chain together various setter methods to set the dialog characteristics</b> 202 AlertDialog dialog = builder.create(); 221 public void onClick(DialogInterface dialog, int id) { 226 public void onClick(DialogInterface dialog, int id) { 227 // User cancelled the dialog 230 // Set other dialog properties [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/ |
D | NetworkOverLimitActivity.java | 60 public void onClick(DialogInterface dialog, int which) { in onCreate() 65 final Dialog dialog = builder.create(); in onCreate() local 66 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); in onCreate() 67 dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { in onCreate() 68 public void onDismiss(DialogInterface dialog) { in onCreate() 73 dialog.show(); in onCreate()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | CreateDirectoryFragment.java | 55 final CreateDirectoryFragment dialog = new CreateDirectoryFragment(); in show() local 56 dialog.show(fm, TAG_CREATE_DIRECTORY); in show() 77 public void onClick(DialogInterface dialog, int which) { in onCreateDialog() 83 final AlertDialog dialog = builder.create(); in onCreateDialog() local 86 Shared.ensureKeyboardPresent(context, dialog); in onCreateDialog() 97 dialog.dismiss(); in onCreateDialog() 105 return dialog; in onCreateDialog()
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
D | PreferenceDialogFragmentCompat.java | 154 final Dialog dialog = builder.create(); in onCreateDialog() local 156 requestInputMethod(dialog); in onCreateDialog() 159 return dialog; in onCreateDialog() 201 private void requestInputMethod(Dialog dialog) { in requestInputMethod() argument 202 Window window = dialog.getWindow(); in requestInputMethod() 253 public void onClick(DialogInterface dialog, int which) { in onClick() argument 258 public void onDismiss(DialogInterface dialog) { in onDismiss() argument 259 super.onDismiss(dialog); in onDismiss()
|
/frameworks/support/v14/preference/src/android/support/v14/preference/ |
D | PreferenceDialogFragment.java | 155 final Dialog dialog = builder.create(); in onCreateDialog() local 157 requestInputMethod(dialog); in onCreateDialog() 160 return dialog; in onCreateDialog() 202 private void requestInputMethod(Dialog dialog) { in requestInputMethod() argument 203 Window window = dialog.getWindow(); in requestInputMethod() 254 public void onClick(DialogInterface dialog, int which) { in onClick() argument 259 public void onDismiss(DialogInterface dialog) { in onDismiss() argument 260 super.onDismiss(dialog); in onDismiss()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | RenameDocumentFragment.java | 62 final RenameDocumentFragment dialog = new RenameDocumentFragment(); in show() local 63 dialog.mDocument = document; in show() 64 dialog.show(fm, TAG_RENAME_DOCUMENT); in show() 87 public void onClick(DialogInterface dialog, int which) { in onCreateDialog() 94 final AlertDialog dialog = builder.create(); in onCreateDialog() local 97 Shared.ensureKeyboardPresent(context, dialog); in onCreateDialog() 108 dialog.dismiss(); in onCreateDialog() 114 return dialog; in onCreateDialog()
|