Home
last modified time | relevance | path

Searched refs:toast (Results 1 – 25 of 62) sorted by relevance

123

/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java274 toast(getToastString(R.string.disconnecting_peripheral)); in nextStepDisconnect()
295 toast(getToastString(R.string.disconnecting_peripheral)); in nextStepDisconnect()
304 toast(getToastString(R.string.disconnected_peripheral)); in nextStepDisconnect()
315 toast(getToastString(R.string.disconnected_peripheral)); in nextStepDisconnect()
379 toast(getToastString(R.string.connecting_peripheral)); in nextStepConnect()
408 toast(getToastString(R.string.connecting_peripheral)); in nextStepConnect()
423 toast(getToastString(R.string.connected_peripheral)); in nextStepConnect()
427 toast (getToastString(R.string.connect_peripheral_failed)); in nextStepConnect()
437 toast(getToastString(R.string.connected_peripheral)); in nextStepConnect()
442 toast (getToastString(R.string.connect_peripheral_failed)); in nextStepConnect()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DUiUtils.java93 final Toast toast = Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG); in showToastAtBottom() local
94 toast.setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, 0); in showToastAtBottom()
95 toast.show(); in showToastAtBottom()
100 final Toast toast = Toast.makeText(getApplicationContext(), in showToast() local
102 toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0); in showToast()
103 toast.show(); in showToast()
108 final Toast toast = Toast.makeText(getApplicationContext(), in showToast() local
111 toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0); in showToast()
112 toast.show(); in showToast()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmUtils.kt26 import com.android.deskclock.widget.toast.SnackbarManager
27 import com.android.deskclock.widget.toast.ToastManager
104 val toast = Toast.makeText(context, text, Toast.LENGTH_LONG) in popAlarmSetToast() constant
105 ToastManager.setToast(toast) in popAlarmSetToast()
106 toast.show() in popAlarmSetToast()
DAlarmUtils.java28 import com.android.deskclock.widget.toast.SnackbarManager;
29 import com.android.deskclock.widget.toast.ToastManager;
98 Toast toast = Toast.makeText(context, text, Toast.LENGTH_LONG); in popAlarmSetToast() local
99 ToastManager.setToast(toast); in popAlarmSetToast()
100 toast.show(); in popAlarmSetToast()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumSetPage.java217 Toast toast; in showEmptyAlbumToast() local
219 toast = mEmptyAlbumToast.get(); in showEmptyAlbumToast()
220 if (toast != null) { in showEmptyAlbumToast()
221 toast.show(); in showEmptyAlbumToast()
225 toast = Toast.makeText(mActivity, R.string.empty_album, toastLength); in showEmptyAlbumToast()
226 mEmptyAlbumToast = new WeakReference<Toast>(toast); in showEmptyAlbumToast()
227 toast.show(); in showEmptyAlbumToast()
232 Toast toast = mEmptyAlbumToast.get(); in hideEmptyAlbumToast() local
233 if (toast != null) toast.cancel(); in hideEmptyAlbumToast()
/packages/apps/DeskClock/src/com/android/deskclock/widget/toast/
DToastManager.kt17 package com.android.deskclock.widget.toast
25 fun setToast(toast: Toast) { in setToast()
27 sToast = toast in setToast()
DToastManager.java17 package com.android.deskclock.widget.toast;
29 public static void setToast(Toast toast) { in setToast() argument
32 sToast = toast; in setToast()
/packages/apps/TV/src/com/android/tv/util/
DToastUtils.java34 Toast toast = Toast.makeText(context, text, duration); in show() local
35 toast.show(); in show()
36 sToast = new WeakReference<>(toast); in show()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DDigitalWellBeingToast.java90 TextView toast = mActivity.getViewCache().getView(R.layout.digital_wellbeing_toast, in setLimit() local
92 toast.setText(prefixTextWithIcon(mActivity, R.drawable.ic_hourglass_top, getText())); in setLimit()
93 toast.setOnClickListener(this::openAppUsageSettings); in setLimit()
94 setTaskFooter(toast); in setLimit()
/packages/apps/Stk/src/com/android/stk/
DStkMain.java105 Toast toast = Toast.makeText(context, resId, Toast.LENGTH_LONG); in showTextToast() local
106 toast.setGravity(Gravity.BOTTOM, 0, 0); in showTextToast()
107 toast.show(); in showTextToast()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DDigitalWellBeingToastTest.java52 final DigitalWellBeingToast toast = getToast(); in testToast() local
54 waitForLauncherCondition("Toast is not visible", launcher -> toast.hasLimit()); in testToast()
55 assertEquals("Toast text: ", "5 minutes left today", toast.getText()); in testToast()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DProvisionLogger.java201 public static void toast(Context context, String toast) { in toast() argument
203 Toast.makeText(context, toast, Toast.LENGTH_LONG).show(); in toast()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSettingsAdapter.java345 Toast toast = Toast.makeText(mActivity, text, duration); in updateSlotCounter() local
346 toast.show(); in updateSlotCounter()
352 Toast toast = Toast.makeText(mActivity, text, duration); in showWarning() local
353 toast.show(); in showWarning()
/packages/apps/Messaging/src/com/android/messaging/ui/
DViewPagerTabs.java96 Toast toast = Toast.makeText(context, mTabDescription, Toast.LENGTH_SHORT); in onLongClick() local
99 toast.setGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL, in onLongClick()
102 toast.show(); in onLongClick()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePickerActivity.java42 Toast toast = Toast.makeText(this, error, Toast.LENGTH_SHORT); in onCreate() local
43 toast.show(); in onCreate()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceable.java98 final String toast = context.getString(R.string.copyable_slice_toast, messageTitle); in setCopyContent() local
99 Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); in setCopyContent()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSliceable.java98 final String toast = context.getString(R.string.copyable_slice_toast, messageTitle); in setCopyContent() local
99 Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); in setCopyContent()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/firmwareversion/
DSimpleBuildNumberPreferenceController.java70 final String toast = mContext.getString(R.string.copyable_slice_toast, in copy() local
72 Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show(); in copy()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationClickHandlerFactory.java267 Toast toast = Toast.makeText(context, context.getString(resourceId), Toast.LENGTH_LONG);
271 toast.getWindowParams().privateFlags |=
273 toast.show();
/packages/apps/Settings/src/com/android/settings/development/
DAdbDeviceNamePreferenceController.java74 final String toast = mContext.getString(R.string.copyable_slice_toast, in copy() local
76 Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show(); in copy()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabs.java293 Toast toast = in onLongClick() local
297 toast.setGravity( in onLongClick()
302 toast.show(); in onLongClick()
/packages/apps/Nfc/src/com/android/nfc/beam/
DSendUi.java448 public void finishAndToast(int finishMode, String toast) { in finishAndToast() argument
449 mToastString = toast; in finishAndToast()
544 Toast toast = Toast.makeText(mContext, mToastString, Toast.LENGTH_LONG); in dismiss() local
545 toast.getWindowParams().privateFlags |= LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS; in dismiss()
546 toast.show(); in dismiss()
/packages/apps/Settings/src/com/android/settings/webview/
DWebViewUpdateServiceWrapper.java103 Toast toast = Toast.makeText(context, in showInvalidChoiceToast() local
105 toast.show(); in showInvalidChoiceToast()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/webview/
DWebViewUpdateServiceWrapper.java103 Toast toast = Toast.makeText(context, in showInvalidChoiceToast() local
105 toast.show(); in showInvalidChoiceToast()
/packages/apps/MusicFX/src/com/android/musicfx/
DActivityMusic.java814 final Toast toast = Toast.makeText(context, getString(R.string.headset_plug), duration); in showHeadsetMsg() local
815 toast.setGravity(Gravity.CENTER, toast.getXOffset() / 2, toast.getYOffset() / 2); in showHeadsetMsg()
816 toast.show(); in showHeadsetMsg()

123