Searched refs:mToast (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/widget29/src/android/widget/cts29/ |
D | ToastTest.java | 76 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/ |
D | ToastTest.java | 110 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/ |
D | UntrustedTouchTestService.java | 52 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/ |
D | DisplayCutoutTestActivity.java | 44 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/ |
D | AuthenticationBoundKeyTestActivity.java | 116 private Toast mToast; field in AuthenticationBoundKeyTestActivity.LockscreenCountDownTester 121 … mToast = 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/ |
D | WindowUntrustedTouchTest.java | 153 private Toast mToast; field in WindowUntrustedTouchTest 922 mToast = new Toast(mContext); in addMyCustomToastOverlay() 925 mToast.setView(view); in addMyCustomToastOverlay() 926 mToast.setGravity(Gravity.FILL, 0, 0); in addMyCustomToastOverlay() 927 mToast.setDuration(Toast.LENGTH_LONG); in addMyCustomToastOverlay() 928 mToast.show(); in addMyCustomToastOverlay() 935 if (mToast != null) { in removeMyCustomToastOverlay() 936 mToast.cancel(); in removeMyCustomToastOverlay() 937 mToast = null; in removeMyCustomToastOverlay()
|