Home
last modified time | relevance | path

Searched refs:Toast (Results 1 – 25 of 40) sorted by relevance

12

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowToastTest.java10 import android.widget.Toast;
30 Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); in shouldHaveShortDuration()
32 assertThat(toast.getDuration()).isEqualTo(Toast.LENGTH_SHORT); in shouldHaveShortDuration()
37 Toast toast = Toast.makeText(context, "long toast", Toast.LENGTH_LONG); in shouldHaveLongDuration()
39 assertThat(toast.getDuration()).isEqualTo(Toast.LENGTH_LONG); in shouldHaveLongDuration()
44 Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); in shouldMakeTextCorrectly()
46 assertThat(toast.getDuration()).isEqualTo(Toast.LENGTH_SHORT); in shouldMakeTextCorrectly()
55 Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); in shouldSetTextCorrectly()
65 Toast toast = Toast.makeText(context, "short toast", Toast.LENGTH_SHORT); in shouldSetTextWithIdCorrectly()
75 Toast toast = new Toast(context); in shouldSetViewCorrectly()
[all …]
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/eventhandlingadvanced/
DAdvancedEventHandlingActivity.java8 import android.widget.Toast;
42Toast.makeText(getApplicationContext(), "Single tap: " + ((int)sCoord.x) + ", " + ((int)sCoord.y),… in onCreate()
44Toast.makeText(getApplicationContext(), "Single tap: Image not ready", Toast.LENGTH_SHORT).show(); in onCreate()
52Toast.makeText(getApplicationContext(), "Long press: " + ((int)sCoord.x) + ", " + ((int)sCoord.y),… in onCreate()
54Toast.makeText(getApplicationContext(), "Long press: Image not ready", Toast.LENGTH_SHORT).show(); in onCreate()
61Toast.makeText(getApplicationContext(), "Double tap: " + ((int)sCoord.x) + ", " + ((int)sCoord.y),… in onCreate()
63Toast.makeText(getApplicationContext(), "Double tap: Image not ready", Toast.LENGTH_SHORT).show(); in onCreate()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowToast.java6 import android.widget.Toast;
15 @Implements(Toast.class)
25 @RealObject Toast toast;
31 protected static Toast makeText(Context context, int resId, int duration) { in makeText()
36 protected static Toast makeText(Context context, CharSequence text, int duration) { in makeText()
37 Toast toast = new Toast(context); in makeText()
158 for (Toast toast : shadowApplication.getShownToasts()) { in showedCustomToast()
175 for (Toast toast : shadowApplication.getShownToasts()) { in showedToast()
192 List<Toast> shownToasts = shadowApplication.getShownToasts(); in getTextOfLatestToast()
196 Toast latestToast = shownToasts.get(shownToasts.size() - 1); in getTextOfLatestToast()
[all …]
DShadowApplication.java20 import android.widget.Toast;
40 private List<android.widget.Toast> shownToasts = new ArrayList<>();
81 public List<Toast> getShownToasts() { in getShownToasts()
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/eventhandling/
DEventHandlingActivity.java5 import android.widget.Toast;
34 …@Override public void onClick(View v) { Toast.makeText(v.getContext(), "Clicked", Toast.LENGTH_SHO… in onCreate()
37 …@Override public boolean onLongClick(View v) { Toast.makeText(v.getContext(), "Long clicked", Toas… in onCreate()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DFastPathSurfaceView.java30 import android.widget.Toast;
75 Toast toast = Toast.makeText(getContext(), message, Toast.LENGTH_SHORT); in displayMessage()
DMainActivity.java50 import android.widget.Toast;
247 Toast.makeText(this, msg, Toast.LENGTH_SHORT).show(); in toast()
581 Toast.makeText(MainActivity.this, in showUploadLogDialog()
582 "Failed to upload log", Toast.LENGTH_SHORT).show(); in showUploadLogDialog()
585 Toast.makeText(MainActivity.this, in showUploadLogDialog()
586 "Log successfully uploaded", Toast.LENGTH_SHORT).show(); in showUploadLogDialog()
588 Toast.makeText(MainActivity.this, in showUploadLogDialog()
590 Toast.LENGTH_SHORT).show(); in showUploadLogDialog()
/external/grpc-grpc/examples/android/helloworld/app/src/main/java/io/grpc/helloworldexample/cpp/
DHelloworldActivity.java30 import android.widget.Toast;
95 Toast.makeText(this, "Server stopped", Toast.LENGTH_SHORT).show(); in startOrStopServer()
102 Toast.makeText(this, "Server started on port " + port, Toast.LENGTH_SHORT).show(); in startOrStopServer()
/external/replicaisland/src/com/replica/replicaisland/
DCustomToastSystem.java25 import android.widget.Toast;
30 private Toast mToast;
37 mToast = new Toast(context); in CustomToastSystem()
DSetPreferencesActivity.java24 import android.widget.Toast;
75 Toast.makeText(this, R.string.saved_game_erased_notification, in onDialogClosed()
76 Toast.LENGTH_SHORT).show(); in onDialogClosed()
DDiaryActivity.java30 import android.widget.Toast;
71 …BaseObject.sSystemRegistry.customToastSystem.toast(getString(R.string.diary_found), Toast.LENGTH_S… in onCreate()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/
DTerminalView.java33 import android.widget.Toast;
59 private Toast notification = null;
232 notification = Toast.makeText(context, message, Toast.LENGTH_SHORT); in notifyUser()
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DCameraActivity.java42 import android.widget.Toast;
299 Toast.makeText(CameraActivity.this, in requestPermission()
300 "Camera AND storage permission are required for this demo", Toast.LENGTH_LONG).show(); in requestPermission()
355 Toast.makeText(this, "No Camera Detected", Toast.LENGTH_SHORT).show(); in setFragment()
DDetectorActivity.java34 import android.widget.Toast;
161 Toast toast = in onPreviewSizeChosen()
162 Toast.makeText( in onPreviewSizeChosen()
163 getApplicationContext(), "Classifier could not be initialized", Toast.LENGTH_SHORT); in onPreviewSizeChosen()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DShadowingTest.java9 import android.widget.Toast;
25 assertThat(new Toast(ApplicationProvider.getApplicationContext()).toString()) in shouldDelegateToObjectToStringIfShadowHasNone()
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DDetectorActivity.java32 import android.widget.Toast;
119 Toast toast = in onPreviewSizeChosen()
120 Toast.makeText( in onPreviewSizeChosen()
121 getApplicationContext(), "Classifier could not be initialized", Toast.LENGTH_SHORT); in onPreviewSizeChosen()
DCameraActivity.java42 import android.widget.Toast;
297 Toast.makeText(CameraActivity.this, in requestPermission()
298 "Camera AND storage permission are required for this demo", Toast.LENGTH_LONG).show(); in requestPermission()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
DLogcatViewer.java31 import android.widget.Toast;
145 Toast.makeText(this, "Copied to clipboard", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
DScriptEditor.java43 import android.widget.Toast;
209 Toast.makeText(this, "Can't run this type.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
264 Toast.makeText(this, "Saved " + mNameText.getText().toString(), Toast.LENGTH_SHORT).show(); in save()
599 Toast.makeText(this, "Search not found.", Toast.LENGTH_SHORT).show(); in onClick()
/external/sl4a/Utils/src/com/googlecode/android_scripting/
DLog.java26 import android.widget.Toast;
43 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in toast()
/external/skia/platform_tools/android/apps/arcore/src/main/java/org/skia/arcore/
DHelloArActivity.java44 import android.widget.Toast;
341Toast.makeText(this, "Camera permission is needed to run this application", Toast.LENGTH_LONG) in onRequestPermissionsResult()
/external/skqp/platform_tools/android/apps/arcore/src/main/java/org/skia/arcore/
DHelloArActivity.java44 import android.widget.Toast;
341Toast.makeText(this, "Camera permission is needed to run this application", Toast.LENGTH_LONG) in onRequestPermissionsResult()
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DCallActivity.java31 import android.widget.Toast;
124 private Toast logToast;
468 logToast = Toast.makeText(this, msg, Toast.LENGTH_SHORT); in logAndToast()
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/tracking/
DMultiBoxTracker.java30 import android.widget.Toast;
219 Toast.makeText(context, message, Toast.LENGTH_LONG).show(); in onFrame()
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/tracking/
DMultiBoxTracker.java30 import android.widget.Toast;
219 Toast.makeText(context, message, Toast.LENGTH_LONG).show(); in onFrame()

12