Home
last modified time | relevance | path

Searched refs:dialog (Results 1 – 25 of 261) sorted by relevance

1234567891011

/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialogFragment.java64 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()
DAlertController.java153 public ButtonHandler(DialogInterface dialog) { in ButtonHandler() argument
154 mDialog = new WeakReference<>(dialog); in ButtonHandler()
979 public void apply(AlertController dialog) { in apply() argument
981 dialog.setCustomTitle(mCustomTitleView); in apply()
984 dialog.setTitle(mTitle); in apply()
987 dialog.setIcon(mIcon); in apply()
990 dialog.setIcon(mIconId); in apply()
993 dialog.setIcon(dialog.getIconAttributeResId(mIconAttrId)); in apply()
997 dialog.setMessage(mMessage); in apply()
1000 dialog.setButton(DialogInterface.BUTTON_POSITIVE, mPositiveButtonText, in apply()
[all …]
/frameworks/base/docs/html-intl/intl/in/guide/topics/ui/
Ddialogs.jd24 <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/core/java/android/preference/
DPreferenceScreen.java173 Dialog dialog = mDialog = new Dialog(context, context.getThemeResId()); in showDialog() local
175 dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE); in showDialog()
177 dialog.setTitle(title); in showDialog()
179 dialog.setContentView(childPrefScreen); in showDialog()
180 dialog.setOnDismissListener(this); in showDialog()
182 dialog.onRestoreInstanceState(state); in showDialog()
186 getPreferenceManager().addPreferencesScreen(dialog); in showDialog()
188 dialog.show(); in showDialog()
191 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
193 getPreferenceManager().removePreferencesScreen(dialog); in onDismiss()
[all …]
DDialogPreference.java311 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/docs/html/guide/topics/ui/
Ddialogs.jd24 <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/content/
DDialogInterface.java77 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/
DFakeBackgroundService.java76 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/
DSystemUIDialog.java62 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/
DAppCompatDialogFragment.java41 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()
DAlertController.java146 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/
DDataSaverTile.java67 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/zh-cn/guide/topics/ui/
Ddialogs.jd124 // 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/
Ddialogs.jd124 // 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/
Ddialogs.jd124 // 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/
Ddialogs.jd124 // 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/ja/guide/topics/ui/
Ddialogs.jd124 // 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/
DNetworkOverLimitActivity.java60 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/SystemUI/src/com/android/systemui/tuner/
DColorAndAppearanceFragment.java114 CalibrateDialog dialog = new CalibrateDialog(); in show() local
115 dialog.setTargetFragment(fragment, 0); in show()
116 dialog.show(fragment.getFragmentManager(), "Calibrate"); in show()
148 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
149 super.onDismiss(dialog); in onDismiss()
174 public void onClick(DialogInterface dialog, int which) { in onClick() argument
209 public void onCancel(DialogInterface dialog) { in onCancel() argument
210 super.onCancel(dialog); in onCancel()
215 public void onClick(DialogInterface dialog, int which) { in onClick() argument
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DCreateDirectoryFragment.java55 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/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DRenameDocumentFragment.java62 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()
/frameworks/support/v14/preference/src/android/support/v14/preference/
DPreferenceDialogFragment.java155 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/support/v7/preference/src/android/support/v7/preference/
DPreferenceDialogFragmentCompat.java154 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/base/docs/html/guide/topics/search/
Dsearch-dialog.jd21 <li><a href="#InvokingTheSearchDialog">Invoking the search dialog</a></li>
22 <li><a href="#LifeCycle">The impact of the search dialog on your activity lifecycle</a></li>
30 <li><a href="#UsingBoth">Using both the widget and the dialog</a></li>
63 the user interface with either a search dialog that appears at the top of the activity window or a
64 search widget that you can insert in your layout. Both the search dialog and the widget can deliver
66 a search from any activity where the search dialog or widget is available, and the system starts the
69 <p>Other features available for the search dialog and widget include:</p>
79 search dialog or the search widget.</p>
86 <p class="img-caption"><strong>Figure 1.</strong> Screenshot of an application's search dialog.</p>
90 search dialog or the search widget. Both provide the same search features, but in slightly different
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
DProfileSelectDialog.java37 ProfileSelectDialog dialog = new ProfileSelectDialog(); in show() local
40 dialog.setArguments(args); in show()
41 dialog.show(manager, "select_profile"); in show()
63 public void onClick(DialogInterface dialog, int which) { in onClick() argument

1234567891011