HomeSort by relevance Sort by last modified time
    Searched full:toast (Results 1 - 25 of 524) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ToastTest.java 6 import android.widget.Toast;
18 Toast toast = Toast.makeText(new Activity(), "short toast", local
19 Toast.LENGTH_SHORT);
20 assertNotNull(toast);
21 assertEquals(Toast.LENGTH_SHORT, toast.getDuration());
26 Toast toast = Toast.makeText(new Activity(), "long toast" local
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowToast.java 6 import android.widget.Toast;
17 * Shadow of {@code Toast} that tracks {@code Toast} requests. Hear hear! (*clink*)
20 @Implements(Toast.class)
27 @RealObject Toast toast; field in class:ShadowToast
30 public static Toast makeText(Context context, int resId, int duration) {
35 public static Toast makeText(Context context, CharSequence text, int duration) {
36 Toast toast = new Toast(null) local
    [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 9 <li><a href="#Positioning">Positioning your Toast</a></li>
10 <li><a href="#CustomToastView">Creating a Custom Toast View</a></li>
15 <li>{@link android.widget.Toast}</li>
20 <p>A toast provides simple feedback about an operation in a small popup.
24 "Draft saved" toast to let you know that you can continue editing later.
27 <img src="{@docRoot}images/toast.png" alt="" />
35 <p>First, instantiate a {@link android.widget.Toast}
36 object with one of the {@link android.widget.Toast#makeText(Context,int,int) makeText()} methods.
38 the text message, and the duration for the toast. It returns a properly initialized Toast
    [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();
  /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 34 import android.widget.Toast;
37 private static final String TEST_TOAST_TEXT = "test toast";
40 private Toast mToast;
56 mToast = new Toast(mActivity);
66 new Toast(mActivity);
69 new Toast(null);
96 // sleep a while and then make sure do not show toast
119 mToast = Toast.makeText(mActivity, TEST_TOAST_TEXT, Toast.LENGTH_LONG);
157 mToast = Toast.makeText(mActivity, TEST_TOAST_TEXT, Toast.LENGTH_LONG)
    [all...]
  /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();
  /packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
ToastService.java 25 import android.widget.Toast;
31 private static final String ACTION_TOAST = "toast";
56 Toast.makeText(ToastService.this, text, Toast.LENGTH_LONG).show();
57 Log.v(TAG, "toast " + text);
66 toastIntent.setAction(ACTION_TOAST + ":" + text); // one per toast message
  /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
  /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...]
  /development/samples/Support7Demos/src/com/example/android/supportv7/app/
ActionBarFragmentMenu.java 33 import android.widget.Toast;
147 Toast.makeText(getActivity(), "Selected Menu 1a.", Toast.LENGTH_SHORT).show();
151 Toast.makeText(getActivity(), "Selected Menu 1b.", Toast.LENGTH_SHORT).show();
187 Toast.makeText(getActivity(), "Selected Menu 2.", Toast.LENGTH_SHORT).show();
207 Toast.makeText(getActivity(), "Created nested fragment's menu.",
208 Toast.LENGTH_SHORT).show();
215 Toast.makeText(getActivity(), "Destroyed nested fragment's menu."
    [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...]
  /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...]
  /external/chromium_org/chrome/browser/ui/cocoa/notifications/
balloon_view_host_mac.h 12 // the contents of the toast into it. It also handles links within the toast,
  /external/chromium_org/chrome/browser/ui/gtk/notifications/
balloon_view_host_gtk.h 13 // the contents of the toast into it. It also handles links within the toast,
  /external/chromium_org/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/chromium_org/ui/message_center/
message_center_types.h 11 // When nothing or just toast popups are being displayed.
  /packages/apps/ContactsCommon/src/com/android/contacts/common/
ClipboardUtils.java 23 import android.widget.Toast;
36 * @param showToast If {@code true}, a toast is shown to the user.
49 Toast.makeText(context, toastText, Toast.LENGTH_SHORT).show();
  /packages/screensavers/WebView/src/com/android/dreams/web/
SetURL.java 23 import android.widget.Toast;
27 import android.widget.Toast;
54 Toast.makeText(this, "WebView dream URL set to: " + url, Toast.LENGTH_SHORT).show();

Completed in 1318 milliseconds

1 2 3 4 5 6 7 8 91011>>