Home
last modified time | relevance | path

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

12345678910>>...18

/packages/services/Telephony/src/com/android/phone/
DTimeConsumingPreferenceActivity.java31 public void onClick(DialogInterface dialog, int which) { in onClick() argument
32 dialog.dismiss(); in onClick()
37 public void onClick(DialogInterface dialog, int which) { in onClick() argument
38 dialog.dismiss(); in onClick()
64 ProgressDialog dialog = new ProgressDialog(this); in onCreateDialog() local
65 dialog.setTitle(getText(R.string.updating_title)); in onCreateDialog()
66 dialog.setIndeterminate(true); in onCreateDialog()
70 dialog.setCancelable(true); in onCreateDialog()
71 dialog.setOnCancelListener(this); in onCreateDialog()
72 dialog.setMessage(getText(R.string.reading_settings)); in onCreateDialog()
[all …]
DErrorDialogActivity.java64 public void onClick(DialogInterface dialog, int which) { in showGenericErrorDialog()
70 public void onCancel(DialogInterface dialog) { in showGenericErrorDialog()
88 public void onClick(DialogInterface dialog, int which) { in showMissingVoicemailErrorDialog()
93 public void onClick(DialogInterface dialog, int which) { in showMissingVoicemailErrorDialog()
94 addVoiceMailNumberPanel(dialog); in showMissingVoicemailErrorDialog()
98 public void onCancel(DialogInterface dialog) { in showMissingVoicemailErrorDialog()
104 private void addVoiceMailNumberPanel(DialogInterface dialog) { in addVoiceMailNumberPanel() argument
105 if (dialog != null) { in addVoiceMailNumberPanel()
106 dialog.dismiss(); in addVoiceMailNumberPanel()
DNetworkSetting.java221 public void onCancel(DialogInterface dialog) { in onCancel() argument
315 ProgressDialog dialog = new ProgressDialog(this); in onCreateDialog() local
323 dialog.setMessage(mNetworkSelectMsg); in onCreateDialog()
324 dialog.setCancelable(false); in onCreateDialog()
325 dialog.setIndeterminate(true); in onCreateDialog()
328 dialog.setMessage(getResources().getString(R.string.register_automatically)); in onCreateDialog()
329 dialog.setCancelable(false); in onCreateDialog()
330 dialog.setIndeterminate(true); in onCreateDialog()
335 dialog.setMessage(getResources().getString(R.string.load_networks_progress)); in onCreateDialog()
336 dialog.setCanceledOnTouchOutside(false); in onCreateDialog()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DSmsStorageLowWarningFragment.java61 final ChooseActionDialogFragment dialog = ChooseActionDialogFragment.newInstance(); in onCreate() local
62 dialog.setTargetFragment(this, 0/*requestCode*/); in onCreate()
63 dialog.show(ft, null/*tag*/); in onCreate()
73 final ConfirmationDialog dialog = ConfirmationDialog.newInstance(actionIndex); in confirm() local
74 dialog.setTargetFragment(this, 0/*requestCode*/); in confirm()
75 dialog.show(ft, null/*tag*/); in confirm()
110 public void onClick(DialogInterface dialog, int id) { in onCreateDialog()
111 dialog.cancel(); in onCreateDialog()
115 final Dialog dialog = builder.create(); in onCreateDialog() local
116 dialog.setCanceledOnTouchOutside(false); in onCreateDialog()
[all …]
/packages/apps/Dialer/java/com/android/dialer/blocking/
DBlockReportSpamDialogs.java49 public void onClick(DialogInterface dialog, int which) { in createDialogBuilder()
63 public void onClick(DialogInterface dialog, int which) {
114 public void onDismiss(DialogInterface dialog) {
116 mDismissListener.onDismiss(dialog);
118 super.onDismiss(dialog);
174 Dialog dialog =
182 public void onClick(DialogInterface dialog, int which) {
188 dialog.setCanceledOnTouchOutside(true);
189 return dialog;
216 Dialog dialog =
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DAccountsSettingsFragmentTests.java91 final AlertDialog dialog = initDialog(fragment, null).mDialog; in testMultipleAccounts_noSettingsForManagedProfile() local
92 final ListView lv = dialog.getListView(); in testMultipleAccounts_noSettingsForManagedProfile()
103 final AlertDialog dialog = initDialog(fragment, null).mDialog; in testMultipleAccounts_noCurrentAccount() local
104 final ListView lv = dialog.getListView(); in testMultipleAccounts_noCurrentAccount()
112 dialog.getButton(DialogInterface.BUTTON_NEUTRAL).getVisibility()); in testMultipleAccounts_noCurrentAccount()
114 dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getVisibility()); in testMultipleAccounts_noCurrentAccount()
116 dialog.getButton(DialogInterface.BUTTON_POSITIVE).getVisibility()); in testMultipleAccounts_noCurrentAccount()
124 final AlertDialog dialog = initDialog(fragment, "3@example.com").mDialog; in testMultipleAccounts_currentAccount() local
125 final ListView lv = dialog.getListView(); in testMultipleAccounts_currentAccount()
133 dialog.getButton(DialogInterface.BUTTON_NEUTRAL).getVisibility()); in testMultipleAccounts_currentAccount()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialogFragment.java58 void onDialogNegativeClick(BluetoothPairingDialogFragment dialog); in onDialogNegativeClick() argument
60 void onDialogPositiveClick(BluetoothPairingDialogFragment dialog); in onDialogPositiveClick() argument
99 public void onClick(DialogInterface dialog, int which) { in onClick() argument
167 AlertDialog dialog; in setupDialog() local
170 dialog = createUserEntryDialog(); in setupDialog()
173 dialog = createConsentDialog(); in setupDialog()
176 dialog = createDisplayPasskeyOrPinDialog(); in setupDialog()
179 dialog = null; in setupDialog()
182 return dialog; in setupDialog()
194 AlertDialog dialog = mBuilder.create(); in createUserEntryDialog() local
[all …]
DUtils.java63 AlertDialog dialog, in showDisconnectDialog() argument
66 if (dialog == null) { in showDisconnectDialog()
67 dialog = new AlertDialog.Builder(context) in showDisconnectDialog()
72 if (dialog.isShowing()) { in showDisconnectDialog()
73 dialog.dismiss(); in showDisconnectDialog()
77 dialog.setButton(DialogInterface.BUTTON_POSITIVE, in showDisconnectDialog()
80 dialog.setTitle(title); in showDisconnectDialog()
81 dialog.setMessage(message); in showDisconnectDialog()
82 dialog.show(); in showDisconnectDialog()
83 return dialog; in showDisconnectDialog()
/packages/apps/Email/src/com/android/email/activity/setup/
DCheckSettingsProgressDialogFragment.java70 final AlertDialog dialog = (AlertDialog) getDialog(); in updateProgress() local
71 if (dialog != null && mProgressString != null) { in updateProgress()
72 dialog.setMessage(mProgressString); in updateProgress()
92 final ProgressDialog dialog = new ProgressDialog(context); in onCreateDialog() local
93 dialog.setIndeterminate(true); in onCreateDialog()
94 dialog.setMessage(mProgressString); in onCreateDialog()
95 dialog.setButton(DialogInterface.BUTTON_NEGATIVE, in onCreateDialog()
99 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
100 dialog.cancel(); in onCreateDialog()
103 return dialog; in onCreateDialog()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationLockscreenPreference.java88 protected void onDialogCreated(Dialog dialog) { in onDialogCreated() argument
89 super.onDialogCreated(dialog); in onDialogCreated()
90 dialog.create(); in onDialogCreated()
91 CheckBox checkbox = (CheckBox) dialog.findViewById(R.id.lockscreen_remote_input); in onDialogCreated()
96 View restricted = dialog.findViewById(R.id.restricted_lock_icon_remote_input); in onDialogCreated()
101 dialog.findViewById(com.android.internal.R.id.customPanel) in onDialogCreated()
107 protected void onDialogStateRestored(Dialog dialog, Bundle savedInstanceState) { in onDialogStateRestored() argument
108 super.onDialogStateRestored(dialog, savedInstanceState); in onDialogStateRestored()
109 ListView listView = ((AlertDialog) dialog).getListView(); in onDialogStateRestored()
112 View panel = dialog.findViewById(com.android.internal.R.id.customPanel); in onDialogStateRestored()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/
DMinTimeProgressDialog.java107 public void onShow(DialogInterface dialog) { in onShow() argument
119 MinTimeProgressDialog dialog = new MinTimeProgressDialog(context); in show() local
120 dialog.setTitle(title); in show()
121 dialog.setMessage(message); in show()
122 dialog.setIndeterminate(indeterminate); in show()
123 dialog.setCancelable(cancelable); in show()
124 dialog.setOnCancelListener(cancelListener); in show()
125 dialog.setOnShowListener(dialog); in show()
126 dialog.show(); in show()
128 return dialog; in show()
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
DTrampolineActivity.java134 final PausedDialogFragment dialog = new PausedDialogFragment(); in show() local
138 dialog.setArguments(args); in show()
139 dialog.show(fm, TAG_PAUSED); in show()
167 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
176 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
185 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
186 super.onDismiss(dialog); in onDismiss()
196 final FailedDialogFragment dialog = new FailedDialogFragment(); in show() local
200 dialog.setArguments(args); in show()
201 dialog.show(fm, TAG_FAILED); in show()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DButtonActionDialogFragmentTest.java84 final AlertDialog dialog = (AlertDialog) ShadowDialog.getLatestDialog(); in testOnCreateDialog_forceStopDialog() local
85 ShadowAlertDialog shadowDialog = shadowOf(dialog); in testOnCreateDialog_forceStopDialog()
91 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getText()).isEqualTo( in testOnCreateDialog_forceStopDialog()
93 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getText()).isEqualTo( in testOnCreateDialog_forceStopDialog()
103 final AlertDialog dialog = (AlertDialog) ShadowDialog.getLatestDialog(); in testOnCreateDialog_disableDialog() local
104 ShadowAlertDialog shadowDialog = shadowOf(dialog); in testOnCreateDialog_disableDialog()
108 assertThat(dialog.getButton(DialogInterface.BUTTON_POSITIVE).getText()).isEqualTo( in testOnCreateDialog_disableDialog()
110 assertThat(dialog.getButton(DialogInterface.BUTTON_NEGATIVE).getText()).isEqualTo( in testOnCreateDialog_disableDialog()
121 final AlertDialog dialog = (AlertDialog) ShadowDialog.getLatestDialog(); in testOnCreateDialog_specialDisableDialog() local
122 ShadowAlertDialog shadowDialog = shadowOf(dialog); in testOnCreateDialog_specialDisableDialog()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java681 SimpleErrorDialog dialog = new SimpleErrorDialog(); in newInstance() local
685 dialog.setArguments(args); in newInstance()
687 return dialog; in newInstance()
694 .setPositiveButton(R.string.ok, (dialog, which) -> getActivity().finish()) in onCreateDialog()
712 ((dialog, which) -> ((PackageInstallerActivity) getActivity()) in onCreateDialog()
714 .setNegativeButton(R.string.cancel, ((dialog, which) -> getActivity().finish())) in onCreateDialog()
728 public void onCancel(DialogInterface dialog) { in onCancel() argument
739 OutOfSpaceDialog dialog = new OutOfSpaceDialog(); in newInstance() local
740 dialog.setArgument(applicationLabel); in newInstance()
741 return dialog; in newInstance()
[all …]
/packages/apps/Contacts/src/com/android/contacts/dialog/
DIndeterminateProgressDialog.java17 package com.android.contacts.dialog;
90 final ProgressDialog dialog = new ProgressDialog(getActivity()); in onCreateDialog() local
91 dialog.setIndeterminate(true); in onCreateDialog()
92 dialog.setIndeterminateDrawable(null); in onCreateDialog()
93 dialog.setTitle(mTitle); in onCreateDialog()
94 dialog.setMessage(mMessage); in onCreateDialog()
96 return dialog; in onCreateDialog()
125 public void onDismiss(DialogInterface dialog) { in onDismiss() argument
126 if (mOldDialog != null && mOldDialog == dialog) { in onDismiss()
131 super.onDismiss(dialog); in onDismiss()
/packages/apps/Dialer/java/com/android/incallui/
DInCallActivityCommon.java104 private Dialog dialog; field in InCallActivityCommon
538 if (dialog != null) { in dismissPendingDialogs()
539 dialog.dismiss(); in dismissPendingDialogs()
540 dialog = null; in dismissPendingDialogs()
569 Dialog dialog = in getDisconnectErrorDialog() local
574 return new Pair<>(dialog, message); in getDisconnectErrorDialog()
577 private void showErrorDialog(Dialog dialog, CharSequence message) { in showErrorDialog() argument
587 this.dialog = dialog; in showErrorDialog()
588 dialog.setOnDismissListener( in showErrorDialog()
591 public void onDismiss(DialogInterface dialog) { in showErrorDialog()
[all …]
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DWearableDialogHelper.java131 public void apply(@NonNull AlertDialog dialog) { in apply() argument
132 applyButton(dialog.getButton(DialogInterface.BUTTON_POSITIVE), getPositiveIcon()); in apply()
133 applyButton(dialog.getButton(DialogInterface.BUTTON_NEGATIVE), getNegativeIcon()); in apply()
134 applyButton(dialog.getButton(DialogInterface.BUTTON_NEUTRAL), getNeutralIcon()); in apply()
204 final AlertDialog dialog = super.create(); in create() local
205 dialog.create(); in create()
206 mHelper.apply(dialog); in create()
207 return dialog; in create()
212 final AlertDialog dialog = this.create(); in show() local
213 dialog.show(); in show()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DCarrierDemoPasswordDialogFragment.java59 final AlertDialog dialog = new AlertDialog.Builder(getContext()) in onCreateDialog() local
63 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
76 final Context context = dialog.getContext(); in onCreateDialog()
89 verifyPassword(dialog, passwordField.getText().toString()); in onCreateDialog()
98 dialog.setOnShowListener(new DialogInterface.OnShowListener() { in onCreateDialog()
101 verifyPassword(dialog, passwordField.getText().toString()); in onCreateDialog()
108 dialog.setCanceledOnTouchOutside(false); in onCreateDialog()
113 dialog.setView(passwordField, sidePadding, 0, sidePadding, 0); in onCreateDialog()
116 return dialog; in onCreateDialog()
119 private void verifyPassword(AlertDialog dialog, String input) { in verifyPassword() argument
[all …]
/packages/apps/Settings/src/com/android/settings/
DCredentialStorage.java314 AlertDialog dialog = new AlertDialog.Builder(CredentialStorage.this) in ResetDialog() local
320 dialog.setOnDismissListener(this); in ResetDialog()
321 dialog.show(); in ResetDialog()
324 @Override public void onClick(DialogInterface dialog, int button) { in onClick() argument
328 @Override public void onDismiss(DialogInterface dialog) { in onDismiss() argument
395 AlertDialog dialog = new AlertDialog.Builder(CredentialStorage.this) in ConfigureKeyGuardDialog() local
401 dialog.setOnDismissListener(this); in ConfigureKeyGuardDialog()
402 dialog.show(); in ConfigureKeyGuardDialog()
405 @Override public void onClick(DialogInterface dialog, int button) { in onClick() argument
409 @Override public void onDismiss(DialogInterface dialog) { in onDismiss() argument
[all …]
DRemoteBugreportActivity.java51 AlertDialog dialog = new AlertDialog.Builder(this) in onCreate() local
55 public void onDismiss(DialogInterface dialog) { in onCreate()
61 public void onClick(DialogInterface dialog, int which) { in onCreate()
66 dialog.show(); in onCreate()
70 AlertDialog dialog = new AlertDialog.Builder(this) in onCreate() local
78 public void onDismiss(DialogInterface dialog) { in onCreate()
85 public void onClick(DialogInterface dialog, int which) { in onCreate()
96 public void onClick(DialogInterface dialog, int which) { in onCreate()
105 dialog.show(); in onCreate()
/packages/apps/Calendar/src/com/android/calendar/
DDeleteEventHelper.java135 public void onClick(DialogInterface dialog, int button) {
154 public void onClick(DialogInterface dialog, int button) {
171 public void onClick(DialogInterface dialog, int button) {
187 public void onClick(DialogInterface dialog, int button) {
270 AlertDialog dialog = new AlertDialog.Builder(mContext) in delete() local
277 dialog.setButton(DialogInterface.BUTTON_POSITIVE, in delete()
282 dialog.setButton(DialogInterface.BUTTON_POSITIVE, in delete()
286 dialog.setOnDismissListener(mDismissListener); in delete()
287 dialog.show(); in delete()
288 mAlertDialog = dialog; in delete()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java219 final BytesEditorFragment dialog = new BytesEditorFragment(); in show() local
220 dialog.setArguments(args); in show()
221 dialog.setTargetFragment(targetFragment, 0); in show()
222 dialog.show(targetFragment.getFragmentManager(), TAG_WARNING_EDITOR); in show()
272 public void onClick(DialogInterface dialog, int which) { in onClick() argument
321 final CycleEditorFragment dialog = new CycleEditorFragment(); in show() local
322 dialog.setArguments(args); in show()
323 dialog.setTargetFragment(parent, 0); in show()
324 dialog.show(parent.getFragmentManager(), TAG_CYCLE_EDITOR); in show()
359 public void onClick(DialogInterface dialog, int which) { in onClick() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DSplitContactConfirmationDialogFragment.java62 final SplitContactConfirmationDialogFragment dialog = new in show() local
64 dialog.setTargetFragment(fragment, 0); in show()
65 dialog.setArguments(args); in show()
66 dialog.show(fragment.getFragmentManager(), "splitContact"); in show()
89 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
95 public void onClick(DialogInterface dialog, int which) { in onCreateDialog()
96 onCancel(dialog); in onCreateDialog()
110 public void onCancel(DialogInterface dialog) { in onCancel() argument
111 super.onCancel(dialog); in onCancel()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainActivity.java212 @Override public void onClick(DialogInterface dialog, int id) { in displayCertChooserDialog()
213 dialog.cancel(); // will cause OnDismissListener to be called in displayCertChooserDialog()
239 @Override public void onClick(DialogInterface dialog, int id) { in displayCertChooserDialog()
240 if (dialog instanceof AlertDialog) { in displayCertChooserDialog()
241 ListView lv = ((AlertDialog) dialog).getListView(); in displayCertChooserDialog()
249 Log.wtf(TAG, "Expected AlertDialog, got " + dialog, new Exception()); in displayCertChooserDialog()
257 final AlertDialog dialog = builder.create(); in displayCertChooserDialog() local
263 final ListView lv = dialog.getListView(); in displayCertChooserDialog()
274 dialog.dismiss(); in displayCertChooserDialog()
277 dialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(true); in displayCertChooserDialog()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/components/
DErrorDialogActivity.java75 public void onClick(DialogInterface dialog, int which) { in showGenericErrorDialog()
82 public void onCancel(DialogInterface dialog) { in showGenericErrorDialog()
105 public void onClick(DialogInterface dialog, int which) { in showMissingVoicemailErrorDialog()
111 public void onClick(DialogInterface dialog, int which) { in showMissingVoicemailErrorDialog()
112 addVoiceMailNumberPanel(dialog); in showMissingVoicemailErrorDialog()
116 public void onCancel(DialogInterface dialog) { in showMissingVoicemailErrorDialog()
122 private void addVoiceMailNumberPanel(DialogInterface dialog) { in addVoiceMailNumberPanel() argument
123 if (dialog != null) { in addVoiceMailNumberPanel()
124 dialog.dismiss(); in addVoiceMailNumberPanel()

12345678910>>...18