/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | ClickableToastActivity.java | 45 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/ |
D | ToastTest.java | 178 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/ |
D | ToastActivity.java | 35 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/ |
D | DevicePresenceListener.kt | 25 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()
|
D | CompanionDeviceTestAppActivity.kt | 125 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
|
D | NotificationListener.kt | 33 toast("Notification detected: ${sbn.packageName}: ${sbn.notification.tickerText}") in onNotificationPosted()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ToastTest.java | 396 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/ |
D | MainActivity.kt | 71 toast("resultCode: $resultCode") in onActivityResult() 76 fun Context.toast(msg: String) { in Context() method in android.os.cts.associationrevokedtestapp.MainActivity
|
/cts/tests/tests/toastlegacy/ |
D | OWNERS | 2 include ../toast/OWNERS
|
/cts/tests/tests/appop/ |
D | OWNERS | 5 include ../toast/OWNERS
|
/cts/tests/tests/toastlegacy/src/android/widget/toast/cts/legacy/ |
D | ToastTest.java | 17 package android.widget.toast.cts.legacy; 23 import android.widget.toast.cts.BaseToastTest;
|
D | ToastActivity.java | 17 package android.widget.toast.cts.legacy;
|
/cts/tests/tests/toast/src/android/widget/toast/cts/ |
D | LegacyToastTest.java | 17 package android.widget.toast.cts;
|
D | BaseToastTest.java | 17 package android.widget.toast.cts;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | PermissionLockdownTestActivity.java | 231 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/ |
D | ConnectionAccessClientActivity.java | 162 String toast = msg.getData().getString(BluetoothChatService.TOAST); in handleToast() local 163 Toast.makeText(this, toast, Toast.LENGTH_SHORT).show(); in handleToast()
|
D | ConnectionAccessServerActivity.java | 150 String toast = msg.getData().getString(BluetoothChatService.TOAST); in handleToast() local 151 Toast.makeText(this, toast, Toast.LENGTH_LONG).show(); in handleToast()
|
D | MessageTestActivity.java | 323 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/ |
D | Android.bp | 40 srcs: ["src/android/widget/toast/cts/BaseToastTest.java"],
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/ |
D | WindowUntrustedTouchTest.java | 706 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/ |
D | RVCVRecordActivity.java | 161 Toast toast = Toast.makeText(context, msg, duration); in message() local 162 toast.show(); in message()
|