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.java110 private Toast mToast; field in ToastTest
220 mToast = Toast.makeText(mContext, TEST_TOAST_TEXT, Toast.LENGTH_LONG); in makeTextToast()
221 mToast.addCallback(new ConditionCallback(mToastShown, mToastHidden)); in makeTextToast()
228 mToast = new Toast(mContext); in makeCustomToast()
229 mToast.setDuration(Toast.LENGTH_LONG); in makeCustomToast()
232 mToast.setView(view); in makeCustomToast()
238 if (mToast == null) { in waitForToastToExpire()
253 View view = mToast.getView(); in waitForToastToExpire()
263 final View view = mToast.getView(); in testShow_whenCustomToast()
269 runOnMainAndDrawSync(view, mToast::show); 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()
123 if (mToast != null) { in removeOverlays()
124 mToast.cancel(); in removeOverlays()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/displaycutout/
DDisplayCutoutTestActivity.java44 private Toast mToast; field in DisplayCutoutTestActivity
142 if (mToast != null) { in onButtonClicked()
143 mToast.cancel(); in onButtonClicked()
145 mToast = Toast.makeText(getApplicationContext(), toastText, Toast.LENGTH_SHORT); in onButtonClicked()
146 mToast.show(); in onButtonClicked()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DAuthenticationBoundKeyTestActivity.java116 private Toast mToast; field in AuthenticationBoundKeyTestActivity.LockscreenCountDownTester
121mToast = Toast.makeText(AuthenticationBoundKeyTestActivity.this, "", Toast.LENGTH_SHORT); in LockscreenCountDownTester()
126 mToast.cancel(); in onFinish()
144 mToast.setText(String.format("Lockscreen challenge start in %d seconds..", in onTick()
146 mToast.show(); in onTick()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowUntrustedTouchTest.java145 private Toast mToast; field in WindowUntrustedTouchTest
887 mToast = new Toast(mContext); in addMyCustomToastOverlay()
890 mToast.setView(view); in addMyCustomToastOverlay()
891 mToast.setGravity(Gravity.FILL, 0, 0); in addMyCustomToastOverlay()
892 mToast.setDuration(Toast.LENGTH_LONG); in addMyCustomToastOverlay()
893 mToast.show(); in addMyCustomToastOverlay()
900 if (mToast != null) { in removeMyCustomToastOverlay()
901 mToast.cancel(); in removeMyCustomToastOverlay()
902 mToast = null; in removeMyCustomToastOverlay()