/aosp14/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/ |
H A D | TestEnrollmentActivity.java | 27 import android.widget.Toast; 74 Toast.makeText( in onEnrollButtonClicked() 75 this, "Successfully enrolled, model UUID=" + modelUuid, Toast.LENGTH_SHORT) 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() 95 Toast.LENGTH_SHORT) 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() 120 Toast.LENGTH_SHORT) in onReEnrollButtonClicked() [all …]
|
/aosp14/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
H A D | ToastTest.java | 32 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);
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SysUIToast.java | 18 import static android.widget.Toast.Duration; 22 import android.widget.Toast; 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 return Toast.makeText(context, text, duration); in makeText()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/ |
H A D | ClipboardToast.java | 20 import android.widget.Toast; 29 class ClipboardToast extends Toast.Callback { 31 private Toast mCopiedToast; 42 mCopiedToast = Toast.makeText(mContext, in showCopiedToast() 43 R.string.clipboard_overlay_text_copied, Toast.LENGTH_SHORT); in showCopiedToast()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/ |
H A D | ScreenPinningNotify.java | 22 import android.widget.Toast; 36 private Toast mLastToast; 71 private Toast makeAllUserToastAndShow(int resId) { in makeAllUserToastAndShow() 72 Toast toast = SysUIToast.makeText(mContext, resId, Toast.LENGTH_LONG); in makeAllUserToastAndShow()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/toast/ |
H A D | ToastUITest.java | 60 import android.widget.Toast; 152 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_addsCorrectViewToWindowManager() 162 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_addsViewWithCorrectLayoutParamsToWindowManager() 178 mToastUI.showToast(ANDROID_UID, "android", TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_forAndroidPackage_addsAllUserFlag() 192 Toast.LENGTH_LONG, null, Display.DEFAULT_DISPLAY); in testShowToast_forSystemUiPackage_addsAllUserFlag() 204 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_callsCallback() 224 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_sendsAccessibilityEvent() 232 assertThat(event.getClassName()).isEqualTo(Toast.class.getName()); in testShowToast_sendsAccessibilityEvent() 239 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testShowToast_accessibilityManagerClientIsRemoved() 246 mToastUI.showToast(UID_1, PACKAGE_NAME_1, TOKEN_1, TEXT, WINDOW_TOKEN_1, Toast.LENGTH_LONG, in testHideToast_removesView() [all …]
|
/aosp14/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
H A D | ObjectViewer.java | 36 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()
|
/aosp14/frameworks/base/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/ |
H A D | BackupRestoreConfirmation.java | 36 import android.widget.Toast; 90 … 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()
|
/aosp14/frameworks/base/tests/AccessibilityEventsLogger/src/com/android/tests/accessibilityeventlogger/ |
H A D | AELogger.java | 21 import android.widget.Toast; 62 final Toast toast = Toast.makeText(this, in onAccessibilityEvent() 63 eventType + ": " + eventClass, Toast.LENGTH_SHORT); in onAccessibilityEvent()
|
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/ |
H A D | ComponentActivationActivity.java | 24 import android.widget.Toast; 39 Toast toast = Toast.makeText(this, s, Toast.LENGTH_SHORT); in toastUp()
|
/aosp14/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
H A D | ServiceUserTarget.java | 24 import android.widget.Toast; 32 Toast.makeText(this, in onCreate() 34 Toast.LENGTH_LONG).show(); in onCreate()
|
H A D | SingleUserService.java | 24 import android.widget.Toast; 32 Toast.makeText(this, in onCreate() 34 Toast.LENGTH_LONG).show(); in onCreate()
|
H A D | ActivityTestMain.java | 54 import android.widget.Toast; 167 Toast.makeText(ActivityTestMain.this, msg, Toast.LENGTH_LONG) 178 Toast.makeText(ActivityTestMain.this, in onReceive() 181 Toast.LENGTH_LONG).show(); in onReceive() 245 Toast.makeText(ActivityTestMain.this, "Failed to bind", in onCreateOptionsMenu() 246 Toast.LENGTH_LONG).show(); in onCreateOptionsMenu() 281 Toast.LENGTH_LONG).show(); in onCreateOptionsMenu() 304 Toast.makeText(ActivityTestMain.this, in onCreateOptionsMenu() 307 Toast.LENGTH_LONG).show(); in onCreateOptionsMenu() 348 Toast.LENGTH_LONG).show(); in onCreateOptionsMenu() [all …]
|
/aosp14/frameworks/base/tools/aapt2/integration-tests/NamespaceTest/App/src/com/android/aapt/namespace/app/ |
H A D | MainActivity.java | 20 import android.widget.Toast; 32 Toast.makeText(this, tv.getTextViewAttr(), Toast.LENGTH_LONG).show(); in onCreate()
|
/aosp14/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/ |
H A D | HomeActivity.java | 29 import android.widget.Toast; 102 … Toast.makeText(HomeActivity.this, "Exporting...", Toast.LENGTH_LONG).show(); in onOptionsItemSelected() 117 Toast.makeText(HomeActivity.this, "Done", Toast.LENGTH_LONG).show(); in onOptionsItemSelected()
|
/aosp14/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/ |
H A D | CrashingService.java | 27 import android.widget.Toast; 49 Toast.makeText(this, "service starting", Toast.LENGTH_SHORT).show(); in onCreate()
|
/aosp14/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/ |
H A D | BubbleActivity.java | 23 import android.widget.Toast; 75 Toast.makeText(this, "Activity result: " + result, Toast.LENGTH_SHORT).show(); in onActivityResult()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | Toast.java | 90 public class Toast { class 161 public Toast(Context context) { in Toast() method in Toast 169 public Toast(@NonNull Context context, @Nullable Looper looper) { in Toast() method in Toast 492 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { in makeText() 502 public static Toast makeText(@NonNull Context context, @Nullable Looper looper, in makeText() 504 Toast result = new Toast(context, looper); in makeText() 526 public static Toast makeCustomToastWithIcon(@NonNull Context context, @Nullable Looper looper, in makeCustomToastWithIcon() 533 Toast result = new Toast(context, looper); in makeCustomToastWithIcon() 550 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) in makeText()
|
/aosp14/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
H A D | TrackerActivity.java | 36 import android.widget.Toast; 187 Toast.makeText(this, "Successfully exported data to " + in exportFile() 188 exportFileName, Toast.LENGTH_SHORT).show(); in exportFile() 191 Toast.makeText(this, "Error exporting file: " + in exportFile() 192 e.getLocalizedMessage(), Toast.LENGTH_SHORT).show(); in exportFile()
|
/aosp14/frameworks/base/core/java/com/android/internal/accessibility/dialog/ |
H A D | VolumeShortcutToggleAccessibilityServiceTarget.java | 31 import android.widget.Toast; 75 Toast.makeText(getContext(), warningText, Toast.LENGTH_SHORT).show(); in onCheckedFromAccessibilityButton()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListWithDisappearingItemBug.java | 31 import android.widget.Toast; 44 Toast.makeText(this, "Make sure you rotate screen to see bug", Toast.LENGTH_LONG).show(); in onCreate()
|
/aosp14/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
H A D | UsageStatsActivity.java | 42 import android.widget.Toast; 75 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() 287 Toast.LENGTH_SHORT).show(); in getView()
|
/aosp14/frameworks/base/tests/backup/src/com/android/backuptest/ |
H A D | BackupTestActivity.java | 34 import android.widget.Toast; 74 Toast.makeText(BackupTestActivity.this, str, Toast.LENGTH_SHORT).show(); 118 Toast.makeText(BackupTestActivity.this, str, Toast.LENGTH_SHORT).show();
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | VideoViewCaptureActivity.java | 29 import android.widget.Toast; 61 Toast.makeText(VideoViewCaptureActivity.this, in onCreate() 62 "Failed to copy", Toast.LENGTH_SHORT).show(); in onCreate()
|
/aosp14/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
H A D | NetworkActivity.java | 32 import android.widget.Toast; 304 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()
|