/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | BaseWidgetSheet.java | 291 public static Toast showWidgetToast(Context context, Toast toast) { in showWidgetToast() argument 293 if (toast != null) { in showWidgetToast() 294 toast.cancel(); in showWidgetToast() 300 toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT); in showWidgetToast() 301 toast.show(); in showWidgetToast() 302 return toast; in showWidgetToast() 308 private static Toast showShortcutToast(Context context, Toast toast) { in showShortcutToast() argument 310 if (toast != null) { in showShortcutToast() 311 toast.cancel(); in showShortcutToast() 317 toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT); in showShortcutToast() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 274 toast(getToastString(R.string.disconnecting_peripheral)); in nextStepDisconnect() 294 toast(getToastString(R.string.disconnecting_peripheral)); in nextStepDisconnect() 303 toast(getToastString(R.string.disconnected_peripheral)); in nextStepDisconnect() 314 toast(getToastString(R.string.disconnected_peripheral)); in nextStepDisconnect() 378 toast(getToastString(R.string.connecting_peripheral)); in nextStepConnect() 409 toast(getToastString(R.string.connecting_peripheral)); in nextStepConnect() 424 toast(getToastString(R.string.connected_peripheral)); in nextStepConnect() 428 toast (getToastString(R.string.connect_peripheral_failed)); in nextStepConnect() 438 toast(getToastString(R.string.connected_peripheral)); in nextStepConnect() 443 toast (getToastString(R.string.connect_peripheral_failed)); in nextStepConnect() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AlarmUtils.kt | 26 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()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | UiUtils.java | 93 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/widget/toast/ |
D | ToastManager.kt | 17 package com.android.deskclock.widget.toast 25 fun setToast(toast: Toast) { in setToast() 27 sToast = toast in setToast()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | ToastUtils.java | 34 Toast toast = Toast.makeText(context, text, duration); in show() local 35 toast.show(); in show() 36 sToast = new WeakReference<>(toast); in show()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/toast/ |
D | CarToastUI.java | 17 package com.android.systemui.car.toast; 34 import com.android.systemui.toast.ToastFactory; 35 import com.android.systemui.toast.ToastLogger; 36 import com.android.systemui.toast.ToastUI;
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | AlbumSetPage.java | 217 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/Stk/src/com/android/stk/ |
D | StkMain.java | 105 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/ |
D | DigitalWellBeingToastTest.java | 54 final DigitalWellBeingToast toast = getToast(); in testToast() local 56 waitForLauncherCondition("Toast is not visible", launcher -> toast.hasLimit()); in testToast() 57 assertEquals("Toast text: ", "5 minutes left today", toast.getText()); in testToast()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | ProvisionLogger.java | 201 public static void toast(Context context, String toast) { in toast() argument 203 Toast.makeText(context, toast, Toast.LENGTH_LONG).show(); in toast()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/toast/ |
D | CarToastUITest.java | 17 package com.android.systemui.car.toast; 44 import com.android.systemui.toast.SystemUIToast; 45 import com.android.systemui.toast.ToastFactory; 46 import com.android.systemui.toast.ToastLogger;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothDevicePickerActivity.java | 43 Toast toast = Toast.makeText(this, error, Toast.LENGTH_SHORT); in onCreate() local 44 toast.show(); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/slices/ |
D | Sliceable.java | 108 final String toast = context.getString(R.string.copyable_slice_toast, messageTitle); in setCopyContent() local 109 Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); in setCopyContent()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/ |
D | BluetoothMapSettingsAdapter.java | 345 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/ |
D | ViewPagerTabs.java | 96 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/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | DigitalWellBeingToast.java | 126 TextView toast = mActivity.getViewCache().getView(R.layout.digital_wellbeing_toast, in setLimit() local 128 toast.setText(prefixTextWithIcon(mActivity, R.drawable.ic_hourglass_top, getText())); in setLimit() 129 toast.setOnClickListener(this::openAppUsageSettings); in setLimit() 130 replaceBanner(toast); in setLimit()
|
/packages/apps/Settings/src/com/android/settings/webview/ |
D | WebViewUpdateServiceWrapper.java | 103 Toast toast = Toast.makeText(context, in showInvalidChoiceToast() local 105 toast.show(); in showInvalidChoiceToast()
|
/packages/apps/Traceur/src/com/android/traceur/ |
D | UserConsentActivityDialog.java | 93 Toast toast = Toast.makeText(getApplicationContext(), in onClick() 95 toast.show(); in onClick()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/input/ |
D | DisplayInputSinkController.java | 325 UnaryOperator<Toast> cancelToast = (toast) -> { in mayStartDisplayInputLock() 326 toast.cancel(); in mayStartDisplayInputLock() 327 return toast; in mayStartDisplayInputLock() 329 UnaryOperator<Toast> createToast = (toast) -> Toast.makeText(displayContext, in mayStartDisplayInputLock()
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
D | ViewPagerTabs.java | 293 Toast toast = in onLongClick() local 297 toast.setGravity( in onLongClick() 302 toast.show(); in onLongClick()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/ |
D | UserRestrictionsFragment.java | 97 toast("%d restrictions (%s) have been set on user %d!", restrictions.size(), in onViewCreated() 102 private void toast(String format, Object...args) { in toast() method in UserRestrictionsFragment
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/ |
D | LibUtils.java | 325 String toast = ResourcesUtil.getString(context, resName); in showToast() local 326 if (!TextUtils.isEmpty(toast)) { in showToast() 327 Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); in showToast()
|
/packages/apps/Settings/src/com/android/settings/bugreporthandler/ |
D | BugReportHandlerUtil.java | 244 final Toast toast = Toast.makeText(context, in showInvalidChoiceToast() local 246 toast.show(); in showInvalidChoiceToast()
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | ActivityMusic.java | 878 final Toast toast = Toast.makeText(context, getString(R.string.headset_plug), duration); in showHeadsetMsg() local 879 toast.setGravity(Gravity.CENTER, toast.getXOffset() / 2, toast.getYOffset() / 2); in showHeadsetMsg() 880 toast.show(); in showHeadsetMsg()
|