/sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/data/src/test/pkg/ |
ToastTest.java.txt | 6 import android.widget.Toast; 9 private Toast createToast(Context context) { 11 return Toast.makeText(context, "foo", Toast.LENGTH_LONG); 16 Toast toast = Toast.makeText(context, "foo", Toast.LENGTH_LONG); 19 toast.show(); 24 int duration = Toast.LENGTH_LONG [all...] |
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
ToastTest.java | 32 import android.widget.Toast; 44 Toast mToast1; 45 Toast mToast2; 89 mToast1 = Toast.makeText(ToastTest.this, text, Toast.LENGTH_SHORT); 94 new Test("Make Toast #1") { 97 mToast1 = Toast.makeText(ToastTest.this, "hi 1", Toast.LENGTH_SHORT); 101 new Test("Show Toast #1") { 108 new Test("Update Toast #1") [all...] |
/frameworks/base/docs/html/guide/topics/ui/notifiers/ |
toasts.jd | 1 page.title=Toast Notifications 10 <li>A toast is a message that appears on the surface of the screen for a moment, but it 12 <li>You can customize the toast layout to include images</li> 18 <li><a href="#Positioning">Positioning your Toast</a></li> 19 <li><a href="#CustomToastView">Creating a Custom Toast View</a></li> 24 <li>{@link android.widget.Toast}</li> 29 <p>A toast notification is a message that pops up on the surface of the window. 34 <p>The screenshot below shows an example toast notification from the Alarm application. 35 Once an alarm is turned on, a toast is displayed to assure you that the 37 <img src="{@docRoot}images/toast.png" alt="" / [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
NotifyWithText.java | 25 import android.widget.Toast; 28 * When you push the button on this Activity, it creates a {@link Toast} object and 29 * using the Toast method. 30 * @see Toast 31 * @see Toast#makeText(android.content.Context,int,int) 32 * @see Toast#makeText(android.content.Context,java.lang.CharSequence,int) 33 * @see Toast#LENGTH_SHORT 34 * @see Toast#LENGTH_LONG 49 // Note that we create the Toast object and call the show() method 51 // are other methods on Toast that you can call to configure ho [all...] |
OneShotAlarm.java | 22 import android.widget.Toast; 32 * When the alarm goes off, we show a <i>Toast</i>, a quick message. 39 Toast.makeText(context, R.string.one_shot_received, Toast.LENGTH_SHORT).show();
|
AppUpdateReceiver.java | 24 import android.widget.Toast; 32 Toast.makeText(context, R.string.app_update_received, Toast.LENGTH_SHORT).show();
|
RepeatingAlarm.java | 26 import android.widget.Toast; 37 Toast.makeText(context, R.string.repeating_received, Toast.LENGTH_SHORT).show();
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
ToastMaster.java | 19 import android.widget.Toast; 23 private static Toast sToast = null; 29 public static void setToast(Toast toast) { 32 sToast = toast;
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ToastTest.java | 33 import android.widget.Toast; 36 private static final String TEST_TOAST_TEXT = "test toast"; 39 private Toast mToast; 53 mToast = new Toast(mActivity); 57 new Toast(mActivity); 60 new Toast(null); 87 // sleep a while and then make sure do not show toast 95 mToast = Toast.makeText(mActivity, TEST_TOAST_TEXT, Toast.LENGTH_LONG); 133 mToast = Toast.makeText(mActivity, TEST_TOAST_TEXT, Toast.LENGTH_LONG) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ |
LoadScreennailTask.java | 24 import android.widget.Toast; 66 Toast toast = Toast.makeText(context, R.string.loading_failure, Toast.LENGTH_SHORT); local 67 toast.setGravity(Gravity.CENTER, 0, 0); 68 toast.show();
|
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/ |
MainActivity.java | 24 import android.widget.Toast; 60 Toast.makeText(this, "Tapped home", Toast.LENGTH_SHORT).show(); 64 Toast.makeText(this, "Fake refreshing...", Toast.LENGTH_SHORT).show(); 76 Toast.makeText(this, "Tapped search", Toast.LENGTH_SHORT).show(); 80 Toast.makeText(this, "Tapped share", Toast.LENGTH_SHORT).show();
|
/external/chromium/chrome/common/extensions/docs/examples/api/notifications/ |
manifest.json | 5 "Shows off desktop notifications, which are \"toast\" windows that pop up on the desktop.",
|
/external/replicaisland/src/com/replica/replicaisland/ |
CustomToastSystem.java | 25 import android.widget.Toast; 30 private Toast mToast; 37 mToast = new Toast(context); 49 public void toast(String text, int length) { method in class:CustomToastSystem
|
/sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ |
ToastDetectorTest.java | 29 "ToastTest.java:31: Warning: Toast created but not shown: did you forget to call show() ?\n" + 30 "ToastTest.java:32: Warning: Expected duration Toast.LENGTH_SHORT or Toast.LENGTH_LONG, a custom duration value is not supported\n" + 31 "ToastTest.java:32: Warning: Toast created but not shown: did you forget to call show() ?",
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
ConnectionAccessClientActivity.java | 34 import android.widget.Toast; 143 Toast.makeText(this, R.string.bt_connecting, Toast.LENGTH_SHORT).show(); 148 Toast.makeText(this, R.string.bt_connected, Toast.LENGTH_SHORT).show(); 162 String toast = msg.getData().getString(BluetoothChatService.TOAST); local 163 Toast.makeText(this, toast, Toast.LENGTH_SHORT).show() [all...] |
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
VoiceDialerReceiver.java | 25 import android.widget.Toast; 55 Toast.makeText(context, R.string.logging_enabled, Toast.LENGTH_LONG).show(); 61 Toast.makeText(context, R.string.logging_disabled, Toast.LENGTH_LONG).show();
|
/hardware/ti/wpan/tools/BluetoothSCOApp/src/com/ti/bluetoothSCOapp/ |
connect.java | 40 import android.widget.Toast; 79 Toast.makeText(this, "Bluetooth is not available", Toast.LENGTH_LONG).show(); 90 Toast.makeText(this, "Bluetooth is not enabled", Toast.LENGTH_LONG).show(); 105 Toast.makeText(this, "Platform does not support use of SCO for off call", Toast.LENGTH_LONG).show(); 122 Toast.makeText(this, "No Paired Headset, Pair and connect to phone audio", Toast.LENGTH_LONG).show(); 130 Toast.makeText(this, "Disconnect A2DP (media audio) to headset from Bluetooth Settings", Toast.LENGTH_LO (…) [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
VideoEditorBaseActivity.java | 33 import android.widget.Toast; 103 Toast.makeText(VideoEditorBaseActivity.this, R.string.editor_create_error, 104 Toast.LENGTH_LONG).show(); 152 Toast.makeText(VideoEditorBaseActivity.this, R.string.editor_aspect_ratio_error, 153 Toast.LENGTH_LONG).show(); 173 Toast.makeText(VideoEditorBaseActivity.this, R.string.editor_apply_theme_error, 174 Toast.LENGTH_LONG).show(); 256 Toast.makeText(VideoEditorBaseActivity.this, R.string.editor_export_error, 257 Toast.LENGTH_LONG).show(); 269 Toast.makeText(VideoEditorBaseActivity.this, R.string.editor_saved_error [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
SplitTouchView.java | 28 import android.widget.Toast; 62 Toast toast = Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT); 63 toast.show();
|
SecureView.java | 30 import android.widget.Toast; 39 * or would at least think long and hard about it. However, a carefully crafted toast can 41 * are innocuous. Since the toast cannot receive input, the touches are passed down to the 45 * a toast layed out so as to cover the buttons and part of the descriptive text. 52 * When the toast appears, this button remains clickable as usual which creates an 57 * When the toast appears, the button does not receive the touch and appears to be inoperable. 97 // Generate a toast view with a special layout that will position itself right 103 Toast toast = new Toast(getApplicationContext()) local [all...] |
Switches.java | 23 import android.widget.Toast; 45 Toast.makeText(this, "Monitored switch is " + (isChecked ? "on" : "off"), 46 Toast.LENGTH_SHORT).show();
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
WiFiDirectActivity.java | 37 import android.widget.Toast; 142 Toast.makeText(WiFiDirectActivity.this, R.string.p2p_off_warning, 143 Toast.LENGTH_SHORT).show(); 153 Toast.makeText(WiFiDirectActivity.this, "Discovery Initiated", 154 Toast.LENGTH_SHORT).show(); 159 Toast.makeText(WiFiDirectActivity.this, "Discovery Failed : " + reasonCode, 160 Toast.LENGTH_SHORT).show(); 188 Toast.makeText(WiFiDirectActivity.this, "Connect failed. Retry.", 189 Toast.LENGTH_SHORT).show(); 219 Toast.makeText(this, "Channel lost. Trying again", Toast.LENGTH_LONG).show() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
InstallApk.java | 39 import android.widget.Toast; 78 Toast.makeText(this, "Install succeeded!", Toast.LENGTH_SHORT).show(); 80 Toast.makeText(this, "Install canceled!", Toast.LENGTH_SHORT).show(); 82 Toast.makeText(this, "Install Failed!", Toast.LENGTH_SHORT).show(); 86 Toast.makeText(this, "Uninstall succeeded!", Toast.LENGTH_SHORT).show(); 88 Toast.makeText(this, "Uninstall canceled!", Toast.LENGTH_SHORT).show() [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
ClipboardUtils.java | 25 import android.widget.Toast; 38 * @param showToast If {@code true}, a toast is shown to the user. 51 Toast.makeText(context, toastText, Toast.LENGTH_SHORT).show();
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
TestListActivity.java | 26 import android.widget.Toast; 71 Toast.makeText(this, R.string.test_results_cleared, Toast.LENGTH_SHORT).show(); 81 Toast.makeText(this, R.string.test_results_error, Toast.LENGTH_SHORT).show();
|