Home
last modified time | relevance | path

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

12345

/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DTestEnrollmentActivity.java30 import android.widget.Toast;
69 Toast.makeText( in onEnrollButtonClicked()
70 this, "Successfully enrolled, model UUID=" + modelUuid, Toast.LENGTH_SHORT) in onEnrollButtonClicked()
73 Toast.makeText(this, "Failed to enroll!!!" + modelUuid, Toast.LENGTH_SHORT).show(); in onEnrollButtonClicked()
84 Toast.makeText(this, "Sound model not found!!!", Toast.LENGTH_SHORT).show(); in onUnEnrollButtonClicked()
89 Toast.makeText(this, "Successfully un-enrolled, model UUID=" + soundModel.uuid, in onUnEnrollButtonClicked()
90 Toast.LENGTH_SHORT) in onUnEnrollButtonClicked()
93 Toast.makeText(this, "Failed to un-enroll!!!", Toast.LENGTH_SHORT).show(); in onUnEnrollButtonClicked()
104 Toast.makeText(this, "Sound model not found!!!", Toast.LENGTH_SHORT).show(); in onReEnrollButtonClicked()
114 Toast.makeText(this, "Successfully re-enrolled, model UUID=" + updated.uuid, in onReEnrollButtonClicked()
[all …]
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DToastTest.java32 import android.widget.Toast;
44 Toast mToast1;
45 Toast mToast2;
89 mToast1 = Toast.makeText(ToastTest.this, text, Toast.LENGTH_SHORT);
97 mToast1 = Toast.makeText(ToastTest.this, "hi 1", Toast.LENGTH_SHORT);
121 mToast2 = Toast.makeText(ToastTest.this, "hi 2", Toast.LENGTH_SHORT);
135 Toast toast = Toast.makeText(ToastTest.this, "LEFT", Toast.LENGTH_SHORT);
144 Toast toast = Toast.makeText(ToastTest.this, "FILL_HORIZONTAL",
145 Toast.LENGTH_SHORT);
/frameworks/base/cmds/statsd/tools/dogfood/src/com/android/statsd/dogfood/
DMainActivity.java31 import android.widget.Toast;
204 Toast.makeText( in onCreate()
205 MainActivity.this, "Config pushed", Toast.LENGTH_LONG).show(); in onCreate()
207 Toast.makeText(MainActivity.this, "Config push FAILED!", in onCreate()
208 Toast.LENGTH_LONG).show(); in onCreate()
212 Toast.makeText(MainActivity.this, "failed to read config", Toast.LENGTH_LONG); in onCreate()
229 Toast.makeText(MainActivity.this, in onCreate()
230 "Receiver specified to pending intent", Toast.LENGTH_LONG) in onCreate()
233 Toast.makeText(MainActivity.this, "Statsd did not set receiver", in onCreate()
234 Toast.LENGTH_LONG) in onCreate()
[all …]
/frameworks/support/core/ktx/src/main/java/androidx/core/widget/
DToast.kt22 import android.widget.Toast
30 inline fun Context.toast(text: CharSequence, duration: Int = Toast.LENGTH_SHORT): Toast { in toast()
31 return Toast.makeText(this, text, duration).apply { show() } in toast()
40 inline fun Context.toast(@StringRes resId: Int, duration: Int = Toast.LENGTH_SHORT): Toast { in toast()
41 return Toast.makeText(this, resId, duration).apply { show() } in toast()
/frameworks/support/samples/SupportCarDemos/src/main/java/com/example/androidx/car/
DTextListItemActivity.java26 import android.widget.Toast;
99 Toast.makeText(mContext, "Clicked!", Toast.LENGTH_SHORT).show();
103 Toast.makeText(v.getContext(),
105 Toast.LENGTH_SHORT).show();
164 v -> Toast.makeText( in SampleProvider()
165 v.getContext(), "action 1", Toast.LENGTH_SHORT).show(), in SampleProvider()
167 v -> Toast.makeText( in SampleProvider()
168 v.getContext(), "action 2", Toast.LENGTH_SHORT).show()); in SampleProvider()
175 v -> Toast.makeText( in SampleProvider()
176 v.getContext(), "action 1", Toast.LENGTH_SHORT).show(), in SampleProvider()
[all …]
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/
DActionBarFragmentMenu.java26 import android.widget.Toast;
147 Toast.makeText(getActivity(), "Selected Menu 1a.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
151 Toast.makeText(getActivity(), "Selected Menu 1b.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
187 Toast.makeText(getActivity(), "Selected Menu 2.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
207 Toast.makeText(getActivity(), "Created nested fragment's menu.", in onCreateOptionsMenu()
208 Toast.LENGTH_SHORT).show(); in onCreateOptionsMenu()
215 Toast.makeText(getActivity(), "Destroyed nested fragment's menu.", in onDestroyOptionsMenu()
216 Toast.LENGTH_SHORT).show(); in onDestroyOptionsMenu()
222 Toast.makeText(getActivity(), "Prepared nested fragment's menu.", in onPrepareOptionsMenu()
223 Toast.LENGTH_SHORT).show(); in onPrepareOptionsMenu()
[all …]
DToolbarFragmentPagerMenu.java28 import android.widget.Toast;
120 Toast.makeText(getActivity(), "Selected Menu 1a.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
124 Toast.makeText(getActivity(), "Selected Menu 1b.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
162 Toast.makeText(getActivity(), "Selected Menu 2.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
DActionBarUsage.java25 import android.widget.Toast;
82 Toast.makeText(this, "Selected Item: " + item.getTitle(), Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
106 Toast.makeText(ActionBarUsage.this,
107 "Searching for: " + query + "...", Toast.LENGTH_SHORT).show();
DActionBarPreferences.java21 import android.widget.Toast;
46 Toast.makeText(this, "Selected Item: " + item.getTitle(), Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
DActionBarMechanics.java21 import android.widget.Toast;
70 Toast.makeText(this, "Selected Item: " + item.getTitle(), Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSysUIToast.java21 import android.widget.Toast;
22 import static android.widget.Toast.Duration;
26 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) { in makeText()
30 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { in makeText()
31 Toast toast = Toast.makeText(context, text, duration); in makeText()
/frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
DSnackbarUsage.java22 import android.widget.Toast;
57 Toast.makeText(SnackbarUsage.this, "Snackbar Action pressed", in showAction()
58 Toast.LENGTH_SHORT).show(); in showAction()
74 Toast.makeText(SnackbarUsage.this, "Snackbar Action pressed", in showLongAction()
75 Toast.LENGTH_SHORT).show(); in showLongAction()
86 Toast.makeText(SnackbarUsage.this, "Snackbar Action pressed", in showLongLongAction()
87 Toast.LENGTH_SHORT).show(); in showLongLongAction()
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/widget/
DToastTest.kt23 import android.widget.Toast
38 assertEquals(Toast.LENGTH_SHORT, toast.duration) in <lambda>()
45 val toast = context.toast("Long Toast", Toast.LENGTH_LONG) in <lambda>()
46 assertEquals(Toast.LENGTH_LONG, toast.duration) in <lambda>()
54 assertEquals(Toast.LENGTH_SHORT, toast.duration) in <lambda>()
61 val toast = context.toast(R.string.text, Toast.LENGTH_LONG) in <lambda>()
62 assertEquals(Toast.LENGTH_LONG, toast.duration) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScreenPinningNotify.java23 import android.widget.Toast;
37 private Toast mLastToast;
70 private Toast makeAllUserToastAndShow(int resId) { in makeAllUserToastAndShow()
71 Toast toast = SysUIToast.makeText(mContext, resId, Toast.LENGTH_LONG); in makeAllUserToastAndShow()
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/
DSliceBroadcastReceiver.java29 import android.widget.Toast;
53 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in onReceive()
57 Toast.makeText(context, "value: " + range, Toast.LENGTH_SHORT).show(); in onReceive()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DObjectViewer.java36 import android.widget.Toast;
84 Toast.makeText(mContext, R.string.start_activity_failed_message, in onScanCompleted()
85 Toast.LENGTH_SHORT).show(); in onScanCompleted()
178 Toast.makeText(this, R.string.object_saved_message, Toast.LENGTH_SHORT).show(); in importObject()
183 Toast.makeText(this, R.string.save_failed_message, Toast.LENGTH_SHORT).show(); in importObject()
189 Toast.makeText(this, R.string.object_deleted_message, Toast.LENGTH_SHORT).show(); in deleteObject()
192 Toast.makeText(this, R.string.delete_failed_message, Toast.LENGTH_SHORT).show(); in deleteObject()
/frameworks/base/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/
DBackupRestoreConfirmation.java38 import android.widget.Toast;
94Toast.makeText(mContext, R.string.toast_backup_started, Toast.LENGTH_LONG).show(); in handleMessage()
105 Toast.makeText(mContext, R.string.toast_backup_ended, Toast.LENGTH_LONG).show(); in handleMessage()
111Toast.makeText(mContext, R.string.toast_restore_started, Toast.LENGTH_LONG).show(); in handleMessage()
122Toast.makeText(mContext, R.string.toast_restore_ended, Toast.LENGTH_SHORT).show(); in handleMessage()
128 Toast.makeText(mContext, R.string.toast_timeout, Toast.LENGTH_LONG).show(); in handleMessage()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoActivationActivity.java21 import android.widget.Toast;
27 Toast toast = Toast.makeText(this, s, Toast.LENGTH_SHORT); in toastUp()
/frameworks/base/tests/AccessibilityEventsLogger/src/com/android/tests/accessibilityeventlogger/
DAELogger.java21 import android.widget.Toast;
62 final Toast toast = Toast.makeText(this, in onAccessibilityEvent()
63 eventType + ": " + eventClass, Toast.LENGTH_SHORT); in onAccessibilityEvent()
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/content/
DSimpleWakefulController.java26 import android.widget.Toast;
33 Toast mToast;
71 mToast = Toast.makeText(SimpleWakefulController.this, R.string.simple_wakeful_scheduled,
72 Toast.LENGTH_LONG);
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DSingleUserService.java24 import android.widget.Toast;
32 Toast.makeText(this, in onCreate()
34 Toast.LENGTH_LONG).show(); in onCreate()
DServiceUserTarget.java24 import android.widget.Toast;
32 Toast.makeText(this, in onCreate()
34 Toast.LENGTH_LONG).show(); in onCreate()
/frameworks/base/tools/aapt2/integration-tests/NamespaceTest/App/src/com/android/aapt/namespace/app/
DMainActivity.java20 import android.widget.Toast;
32 Toast.makeText(this, tv.getTextViewAttr(), Toast.LENGTH_LONG).show(); in onCreate()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DMainActivity.java30 import android.widget.Toast;
113 Toast.makeText(this, "We need this permission", Toast.LENGTH_LONG).show(); in checkPermission()
136 Toast.makeText(this, "We need permissions", Toast.LENGTH_LONG).show(); in onRequestPermissionsResult()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
DHomeActivity.java32 import android.widget.Toast;
100Toast.makeText(HomeActivity.this, "Exporting...", Toast.LENGTH_LONG).show(); in onOptionsItemSelected()
115 Toast.makeText(HomeActivity.this, "Done", Toast.LENGTH_LONG).show(); in onOptionsItemSelected()

12345