Home
last modified time | relevance | path

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

123

/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.java7 import android.widget.Toast;
17 @Implements(Toast.class)
27 @RealObject Toast toast;
38 protected static Toast makeText(Context context, int resId, int duration) { in makeText()
43 protected static Toast makeText(Context context, CharSequence text, int duration) { in makeText()
44 Toast toast = new Toast(context); in makeText()
165 for (Toast toast : shadowApplication.getShownToasts()) { in showedCustomToast()
182 for (Toast toast : shadowApplication.getShownToasts()) { in showedToast()
199 List<Toast> shownToasts = shadowApplication.getShownToasts(); in getTextOfLatestToast()
203 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/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DSimpleAnimationActivity.kt4 import android.widget.Toast
30Toast.makeText(this@SimpleAnimationActivity, "Done ${System.currentTimeMillis() - start}", Toast.L… in onCreate()
37Toast.makeText(this@SimpleAnimationActivity, "Done ${System.currentTimeMillis() - start}", Toast.L… in onCreate()
DPreviewFragment.kt12 import android.widget.Toast in <lambda>()
58Toast.makeText(context, "Please install a File Manager.", Toast.LENGTH_SHORT).show() in <lambda>()
/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.java29 import android.widget.Toast;
76 Toast toast = Toast.makeText(getContext(), message, Toast.LENGTH_SHORT); in displayMessage()
DMainActivity.java40 import android.widget.Toast;
248 Toast.makeText(this, msg, Toast.LENGTH_SHORT).show(); in toast()
583 Toast.makeText(MainActivity.this, in showUploadLogDialog()
584 "Failed to upload log", Toast.LENGTH_SHORT).show(); in showUploadLogDialog()
587 Toast.makeText(MainActivity.this, in showUploadLogDialog()
588 "Log successfully uploaded", Toast.LENGTH_SHORT).show(); in showUploadLogDialog()
590 Toast.makeText(MainActivity.this, in showUploadLogDialog()
592 Toast.LENGTH_SHORT).show(); in showUploadLogDialog()
/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/libtextclassifier/notification/src/com/android/textclassifier/notification/
DCopyCodeActivity.java26 import android.widget.Toast;
49 Toast.makeText( in handleIntent()
50 getApplicationContext(), R.string.tc_notif_code_copied_to_clipboard, Toast.LENGTH_SHORT) in handleIntent()
/external/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DTapToToneActivity.java34 import android.widget.Toast;
78 Toast.makeText(TapToToneActivity.this, in onCreate()
79 "MIDI not supported!", Toast.LENGTH_LONG) in onCreate()
265 Toast.makeText(TapToToneActivity.this, in onPortsConnected()
266 R.string.error_port_busy, Toast.LENGTH_LONG) in onPortsConnected()
270 Toast.makeText(TapToToneActivity.this, in onPortsConnected()
271 R.string.port_open_ok, Toast.LENGTH_LONG) in onPortsConnected()
DTestInputActivity.java32 import android.widget.Toast;
170 Toast.makeText(getApplicationContext(), in onRequestPermissionsResult()
172 Toast.LENGTH_SHORT) in onRequestPermissionsResult()
/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/oboe/samples/drumthumper/src/main/java/com/plausibleaudio/drumthumper/
DDrumThumperActivity.kt28 import android.widget.Toast
74 Toast.makeText(applicationContext, "Added Device", Toast.LENGTH_LONG).show() in onAudioDevicesAdded()
82 Toast.makeText(applicationContext, "Removed Device", Toast.LENGTH_LONG).show() in onAudioDevicesRemoved()
175 val toast = Toast.makeText(this, in onStart()
177 Toast.LENGTH_LONG) in onStart()
/external/webrtc/examples/androidvoip/java/org/webrtc/examples/androidvoip/
DMainActivity.java30 import android.widget.Toast;
50 private Toast toast;
80 toast = Toast.makeText(this, "", Toast.LENGTH_SHORT); in onCreate()
223 toast = Toast.makeText(this, message, Toast.LENGTH_SHORT); in showToast()
/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/exoplayer/tree/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DSampleChooserActivity.java41 import android.widget.Toast;
110 Toast.makeText(getApplicationContext(), R.string.sample_list_load_error, Toast.LENGTH_LONG) in onCreate()
184 Toast.makeText(getApplicationContext(), R.string.sample_list_load_error, Toast.LENGTH_LONG) in onRequestPermissionsResult()
206 Toast.makeText(getApplicationContext(), R.string.sample_list_load_error, Toast.LENGTH_LONG) in onPlaylistGroups()
255 Toast.makeText(getApplicationContext(), downloadUnsupportedStringId, Toast.LENGTH_LONG) in onSampleDownloadButtonClicked()
/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/tools/android/test/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.java32 import android.widget.Toast;
159 Toast toast = in onPreviewSizeChosen()
160 Toast.makeText( in onPreviewSizeChosen()
161 getApplicationContext(), "Classifier could not be initialized", Toast.LENGTH_SHORT); in onPreviewSizeChosen()
/external/oboe/tests/UnitTestRunner/app/src/main/java/com/google/oboe/tests/unittestrunner/
DMainActivity.java18 import android.widget.Toast;
150 Toast.makeText(getApplicationContext(), in onRequestPermissionsResult()
152 Toast.LENGTH_SHORT) in onRequestPermissionsResult()
/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()

123