Home
last modified time | relevance | path

Searched refs:results (Results 1 – 25 of 44) sorted by relevance

12

/cts/common/util/src/com/android/compatibility/common/util/
DCaseResult.java74 List<ITestResult> results = new ArrayList<>(); in getResults() local
77 results.add(result); in getResults()
80 return results; in getResults()
88 ArrayList<ITestResult> results = new ArrayList<>(mResults.values()); in getResults() local
89 Collections.sort(results); in getResults()
90 return results; in getResults()
DModuleResult.java125 ArrayList<ICaseResult> results = new ArrayList<>(mResults.values()); in getResults() local
126 Collections.sort(results); in getResults()
127 return results; in getResults()
DResultHandler.java101 List<IInvocationResult> results = new ArrayList<>(); in getResults() local
105 return results; in getResults()
197 results.add(invocation); in getResults()
207 Collections.sort(results, new Comparator<IInvocationResult>() { in getResults()
212 return results; in getResults()
375 List<IInvocationResult> results = getResults(resultsDir); in findResult() local
376 if (results == null || sessionId >= results.size()) { in findResult()
379 return results.get(sessionId); in findResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencySpeakerActivity.java420 private void computeResultsForVector(VectorAverage freqAverage,Results results, boolean isBase, in computeResultsForVector() argument
423 results.mIsBaseMeasurement = isBase; in computeResultsForVector()
429 results.mValuesLog = new double[points]; in computeResultsForVector()
431 results.mValuesLog[i] = 20 * Math.log10(values[i]); in computeResultsForVector()
444 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in computeResultsForVector()
445 results.mPointsPerBand[currentBand]++; in computeResultsForVector()
450 if (results.mPointsPerBand[b] > 0) { in computeResultsForVector()
451 results.mAverageEnergyPerBand[b] = in computeResultsForVector()
452 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in computeResultsForVector()
458 bandSpecs[b].setOffset(results.mAverageEnergyPerBand[1]); in computeResultsForVector()
[all …]
DAudioFrequencyLineActivity.java396 private void computeResultsForVector(VectorAverage freqAverage,Results results) { in computeResultsForVector() argument
403 results.mValuesLog = new double[points]; in computeResultsForVector()
405 results.mValuesLog[i] = 20 * Math.log10(values[i]); in computeResultsForVector()
418 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in computeResultsForVector()
419 results.mPointsPerBand[currentBand]++; in computeResultsForVector()
424 if (results.mPointsPerBand[b] > 0) { in computeResultsForVector()
425 results.mAverageEnergyPerBand[b] = in computeResultsForVector()
426 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in computeResultsForVector()
432 bandSpecsArray[b].setOffset(results.mAverageEnergyPerBand[1]); in computeResultsForVector()
446 double value = results.mValuesLog[i]; in computeResultsForVector()
[all …]
DAudioFrequencyUnprocessedActivity.java408 private boolean computeResultsForVector(VectorAverage freqAverage, Results results, in computeResultsForVector() argument
416 results.mValuesLog = new double[points]; in computeResultsForVector()
418 results.mValuesLog[i] = 20 * Math.log10(values[i]); in computeResultsForVector()
431 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in computeResultsForVector()
432 results.mPointsPerBand[currentBand]++; in computeResultsForVector()
437 if (results.mPointsPerBand[b] > 0) { in computeResultsForVector()
438 results.mAverageEnergyPerBand[b] = in computeResultsForVector()
439 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in computeResultsForVector()
445 bandSpecs[b].setOffset(results.mAverageEnergyPerBand[1]); in computeResultsForVector()
459 double value = results.mValuesLog[i]; in computeResultsForVector()
[all …]
DAudioFrequencyMicActivity.java556 private boolean computeResultsForVector(VectorAverage freqAverage, Results results, in computeResultsForVector() argument
559 results.mIsBaseMeasurement = isBase; in computeResultsForVector()
565 results.mValuesLog = new double[points]; in computeResultsForVector()
567 results.mValuesLog[i] = 20 * Math.log10(values[i]); in computeResultsForVector()
580 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in computeResultsForVector()
581 results.mPointsPerBand[currentBand]++; in computeResultsForVector()
586 if (results.mPointsPerBand[b] > 0) { in computeResultsForVector()
587 results.mAverageEnergyPerBand[b] = in computeResultsForVector()
588 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in computeResultsForVector()
594 bandSpecs[b].setOffset(results.mAverageEnergyPerBand[1]); in computeResultsForVector()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_StatusUpdatesTest.java61 ContentProviderResult[] results = mResolver.applyBatch(ContactsContract.AUTHORITY, ops); in setUp() local
62 assertNotNull(results[0].uri); in setUp()
63 assertNotNull(results[1].uri); in setUp()
65 dataId = ContentUris.parseId(results[1].uri); in setUp()
113 ContentProviderResult[] results = mResolver.applyBatch(ContactsContract.AUTHORITY, ops); in insertStatusUpdate() local
114 assertNotNull(results[0].uri); in insertStatusUpdate()
115 return results[0].uri; in insertStatusUpdate()
DContactsContract_StreamItemsTest.java129 ContentProviderResult[] results = mResolver.applyBatch(ContactsContract.AUTHORITY, ops); in testContentUri() local
130 long rawContactId = ContentUris.parseId(results[0].uri); in testContentUri()
133 Uri streamItemUri = results[1].uri; in testContentUri()
155 results = mResolver.applyBatch(ContactsContract.AUTHORITY, ops); in testContentUri()
156 assertEquals(Integer.valueOf(1), results[0].count); in testContentUri()
/cts/tests/ui/src/android/ui/cts/
DScrollingTest.java65 double[] results = MeasureTime.measure(NUMBER_REPEAT, new MeasureRun() { in testFullScrolling() local
75 report.addValues("scrolling_time", results, ResultType.LOWER_BETTER,ResultUnit.MS); in testFullScrolling()
76 Stat.StatResult stat = Stat.getStat(results); in testFullScrolling()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothLeScanTest.java238 List<ScanResult> results = batchScanCallback.getBatchScanResults(); in testBatchScan() local
245 assertTrue(!results.isEmpty()); in testBatchScan()
248 verifyTimestamp(results, 0, scanEndMillis); in testBatchScan()
252 private void verifyTimestamp(Collection<ScanResult> results, long scanStartMillis, in verifyTimestamp() argument
254 for (ScanResult result : results) { in verifyTimestamp()
276 public void onBatchScanResults(List<ScanResult> results) { in onBatchScanResults() argument
279 mBatchScanResults.addAll(results); in onBatchScanResults()
/cts/tests/tests/util/src/android/util/cts/
DRationalTest.java332 Rational results = serializeRoundTrip(badZero); in testSerialize() local
333 fail("Deserializing " + results + " should not have succeeded"); in testSerialize()
340 Rational results = serializeRoundTrip(badPosInfinity); in testSerialize() local
341 fail("Deserializing " + results + " should not have succeeded"); in testSerialize()
349 Rational results = serializeRoundTrip(badNegInfinity); in testSerialize() local
350 fail("Deserializing " + results + " should not have succeeded"); in testSerialize()
357 Rational results = serializeRoundTrip(badReduced); in testSerialize() local
358 fail("Deserializing " + results + " should not have succeeded"); in testSerialize()
365 Rational results = serializeRoundTrip(badReducedNeg); in testSerialize() local
366 fail("Deserializing " + results + " should not have succeeded"); in testSerialize()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DTestResultRepo.java108 TestResults results = new TestResults(); in getResult() local
111 results.parse(new BufferedReader(new FileReader(resultFile))); in getResult()
112 return results; in getResult()
/cts/tests/tests/net/src/android/net/cts/
DDnsTest.java174 ArrayList<String> results = new ArrayList<String>(); in skiptestDnsPerf() local
203 results.add(thisResult); in skiptestDnsPerf()
246 results.add(thisResult); in skiptestDnsPerf()
248 for (String result : results) Log.d(TAG, result); in skiptestDnsPerf()
/cts/suite/cts/utils/
Dgrapher.py46 results = tests[benchmark]
53 for r in results:
Dget_csv_report.py93 self.results = {}
116 self.results.update(casesFromChild)
124 return self.results
/cts/hostsidetests/ui/control/src/android/taskswitching/control/cts/
DTaskSwitchingDeviceTest.java76 double[] results = MeasureTime.measure(NUMBER_REPEAT, new MeasureRun() { in testMeasureTaskSwitching() local
90 report.addValues("task_switching_time", results, ResultType.LOWER_BETTER, ResultUnit.MS); in testMeasureTaskSwitching()
91 Stat.StatResult stat = Stat.getStat(results); in testMeasureTaskSwitching()
/cts/tests/tests/rsblas/src/android/renderscript/cts/
DBLASData.java650 String[] results = data.split(" "); in loadMNK() local
651 dM = Integer.parseInt(results[0]); in loadMNK()
652 dN = Integer.parseInt(results[1]); in loadMNK()
653 dK = Integer.parseInt(results[2]); in loadMNK()
654 KL = Integer.parseInt(results[3]); in loadMNK()
655 KU = Integer.parseInt(results[4]); in loadMNK()
666 String[] results = data.split(", "); in loadFloatArray() local
668 float[] floatArr = new float[results.length]; in loadFloatArray()
670 floatArr[i] = Float.parseFloat(results[i]); in loadFloatArray()
684 String[] results = data.split(", "); in loadDoubleArray() local
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/suid/
DSuidFilesActivity.java247 protected void onPostExecute(Set<File> results) { in onPostExecute() argument
248 super.onPostExecute(results); in onPostExecute()
252 if (results != null) { in onPostExecute()
254 for (File result : results) { in onPostExecute()
/cts/tests/tests/widget/src/android/widget/cts/
DFilterTest.java180 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument
183 mResults = results; in publishResults()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/command/
DCompatibilityConsole.java314 List<IInvocationResult> results = null; in listResults() local
317 results = testResultRepo.getResults(); in listResults()
322 if (testResultRepo != null && results.size() > 0) { in listResults()
323 for (int i = 0; i < results.size(); i++) { in listResults()
324 IInvocationResult result = results.get(i); in listResults()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java212 Map<String, Integer> results, in RefreshResult() argument
216 mResults = results; in RefreshResult()
233 Map<String, Integer> results = new HashMap<String, Integer>(); in getRefreshResults() local
247 results.put(testName, testResult); in getRefreshResults()
257 return new RefreshResult(items, results, details, reportLogs); in getRefreshResults()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraDeviceTest.java441 final LinkedBlockingQueue<Throwable> results = new LinkedBlockingQueue<>(); in testChainedOperation() local
468 results.offer(success); in testChainedOperation()
470 results.offer(t); in testChainedOperation()
483 results.offer(t); in testChainedOperation()
506 results.offer(success); in testChainedOperation()
508 results.offer(t); in testChainedOperation()
520 results.offer(t); in testChainedOperation()
539 results.offer(success); in testChainedOperation()
543 results.offer(t); in testChainedOperation()
548 results.offer(t2); in testChainedOperation()
[all …]
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionSession.java96 boolean[] results = new boolean[commands.length]; in onGetSupportedCommands()
99 results[idx] = Utils.TEST_COMMAND.equals(commands[idx]); in onGetSupportedCommands()
100 Log.i(TAG, "command " + commands[idx] + ", support = " + results[idx]); in onGetSupportedCommands()
102 return results; in onGetSupportedCommands()
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DDeviceReportTest.java45 public void sendStatus(int resultCode, Bundle results) { in sendStatus() argument
47 mResults = results; in sendStatus()

12