/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/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...] |
/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();
|
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/pickers/ |
PackageNamePicker.java | 47 Utils.toast(this, "Error: " + e.getMessage());
|
/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));
|
/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
|
/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...] |
/development/samples/browseable/WearDrawers/src/com.example.android.wearable.wear.weardrawers/ |
MainActivity.java | 35 import android.widget.Toast; 160 Toast toast = Toast.makeText( local 163 Toast.LENGTH_SHORT); 164 toast.show();
|
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/ |
DetectorActivity.java | 32 import android.widget.Toast; 119 Toast toast = local 120 Toast.makeText( 121 getApplicationContext(), "Classifier could not be initialized", Toast.LENGTH_SHORT); 122 toast.show();
|
/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...] |
/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...] |
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/ |
MultiStepsService.java | 44 import android.widget.Toast; 83 toast("No autofill hints found"); 141 toast("Save not supported"); 177 private void toast(@NonNull CharSequence message) { method in class:MultiStepsService 178 Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show();
|
/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...] |
/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...] |
/developers/build/prebuilts/gradle/WearDrawers/Wearable/src/main/java/com/example/android/wearable/wear/weardrawers/ |
MainActivity.java | 36 import android.widget.Toast; 155 Toast toast = Toast.makeText( local 158 Toast.LENGTH_SHORT); 159 toast.show();
|
/developers/samples/android/wearable/wear/WearDrawers/Wearable/src/main/java/com/example/android/wearable/wear/weardrawers/ |
MainActivity.java | 32 import android.widget.Toast; 156 Toast toast = Toast.makeText( local 159 Toast.LENGTH_SHORT); 160 toast.show();
|
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/ |
DetectorActivity.java | 34 import android.widget.Toast; 161 Toast toast = local 162 Toast.makeText( 163 getApplicationContext(), "Classifier could not be initialized", Toast.LENGTH_SHORT); 164 toast.show();
|
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/config/ |
AnalogComplicationConfigRecyclerViewAdapter.java | 46 import android.widget.Toast; 420 int duration = Toast.LENGTH_SHORT; 421 Toast toast = Toast.makeText(mContext, text, duration); local 422 toast.setGravity(Gravity.CENTER, 0, 0); 423 toast.show(); [all...] |
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/config/ |
AnalogComplicationConfigRecyclerViewAdapter.java | 44 import android.widget.Toast; 421 int duration = Toast.LENGTH_SHORT; 422 Toast toast = Toast.makeText(mContext, text, duration); local 423 toast.setGravity(Gravity.CENTER, 0, 0); 424 toast.show(); [all...] |