Home
last modified time | relevance | path

Searched refs:errorMsg (Results 1 – 20 of 20) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/rro/OverlayTarget/src/com/android/cts/overlay/target/
DOverlayTargetTest.java148 final String errorMsg = "Fail to parse the state of overlay package " + overlayPackage; in getStateForOverlay() local
152 assertWithMessage(errorMsg).that(startIndex).isAtLeast(0); in getStateForOverlay()
155 assertWithMessage(errorMsg).that(endIndex).isGreaterThan(startIndex); in getStateForOverlay()
158 assertWithMessage(errorMsg).that(startIndex).isLessThan(stateIndex); in getStateForOverlay()
159 assertWithMessage(errorMsg).that(stateIndex).isLessThan(endIndex); in getStateForOverlay()
162 assertWithMessage(errorMsg).that(stateIndex).isLessThan(colonIndex); in getStateForOverlay()
163 assertWithMessage(errorMsg).that(colonIndex).isLessThan(endIndex); in getStateForOverlay()
166 assertWithMessage(errorMsg).that(colonIndex).isLessThan(endLineIndex); in getStateForOverlay()
167 assertWithMessage(errorMsg).that(endLineIndex).isLessThan(endIndex); in getStateForOverlay()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewFadingEdgeTest.java159 assertEquals(data.errorMsg, in testFadingEdge()
161 assertEquals(data.errorMsg, in testFadingEdge()
201 final String errorMsg; field in TextViewFadingEdgeTest.TestCase
210 TestCase(String errorMsg, String text, boolean horizontalFadingEnabled, int gravity, in TestCase() argument
213 this.errorMsg = errorMsg; in TestCase()
223 TestCase(String errorMsg, String text, boolean horizontalFadingEnabled, int gravity, in TestCase() argument
225 this(errorMsg, text, horizontalFadingEnabled, gravity, textAlignment, false, in TestCase()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockImeSessionRule.java65 final String errorMsg = MockImeSession.getUnavailabilityReason(mContext); in apply() field in MockImeSessionRule
66 if (errorMsg != null) { in apply()
67 Log.w(TAG, "Mock IME not available: " + errorMsg); in apply() argument
/cts/tests/tests/selinux/common/src/android/security/
DSELinuxTargetSdkTestBase.java138 protected void appDomainContext(String contextRegex, String errorMsg) throws IOException { in appDomainContext() argument
142 String msg = errorMsg + context; in appDomainContext()
150 protected void appDataContext(String contextRegex, String errorMsg) throws Exception { in appDataContext() argument
155 String msg = errorMsg + context; in appDataContext()
/cts/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/
DBaseNetworkService.java59 static final void writeResult(Parcel out, String errorMsg, Throwable where) { in writeResult() argument
60 if (errorMsg != null) { in writeResult()
62 out.writeString(errorMsg); in writeResult()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDefaultFocusHighlightTest.java218 String errorMsg = "[" + drawableName + "] Testing no ColorStateList failed."; in testColorStateListHandledDrawable() local
220 assertFalse(errorMsg, drawable.hasFocusStateSpecified()); in testColorStateListHandledDrawable()
226 errorMsg = "[" + drawableName + "] Testing ColorStateList No." + i + " failed."; in testColorStateListHandledDrawable()
230 assertTrue(errorMsg, drawable.hasFocusStateSpecified()); in testColorStateListHandledDrawable()
232 assertFalse(errorMsg, drawable.hasFocusStateSpecified()); in testColorStateListHandledDrawable()
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DBaseBroadcastTest.java190 final String errorMsg = "Expected: " + toString(expectedBroadcasts) in verifyReceivedBroadcasts() local
193 assertWithMessage(errorMsg).that(actualBroadcasts.size()) in verifyReceivedBroadcasts()
199 assertWithMessage(errorMsg).that(compareIntents(expected, actual)) in verifyReceivedBroadcasts()
206 assertWithMessage(errorMsg).that(actualBroadcasts.size()) in verifyReceivedBroadcasts()
222 assertWithMessage(errorMsg).that(countMatches).isEqualTo(expectedBroadcasts.size()); in verifyReceivedBroadcasts()
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DVideoEncoderTest.java128 private final AtomicReference<String> errorMsg = new AtomicReference(null); field in VideoEncoderTest.VideoStorage
182 errorMsg.set(diagnostic + e); in play()
193 errorMsg.set("exception in onInputBufferAvailable( " in play()
204 errorMsg.set("received codec error during decode" + e); in play()
224 assertNull(errorMsg.get(), errorMsg.get()); in play()
541 private final AtomicReference<String> errorMsg = new AtomicReference(null); field in VideoEncoderTest.VideoProcessor
564 while (!mCompleted && errorMsg.get() == null) { in processLoop()
615 assertNull(errorMsg.get(), errorMsg.get()); in processLoop()
711 errorMsg.set("received error on " + codecName + ": " + e); in onError()
766 private final AtomicReference<String> errorMsg = new AtomicReference(null); field in VideoEncoderTest.SurfaceVideoProcessor
[all …]
/cts/tests/tests/content/src/android/content/cts/
DActivityRequireContentUriPermissionFromCallerTest.java399 String errorMsg = getErrorMessage(modeFlags, assertThrows, attributeActivity.mIsOr); in internalTest_startActivity() local
400 assertEquals(errorMsg, securityExceptionCaught, assertThrows); in internalTest_startActivity()
536 String errorMsg = intent.getStringExtra(EXTRA_ERROR_MSG); in onStart() local
537 if (errorMsg == null) { in onStart()
540 errorMsg = getErrorMessage(modeFlags, assertThrows, testedAttributeActivity.mIsOr); in onStart()
542 assertEquals(errorMsg, securityExceptionCaught, assertThrows); in onStart()
/cts/tests/tests/accounts/src/android/accounts/cts/
DMockAccountAuthenticator.java490 String errorMsg = "Default Error Message"; in fillResultWithError() local
493 errorMsg = options.getString(AccountManager.KEY_ERROR_MESSAGE); in fillResultWithError()
496 result.putString(AccountManager.KEY_ERROR_MESSAGE, errorMsg); in fillResultWithError()
518 String errorMsg = "Default Error Message"; in isCredentialsUpdateSuggested() local
520 result.putString(AccountManager.KEY_ERROR_MESSAGE, errorMsg); in isCredentialsUpdateSuggested()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechServiceTest.java77 final SettableFuture<String> errorMsg = SettableFuture.create(); in testNullEngine() local
94 errorMsg.set(errorInfo); in testNullEngine()
100 assertEquals("Engine cannot be null", errorMsg.get(1, TimeUnit.SECONDS)); in testNullEngine()
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DTestAccountAuthenticator.java397 String errorMsg = "Default Error Message"; in fillDefaultError() local
400 errorMsg = options.getString(AccountManager.KEY_ERROR_MESSAGE); in fillDefaultError()
403 result.putString(AccountManager.KEY_ERROR_MESSAGE, errorMsg); in fillDefaultError()
/cts/tests/tests/jni/libjnitest/
Dmacroized_tests.c135 static jmethodID findStaticMethod(JNIEnv *env, char **errorMsg, in findStaticMethod() argument
141 *errorMsg = failure("could not find static test method %s:%s", in findStaticMethod()
151 static jmethodID findInstanceMethod(JNIEnv *env, char **errorMsg, in findInstanceMethod() argument
156 *errorMsg = failure("could not find instance test method %s:%s", in findInstanceMethod()
168 static jmethodID findAppropriateMethod(JNIEnv *env, char **errorMsg, in findAppropriateMethod() argument
172 return findStaticMethod(env, errorMsg, name, sig); in findAppropriateMethod()
174 return findInstanceMethod(env, errorMsg, name, sig); in findAppropriateMethod()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/
DMockJobService.java464 ArrayList<JobWorkItem> receivedWork, String errorMsg) { in notifyExecution() argument
470 mExecutedErrorMessage = errorMsg; in notifyExecution()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DCameraMuteToggleActivity.java169 private void showCameraErrorText(String errorMsg) { in showCameraErrorText() argument
172 instructionsText.append(errorMsg); in showCameraErrorText()
/cts/tests/JobScheduler/src/android/jobscheduler/
DMockJobService.java563 ArrayList<JobWorkItem> receivedWork, String errorMsg) { in notifyExecution() argument
569 mExecutedErrorMessage = errorMsg; in notifyExecution()
/cts/tests/tests/hibernation/src/android/hibernation/cts/
DAutoRevokeTest.kt833 inline fun <T> T?.assertNotNull(errorMsg: () -> String): T { in assertNotNull()
834 return if (this == null) throw AssertionError(errorMsg()) else this in assertNotNull()
/cts/tests/tests/app.usage/BroadcastResponseStats/src/android/app/usage/brs/cts/
DBroadcastResponseStatsTest.java2100 final String errorMsg = String.format("\nEXPECTED(%d)=%s\nACTUAL(%d)=%s\n", in assertResponseStats() local
2103 assertTrue(errorMsg, compareStats(expectedStats, actualStats)); in assertResponseStats()
2120 final String errorMsg = String.format("\nEXPECTED(%d)=%s\nACTUAL(%d)=%s\n", in assertResponseStats() local
2123 assertTrue(errorMsg, compareStats(expectedStats, actualStats)); in assertResponseStats()
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/
DWallpaperManagerTest.java1540 String errorMsg) { in assertWallpaperIsShown() argument
1546 assertWithMessage(errorMsg + "\n" + wallpaperWindowsHelper.dumpWindows()) in assertWallpaperIsShown()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java5463 String errorMsg = expectedResult ? " key should be present " in checkKeysAreSupported() local
5466 assertTrue(currKey + errorMsg in checkKeysAreSupported()