Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DClickableToastActivity.java45 Toast toast = getToast(this); in onCreate() local
47 handler.post(new DetectToastRunnable(getApplicationContext(), toast.getView(), deadline, in onCreate()
49 toast.show(); in onCreate()
54 View view = LayoutInflater.from(context).inflate(R.layout.toast, null); in getToast()
59 Toast toast = getClickableToast(context); in getToast() local
60 toast.setView(view); in getToast()
61 toast.setGravity(Gravity.FILL_HORIZONTAL | Gravity.FILL_VERTICAL, 0, 0); in getToast()
62 toast.setDuration(Toast.LENGTH_LONG); in getToast()
63 return toast; in getToast()
72 Toast toast = new Toast(context); in getClickableToast() local
[all …]
/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/companion/CompanionDeviceTestApp/src/android.os.cts.companiondevicetestapp/
DDevicePresenceListener.kt25 toast("Device appeared: $address") in onDeviceAppeared()
29 toast("Device disappeared: $address") in onDeviceDisappeared()
34 toast("onDeviceEvent: uuid: ${event.uuid} event: ${event.event}") in onDevicePresenceEvent()
36 toast("onDeviceEvent: association id: ${event.associationId} event: ${event.event}") in onDevicePresenceEvent()
DCompanionDeviceTestAppActivity.kt125 toast("Disassociating $address") in <lambda>()
135 toast("startObservingDevicePresence $address") in <lambda>()
146 toast("requestSystemDataTransfer $associationId") in <lambda>()
160 toast("location access: $locationAccess") in <lambda>()
183 toast("error: $error") in <lambda>()
187 toast("launching $chooserLauncher") in <lambda>()
201 toast("result code: $resultCode, device: $device") in <lambda>()
246 fun Context.toast(msg: String) { in Context() method
DNotificationListener.kt33 toast("Notification detected: ${sbn.packageName}: ${sbn.notification.tickerText}") in onNotificationPosted()
/cts/tests/tests/widget/src/android/widget/cts/
DToastTest.java396 Toast toast = new Toast(mContext); in testShowFailure() local
398 assertNull(toast.getView()); in testShowFailure()
718 Toast toast = Toast.makeText(mContext, "android", Toast.LENGTH_SHORT); in testMakeTextFromString() local
719 assertNotNull(toast); in testMakeTextFromString()
720 assertEquals(Toast.LENGTH_SHORT, toast.getDuration()); in testMakeTextFromString()
721 View view = toast.getView(); in testMakeTextFromString()
724 toast = Toast.makeText(mContext, "cts", Toast.LENGTH_LONG); in testMakeTextFromString()
725 assertNotNull(toast); in testMakeTextFromString()
726 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); in testMakeTextFromString()
727 view = toast.getView(); in testMakeTextFromString()
[all …]
/cts/tests/tests/companion/AssociationRevokedTestApp/src/android.os.cts.associationrevokedtestapp/
DMainActivity.kt71 toast("resultCode: $resultCode") in onActivityResult()
76 fun Context.toast(msg: String) { in Context() method in android.os.cts.associationrevokedtestapp.MainActivity
/cts/tests/tests/toastlegacy/
DOWNERS2 include ../toast/OWNERS
/cts/tests/tests/appop/
DOWNERS5 include ../toast/OWNERS
/cts/tests/tests/toastlegacy/src/android/widget/toast/cts/legacy/
DToastTest.java17 package android.widget.toast.cts.legacy;
23 import android.widget.toast.cts.BaseToastTest;
DToastActivity.java17 package android.widget.toast.cts.legacy;
/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.java231 private void showToast(String toast) { in showToast() argument
232 Log.d(TAG, "showToast(" + toast + ")"); in showToast()
233 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.java150 String toast = msg.getData().getString(BluetoothChatService.TOAST); in handleToast() local
151 Toast.makeText(this, toast, Toast.LENGTH_LONG).show(); in handleToast()
DMessageTestActivity.java323 String toast = msg.getData().getString(BluetoothChatService.TOAST); in handleToast() local
324 Toast.makeText(this, toast, Toast.LENGTH_LONG).show(); in handleToast()
/cts/tests/tests/toast/
DAndroid.bp40 srcs: ["src/android/widget/toast/cts/BaseToastTest.java"],
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowUntrustedTouchTest.java706 Rect toast = mWmState.waitForResult("toast bounds", in testWhenSelfTextToastWindow_allowsTouch() local
713 containerRect.contains(toast.centerX(), toast.centerY())); in testWhenSelfTextToastWindow_allowsTouch()
715 mTouchHelper.tapOnCenter(toast, mActivity.getDisplayId()); in testWhenSelfTextToastWindow_allowsTouch()
724 Rect toast = mWmState.waitForResult("toast bounds", in testWhenTextToastWindow_allowsTouch() local
727 mTouchHelper.tapOnCenter(toast, mActivity.getDisplayId()); in testWhenTextToastWindow_allowsTouch()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java161 Toast toast = Toast.makeText(context, msg, duration); in message() local
162 toast.show(); in message()