Home
last modified time | relevance | path

Searched refs:failure (Results 1 – 25 of 48) sorted by relevance

12

/cts/libs/input/src/com/android/cts/input/
DFailOnTestThreadRule.kt76 for (failure in failures) { in failed() method
77 Log.e(TAG, "Additional failure: $failure") in failed()
82 failures.forEachIndexed { index, failure -> in finished() method
85 val failure = failures.peek() in finished() constant
86 if (failure != null) { in finished()
87 throw failure in finished()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DBedsteadRunListener.java96 public void testFailure(Failure failure) throws Exception { in testFailure() argument
97 Log.d(LOG_TAG, "Test failed: " + failure); in testFailure()
100 mTestNameToIndex.get(getTestName(failure.getDescription()))); in testFailure()
103 result.mMessage = failure.getMessage(); in testFailure()
104 result.mStackTrace = failure.getTrace(); in testFailure()
109 public void testAssumptionFailure(Failure failure) { in testAssumptionFailure() argument
110 Log.d(LOG_TAG, "Test assumption failed: " + failure); in testAssumptionFailure()
113 mTestNameToIndex.get(getTestName(failure.getDescription()))); in testAssumptionFailure()
116 result.mMessage = failure.getMessage(); in testAssumptionFailure()
/cts/tools/utils/
Drerun.py37 for failure in parseSuite(child, parentName + child.getAttribute("name")):
38 failedCases.append(failure)
77 for failure in failedCases:
78 print " " + failure
79 for failure in failedCases:
80 [className, methodName] = failure.split('#')
/cts/tests/credentials/src/android/credentials/cts/unittests/selection/
DResultHelperTest.java60 final FailureResult failure = new FailureResult(FailureResult.ERROR_CODE_UI_FAILURE, "msg"); in sendUiFailure() local
64 FailureResult.sendFailureResult(resultReceiver, failure); in sendUiFailure()
75 final FailureResult failure = new FailureResult(FailureResult.ERROR_CODE_UI_FAILURE, null); in sendFailure_nullMessage() local
79 FailureResult.sendFailureResult(resultReceiver, failure); in sendFailure_nullMessage()
90 final FailureResult failure = new FailureResult( in sendUserCancelFailure() local
95 FailureResult.sendFailureResult(resultReceiver, failure); in sendUserCancelFailure()
106 final FailureResult failure = new FailureResult( in sendCancelAndLaunchSettingsFailure() local
111 FailureResult.sendFailureResult(resultReceiver, failure); in sendCancelAndLaunchSettingsFailure()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsTestActivity.java198 public void testFailure(Failure failure) throws Exception { in testFailure() argument
201 .logTestFail(failure.getDescription().getMethodName(), failure.toString()); in testFailure()
204 public void testAssumptionFailure(Failure failure) { in testAssumptionFailure() argument
207 .logTestFail(failure.getDescription().getMethodName(), failure.toString()); in testAssumptionFailure()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DBaseInstallMultiple.java230 void runExpectingFailure(String failure) throws DeviceNotAvailableException { in runExpectingFailure() argument
231 run(false, failure); in runExpectingFailure()
234 void run(boolean expectingSuccess, String failure) throws DeviceNotAvailableException { in run() argument
236 runIncremental(expectingSuccess, failure); in run()
238 runNonIncremental(expectingSuccess, failure); in run()
329 private void runNonIncremental(boolean expectingSuccess, String failure) in runNonIncremental() argument
332 if (failure == null) { in runNonIncremental()
339 TestCase.assertTrue(result, result.contains(failure)); in runNonIncremental()
383 private void runIncremental(boolean expectingSuccess, String failure) in runIncremental() argument
386 if (failure == null) { in runIncremental()
[all …]
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DBaseInstallMultiple.java119 void runExpectingFailure(String failure) throws DeviceNotAvailableException { in runExpectingFailure() argument
120 run(false, failure); in runExpectingFailure()
123 private void run(boolean expectingSuccess, String failure) throws DeviceNotAvailableException { in run() argument
177 if (failure == null) { in run()
184 TestCase.assertTrue(result, result.contains(failure)); in run()
/cts/hostsidetests/classloaders/splits/src/android/classloaders/cts/
DBaseInstallMultiple.java119 void runExpectingFailure(String failure) throws DeviceNotAvailableException { in runExpectingFailure() argument
120 run(false, failure); in runExpectingFailure()
123 private void run(boolean expectingSuccess, String failure) throws DeviceNotAvailableException { in run() argument
177 if (failure == null) { in run()
184 TestCase.assertTrue(result, result.contains(failure)); in run()
/cts/tests/tests/os/src/android/os/cts/
DMessengerTest.java200 failure(new RuntimeException("Message.arg1 is not " + MSG_ARG1 + ", it's " in handleMessage()
205 failure(new RuntimeException("Message.arg2 is not " + MSG_ARG2 + ", it's " in handleMessage()
210 failure(new RuntimeException("Message.replyTo is not me, it's " + msg.replyTo)); in handleMessage()
250 public void failure(RuntimeException failure) { in failure() argument
253 mFailure = failure; in failure()
/cts/tests/signature/api-check/scripts/
DREADME.md2 the error reported to the expected failure format.
12 Then the expected failure would look something like this:
19 This will print the expected failure format It will look for these list of
/cts/tests/tests/jni/libjnitest/
Dmacroized_tests.c80 failure("expected " printfType " but got " printfType, \
94 return failure("could not find StaticFromNative"); in initializeVariables()
101 return failure("could not find InstanceFromNative"); in initializeVariables()
109 return failure("could not find InstanceFromNative.theOne"); in initializeVariables()
116 return failure("could not construct string"); in initializeVariables()
141 *errorMsg = failure("could not find static test method %s:%s", in findStaticMethod()
156 *errorMsg = failure("could not find instance test method %s:%s", in findInstanceMethod()
246 return failure("shouldn't happen"); in help_CallBooleanMethod()
351 return failure("shouldn't happen"); in help_CallByteMethod()
456 return failure("shouldn't happen"); in help_CallShortMethod()
[all …]
Dhelper.h50 char *failure(const char *format, ...) __attribute__((format(printf, 1, 2)));
Dhelper.c28 char *failure(const char *format, ...) { in failure() function
/cts/tests/tests/gameservice/src/android/service/games/testing/
DActivityResult.java40 Failure failure = in.readParcelable(Failure.class.getClassLoader(), Failure.class);
41 return new ActivityResult(gameSessionPackageName, success, failure);
61 @Nullable Failure failure) { in ActivityResult() argument
64 mFailure = failure; in ActivityResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/performance/
DCameraPerformanceActivity.java153 public void testFailure(Failure failure) { in testFailure() argument
159 setTestResult(failure.getDescription().getMethodName(), in testFailure()
164 String failureMessage = failure.getMessage(); in testFailure()
165 String failureTrace = failure.getTrace(); in testFailure()
181 public void testAssumptionFailure(Failure failure) { in testAssumptionFailure() argument
/cts/tests/tests/uirendering/src/android/uirendering/cts/runner/
DTestArtifactCollector.java141 public void testFailure(Failure failure) throws Exception { in testFailure() argument
143 listener.apply(failure); in testFailure()
147 Description failingTest = failure.getDescription(); in testFailure()
DUiRenderingRunner.java77 TestArtifactCollector.addFailureListener(failure -> { in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DTestStepBase.java105 protected void appendFailureDetails(String failure) { in appendFailureDetails() argument
106 String details = String.format("Failure: %s", failure); in appendFailureDetails()
/cts/tests/tests/security/src/android/security/cts/
DServicePermissionsTest.java159 for (String failure: failures) { in testDumpProtected()
160 msg.append(failure).append('\n'); in testDumpProtected()
/cts/tests/tests/security/testdata/src/android/security/cts/packageinstallertestapp/
DBackgroundReceiver.java113 private static void sendError(RemoteCallback remoteCallback, Throwable failure) { in sendError() argument
115 result.putSerializable(KEY_ERROR, failure); in sendError()
/cts/tests/tests/accounts/multiuser/
DAndroid.bp37 // TODO(274891107): Re-enable once failure is addressed
/cts/tests/signature/tests/src/android/signature/cts/tests/
DApiPresenceCheckerTest.java211 Failure failure = failures.get(0); in checkFailures() local
212 if (failure.type != expectedType) { in checkFailures()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DAbstractApiTest.java147 for (String failure: expectedFailures) { in initExpectedFailures()
148 Log.d(tag, "Expected failure: \"" + failure + "\""); in initExpectedFailures()
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsGroupCallSessionTest.java36 MbmsGroupCallSession failure = MbmsGroupCallSession.create( in testDuplicateSession() local
DMbmsStreamingSessionTest.java37 MbmsStreamingSession failure = MbmsStreamingSession.create( in testDuplicateSession() local

12