Home
last modified time | relevance | path

Searched refs:failures (Results 1 – 25 of 37) sorted by relevance

12

/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DHoarder.java61 int failures = 0; in doBlocks() local
67 if (failures == 0) { in doBlocks()
80 failures = Math.min(failures + 1, 32); in doBlocks()
81 if (oneshot && failures >= 4) { in doBlocks()
101 int failures = 0; in doInodes() local
104 final int size = (failures == 0) ? 512 : 16; in doInodes()
115 failures = Math.min(failures + 1, 32); in doInodes()
116 if (oneshot && failures >= 4) { in doInodes()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DTimestampClockSourceVerification.java101 List<IndexedEvent> failures; in verify() local
104 failures = verifyTimestampClockSource(errorMessageBuilder); in verify()
105 failuresCount = failures.size(); in verify()
109 getIndexArray(failures)); in verify()
110 success = failures.isEmpty(); in verify()
145 ArrayList<IndexedEvent> failures = new ArrayList<IndexedEvent>(); in verifyTimestampClockSource() local
148 if (failures.size() < TRUNCATE_MESSAGE_LENGTH) { in verifyTimestampClockSource()
162 if (failures.size() < TRUNCATE_MESSAGE_LENGTH) { in verifyTimestampClockSource()
171 failures.add(new IndexedEvent(i, event)); in verifyTimestampClockSource()
174 if (failures.size() >= TRUNCATE_MESSAGE_LENGTH) { in verifyTimestampClockSource()
[all …]
DEventTimestampSynchronizationVerification.java102 List<IndexedEvent> failures = verifyTimestampSynchronization(errorMessageBuilder); in verify() local
103 int failuresCount = failures.size(); in verify()
107 getIndexArray(failures)); in verify()
109 boolean success = failures.isEmpty(); in verify()
143 ArrayList<IndexedEvent> failures = new ArrayList<IndexedEvent>(); in verifyTimestampSynchronization() local
154 if (failures.size() < TRUNCATE_MESSAGE_LENGTH) { in verifyTimestampSynchronization()
163 failures.add(new IndexedEvent(i, event)); in verifyTimestampSynchronization()
166 if (failures.size() >= TRUNCATE_MESSAGE_LENGTH) { in verifyTimestampSynchronization()
169 return failures; in verifyTimestampSynchronization()
/cts/libs/input/src/com/android/cts/input/
DFailOnTestThreadRule.kt56 private val failures: BlockingQueue<Exception> = LinkedBlockingQueue() constant in com.android.cts.input.FailOnTestThreadRule
72 failures.put(e) in addFailure()
76 for (failure in failures) { in failed()
82 failures.forEachIndexed { index, failure -> in finished()
85 val failure = failures.peek() in finished()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DTestResultObserver.java33 private int failures = 0; field in TestResultObserver
41 failures++; in notifyFailure()
42 if (failures <= 100) { in notifyFailure()
53 } else if (failures == 101) { in notifyFailure()
67 mErrorString.append(String.valueOf(failures)).append("failures"); in finalizeErrorString()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DApiPresenceCheckerTest.java170 private final List<Failure> failures; field in ApiPresenceCheckerTest.FailureGathererObserver
173 failures = new ArrayList<>(); in FailureGathererObserver()
179 failures.add(new Failure(type, name, errorMessage, throwable)); in notifyFailure()
184 checkFailures(failures); in close()
187 public abstract void checkFailures(List<Failure> failures); in checkFailures() argument
193 public void checkFailures(List<Failure> failures) { in checkFailures() argument
194 Assert.assertEquals("Unexpected test failure", Collections.emptyList(), failures); in checkFailures()
207 public void checkFailures(List<Failure> failures) { in checkFailures() argument
208 int count = failures.size(); in checkFailures()
211 Failure failure = failures.get(0); in checkFailures()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DServicePermissionsTest.java80 final ArrayList<String> failures = new ArrayList<>(); in testDumpProtected() local
113 failures.add("Service " + service + " threw exception: " + e); in testDumpProtected()
140 failures.add("dump() for " + service + " produced several lines of output; this " in testDumpProtected()
150 failures.add("dump() for " + service + " produced a single line which didn't " in testDumpProtected()
157 if (!failures.isEmpty()) { in testDumpProtected()
158 StringBuilder msg = new StringBuilder(failures.size() + " services failed:\n"); in testDumpProtected()
159 for (String failure: failures) { in testDumpProtected()
DAudioSecurityTest.java66 int failures = 0; in testAllEffects() local
88 ++failures; in testAllEffects()
92 ++failures; in testAllEffects()
96 assertEquals("found " + testName + " " + failures + " failures", in testAllEffects()
97 0 /* expected */, failures); in testAllEffects()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DPerPixelBitmapVerifier.java56 int failures = 0; in verify() local
62 if (failures < 50) { in verify()
67 failures++; in verify()
75 boolean success = failures <= toleratedFailures; in verify()
76 Log.d(TAG, failures + " failures observed out of " in verify()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/bitmapverifiers/
DPerPixelBitmapVerifier.java56 int failures = 0; in verify() local
62 if (failures < 50) { in verify()
67 failures++; in verify()
75 boolean success = failures <= toleratedFailures; in verify()
76 Log.d(TAG, failures + " failures observed out of " in verify()
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/support/
DSingleTestNgTestExecutor.java116 private final Map<String,Throwable> failures; field in SingleTestNgTestExecutor.Result
119 Result(boolean hasFailure, Map<String, Throwable> failures) { in Result() argument
121 this.failures = Collections.unmodifiableMap(new LinkedHashMap<>(failures)); in Result()
129 return failures; in getFailures()
DTestNgRunner.java128 private Throwable extractException(Map<String, Throwable> failures) { in extractException() argument
129 if (failures.isEmpty()) { in extractException()
132 if (failures.size() == 1) { in extractException()
133 return failures.values().iterator().next(); in extractException()
137 for (Map.Entry<String, Throwable> failureEntry : failures.entrySet()) { in extractException()
DSingleTestNGTestRunListener.java36 private Map<String, Throwable> failures = new LinkedHashMap<>(); field in SingleTestNGTestRunListener
54 return Collections.unmodifiableMap(failures); in getFailures()
84 failures.put(id, throwable); in onTestFailure()
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DDevicePolicySafetyCheckerIntegrationTester.java92 List<String> failures = new ArrayList<>(); in testAllOperations() local
94 safeOperationTest(dpm, admin, failures, operation, /* overloaded= */ false); in testAllOperations()
98 safeOperationTest(dpm, admin, failures, operation, /* overloaded= */ true); in testAllOperations()
102 safeOperationTest(dpm, admin, failures, operation, /* overloaded= */ false); in testAllOperations()
106 safeOperationTest(dpm, admin, failures, operation, /* overloaded= */ true); in testAllOperations()
109 if (!failures.isEmpty()) { in testAllOperations()
110 fail(failures.size() + " operations failed: " + failures); in testAllOperations()
226 List<String> failures, int operation, boolean overloaded) { in safeOperationTest() argument
235 failures.add(name); in safeOperationTest()
240 failures.add(name + "(" + e + ")"); in safeOperationTest()
/cts/tests/tests/keystore/
DOWNERS3 # Bugs for failures on Pixel devices should be assigned to frankwoo@, cc tommychiu@
4 # Bugs for failures on Cuttlefish should be assigned to cloud-android-devs@
5 # Bugs for failures that affect many/all devices should be assigned to android-hardware-security@
/cts/tests/signature/api-check/scripts/
DREADME.md1 Transform expected failures is a tool to automate the process of transforming
17 "`cat /path/to/failures.txt`"
22 Optionally you can specify the list of expected failures types annotation
25 /path/to/failures.txt`" "missing_method|missing_annotation"
/cts/apps/CameraITS/tests/scene2_a/
Dtest_format_combos.py56 failures = []
128 failures.append((n, r, f, b))
135 num_fail = len(failures)
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaFormatTest.java708 ArrayList<String> failures = new ArrayList<>(); in testKeyConsistency() local
716 failures.add("Key field " + key + " must be upper case"); in testKeyConsistency()
725 failures.add("Key field " + key + " should represent value " + value in testKeyConsistency()
731 logFailures("testKeyConsistency", failures); in testKeyConsistency()
778 ArrayList<String> failures = new ArrayList<>(); in testMimeTypeConsistency() local
787 failures.add("mimeType field " + mimeType + " must be upper case"); in testMimeTypeConsistency()
797 failures.add("Mime type " + mimeType in testMimeTypeConsistency()
804 logFailures("testMimeTypeConsistency", failures); in testMimeTypeConsistency()
817 private static void logFailures(@NonNull String logName, @NonNull List<String> failures) { in logFailures() argument
818 if (failures.size() > 0) { in logFailures()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/bluetooth/
DOWNERS2 # Test failures should be assigned to bluetooth-fireteam@google.com
/cts/libs/vogar-expect/src/vogar/expect/
DExpectationStore.java64 private final Map<String, Expectation> failures = new LinkedHashMap<String, Expectation>(); field in ExpectationStore
92 for (Map.Entry<String, Expectation> entry : failures.entrySet()) { in get()
242 Map<String, Expectation> map = isFailure ? failures : outcomes; in readExpectation()
273 return failures; in getAllFailures()
/cts/tests/jdwp/runner/host-side/resources/expectations/
Djdwp-known-failures.txt2 * This file contains the known failures for JDWP.
6 description: "CTS JDWP known failures",
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsTestResult.java92 public Enumeration<TestFailure> failures() { in failures() method in SensorCtsTestResult
93 return mWrappedTestResult.failures(); in failures()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0213/
Dpoc.cpp198 std::vector<std::unique_ptr<C2SettingResult>> failures; in configPixelFormat() local
202 c2_status_t status = mComponent->config(configParam, C2_DONT_BLOCK, &failures); in configPixelFormat()
203 if (status == C2_OK && failures.size() == 0u) { in configPixelFormat()
261 std::vector<std::unique_ptr<C2SettingResult>> failures; in workDone() local
276 component->config(configParam, C2_DONT_BLOCK, &failures); in workDone()
277 assert(failures.size() == 0u); in workDone()
/cts/tools/cts-tradefed/
DOWNERS13 per-file cts-known-failures.xml = rossyeh@google.com, mariay@google.com, robinjacob@google.com
/cts/tests/signature/api-check/hidden-api-killswitch-sdklist/
DAndroid.bp30 // limitations in the build that causes build failures due to duplicate copy

12