Home
last modified time | relevance | path

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

123456

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DSystemUIDialog.java78 public static void setShowForAllUsers(Dialog dialog, boolean show) { in setShowForAllUsers() argument
80 dialog.getWindow().getAttributes().privateFlags |= in setShowForAllUsers()
83 dialog.getWindow().getAttributes().privateFlags &= in setShowForAllUsers()
88 public static void setWindowOnTop(Dialog dialog) { in setWindowOnTop() argument
90 dialog.getWindow().setType(LayoutParams.TYPE_STATUS_BAR_PANEL); in setWindowOnTop()
92 dialog.getWindow().setType(LayoutParams.TYPE_STATUS_BAR_SUB_PANEL); in setWindowOnTop()
96 public static AlertDialog applyFlags(AlertDialog dialog) { in applyFlags() argument
97 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL); in applyFlags()
98 dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM in applyFlags()
100 return dialog; in applyFlags()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialogFragment.java68 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); in setRouteTypes() local
69 if (dialog != null) { in setRouteTypes()
70 dialog.setRouteTypes(types); in setRouteTypes()
79 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); in setExtendedSettingsClickListener() local
80 if (dialog != null) { in setExtendedSettingsClickListener()
81 dialog.setExtendedSettingsClickListener(listener); in setExtendedSettingsClickListener()
99 MediaRouteChooserDialog dialog = onCreateChooserDialog(getActivity(), savedInstanceState); in onCreateDialog() local
100 dialog.setRouteTypes(getRouteTypes()); in onCreateDialog()
101 dialog.setExtendedSettingsClickListener(mExtendedSettingsClickListener); in onCreateDialog()
102 return dialog; in onCreateDialog()
DAlertController.java166 public ButtonHandler(DialogInterface dialog) { in ButtonHandler() argument
167 mDialog = new WeakReference<>(dialog); in ButtonHandler()
1081 public void apply(AlertController dialog) { in apply() argument
1083 dialog.setCustomTitle(mCustomTitleView); in apply()
1086 dialog.setTitle(mTitle); in apply()
1089 dialog.setIcon(mIcon); in apply()
1092 dialog.setIcon(mIconId); in apply()
1095 dialog.setIcon(dialog.getIconAttributeResId(mIconAttrId)); in apply()
1099 dialog.setMessage(mMessage); in apply()
1102 dialog.setButton(DialogInterface.BUTTON_POSITIVE, mPositiveButtonText, in apply()
[all …]
/frameworks/base/core/java/android/content/
DDialogInterface.java75 void onCancel(DialogInterface dialog); in onCancel() argument
89 void onDismiss(DialogInterface dialog); in onDismiss() argument
103 void onShow(DialogInterface dialog); in onShow() argument
119 void onClick(DialogInterface dialog, int which); in onClick() argument
135 void onClick(DialogInterface dialog, int which, boolean isChecked); in onClick() argument
155 boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event); in onKey() argument
/frameworks/base/core/java/android/preference/
DPreferenceScreen.java211 Dialog dialog = mDialog = new Dialog(context, context.getThemeResId()); in showDialog() local
216 dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE); in showDialog()
222 dialog.setTitle(title); in showDialog()
225 dialog.setContentView(childPrefScreen); in showDialog()
226 dialog.setOnDismissListener(this); in showDialog()
228 dialog.onRestoreInstanceState(state); in showDialog()
232 getPreferenceManager().addPreferencesScreen(dialog); in showDialog()
234 dialog.show(); in showDialog()
237 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
239 getPreferenceManager().removePreferencesScreen(dialog); in onDismiss()
[all …]
DDialogPreference.java336 final Dialog dialog = mDialog = mBuilder.create(); in showDialog() local
338 dialog.onRestoreInstanceState(state); in showDialog()
341 requestInputMethod(dialog); in showDialog()
343 dialog.setOnShowListener(new DialogInterface.OnShowListener() { in showDialog()
345 public void onShow(DialogInterface dialog) { in showDialog()
349 dialog.setOnDismissListener(this); in showDialog()
350 dialog.show(); in showDialog()
395 private void requestInputMethod(Dialog dialog) { in requestInputMethod() argument
396 Window window = dialog.getWindow(); in requestInputMethod()
446 public void onClick(DialogInterface dialog, int which) { in onClick() argument
[all …]
/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_APPLICATION_OVERLAY); 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/
DSlicePermissionActivity.java65 AlertDialog dialog = new AlertDialog.Builder(this) in onCreate() local
72 dialog.getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); in onCreate()
73 dialog.show(); in onCreate()
74 TextView t1 = dialog.getWindow().getDecorView().findViewById(R.id.text1); in onCreate()
76 TextView t2 = dialog.getWindow().getDecorView().findViewById(R.id.text2); in onCreate()
78 mAllCheckbox = dialog.getWindow().getDecorView().findViewById( in onCreate()
88 public void onClick(DialogInterface dialog, int which) { in onClick() argument
97 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DCustomDialogPreferenceCompat.java70 protected void onClick(DialogInterface dialog, int which) { in onClick() argument
118 final Dialog dialog = super.onCreateDialog(savedInstanceState); in onCreateDialog() local
119 dialog.setOnShowListener(getCustomizablePreference().getOnShowListener()); in onCreateDialog()
120 return dialog; in onCreateDialog()
124 public void onClick(DialogInterface dialog, int which) { in onClick() argument
125 super.onClick(dialog, which); in onClick()
126 getCustomizablePreference().onClick(dialog, which); in onClick()
DCustomDialogPreference.java76 protected void onClick(DialogInterface dialog, int which) { in onClick() argument
124 final Dialog dialog = super.onCreateDialog(savedInstanceState); in onCreateDialog() local
125 dialog.setOnShowListener(getCustomizablePreference().getOnShowListener()); in onCreateDialog()
126 return dialog; in onCreateDialog()
130 public void onClick(DialogInterface dialog, int which) { in onClick() argument
131 super.onClick(dialog, which); in onClick()
132 getCustomizablePreference().onClick(dialog, which); in onClick()
DCustomEditTextPreference.java63 final Dialog dialog = mFragment.getDialog(); in getEditText() local
64 if (dialog != null) { in getEditText()
65 return (EditText) dialog.findViewById(android.R.id.edit); in getEditText()
86 protected void onClick(DialogInterface dialog, int which) { in onClick() argument
136 public void onClick(DialogInterface dialog, int which) { in onClick() argument
137 super.onClick(dialog, which); in onClick()
138 getCustomizablePreference().onClick(dialog, which); in onClick()
DCustomEditTextPreferenceCompat.java57 final Dialog dialog = mFragment.getDialog(); in getEditText() local
58 if (dialog != null) { in getEditText()
59 return (EditText) dialog.findViewById(android.R.id.edit); in getEditText()
80 protected void onClick(DialogInterface dialog, int which) { in onClick() argument
131 public void onClick(DialogInterface dialog, int which) { in onClick() argument
132 super.onClick(dialog, which); in onClick()
133 getCustomizablePreference().onClick(dialog, which); in onClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/
DNetworkOverLimitActivity.java58 public void onClick(DialogInterface dialog, int which) { in onCreate()
63 final Dialog dialog = builder.create(); in onCreate() local
64 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); in onCreate()
65 dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { in onCreate()
66 public void onDismiss(DialogInterface dialog) { in onCreate()
71 dialog.show(); in onCreate()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java594 SimpleErrorDialog dialog = new SimpleErrorDialog(); in newInstance() local
598 dialog.setArguments(args); in newInstance()
600 return dialog; in newInstance()
607 .setPositiveButton(R.string.ok, (dialog, which) -> getActivity().finish()) in onCreateDialog()
625 ((dialog, which) -> { in onCreateDialog()
632 .setNegativeButton(R.string.cancel, ((dialog, which) -> getActivity().finish())) in onCreateDialog()
637 public void onCancel(DialogInterface dialog) { in onCancel() argument
651 public void onCancel(DialogInterface dialog) { in onCancel() argument
662 OutOfSpaceDialog dialog = new OutOfSpaceDialog(); in newInstance() local
663 dialog.setArgument(applicationLabel); in newInstance()
[all …]
DUninstallUninstalling.java85 DialogFragment dialog = new UninstallUninstallingFragment(); in onCreate() local
86 dialog.setCancelable(false); in onCreate()
87 dialog.show(transaction, "dialog"); in onCreate()
182 Dialog dialog = dialogBuilder.create(); in onCreateDialog() local
183 dialog.setCanceledOnTouchOutside(false); in onCreateDialog()
185 return dialog; in onCreateDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DCustomListPreference.java47 protected Dialog onDialogCreated(DialogFragment fragment, Dialog dialog) { in onDialogCreated() argument
48 return dialog; in onDialogCreated()
67 protected void onDialogStateRestored(DialogFragment fragment, Dialog dialog, in onDialogStateRestored() argument
99 public void onClick(DialogInterface dialog, int which) { in onPrepareDialogBuilder()
108 Dialog dialog = super.onCreateDialog(savedInstanceState); in onCreateDialog() local
113 return getCustomizablePreference().onDialogCreated(this, dialog); in onCreateDialog()
131 public void onClick(DialogInterface dialog, int which) { in getOnItemClickListener()
DTunerService.java87 SystemUIDialog dialog = new SystemUIDialog(context); in showResetRequest() local
88 dialog.setShowForAllUsers(true); in showResetRequest()
89 dialog.setMessage(R.string.remove_from_settings_prompt); in showResetRequest()
90 dialog.setButton(DialogInterface.BUTTON_NEGATIVE, context.getString(R.string.cancel), in showResetRequest()
92 dialog.setButton(DialogInterface.BUTTON_POSITIVE, in showResetRequest()
95 public void onClick(DialogInterface dialog, int which) { in showResetRequest()
108 dialog.show(); in showResetRequest()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDataSaverTile.java69 SystemUIDialog dialog = new SystemUIDialog(mContext); in handleClick() local
70 dialog.setTitle(com.android.internal.R.string.data_saver_enable_title); in handleClick()
71 dialog.setMessage(com.android.internal.R.string.data_saver_description); in handleClick()
72 dialog.setPositiveButton(com.android.internal.R.string.data_saver_enable_button, in handleClick()
74 dialog.setNegativeButton(com.android.internal.R.string.cancel, null); in handleClick()
75 dialog.setShowForAllUsers(true); in handleClick()
76 dialog.show(); in handleClick()
/frameworks/base/core/proto/android/app/
Dsettings_enums.proto284 // ACTION: Settings > Connected devices > Bluetooth -> Error dialog
582 // OPEN: Settings > Sound > Switch a2dp devices dialog
588 // OPEN: Settings > Sound > Switch hfp devices dialog
1398 // The dialog shown by 3P intent to change current webview implementation.
1425 // OPEN: Settings > Security > Factory Reset Protection dialog
1431 // OPEN: Settings > APN Editor > Error dialog
1434 // OPEN: Settings > Users > Edit owner info dialog
1437 // OPEN: Settings > Security > Use one lock dialog
1446 // OPEN: Settings > Accounts > Confirm auto sync dialog
1458 // OPEN: Settings > Keyboard > Show keyboard layout dialog
[all …]
/frameworks/base/core/java/android/app/
DProgressDialog.java184 ProgressDialog dialog = new ProgressDialog(context); in show() local
185 dialog.setTitle(title); in show()
186 dialog.setMessage(message); in show()
187 dialog.setIndeterminate(indeterminate); in show()
188 dialog.setCancelable(cancelable); in show()
189 dialog.setOnCancelListener(cancelListener); in show()
190 dialog.show(); in show()
191 return dialog; in show()
/frameworks/base/tests/UsageReportingTest/src/com/android/tests/usagereporter/
DUsageReporterActivity.java151 public void onClick(DialogInterface dialog, int which) { in callAddToken() argument
168 public void onClick(DialogInterface dialog, int which) { in callAddToken() argument
169 dialog.cancel(); in callAddToken()
186 public void onClick(DialogInterface dialog, int which) { in callAddManyTokens() argument
202 public void onClick(DialogInterface dialog, int which) { in callAddManyTokens() argument
203 dialog.cancel(); in callAddManyTokens()
216 public void onClick(DialogInterface dialog, int which) { in callStopAll() argument
227 public void onClick(DialogInterface dialog, int which) { in callStopAll() argument
228 dialog.cancel(); in callStopAll()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageStatsActivity.java130 public void onClick(DialogInterface dialog, int which) { in callIsAppInactive()
139 public void onClick(DialogInterface dialog, int which) { in callIsAppInactive()
140 dialog.cancel(); in callIsAppInactive()
157 public void onClick(DialogInterface dialog, int which) { in callSetAppLimit()
173 public void onClick(DialogInterface dialog, int which) { in callSetAppLimit()
174 dialog.cancel(); in callSetAppLimit()
191 public void onClick(DialogInterface dialog, int which) { in callSetAppUsageLimit()
207 public void onClick(DialogInterface dialog, int which) { in callSetAppUsageLimit()
208 dialog.cancel(); in callSetAppUsageLimit()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipHelper.java310 public ClientTransaction sendReinvite(Dialog dialog, in sendReinvite() argument
313 Request request = dialog.createRequest(Request.INVITE); in sendReinvite()
328 dialog.sendRequest(clientTransaction); in sendReinvite()
424 public void sendInviteAck(ResponseEvent event, Dialog dialog) in sendInviteAck() argument
429 Request ack = dialog.createAck(cseq); in sendInviteAck()
431 dialog.sendAck(ack); in sendInviteAck()
434 public void sendBye(Dialog dialog) throws SipException { in sendBye() argument
435 Request byeRequest = dialog.createRequest(Request.BYE); in sendBye()
437 dialog.sendRequest(mSipProvider.getNewClientTransaction(byeRequest)); in sendBye()
463 public void sendReferNotify(Dialog dialog, String content) in sendReferNotify() argument
[all …]
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DIPSettings.java45 public void onClick(DialogInterface dialog, int which, boolean isChecked) { in onCreateDialog()
53 public void onClick(DialogInterface dialog, int id) { in onCreateDialog()
59 public void onClick(DialogInterface dialog, int id) { in onCreateDialog()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DIPSettings.java45 public void onClick(DialogInterface dialog, int which, boolean isChecked) { in onCreateDialog()
53 public void onClick(DialogInterface dialog, int id) { in onCreateDialog()
59 public void onClick(DialogInterface dialog, int id) { in onCreateDialog()

123456