Home
last modified time | relevance | path

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

/cts/tests/tests/widget29/src/android/widget/cts29/
DToastTest.java178 Toast toast = new Toast(mContext); in testShowFailure() local
180 assertNull(toast.getView()); in testShowFailure()
181 toast.show(); in testShowFailure()
433 Toast toast = Toast.makeText(mContext, "android", Toast.LENGTH_SHORT); in testMakeTextFromString() local
434 assertNotNull(toast); in testMakeTextFromString()
435 assertEquals(Toast.LENGTH_SHORT, toast.getDuration()); in testMakeTextFromString()
436 View view = toast.getView(); in testMakeTextFromString()
439 toast = Toast.makeText(mContext, "cts", Toast.LENGTH_LONG); in testMakeTextFromString()
440 assertNotNull(toast); in testMakeTextFromString()
441 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); in testMakeTextFromString()
[all …]
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/
DToastActivity.java35 Toast toast = new Toast(this); in onResume() local
38 toast.setView(view); in onResume()
39 toast.setGravity(Gravity.FILL, 0, 0); in onResume()
40 toast.setDuration(Toast.LENGTH_LONG); in onResume()
42 toast.show(); in onResume()
/cts/tests/tests/widget/src/android/widget/cts/
DToastTest.java342 Toast toast = new Toast(mContext); in testShowFailure() local
344 assertNull(toast.getView()); in testShowFailure()
345 toast.show(); in testShowFailure()
655 Toast toast = Toast.makeText(mContext, "android", Toast.LENGTH_SHORT); in testMakeTextFromString() local
656 assertNotNull(toast); in testMakeTextFromString()
657 assertEquals(Toast.LENGTH_SHORT, toast.getDuration()); in testMakeTextFromString()
658 View view = toast.getView(); in testMakeTextFromString()
661 toast = Toast.makeText(mContext, "cts", Toast.LENGTH_LONG); in testMakeTextFromString()
662 assertNotNull(toast); in testMakeTextFromString()
663 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); in testMakeTextFromString()
[all …]
/cts/tests/tests/os/CompanionTestApp/src/android/os/cts/companiontestapp/
DDevicePresenceListener.kt24 toast("Device appeared: $address") in onDeviceAppeared()
28 toast("Device disappeared: $address") in onDeviceDisappeared()
DCompanionTestAppMainActivity.kt117 toast("Disassociating $address") in <lambda>()
127 toast("startObservingDevicePresence $address") in <lambda>()
145 toast("error: $error") in <lambda>()
149 toast("launching $chooserLauncher") in <lambda>()
163 toast("result code: $resultCode, device: $device") in <lambda>()
207 fun Context.toast(msg: String) { in Context() method
DNotificationListener.kt33 toast("Notification detected: ${sbn.packageName}: ${sbn.notification.tickerText}") in onNotificationPosted()
/cts/tests/tests/toastlegacy/
DOWNERS2 include ../toast/OWNERS
/cts/tests/tests/toastlegacy/src/android/widget/toast/cts/legacy/
DToastTest.java17 package android.widget.toast.cts.legacy;
21 import android.widget.toast.cts.BaseToastTest;
DToastActivity.java17 package android.widget.toast.cts.legacy;
/cts/tests/tests/appop/
DOWNERS5 include ../toast/OWNERS
/cts/tests/tests/toast/src/android/widget/toast/cts/
DLegacyToastTest.java17 package android.widget.toast.cts;
DBaseToastTest.java17 package android.widget.toast.cts;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DPermissionLockdownTestActivity.java235 private void showToast(String toast) { in showToast() argument
236 Log.d(TAG, "showToast(" + toast + ")"); in showToast()
237 Toast.makeText(this, toast, Toast.LENGTH_LONG).show(); in showToast()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DConnectionAccessClientActivity.java162 String toast = msg.getData().getString(BluetoothChatService.TOAST); in handleToast() local
163 Toast.makeText(this, toast, Toast.LENGTH_SHORT).show(); in handleToast()
DConnectionAccessServerActivity.java149 String toast = msg.getData().getString(BluetoothChatService.TOAST); in handleToast() local
150 Toast.makeText(this, toast, Toast.LENGTH_LONG).show(); in handleToast()
DMessageTestActivity.java321 String toast = msg.getData().getString(BluetoothChatService.TOAST); in handleToast() local
322 Toast.makeText(this, toast, Toast.LENGTH_LONG).show(); in handleToast()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowUntrustedTouchTest.java780 Rect toast = mWmState.waitForResult("toast bounds", in testWhenSelfTextToastWindow_allowsTouch() local
783 mTouchHelper.tapOnCenter(toast, mActivity.getDisplayId()); in testWhenSelfTextToastWindow_allowsTouch()
791 Rect toast = mWmState.waitForResult("toast bounds", in testWhenTextToastWindow_allowsTouch() local
794 mTouchHelper.tapOnCenter(toast, mActivity.getDisplayId()); in testWhenTextToastWindow_allowsTouch()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java162 Toast toast = Toast.makeText(context, msg, duration); in message() local
163 toast.show(); in message()