Home
last modified time | relevance | path

Searched refs:mToast (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/widget29/src/android/widget/cts29/
DToastTest.java76 private Toast mToast; field in ToastTest
143 () -> mToast = Toast.makeText(mContext, TEST_TOAST_TEXT, Toast.LENGTH_LONG)); in makeToast()
149 mToast = new Toast(mContext); in makeCustomToast()
150 mToast.setDuration(Toast.LENGTH_LONG); in makeCustomToast()
153 mToast.setView(view); in makeCustomToast()
162 final View view = mToast.getView(); in testShow()
168 runOnMainAndDrawSync(view, mToast::show); in testShow()
188 final View view = mToast.getView(); in testCancel()
193 mToast.show(); in testCancel()
194 mToast.cancel(); in testCancel()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DToastTest.java119 private Toast mToast; field in ToastTest
253 mToast = Toast.makeText(context, TEST_TOAST_TEXT, Toast.LENGTH_LONG); in makeTextToast()
254 mToast.addCallback(new ConditionCallback(mToastShown, mToastHidden)); in makeTextToast()
261 mToast = new Toast(mContext); in makeCustomToast()
262 mToast.setDuration(Toast.LENGTH_LONG); in makeCustomToast()
265 mToast.setView(view); in makeCustomToast()
271 if (mToast == null) { in waitForToastToExpire()
286 View view = mToast.getView(); in waitForToastToExpire()
296 final View view = mToast.getView(); in testShow_whenCustomToast()
302 runOnMainAndDrawSync(view, () -> showToastWithNotificationPermission(mToast)); in testShow_whenCustomToast()
[all …]
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/
DUntrustedTouchTestService.java52 private Toast mToast; field in UntrustedTouchTestService
85 mToast = Toast.makeText(mService, "Toast " + getPackageName(), Toast.LENGTH_LONG); in showToast()
86 mToast.show(); in showToast()
125 if (mToast != null) { in removeOverlays()
126 mToast.cancel(); in removeOverlays()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/displaycutout/
DDisplayCutoutTestActivity.java45 private Toast mToast; field in DisplayCutoutTestActivity
145 if (mToast != null) { in onButtonClicked()
146 mToast.cancel(); in onButtonClicked()
148 mToast = Toast.makeText(getApplicationContext(), toastText, Toast.LENGTH_SHORT); in onButtonClicked()
149 mToast.show(); in onButtonClicked()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DAuthenticationBoundKeyTestActivity.java121 private Toast mToast; field in AuthenticationBoundKeyTestActivity.LockscreenCountDownTester
126mToast = Toast.makeText(AuthenticationBoundKeyTestActivity.this, "", Toast.LENGTH_SHORT); in LockscreenCountDownTester()
131 mToast.cancel(); in onFinish()
149 mToast.setText(String.format("Lockscreen challenge start in %d seconds..", in onTick()
151 mToast.show(); in onTick()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowUntrustedTouchTest.java160 private Toast mToast; field in WindowUntrustedTouchTest
855 mToast = new Toast(mContext); in addMyCustomToastOverlay()
858 mToast.setView(view); in addMyCustomToastOverlay()
859 mToast.setGravity(Gravity.FILL, 0, 0); in addMyCustomToastOverlay()
860 mToast.setDuration(Toast.LENGTH_LONG); in addMyCustomToastOverlay()
861 mToast.show(); in addMyCustomToastOverlay()
868 if (mToast != null) { in removeMyCustomToastOverlay()
869 mToast.cancel(); in removeMyCustomToastOverlay()
870 mToast = null; in removeMyCustomToastOverlay()