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

1 2 3

  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowToastTest.java 10 import android.widget.Toast;
30 Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); local
31 assertThat(toast).isNotNull();
32 assertThat(toast.getDuration()).isEqualTo(Toast.LENGTH_SHORT);
37 Toast toast = Toast.makeText(context, "long toast", Toast.LENGTH_LONG) local
44 Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); local
55 Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); local
65 Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); local
75 Toast toast = new Toast(context); local
84 Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); local
92 Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); local
101 Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); local
116 Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); local
    [all...]
  /cts/tests/tests/toastlegacy/
Android.mk 29 ../toast/src/android/widget/toast/cts/BaseToastTest.java
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowToast.java 6 import android.widget.Toast;
15 @Implements(Toast.class)
25 @RealObject Toast toast; field in class:ShadowToast
31 protected static Toast makeText(Context context, int resId, int duration) {
36 protected static Toast makeText(Context context, CharSequence text, int duration) {
37 Toast toast = new Toast(context); local
38 toast.setDuration(duration)
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
ToastTest.java 37 import android.widget.Toast;
64 private static final String TEST_TOAST_TEXT = "test toast";
70 private Toast mToast;
88 new Toast(mContext);
94 new Toast(null);
107 // sleep a while and then make sure do not show toast
124 () -> mToast = Toast.makeText(mContext, TEST_TOAST_TEXT, Toast.LENGTH_LONG));
147 Toast toast = new Toast(mContext) local
398 Toast toast = Toast.makeText(mContext, "android", Toast.LENGTH_SHORT); local
426 Toast toast = Toast.makeText(mContext, R.string.hello_world, Toast.LENGTH_LONG); local
449 Toast toast = Toast.makeText(mContext, R.string.text, Toast.LENGTH_LONG); local
461 Toast toast = Toast.makeText(mContext, R.string.text, Toast.LENGTH_LONG); local
468 Toast toast = Toast.makeText(mContext, R.string.text, Toast.LENGTH_LONG); local
480 Toast toast = Toast.makeText(mContext, R.string.text, Toast.LENGTH_LONG); 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...]
  /cts/tests/tests/toast/src/android/widget/toast/cts/
LegacyToastTest.java 17 package android.widget.toast.cts;
30 * like this app the only way to add toast windows is via the dedicated
31 * toast APIs.
37 // Normal toast windows cannot be obtained vie the accessibility APIs because
44 // Normal toast windows cannot be obtained vie the accessibility APIs because
56 fail("Shouldn't be able to add toast windows directly");
BaseToastTest.java 17 package android.widget.toast.cts;
26 import android.widget.Toast;
33 * Base class for toast tests.
61 Toast.makeText(mContext, getClass().getName(),
62 Toast.LENGTH_LONG).show();
  /cts/tests/tests/toastlegacy/src/android/widget/toast/cts/legacy/
ToastActivity.java 17 package android.widget.toast.cts.legacy;
ToastTest.java 17 package android.widget.toast.cts.legacy;
21 import android.widget.toast.cts.BaseToastTest;
33 * 25 and below a toast window can be added via the window APIs
35 * the window is not focused. Also only a single toast window
46 // Show a toast on top of the focused activity
49 // Wait for the toast to timeout
55 // Wait for the toast to timeout
58 // Show another toast
64 // Show a toast on top of our activity
67 // Wait for the toast to timeou
    [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();
  /external/sl4a/Utils/src/com/googlecode/android_scripting/
Log.java 26 import android.widget.Toast;
42 private static void toast(Context context, String message) { method in class:Log
43 Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
114 toast(context, message); method
119 toast(context, message); method
136 toast(context, message); method
141 toast(context, message); method
158 toast(context, message); method
163 toast(context, message) method
176 toast(context, message); method
181 toast(context, message); method
194 toast(context, message); method
199 toast(context, message); method
    [all...]
  /external/libgsm/
Makefile 72 # not install gsm and toast outside of this directory.
87 # Where do you want to install the toast binaries and their manpage?
89 # Leave TOAST_INSTALL_ROOT empty to not install the toast binaries outside
144 TOAST = $(BIN)/toast
157 $(INC)/toast.h \
181 TOAST_SOURCES = $(SRC)/toast.c \
225 TOAST_OBJECTS = $(SRC)/toast.o \
240 TOAST_MANUALS = $(MAN)/toast.1
268 $(TOAST_INSTALL_BIN)/toast \
    [all...]
  /development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/pickers/
PackageNamePicker.java 47 Utils.toast(this, "Error: " + e.getMessage());
  /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/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
FastPathSurfaceView.java 30 import android.widget.Toast;
75 Toast toast = Toast.makeText(getContext(), message, Toast.LENGTH_SHORT); local
76 toast.show();
  /developers/samples/android/wearable/wear/WearVerifyRemoteApp/Application/src/main/java/com/example/android/wearable/wear/wearverifyremoteapp/
MainMobileActivity.java 27 import android.widget.Toast;
94 Toast toast = Toast.makeText(
97 Toast.LENGTH_SHORT);
98 toast.show();
101 Toast toast = Toast.makeText(
105 Toast.LENGTH_LONG)
    [all...]
  /development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/utils/
Utils.java 21 import android.widget.Toast;
62 public static void toast(Context context, String message) { method in class:Utils
63 sMainHandler.post(() -> Toast.makeText(context, message, Toast.LENGTH_SHORT));
  /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();
  /developers/build/prebuilts/gradle/WearVerifyRemoteApp/Application/src/main/java/com/example/android/wearable/wear/wearverifyremoteapp/
MainMobileActivity.java 30 import android.widget.Toast;
100 Toast toast = Toast.makeText(
103 Toast.LENGTH_SHORT);
104 toast.show();
107 Toast toast = Toast.makeText(
111 Toast.LENGTH_LONG)
    [all...]
  /development/samples/browseable/WearVerifyRemoteApp/Application/src/com.example.android.wearable.wear.wearverifyremoteapp/
MainMobileActivity.java 30 import android.widget.Toast;
100 Toast toast = Toast.makeText(
103 Toast.LENGTH_SHORT);
104 toast.show();
107 Toast toast = Toast.makeText(
111 Toast.LENGTH_LONG)
    [all...]

Completed in 910 milliseconds

1 2 3