/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 | 6 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 …]
|
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/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 | 30 import android.widget.Toast; 75 Toast toast = Toast.makeText(getContext(), message, Toast.LENGTH_SHORT); in displayMessage()
|
D | MainActivity.java | 50 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/ |
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/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/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/examples/android/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 | 34 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/ |
D | ShadowingTest.java | 9 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/ |
D | DetectorActivity.java | 32 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()
|
D | CameraActivity.java | 42 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/ |
D | LogcatViewer.java | 31 import android.widget.Toast; 145 Toast.makeText(this, "Copied to clipboard", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
|
D | ScriptEditor.java | 43 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/ |
D | Log.java | 26 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/ |
D | HelloArActivity.java | 44 import android.widget.Toast; 341 … Toast.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/ |
D | HelloArActivity.java | 44 import android.widget.Toast; 341 … Toast.makeText(this, "Camera permission is needed to run this application", Toast.LENGTH_LONG) in onRequestPermissionsResult()
|
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
D | CallActivity.java | 31 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/ |
D | MultiBoxTracker.java | 30 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/ |
D | MultiBoxTracker.java | 30 import android.widget.Toast; 219 Toast.makeText(context, message, Toast.LENGTH_LONG).show(); in onFrame()
|