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

1 2

  /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...]
  /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;
AlarmUtils.java 24 import android.widget.Toast;
111 Toast toast = Toast.makeText(context, toastText, Toast.LENGTH_LONG); local
112 ToastMaster.setToast(toast);
113 toast.show();
  /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...]
  /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;
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);
148 Toast toast = new Toast(mActivity) 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...]
  /packages/apps/Exchange/src/com/android/exchange/
SettingsRedirector.java 24 import android.widget.Toast;
48 Toast toast = Toast.makeText(this, R.string.email_settings_not_available, local
49 Toast.LENGTH_SHORT);
50 toast.show();
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
BluetoothDevicePickerActivity.java 24 import android.widget.Toast;
43 Toast toast = Toast.makeText(this, error, Toast.LENGTH_SHORT); local
44 toast.show();
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/jobscheduler/
ConstraintTestActivity.java 12 import android.widget.Toast;
53 Toast toast = local
54 Toast.makeText(
57 Toast.LENGTH_SHORT);
58 toast.show();
106 final Toast toast = local
107 Toast.makeText(
111 Toast.LENGTH_SHORT)
    [all...]
  /frameworks/base/services/core/java/com/android/server/am/
LockTaskNotify.java 24 import android.widget.Toast;
38 private Toast mLastToast;
71 private Toast makeAllUserToastAndShow(String text) {
72 Toast toast = Toast.makeText(mContext, text, Toast.LENGTH_LONG); local
73 toast.getWindowParams().privateFlags |=
75 toast.show();
76 return toast;
    [all...]
  /external/chromium_org/ui/message_center/views/
message_popup_collection.cc 39 // Timeout between the last user-initiated close of the toast and the moment
40 // when normal layout/update of the toast stack continues. If the last toast was
147 ToastContentsView* toast = local
150 toast->SetContents(view, /*a11y_feedback_for_updates=*/false);
151 toasts_.push_back(toast);
152 view->set_controller(toast);
154 gfx::Size preferred_size = toast->GetPreferredSize();
157 // The toast slides in from the edge of the screen horizontally.
165 toast->RevealWithAnimation(origin)
217 ToastContentsView* toast = toasts_.front(); local
    [all...]
message_popup_collection.h 46 // Container for popup toasts. Because each toast is a frameless window rather
49 // contents of each toast are for the message center and layout strategy would
55 // |parent| specifies the parent widget of the toast windows. The default
77 // Since these events are really coming from individual toast widgets,
94 // Removes the toast from our internal list of toasts; this is called when the
95 // toast is irrevocably closed (such as within RemoveToast).
96 void ForgetToast(ToastContentsView* toast);
112 void RemoveToast(ToastContentsView* toast, bool mark_as_shown);
114 // Creates new widgets for new toast notifications, and updates |toasts_| and
121 // Repositions widgets to the top edge of the notification toast that wa
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/view/
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...]
SplitTouchView.java 28 import android.widget.Toast;
62 Toast toast = Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT);
63 toast.show();
  /packages/apps/Nfc/src/com/android/nfc/handover/
BluetoothPeripheralHandover.java 38 import android.widget.Toast;
225 toast(getToastString(R.string.disconnecting_peripheral));
246 toast(getToastString(R.string.disconnecting_peripheral));
255 toast(getToastString(R.string.disconnected_peripheral));
266 toast(getToastString(R.string.disconnected_peripheral));
331 toast(getToastString(R.string.connecting_peripheral));
351 toast(getToastString(R.string.connecting_peripheral));
362 toast(getToastString(R.string.connected_peripheral));
366 toast (getToastString(R.string.connect_peripheral_failed));
376 toast(getToastString(R.string.connected_peripheral))
475 void toast(CharSequence text) { method in class:BluetoothPeripheralHandover
    [all...]
  /packages/apps/Browser/src/com/android/browser/
GeolocationPermissionsPrompt.java 29 import android.widget.Toast;
100 Toast toast = Toast.makeText( local
104 Toast.LENGTH_LONG);
105 toast.setGravity(Gravity.BOTTOM, 0, 0);
106 toast.show();
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
ProvisionLogger.java 21 import android.widget.Toast;
201 public static void toast(Context context, String toast) { method in class:ProvisionLogger
203 Toast.makeText(context, toast, Toast.LENGTH_LONG).show();
  /packages/apps/Stk/src/com/android/stk/
StkMain.java 31 import android.widget.Toast;
106 Toast toast = Toast.makeText(context, resId, Toast.LENGTH_LONG); local
107 toast.setGravity(Gravity.BOTTOM, 0, 0);
108 toast.show();
  /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
DiaryActivity.java 30 import android.widget.Toast;
71 BaseObject.sSystemRegistry.customToastSystem.toast(getString(R.string.diary_found), Toast.LENGTH_SHORT);
  /external/chromium_org/third_party/polymer/components/paper-toast/
paper-toast.css 72 .toast-container {
76 .toast-action {
  /external/chromium_org/third_party/polymer/components-chromium/paper-toast/
paper-toast.css 72 .toast-container {
76 .toast-action {
  /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...]
ConnectionAccessServerActivity.java 38 import android.widget.Toast;
143 Toast.makeText(this, R.string.bt_listening, Toast.LENGTH_SHORT).show();
149 String toast = msg.getData().getString(BluetoothChatService.TOAST); local
150 Toast.makeText(this, toast, Toast.LENGTH_LONG).show();
  /external/chromium_org/chrome/common/extensions/docs/examples/api/notifications/
background.js 16 body: 'Time to make the toast.'

Completed in 2019 milliseconds

1 2