Home
last modified time | relevance | path

Searched refs:failures (Results 1 – 25 of 31) 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/tests/tests/security/src/android/security/cts/
DServicePermissionsTest.java82 final ArrayList<String> failures = new ArrayList<>(); in testDumpProtected() local
115 failures.add("Service " + service + " threw exception: " + e); in testDumpProtected()
142 failures.add("dump() for " + service + " produced several lines of output; this " in testDumpProtected()
152 failures.add("dump() for " + service + " produced a single line which didn't " in testDumpProtected()
159 if (!failures.isEmpty()) { in testDumpProtected()
160 StringBuilder msg = new StringBuilder(failures.size() + " services failed:\n"); in testDumpProtected()
161 for (String failure: failures) { in testDumpProtected()
DAudioSecurityTest.java61 int failures = 0; in testAllEffects() local
81 ++failures; in testAllEffects()
85 ++failures; in testAllEffects()
88 assertEquals("found " + testName + " " + failures + " failures", in testAllEffects()
89 0 /* expected */, failures); in testAllEffects()
/cts/tests/tests/net/src/android/net/cts/
DDnsTest.java194 int failures = 0; in skiptestDnsPerf() local
197 failures = 0; in skiptestDnsPerf()
206 failures++; in skiptestDnsPerf()
210 failures++; in skiptestDnsPerf()
220 failures + " failures\n"); in skiptestDnsPerf()
236 failures = 0; in skiptestDnsPerf()
244 failures++; in skiptestDnsPerf()
252 failures++; in skiptestDnsPerf()
263 failures + " failures\n"); in skiptestDnsPerf()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DTestResultObserver.java28 int failures = 0; field in TestResultObserver
35 failures++; in notifyFailure()
36 if (failures <= 100) { in notifyFailure()
43 } else if (failures == 101) { in notifyFailure()
/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/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/core/runner/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/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/tests/tests/permission/src/android/permission/cts/
DServicePermissionTest.java60 final List<String> failures = new ArrayList<>(); in testServicePermissions() local
66 failures.add(perm + " held by " + pi.packageName); in testServicePermissions()
70 if (!failures.isEmpty()) { in testServicePermissions()
72 + failures.toString()); in testServicePermissions()
/cts/apps/CameraITS/tests/scene2/
Dtest_format_combos.py43 failures = []
109 failures.append((n,r,f,b))
114 num_fail = len(failures)
120 for (n,r,f,b) in failures:
/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/apps/CtsVerifier/src/com/android/cts/verifier/location/base/
DGnssCtsTestResult.java90 public Enumeration<TestFailure> failures() { in failures() method in GnssCtsTestResult
91 return mWrappedTestResult.failures(); in failures()
DGnssCtsTestActivity.java128 List<Failure> failures = result.getFailures(); in executeTests() local
129 for (Failure f: failures) { in executeTests()
/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/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DCapturedActivity.java66 public final SparseArray<Bitmap> failures = new SparseArray<>(); field in CapturedActivity.TestResult
326 saveFailureCaptures(result.failures, name); in verifyTest()
DSurfacePixelValidator.java152 testResult.failures.put(mFirstFailures.keyAt(i), mFirstFailures.valueAt(i)); in finish()
DSurfacePixelValidator2.java138 testResult.failures.put(mFirstFailures.keyAt(i), mFirstFailures.valueAt(i)); in finish()

12