Home
last modified time | relevance | path

Searched refs:dialogBuilder (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUnarchiveErrorFragment.java61 AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(getActivity()); in onCreateDialog() local
63 dialogBuilder.setTitle(getDialogTitle(mStatus, installerAppTitle)); in onCreateDialog()
64 dialogBuilder.setMessage(getBodyText(mStatus, installerAppTitle, requiredBytes)); in onCreateDialog()
66 addButtons(dialogBuilder, mStatus); in onCreateDialog()
68 return dialogBuilder.create(); in onCreateDialog()
71 private void addButtons(AlertDialog.Builder dialogBuilder, int status) { in addButtons() argument
74 dialogBuilder.setPositiveButton(R.string.unarchive_action_required_continue, this); in addButtons()
75 dialogBuilder.setNegativeButton(R.string.close, this); in addButtons()
78 dialogBuilder.setPositiveButton(R.string.unarchive_clear_storage_button, this); in addButtons()
79 dialogBuilder.setNegativeButton(R.string.close, this); in addButtons()
[all …]
DUnarchiveFragment.java33 AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(getActivity()); in onCreateDialog() local
35 dialogBuilder.setTitle( in onCreateDialog()
38 dialogBuilder.setMessage(R.string.unarchive_body_text); in onCreateDialog()
40 dialogBuilder.setPositiveButton(R.string.restore, this); in onCreateDialog()
41 dialogBuilder.setNegativeButton(android.R.string.cancel, this); in onCreateDialog()
43 return dialogBuilder.create(); in onCreateDialog()
DUninstallUninstalling.java185 AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(getActivity()); in onCreateDialog() local
193 dialogBuilder.setCancelable(false); in onCreateDialog()
195 dialogBuilder.setTitle(getActivity().getString(R.string.uninstalling_cloned_app, in onCreateDialog()
198 dialogBuilder.setTitle(getActivity().getString(R.string.uninstalling_app, in onCreateDialog()
202 Dialog dialog = dialogBuilder.create(); in onCreateDialog()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerActivity.java137 AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this); in showConfirm() local
138 dialogBuilder.setTitle(R.string.confirm_title); in showConfirm()
139 dialogBuilder.setMessage(textId); in showConfirm()
140 dialogBuilder.setPositiveButton(android.R.string.ok, in showConfirm()
146 dialogBuilder.setNegativeButton(android.R.string.cancel, in showConfirm()
152 dialogBuilder.show(); in showConfirm()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/
DUninstallAlertDialogFragment.java118 AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(getActivity()); in onCreateDialog() local
201 dialogBuilder.setTitle(getString(R.string.cloned_app_label, appLabel)); in onCreateDialog()
203 dialogBuilder.setTitle(getString(R.string.archiving_app_label, appLabel)); in onCreateDialog()
205 dialogBuilder.setTitle(appLabel); in onCreateDialog()
207 dialogBuilder.setPositiveButton(isArchive ? R.string.archive : android.R.string.ok, in onCreateDialog()
209 dialogBuilder.setNegativeButton(android.R.string.cancel, this); in onCreateDialog()
230 dialogBuilder.setMessage(messageBuilder.toString()); in onCreateDialog()
241 dialogBuilder.setView(content); in onCreateDialog()
244 return dialogBuilder.create(); in onCreateDialog()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogControllerTest.kt65 private lateinit var dialogBuilder: ChannelEditorDialog.Builder variable in com.android.systemui.statusbar.notification.row.ChannelEditorDialogControllerTest
72 `when`(dialogBuilder.build()).thenReturn(dialog) in setup()
73 controller = ChannelEditorDialogController(mContext, mockNoMan, dialogBuilder) in setup()
219 `when`(dialogBuilder.build()).thenReturn(dialog) in testDoneButtonSaysDone_noChanges()
236 `when`(dialogBuilder.build()).thenReturn(dialog) in testDoneButtonGoesBackToNormal_changeThenNoChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogController.kt63 private val dialogBuilder: ChannelEditorDialog.Builder in <lambda>() constant
275 dialogBuilder.setContext(context) in <lambda>()
276 dialog = dialogBuilder.build() in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendDialogInfoTest.java157 final SuspendDialogInfo.Builder dialogBuilder = new SuspendDialogInfo.Builder() in defaultButtonAction() local
161 assertEquals(BUTTON_ACTION_MORE_DETAILS, dialogBuilder.build().getNeutralButtonAction()); in defaultButtonAction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/permission/
DMediaProjectionPermissionActivity.java266 AlertDialog.Builder dialogBuilder = in onCreate() local
273 mDialog = dialogBuilder.create(); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcuts.java645 AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(mContext); in handleShowKeyboardShortcuts() local
652 dialogBuilder.setView(keyboardShortcutsView); in handleShowKeyboardShortcuts()
653 dialogBuilder.setPositiveButton(R.string.quick_settings_done, mDialogCloseListener); in handleShowKeyboardShortcuts()
654 mKeyboardShortcutsDialog = dialogBuilder.create(); in handleShowKeyboardShortcuts()