Home
last modified time | relevance | path

Searched refs:makeText (Results 1 – 25 of 102) sorted by relevance

12345

/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DTestEnrollmentActivity.java74 Toast.makeText( in onEnrollButtonClicked()
78 Toast.makeText(this, "Failed to enroll!!!" + modelUuid, Toast.LENGTH_SHORT).show(); in onEnrollButtonClicked()
89 Toast.makeText(this, "Sound model not found!!!", Toast.LENGTH_SHORT).show(); in onUnEnrollButtonClicked()
94 Toast.makeText(this, "Successfully un-enrolled, model UUID=" + soundModel.getUuid(), in onUnEnrollButtonClicked()
98 Toast.makeText(this, "Failed to un-enroll!!!", Toast.LENGTH_SHORT).show(); in onUnEnrollButtonClicked()
109 Toast.makeText(this, "Sound model not found!!!", Toast.LENGTH_SHORT).show(); in onReEnrollButtonClicked()
119 Toast.makeText(this, "Successfully re-enrolled, model UUID=" + updated.getUuid(), in onReEnrollButtonClicked()
123 Toast.makeText(this, "Failed to re-enroll!!!", Toast.LENGTH_SHORT).show(); in onReEnrollButtonClicked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSysUIToast.java26 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) { in makeText() method in SysUIToast
27 return makeText(context, context.getString(resId), duration); in makeText()
30 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { in makeText() method in SysUIToast
31 return Toast.makeText(context, text, duration); in makeText()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DToastTest.java89 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",
/frameworks/base/core/tests/mockingcoretests/src/android/widget/
DToastTest.java106 Toast t = Toast.makeText(mContext, "Toast1", Toast.LENGTH_SHORT); in enqueueFail_nullifiesNextView()
113 t = Toast.makeText(mContext, "Toast2", Toast.LENGTH_SHORT); in enqueueFail_nullifiesNextView()
130 Toast t = Toast.makeText(mContext, "Toast1", Toast.LENGTH_SHORT); in enqueueFail_doesNotNullifyNextView()
137 t = Toast.makeText(mContext, "Toast2", Toast.LENGTH_SHORT); in enqueueFail_doesNotNullifyNextView()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DObjectViewer.java84 Toast.makeText(mContext, R.string.start_activity_failed_message, 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.java90 … Toast.makeText(mContext, R.string.toast_backup_started, Toast.LENGTH_LONG).show(); in handleMessage()
101 Toast.makeText(mContext, R.string.toast_backup_ended, Toast.LENGTH_LONG).show(); in handleMessage()
107 … Toast.makeText(mContext, R.string.toast_restore_started, Toast.LENGTH_LONG).show(); in handleMessage()
118 … Toast.makeText(mContext, R.string.toast_restore_ended, Toast.LENGTH_SHORT).show(); in handleMessage()
124 Toast.makeText(mContext, R.string.toast_timeout, Toast.LENGTH_LONG).show(); in handleMessage()
/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/
DMainActivity.java228 Toast.makeText(mainActivity.getApplicationContext(), "Encoding Completed", in onPostExecute()
238 Toast.makeText(mainActivity.getApplicationContext(), in onPostExecute()
468 Toast.makeText(MainActivity.this, "Cannot start recording.", Toast.LENGTH_SHORT).show(); in startRecordingVideo()
522 Toast.makeText(MainActivity.this, "Error occurred while setting up the MediaRecorder", in setUpMediaRecorder()
588 Toast.makeText(MainActivity.this, "Recording Finished", Toast.LENGTH_SHORT).show(); in stopRecordingVideo()
618 Toast.makeText(MainActivity.this, in startPreview()
631 Toast.makeText(MainActivity.this, "Camera not found; Cannot update " + "preview", in updatePreview()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DMainActivity.java113 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.java102 … Toast.makeText(HomeActivity.this, "Exporting...", Toast.LENGTH_LONG).show(); in onOptionsItemSelected()
117 Toast.makeText(HomeActivity.this, "Done", Toast.LENGTH_LONG).show(); in onOptionsItemSelected()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DSingleUserService.java32 Toast.makeText(this, in onCreate()
DServiceUserTarget.java32 Toast.makeText(this, in onCreate()
DActivityTestMain.java167 Toast.makeText(ActivityTestMain.this, msg, Toast.LENGTH_LONG)
178 Toast.makeText(ActivityTestMain.this, in onReceive()
245 Toast.makeText(ActivityTestMain.this, "Failed to bind", in onCreateOptionsMenu()
280 Toast.makeText(ActivityTestMain.this, "Failed to bind", in onCreateOptionsMenu()
304 Toast.makeText(ActivityTestMain.this, in onCreateOptionsMenu()
347 Toast.makeText(ActivityTestMain.this, "Failed to bind", in onCreateOptionsMenu()
371 Toast.makeText(ActivityTestMain.this, "Failed to bind", in onCreateOptionsMenu()
/frameworks/base/tools/aapt2/integration-tests/NamespaceTest/App/src/com/android/aapt/namespace/app/
DMainActivity.java32 Toast.makeText(this, tv.getTextViewAttr(), Toast.LENGTH_LONG).show(); in onCreate()
/frameworks/base/core/java/android/widget/
DToast.java506 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { in makeText() method in Toast
507 return makeText(context, null, text, duration); in makeText()
516 public static Toast makeText(@NonNull Context context, @Nullable Looper looper, in makeText() method in Toast
563 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) in makeText() method in Toast
565 return makeText(context, context.getResources().getText(resId), duration); in makeText()
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DClipboardToast.java42 mCopiedToast = Toast.makeText(mContext, in showCopiedToast()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerActivity.java187 Toast.makeText(this, "Successfully exported data to " + in exportFile()
191 Toast.makeText(this, "Error exporting file: " + in exportFile()
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/
DCrashingService.java49 Toast.makeText(this, "service starting", Toast.LENGTH_SHORT).show(); in onCreate()
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DBubbleActivity.java75 Toast.makeText(this, "Activity result: " + result, Toast.LENGTH_SHORT).show(); in onActivityResult()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DScreenPinningNotify.java72 Toast toast = SysUIToast.makeText(mContext, resId, Toast.LENGTH_LONG); in makeAllUserToastAndShow()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageStatsActivity.java75 Toast.makeText(this, "Timeout of observed app\n" + extras, Toast.LENGTH_SHORT).show(); in onCreate()
84 Toast.makeText(this, "Timeout of observed app\n" + extras, Toast.LENGTH_SHORT).show(); in onNewIntent()
286 Toast.makeText(getApplicationContext(), "package name copied to clipboard", in getView()
/frameworks/base/tests/AccessibilityEventsLogger/src/com/android/tests/accessibilityeventlogger/
DAELogger.java62 final Toast toast = Toast.makeText(this, in onAccessibilityEvent()
/frameworks/base/tests/backup/src/com/android/backuptest/
DBackupTestActivity.java74 Toast.makeText(BackupTestActivity.this, str, Toast.LENGTH_SHORT).show();
118 Toast.makeText(BackupTestActivity.this, str, Toast.LENGTH_SHORT).show();
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListWithDisappearingItemBug.java44 Toast.makeText(this, "Make sure you rotate screen to see bug", Toast.LENGTH_LONG).show(); in onCreate()
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java304 Toast.makeText(context, R.string.wifi_connected, Toast.LENGTH_SHORT).show(); in onReceive()
317 Toast.makeText(context, R.string.lost_connection, Toast.LENGTH_SHORT).show(); in onReceive()
/frameworks/base/packages/EasterEgg/src/com/android/egg/
DComponentActivationActivity.java44 Toast toast = Toast.makeText(this, s, Toast.LENGTH_SHORT); in toastUp()

12345