/frameworks/base/core/java/android/content/ |
H A D | DialogInterface.java | 63 * Interface used to allow the creator of a dialog to run some code when the 64 * dialog is canceled. 66 * This will only be called when the dialog is canceled, if the creator 72 * This method will be invoked when the dialog is canceled. 74 * @param dialog The dialog that was canceled will be passed into the 77 public void onCancel(DialogInterface dialog); argument 81 * Interface used to allow the creator of a dialog to run some code when the 82 * dialog is dismissed. 86 * This method will be invoked when the dialog i 91 onDismiss(DialogInterface dialog) argument 105 onShow(DialogInterface dialog) argument 122 onClick(DialogInterface dialog, int which) argument 137 onClick(DialogInterface dialog, int which, boolean isChecked) argument 156 onKey(DialogInterface dialog, int keyCode, KeyEvent event) argument [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | MediaRouteChooserDialogFragment.java | 26 * Media route chooser dialog fragment. 29 * this dialog fragment to customize the media route chooser dialog. 40 * Creates a media route chooser dialog fragment. 64 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); 65 if (dialog != null) { 66 dialog.setRouteTypes(types); 75 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); 76 if (dialog != null) { 77 dialog [all...] |
H A D | AlertController.java | 149 public ButtonHandler(DialogInterface dialog) { argument 150 mDialog = new WeakReference<DialogInterface>(dialog); 271 * Set the view resource to display in the dialog. 280 * Set the view to display in the dialog. 289 * Set the view to display in the dialog along with the spacing around that view 872 * @param listView The ListView that will be shown in the dialog. 883 public void apply(AlertController dialog) { argument 885 dialog.setCustomTitle(mCustomTitleView); 888 dialog.setTitle(mTitle); 891 dialog 943 createListView(final AlertController dialog) argument [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouteChooserDialogFragment.java | 26 * Media route chooser dialog fragment. 29 * this dialog fragment to customize the media route chooser dialog. 38 * Creates a media route chooser dialog fragment. 91 MediaRouteChooserDialog dialog = (MediaRouteChooserDialog)getDialog(); 92 if (dialog != null) { 93 dialog.setRouteSelector(selector); 99 * Called when the chooser dialog is being created. 101 * Subclasses may override this method to customize the dialog. 111 MediaRouteChooserDialog dialog [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceScreen.java | 173 Dialog dialog = mDialog = new Dialog(context, context.getThemeResId()); 175 dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE); 177 dialog.setTitle(title); 179 dialog.setContentView(childPrefScreen); 180 dialog.setOnDismissListener(this); 182 dialog.onRestoreInstanceState(state); 186 getPreferenceManager().addPreferencesScreen(dialog); 188 dialog.show(); 191 public void onDismiss(DialogInterface dialog) { argument 193 getPreferenceManager().removePreferencesScreen(dialog); [all...] |
H A D | DialogPreference.java | 40 * dialog-based. These preferences will, when clicked, open a dialog showing the 62 /** The dialog, if it is showing. */ 102 * Sets the title of the dialog. This will be shown on subsequent dialogs. 112 * @param dialogTitleResId The dialog title as a resource. 127 * Sets the message of the dialog. This will be shown on subsequent dialogs. 129 * This message forms the content View of the dialog and conflicts with 130 * list-based dialogs, for example. If setting a custom View on a dialog via 142 * @param dialogMessageResId The dialog message as a resource. 157 * Sets the icon of the dialog 332 requestInputMethod(Dialog dialog) argument 382 onClick(DialogInterface dialog, int which) argument 386 onDismiss(DialogInterface dialog) argument [all...] |
H A D | VolumePreference.java | 39 /** May be null if the dialog isn't visible. */ 75 // dialog doesn't also show the normal volume adjust toast. 130 Dialog dialog = getDialog(); 131 if (dialog != null && dialog.isShowing()) { 132 View view = dialog.getWindow().getDecorView() 135 // Stopped while dialog was showing, revert changes
|
H A D | ListPreference.java | 30 * a dialog. 255 public void onClick(DialogInterface dialog, int which) { 260 * click, and dismisses the dialog. 262 ListPreference.this.onClick(dialog, DialogInterface.BUTTON_POSITIVE); 263 dialog.dismiss(); 269 * click-on-an-item dismiss the dialog instead of the user having to
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
H A D | FakeBackgroundService.java | 76 Dialog dialog = new Dialog(this, android.R.style.Theme_Holo_Dialog); 77 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 78 dialog.getWindow().setFlags( 88 dialog.getWindow().setDimAmount(0); 89 dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, 91 WindowManager.LayoutParams lp = dialog.getWindow().getAttributes(); 97 dialog.getWindow().setAttributes(lp); 98 dialog.getWindow().setContentView(view); 99 dialog.show();
|
H A D | FakeApp.java | 110 Dialog dialog = builder.create(); 111 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 112 dialog.show();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/ |
H A D | NetworkOverLimitActivity.java | 60 public void onClick(DialogInterface dialog, int which) { 65 final Dialog dialog = builder.create(); 66 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); 67 dialog.setOnDismissListener(new DialogInterface.OnDismissListener() { 68 public void onDismiss(DialogInterface dialog) { 73 dialog.show();
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZonePickerDialog.java | 96 Dialog dialog = super.onCreateDialog(savedInstanceState); 97 dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); 98 dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); 99 return dialog;
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | MenuDialogHelper.java | 47 * Shows menu as a dialog. 55 // Get the builder for the dialog 92 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { argument 115 dialog.dismiss(); 133 * Dismisses the menu's dialog. 144 public void onDismiss(DialogInterface dialog) { argument 166 public void onClick(DialogInterface dialog, int which) { argument
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | MenuDialogHelper.java | 48 * Shows menu as a dialog. 56 // Get the builder for the dialog 95 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { argument 118 dialog.dismiss(); 136 * Dismisses the menu's dialog. 147 public void onDismiss(DialogInterface dialog) { argument 169 public void onClick(DialogInterface dialog, int which) { argument
|
/frameworks/base/core/java/android/app/ |
H A D | AlertDialog.java | 39 * display a String in this dialog box, use the setMessage() method. If you 51 * any views in the dialog return true from {@link View#onCheckIsTextEditor() 68 * the traditional (pre-Holo) alert dialog theme. 116 * to get the dialog's style (such as {@link android.R.attr#alertDialogTheme} 161 * Gets one of the buttons used in the dialog. Returns null if the specified 162 * button does not exist or the dialog has not yet been fully created (for 168 * @return The button from the dialog, or null if a button does not exist. 175 * Gets the list view used in the dialog. 177 * @return The {@link ListView} from the dialog. 201 * Set the view to display in that dialog [all...] |
H A D | ProgressDialog.java | 38 * <p>A dialog showing a progress indicator and an optional text message or view. 40 * <p>The dialog can be made cancelable on back key press.</p> 110 ProgressDialog dialog = new ProgressDialog(context); 111 dialog.setTitle(title); 112 dialog.setMessage(message); 113 dialog.setIndeterminate(indeterminate); 114 dialog.setCancelable(cancelable); 115 dialog.setOnCancelListener(cancelListener); 116 dialog.show(); 117 return dialog; [all...] |
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
H A D | SipHelper.java | 310 public ClientTransaction sendReinvite(Dialog dialog, argument 313 Request request = dialog.createRequest(Request.INVITE); 328 dialog.sendRequest(clientTransaction); 424 public void sendInviteAck(ResponseEvent event, Dialog dialog) argument 429 Request ack = dialog.createAck(cseq); 431 dialog.sendAck(ack); 434 public void sendBye(Dialog dialog) throws SipException { argument 435 Request byeRequest = dialog.createRequest(Request.BYE); 437 dialog.sendRequest(mSipProvider.getNewClientTransaction(byeRequest)); 463 public void sendReferNotify(Dialog dialog, Strin argument 530 getCallId(Dialog dialog) argument [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | CreateDirectoryFragment.java | 50 final CreateDirectoryFragment dialog = new CreateDirectoryFragment(); 51 dialog.show(fm, TAG_CREATE_DIRECTORY); 70 public void onClick(DialogInterface dialog, int which) {
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | GlobalActions.java | 84 * Helper to show the global actions dialog. Each item is an {@link Action} that 161 * Show the global actions dialog (creating if necessary) 170 // Show delayed, so that the dismiss of the previous dialog completes 209 * Create the global actions dialog. 210 * @return A new dialog. 230 // Launch ECM exit dialog 308 GlobalActionsDialog dialog = new GlobalActionsDialog(mContext, params); 309 dialog.setCanceledOnTouchOutside(false); // Handled by the custom class. 311 dialog.getListView().setItemsCanFocus(true); 312 dialog 536 onDismiss(DialogInterface dialog) argument 548 onClick(DialogInterface dialog, int which) argument [all...] |
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
H A D | RsBench.java | 106 public void onClick(DialogInterface dialog, int item) { 122 public void onClick(DialogInterface dialog, int item) {
|
/frameworks/base/core/java/android/webkit/ |
H A D | Plugin.java | 199 // Show a simple popup dialog containing the description 216 public void onClick(DialogInterface dialog, int which) { argument
|
H A D | JsDialogHelper.java | 89 Log.w(TAG, "Cannot create a dialog, the WebView context is not an Activity"); 132 public void onCancel(DialogInterface dialog) { argument 136 public void onClick(DialogInterface dialog, int which) { argument 149 public void onClick(DialogInterface dialog, int which) { argument 177 // We can only display the alert dialog if mContext is
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
H A D | BugreportWarningActivity.java | 68 public void onClick(DialogInterface dialog, int which) { argument
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | LooperAcceleration.java | 86 public void onDismiss(DialogInterface dialog) {
|
/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/ |
H A D | VersionDialog.java | 32 * This is the dialog we show when the library's version is older than 40 // Need to use our library's resources for showing the dialog. 57 public void onClick(DialogInterface dialog, int which) {
|