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

1 2

  /frameworks/base/packages/SystemUI/src/com/android/systemui/
SysUIToast.java 20 import android.widget.Toast;
24 public static Toast makeText(Context context, CharSequence text, int duration) {
25 Toast toast = Toast.makeText(context, text, duration); local
26 toast.getWindowParams().privateFlags |=
28 return toast;
  /external/robolectric/v1/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/widget/toast/
LinearLayoutWithSnackbarBehavior.java 17 package com.android.deskclock.widget.toast;
SnackbarManager.java 17 package com.android.deskclock.widget.toast;
ToastManager.java 17 package com.android.deskclock.widget.toast;
19 import android.widget.Toast;
23 private static Toast sToast = null;
29 public static void setToast(Toast toast) {
32 sToast = toast;
  /frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
NekoActivationActivity.java 21 import android.widget.Toast;
27 Toast toast = Toast.makeText(this, s, Toast.LENGTH_SHORT); local
28 toast.getView().setBackgroundDrawable(null);
29 toast.show();
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
BluetoothDevicePickerActivity.java 23 import android.widget.Toast;
42 Toast toast = Toast.makeText(this, error, Toast.LENGTH_SHORT); local
43 toast.show();
  /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...]
  /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();
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/jobscheduler/
ConstraintTestActivity.java 12 import android.widget.Toast;
47 Toast toast = local
48 Toast.makeText(
51 Toast.LENGTH_SHORT);
52 toast.show();
100 final Toast toast = local
101 Toast.makeText(
105 Toast.LENGTH_SHORT)
    [all...]
  /frameworks/base/services/core/java/com/android/server/am/
LockTaskNotify.java 24 import android.widget.Toast;
37 private Toast mLastToast;
72 private Toast makeAllUserToastAndShow(String text) {
73 Toast toast = Toast.makeText(mContext, text, Toast.LENGTH_LONG); local
74 toast.getWindowParams().privateFlags |=
76 toast.show();
77 return toast;
    [all...]
  /frameworks/base/tests/AccessibilityEventsLogger/src/com/android/tests/accessibilityeventlogger/
AELogger.java 21 import android.widget.Toast;
62 final Toast toast = Toast.makeText(this, local
63 eventType + ": " + eventClass, Toast.LENGTH_SHORT);
64 toast.show();
  /packages/apps/DeskClock/src/com/android/deskclock/
AlarmUtils.java 25 import android.widget.Toast;
28 import com.android.deskclock.widget.toast.SnackbarManager;
29 import com.android.deskclock.widget.toast.ToastManager;
92 Toast toast = Toast.makeText(context, text, Toast.LENGTH_LONG); local
93 ToastManager.setToast(toast);
94 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
  /frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
ForcedResizableInfoActivityController.java 24 import android.widget.Toast;
103 Toast toast = Toast.makeText(mContext, R.string.dock_non_resizeble_failed_to_dock_text, local
104 Toast.LENGTH_SHORT);
105 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();
  /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...]
  /developers/build/prebuilts/gradle/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/
AddFileActivity.java 30 import android.widget.Toast;
50 * if intent parameters are specified incorrectly or it will display Toast messages to the user
150 Toast toast = Toast.makeText(this, getText(R.string.file_exists), Toast.LENGTH_LONG); local
151 toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
152 toast.show();
157 Toast toast = Toast.makeText(this, getText(R.string.file_size_is_invalid) local
167 Toast toast = Toast.makeText(this, local
264 Toast toast = Toast.makeText(this, message, Toast.LENGTH_LONG); local
    [all...]
  /developers/samples/android/content/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/
AddFileActivity.java 30 import android.widget.Toast;
50 * if intent parameters are specified incorrectly or it will display Toast messages to the user
150 Toast toast = Toast.makeText(this, getText(R.string.file_exists), Toast.LENGTH_LONG); local
151 toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
152 toast.show();
157 Toast toast = Toast.makeText(this, getText(R.string.file_size_is_invalid) local
167 Toast toast = Toast.makeText(this, local
264 Toast toast = Toast.makeText(this, message, Toast.LENGTH_LONG); local
    [all...]
  /development/samples/browseable/AutoBackupForApps/src/com.example.android.autobackupsample/
AddFileActivity.java 30 import android.widget.Toast;
50 * if intent parameters are specified incorrectly or it will display Toast messages to the user
150 Toast toast = Toast.makeText(this, getText(R.string.file_exists), Toast.LENGTH_LONG); local
151 toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
152 toast.show();
157 Toast toast = Toast.makeText(this, getText(R.string.file_size_is_invalid) local
167 Toast toast = Toast.makeText(this, local
264 Toast toast = Toast.makeText(this, message, Toast.LENGTH_LONG); local
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/util/
UiUtils.java 45 import android.widget.Toast;
86 /** Show a simple toast at the bottom */
91 /** Show a simple toast at the bottom */
93 final Toast toast = Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG); local
94 toast.setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, 0);
95 toast.show();
98 /** Show a simple toast at the default position *
100 final Toast toast = Toast.makeText(getApplicationContext(), local
108 final Toast toast = Toast.makeText(getApplicationContext(), local
    [all...]
  /external/robolectric/v1/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...]
  /developers/build/prebuilts/gradle/WearDrawers/Wearable/src/main/java/com/example/android/wearable/wear/weardrawers/
MainActivity.java 36 import android.widget.Toast;
156 Toast toast = Toast.makeText( local
159 Toast.LENGTH_SHORT);
160 toast.show();
  /developers/samples/android/wearable/wear/WearDrawers/Wearable/src/main/java/com/example/android/wearable/wear/weardrawers/
MainActivity.java 36 import android.widget.Toast;
156 Toast toast = Toast.makeText( local
159 Toast.LENGTH_SHORT);
160 toast.show();
  /development/samples/browseable/WearDrawers/src/com.example.android.wearable.wear.weardrawers/
MainActivity.java 36 import android.widget.Toast;
156 Toast toast = Toast.makeText( local
159 Toast.LENGTH_SHORT);
160 toast.show();

Completed in 2346 milliseconds

1 2