/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowToastTest.java | 10 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/ |
D | AdvancedEventHandlingActivity.java | 8 import android.widget.Toast; 42 …Toast.makeText(getApplicationContext(), "Single tap: " + ((int)sCoord.x) + ", " + ((int)sCoord.y),… in onCreate() 44 … Toast.makeText(getApplicationContext(), "Single tap: Image not ready", Toast.LENGTH_SHORT).show(); in onCreate() 52 …Toast.makeText(getApplicationContext(), "Long press: " + ((int)sCoord.x) + ", " + ((int)sCoord.y),… in onCreate() 54 … Toast.makeText(getApplicationContext(), "Long press: Image not ready", Toast.LENGTH_SHORT).show(); in onCreate() 61 …Toast.makeText(getApplicationContext(), "Double tap: " + ((int)sCoord.x) + ", " + ((int)sCoord.y),… in onCreate() 63 … Toast.makeText(getApplicationContext(), "Double tap: Image not ready", Toast.LENGTH_SHORT).show(); in onCreate()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowToast.java | 7 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 …]
|
D | ShadowApplication.java | 20 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/ |
D | SimpleAnimationActivity.kt | 4 import android.widget.Toast 30 …Toast.makeText(this@SimpleAnimationActivity, "Done ${System.currentTimeMillis() - start}", Toast.L… in onCreate() 37 …Toast.makeText(this@SimpleAnimationActivity, "Done ${System.currentTimeMillis() - start}", Toast.L… in onCreate()
|
D | PreviewFragment.kt | 12 import android.widget.Toast in <lambda>() 58 … Toast.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/ |
D | EventHandlingActivity.java | 5 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/ |
D | FastPathSurfaceView.java | 29 import android.widget.Toast; 76 Toast toast = Toast.makeText(getContext(), message, Toast.LENGTH_SHORT); in displayMessage()
|
D | MainActivity.java | 40 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/ |
D | CustomToastSystem.java | 25 import android.widget.Toast; 30 private Toast mToast; 37 mToast = new Toast(context); in CustomToastSystem()
|
D | SetPreferencesActivity.java | 24 import android.widget.Toast; 75 Toast.makeText(this, R.string.saved_game_erased_notification, in onDialogClosed() 76 Toast.LENGTH_SHORT).show(); in onDialogClosed()
|
D | DiaryActivity.java | 30 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/ |
D | CopyCodeActivity.java | 26 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/ |
D | TapToToneActivity.java | 34 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()
|
D | TestInputActivity.java | 32 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/ |
D | HelloworldActivity.java | 30 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/ |
D | DrumThumperActivity.kt | 28 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/ |
D | MainActivity.java | 30 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/ |
D | ShadowingTest.java | 9 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/ |
D | SampleChooserActivity.java | 41 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/ |
D | TerminalView.java | 33 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/ |
D | CameraActivity.java | 42 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()
|
D | DetectorActivity.java | 32 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/ |
D | MainActivity.java | 18 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/ |
D | LogcatViewer.java | 31 import android.widget.Toast; 145 Toast.makeText(this, "Copied to clipboard", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
|