Home
last modified time | relevance | path

Searched refs:errorMessage (Results 1 – 25 of 41) sorted by relevance

12

/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyProtectedBroadcastsTest.java60 StringBuilder errorMessage = new StringBuilder(); //Fail on all missing broadcasts in testBroadcasts() local
67 if (errorMessage.length() == 0) { in testBroadcasts()
68 errorMessage.append("--- Expected security exceptions when broadcasting on the " in testBroadcasts()
70 errorMessage.append(System.lineSeparator()); in testBroadcasts()
72 errorMessage.append(action); in testBroadcasts()
73 errorMessage.append(System.lineSeparator()); in testBroadcasts()
79 if (errorMessage.length() > 0) { in testBroadcasts()
80 errorMessage.append("------------------------------------------------------------"); in testBroadcasts()
81 errorMessage.append(System.lineSeparator()); in testBroadcasts()
82 fail(errorMessage.toString()); in testBroadcasts()
/cts/tests/location/common/src/android/location/cts/common/
DSoftAssert.java57 String errorMessage = ""; in assertTrue() local
59 errorMessage = "At time = " + eventTimeInNs + " ns, "; in assertTrue()
61 errorMessage += message + in assertTrue()
64 Log.e(mTag, errorMessage); in assertTrue()
65 mErrorList.add(errorMessage); in assertTrue()
137 String errorMessage = "(Test: FAIL) " + message; in assertOrWarnTrue() local
138 Log.i(mTag, errorMessage); in assertOrWarnTrue()
140 mErrorList.add(errorMessage); in assertOrWarnTrue()
142 failAsWarning(mTag, errorMessage); in assertOrWarnTrue()
/cts/tests/tests/security/src/android/security/cts/CVE_2021_0327/
DOtherUserActivity.java26 String errorMessage = null; field in OtherUserActivity
59errorMessage = errorMessage==null ? e.toString() : errorMessage + ", " + e.toString(); in doInBackground()
84 errorMessage = errorMessage==null ? e.toString() : errorMessage + ", " + e.toString(); in sendCommand()
89 CVE_2021_0327.errorMessage = errorMessage; in sendCommand()
DCVE_2021_0327.java39 public static String errorMessage = null; field in CVE_2021_0327
74 if(errorMessage != null){ in testPocCVE_2021_0327()
75 Log.d(TAG, "errorMessage=" + errorMessage); in testPocCVE_2021_0327()
77 assertTrue(errorMessage==null); in testPocCVE_2021_0327()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPollingCheck.java46 public PollingCheck(long timeout, String errorMessage) { in PollingCheck() argument
48 mErrorMessage = errorMessage; in PollingCheck()
51 public PollingCheck(String errorMessage) { in PollingCheck() argument
52 this(DEFAULT_TIMEOUT, errorMessage); in PollingCheck()
127 public static void waitFor(final PollingCheckCondition condition, String errorMessage) { in waitFor() argument
128 new PollingCheck(errorMessage) { in waitFor() argument
145 public static void waitFor(long timeout, BooleanSupplier condition, String errorMessage) { in waitFor() argument
146 new PollingCheck(timeout, errorMessage) { in waitFor() argument
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DLifecycleVerifier.java60 final String errorMessage = errorDuringTransition(activityClass, "launch"); in assertLaunchSequence() local
68 assertEquals(errorMessage, expectedTransitions, observedTransitions); in assertLaunchSequence()
106 final String errorMessage = errorDuringTransition(launchingActivity, "launch"); in assertLaunchSequence() local
128 assertEquals(errorMessage, expectedTransitions, observedTransitions); in assertLaunchSequence()
142 final String errorMessage = errorDuringTransition(activityClass, "launch and stop"); in assertLaunchAndStopSequence() local
156 assertEquals(errorMessage, expectedTransitions, observedTransitions); in assertLaunchAndStopSequence()
164 final String errorMessage = errorDuringTransition(activityClass, "launch and pause"); in assertLaunchAndPauseSequence() local
168 assertEquals(errorMessage, expectedTransitions, observedTransitions); in assertLaunchAndPauseSequence()
176 final String errorMessage = errorDuringTransition(activityClass, "restart"); in assertRestartSequence() local
180 assertEquals(errorMessage, expectedTransitions, observedTransitions); in assertRestartSequence()
[all …]
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/native_split/src/com/android/cts/isolatedsplitapp/jni/
DJniActivity.java29 String errorMessage = ""; in onCreate() local
33 errorMessage = e.getMessage(); in onCreate()
37 resultIntent.putExtra(Intent.EXTRA_RETURN_RESULT, errorMessage); in onCreate()
/cts/tests/tests/packageinstaller/install_appop_denied/src/android/packageinstaller/install_appop_denied/cts/
DExternalSourcesTestAppOpDenied.kt48 private fun assertUiObject(errorMessage: String, selector: BySelector) { in assertUiObject()
49 assertNotNull(errorMessage, uiDevice.wait(Until.findObject(selector), TIMEOUT)) in assertUiObject()
52 private fun assertInstallBlocked(errorMessage: String) { in assertInstallBlocked()
53 assertUiObject(errorMessage, By.res(ALERT_DIALOG_TITLE_ID)) in assertInstallBlocked()
/cts/tests/tests/packageinstaller/install_appop_default/src/android/packageinstaller/install_appop_default/cts/
DExternalSourcesTestAppOpDefault.kt49 private fun assertUiObject(errorMessage: String, selector: BySelector) { in assertUiObject()
50 assertNotNull(errorMessage, uiDevice.wait(Until.findObject(selector), TIMEOUT)) in assertUiObject()
53 private fun assertInstallBlocked(errorMessage: String) { in assertInstallBlocked()
54 assertUiObject(errorMessage, By.res(ALERT_DIALOG_TITLE_ID)) in assertInstallBlocked()
/cts/tests/tests/systemintents/src/android/systemintents/cts/
DTestManageOverlayPermissionIntents.java108 String errorMessage = in testManageOverlayPermissionIntentWithDataResolvesToSameIntentWithoutData() local
112 assertNull(errorMessage, appSpecificResolveInfo); in testManageOverlayPermissionIntentWithDataResolvesToSameIntentWithoutData()
115 assertNotNull(errorMessage, appSpecificResolveInfo); in testManageOverlayPermissionIntentWithDataResolvesToSameIntentWithoutData()
118 assertEquals(errorMessage, genericActivity.packageName, appActivity.packageName); in testManageOverlayPermissionIntentWithDataResolvesToSameIntentWithoutData()
119 assertEquals(errorMessage, genericActivity.name, appActivity.name); in testManageOverlayPermissionIntentWithDataResolvesToSameIntentWithoutData()
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestIlogb.java90 String errorMessage = CoreMathVerifier.verifyIlogb(args); in verifyResultsIlogbFloatInt() local
91 boolean valid = errorMessage == null; in verifyResultsIlogbFloatInt()
101 message.append(errorMessage); in verifyResultsIlogbFloatInt()
154 String errorMessage = CoreMathVerifier.verifyIlogb(args); in verifyResultsIlogbFloat2Int2() local
155 boolean valid = errorMessage == null; in verifyResultsIlogbFloat2Int2()
165 message.append(errorMessage); in verifyResultsIlogbFloat2Int2()
218 String errorMessage = CoreMathVerifier.verifyIlogb(args); in verifyResultsIlogbFloat3Int3() local
219 boolean valid = errorMessage == null; in verifyResultsIlogbFloat3Int3()
229 message.append(errorMessage); in verifyResultsIlogbFloat3Int3()
282 String errorMessage = CoreMathVerifier.verifyIlogb(args); in verifyResultsIlogbFloat4Int4() local
[all …]
DTestRemquo.java111 String errorMessage = CoreMathVerifier.verifyRemquo(args, target); in verifyResultsRemquoFloatFloatIntFloat() local
112 boolean valid = errorMessage == null; in verifyResultsRemquoFloatFloatIntFloat()
128 message.append(errorMessage); in verifyResultsRemquoFloatFloatIntFloat()
200 String errorMessage = CoreMathVerifier.verifyRemquo(args, target); in verifyResultsRemquoFloat2Float2Int2Float2() local
201 boolean valid = errorMessage == null; in verifyResultsRemquoFloat2Float2Int2Float2()
217 message.append(errorMessage); in verifyResultsRemquoFloat2Float2Int2Float2()
289 String errorMessage = CoreMathVerifier.verifyRemquo(args, target); in verifyResultsRemquoFloat3Float3Int3Float3() local
290 boolean valid = errorMessage == null; in verifyResultsRemquoFloat3Float3Int3Float3()
306 message.append(errorMessage); in verifyResultsRemquoFloat3Float3Int3Float3()
378 String errorMessage = CoreMathVerifier.verifyRemquo(args, target); in verifyResultsRemquoFloat4Float4Int4Float4() local
[all …]
DTestNativeTan.java388 String errorMessage = CoreMathVerifier.verifyNativeTan(args, target); in verifyResultsNativeTanHalfHalf() local
389 boolean valid = errorMessage == null; in verifyResultsNativeTanHalfHalf()
403 message.append(errorMessage); in verifyResultsNativeTanHalfHalf()
459 String errorMessage = CoreMathVerifier.verifyNativeTan(args, target); in verifyResultsNativeTanHalf2Half2() local
460 boolean valid = errorMessage == null; in verifyResultsNativeTanHalf2Half2()
474 message.append(errorMessage); in verifyResultsNativeTanHalf2Half2()
530 String errorMessage = CoreMathVerifier.verifyNativeTan(args, target); in verifyResultsNativeTanHalf3Half3() local
531 boolean valid = errorMessage == null; in verifyResultsNativeTanHalf3Half3()
545 message.append(errorMessage); in verifyResultsNativeTanHalf3Half3()
601 String errorMessage = CoreMathVerifier.verifyNativeTan(args, target); in verifyResultsNativeTanHalf4Half4() local
[all …]
DTestNativeTanpi.java388 String errorMessage = CoreMathVerifier.verifyNativeTanpi(args, target); in verifyResultsNativeTanpiHalfHalf() local
389 boolean valid = errorMessage == null; in verifyResultsNativeTanpiHalfHalf()
403 message.append(errorMessage); in verifyResultsNativeTanpiHalfHalf()
459 String errorMessage = CoreMathVerifier.verifyNativeTanpi(args, target); in verifyResultsNativeTanpiHalf2Half2() local
460 boolean valid = errorMessage == null; in verifyResultsNativeTanpiHalf2Half2()
474 message.append(errorMessage); in verifyResultsNativeTanpiHalf2Half2()
530 String errorMessage = CoreMathVerifier.verifyNativeTanpi(args, target); in verifyResultsNativeTanpiHalf3Half3() local
531 boolean valid = errorMessage == null; in verifyResultsNativeTanpiHalf3Half3()
545 message.append(errorMessage); in verifyResultsNativeTanpiHalf3Half3()
601 String errorMessage = CoreMathVerifier.verifyNativeTanpi(args, target); in verifyResultsNativeTanpiHalf4Half4() local
[all …]
DTestNativeExpm1.java388 String errorMessage = CoreMathVerifier.verifyNativeExpm1(args, target); in verifyResultsNativeExpm1HalfHalf() local
389 boolean valid = errorMessage == null; in verifyResultsNativeExpm1HalfHalf()
403 message.append(errorMessage); in verifyResultsNativeExpm1HalfHalf()
459 String errorMessage = CoreMathVerifier.verifyNativeExpm1(args, target); in verifyResultsNativeExpm1Half2Half2() local
460 boolean valid = errorMessage == null; in verifyResultsNativeExpm1Half2Half2()
474 message.append(errorMessage); in verifyResultsNativeExpm1Half2Half2()
530 String errorMessage = CoreMathVerifier.verifyNativeExpm1(args, target); in verifyResultsNativeExpm1Half3Half3() local
531 boolean valid = errorMessage == null; in verifyResultsNativeExpm1Half3Half3()
545 message.append(errorMessage); in verifyResultsNativeExpm1Half3Half3()
601 String errorMessage = CoreMathVerifier.verifyNativeExpm1(args, target); in verifyResultsNativeExpm1Half4Half4() local
[all …]
DTestLgamma.java395 String errorMessage = CoreMathVerifier.verifyLgamma(args, target); in verifyResultsLgammaFloatIntFloat() local
396 boolean valid = errorMessage == null; in verifyResultsLgammaFloatIntFloat()
409 message.append(errorMessage); in verifyResultsLgammaFloatIntFloat()
473 String errorMessage = CoreMathVerifier.verifyLgamma(args, target); in verifyResultsLgammaFloat2Int2Float2() local
474 boolean valid = errorMessage == null; in verifyResultsLgammaFloat2Int2Float2()
487 message.append(errorMessage); in verifyResultsLgammaFloat2Int2Float2()
551 String errorMessage = CoreMathVerifier.verifyLgamma(args, target); in verifyResultsLgammaFloat3Int3Float3() local
552 boolean valid = errorMessage == null; in verifyResultsLgammaFloat3Int3Float3()
565 message.append(errorMessage); in verifyResultsLgammaFloat3Int3Float3()
629 String errorMessage = CoreMathVerifier.verifyLgamma(args, target); in verifyResultsLgammaFloat4Int4Float4() local
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPrintingPolicyTest.java32 final String errorMessage = activity.getErrorMessage(); in testPrintingPolicy() local
33 assertNull(errorMessage); in testPrintingPolicy()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DExternalSourcesTestAppOpAllowed.kt49 private fun assertUiObject(errorMessage: String, selector: BySelector) { in assertUiObject()
50 assertNotNull(errorMessage, uiDevice.wait(Until.findObject(selector), TIMEOUT)) in assertUiObject()
53 private fun assertInstallAllowed(errorMessage: String) { in assertInstallAllowed()
54 assertUiObject(errorMessage, By.res(PACKAGE_INSTALLER_PACKAGE_NAME, in assertInstallAllowed()
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/support/
DTestNgRunner.java136 StringBuilder errorMessage = new StringBuilder("========== Multiple Failures =========="); in extractException() local
138 errorMessage.append("\n\n=== "). append(failureEntry.getKey()).append(" ===\n"); in extractException()
140 errorMessage in extractException()
147 errorMessage.append("\n at ").append(e); in extractException()
150 errorMessage.append("\n=======================================\n\n"); in extractException()
151 return new AssertionError(errorMessage.toString()); in extractException()
/cts/hostsidetests/install/src/android/cts/install/host/
DShimApexRule.java75 final String errorMessage = in uninstallShimApexIfNecessary() local
77 if (errorMessage != null) { in uninstallShimApexIfNecessary()
78 Log.e(TAG, "Failed to uninstall " + SHIM_APEX_PACKAGE_NAME + " : " + errorMessage); in uninstallShimApexIfNecessary()
/cts/tests/signature/lib/common/src/android/signature/cts/
DExpectedFailuresFilter.java51 public void notifyFailure(FailureType type, String name, String errorMessage) { in notifyFailure() argument
57 delegate.notifyFailure(type, name, errorMessage); in notifyFailure()
DResultObserver.java29 void notifyFailure(FailureType type, String name, String errorMessage); in notifyFailure() argument
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DTestResultObserver.java36 public void notifyFailure(FailureType type, String name, String errorMessage) { in notifyFailure() argument
45 mErrorString.append(errorMessage); in notifyFailure()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0706/src/android/security/cts/CVE_2021_0706/
DDeviceTest.java44 String errorMessage = "PocActivity from package android.security.cts.CVE_2021_0706" in testDisablePlugin() local
59 assertNotNull(errorMessage, intent); in testDisablePlugin()
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/
DNoPermissionTests.kt152 private fun assertInstallSucceeded(errorMessage: String) { in assertInstallSucceeded()
154 assertTrue(errorMessage, uiDevice.wait(Until.hasObject(selector), WAIT_FOR_UI_TIMEOUT)) in assertInstallSucceeded()
158 private fun assertInstallFailed(errorMessage: String) { in assertInstallFailed()
160 assertFalse(errorMessage, uiDevice.wait(Until.hasObject(selector), WAIT_FOR_UI_TIMEOUT)) in assertInstallFailed()

12