/cts/common/util/src/com/android/compatibility/common/util/ |
D | CaseResult.java | 74 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()
|
D | ModuleResult.java | 232 ArrayList<ICaseResult> results = new ArrayList<>(mResults.values()); in getResults() local 233 Collections.sort(results); in getResults() 234 return results; in getResults()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioFrequencySpeakerActivity.java | 420 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 …]
|
D | AudioFrequencyLineActivity.java | 396 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 …]
|
D | AudioFrequencyMicActivity.java | 556 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 …]
|
D | AudioFrequencyUnprocessedActivity.java | 486 private void processSpectrum(Results results, AudioBandSpecs[] bandsSpecs, int anchorBand) { in processSpectrum() argument 487 int points = results.mValuesLog.length; in processSpectrum() 499 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in processSpectrum() 500 results.mPointsPerBand[currentBand]++; in processSpectrum() 505 if (results.mPointsPerBand[b] > 0) { in processSpectrum() 506 results.mAverageEnergyPerBand[b] = in processSpectrum() 507 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in processSpectrum() 514 bandsSpecs[b].setOffset(results.mAverageEnergyPerBand[anchorBand]); in processSpectrum() 531 double value = results.mValuesLog[i]; in processSpectrum() 533 results.mInBoundPointsPerBand[currentBand]++; in processSpectrum() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/ |
D | SplitAppTest.java | 141 final Bundle results = receiver.get(); in shouldLoadFeatureAReceivers() local 142 assertThat(results.getString("base"), equalTo("Base String Default")); in shouldLoadFeatureAReceivers() 143 assertThat(results.getString("feature_a"), equalTo("Feature A String Default")); in shouldLoadFeatureAReceivers() 144 assertThat(results.getString("feature_b"), nullValue()); in shouldLoadFeatureAReceivers() 145 assertThat(results.getString("feature_c"), nullValue()); in shouldLoadFeatureAReceivers() 191 final Bundle results = receiver.get(); in shouldLoadFeatureAAndBReceivers() local 192 assertThat(results.getString("base"), equalTo("Base String Default")); in shouldLoadFeatureAAndBReceivers() 193 assertThat(results.getString("feature_a"), equalTo("Feature A String Default")); in shouldLoadFeatureAAndBReceivers() 194 assertThat(results.getString("feature_b"), equalTo("Feature B String Default")); in shouldLoadFeatureAAndBReceivers() 195 assertThat(results.getString("feature_c"), nullValue()); in shouldLoadFeatureAAndBReceivers() [all …]
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | GraphicsStatsValidationTest.java | 52 GraphicsStatsProto[] results = runDrawTest("testDrawTenFrames"); in testBasicDrawFrame() local 53 GraphicsStatsProto statsBefore = results[0]; in testBasicDrawFrame() 54 GraphicsStatsProto statsAfter = results[1]; in testBasicDrawFrame() 70 GraphicsStatsProto[] results = runDrawTest("testDrawJankyFrames"); 71 GraphicsStatsProto statsBefore = results[0]; 72 GraphicsStatsProto statsAfter = results[1]; 100 GraphicsStatsProto[] results = runDrawTest("testDrawDaveyFrames"); in testDaveyDrawFrame() local 101 GraphicsStatsProto statsBefore = results[0]; in testDaveyDrawFrame() 102 GraphicsStatsProto statsAfter = results[1]; in testDaveyDrawFrame()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_StatusUpdatesTest.java | 61 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()
|
D | ContactsContract_StreamItemsTest.java | 129 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/ |
D | ScrollingTest.java | 65 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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/ResultObjects/ |
D | ResultObject.java | 34 public ResultObject(HashMap<BaseResultsDialog.ResultType, Boolean> results) { in ResultObject() argument 35 mResults = results; in ResultObject()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeScanTest.java | 242 List<ScanResult> results = batchScanCallback.getBatchScanResults(); in testBatchScan() local 249 assertTrue(!results.isEmpty()); in testBatchScan() 252 verifyTimestamp(results, 0, scanEndMillis); in testBatchScan() 256 private void verifyTimestamp(Collection<ScanResult> results, long scanStartMillis, in verifyTimestamp() argument 258 for (ScanResult result : results) { in verifyTimestamp() 280 public void onBatchScanResults(List<ScanResult> results) { in onBatchScanResults() argument 283 mBatchScanResults.addAll(results); in onBatchScanResults()
|
/cts/apps/CameraITS/tools/ |
D | run_all_tests.py | 165 results = {} 168 results[s] = {result_key: ItsSession.RESULT_NOT_EXECUTED} 355 results[scene][result_key] = (ItsSession.RESULT_PASS if passed 357 results[scene][ItsSession.SUMMARY_KEY] = summary_path 362 results_backup = copy.deepcopy(results) 365 its.device.report_result(device_id, camera_id, results)
|
/cts/tests/tests/net/src/android/net/cts/ |
D | DnsTest.java | 174 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/tests/tests/util/src/android/util/cts/ |
D | RationalTest.java | 346 Rational results = serializeRoundTrip(badZero); in testSerialize() local 347 fail("Deserializing " + results + " should not have succeeded"); in testSerialize() 354 Rational results = serializeRoundTrip(badPosInfinity); in testSerialize() local 355 fail("Deserializing " + results + " should not have succeeded"); in testSerialize() 363 Rational results = serializeRoundTrip(badNegInfinity); in testSerialize() local 364 fail("Deserializing " + results + " should not have succeeded"); in testSerialize() 371 Rational results = serializeRoundTrip(badReduced); in testSerialize() local 372 fail("Deserializing " + results + " should not have succeeded"); in testSerialize() 379 Rational results = serializeRoundTrip(badReducedNeg); in testSerialize() local 380 fail("Deserializing " + results + " should not have succeeded"); in testSerialize()
|
/cts/suite/cts/utils/ |
D | grapher.py | 46 results = tests[benchmark] 53 for r in results:
|
/cts/hostsidetests/ui/control/src/android/taskswitching/control/cts/ |
D | TaskSwitchingDeviceTest.java | 76 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/apps/CameraITS/pymodules/its/ |
D | device.py | 816 def report_result(device_id, camera_id, results): argument 835 for scene in results: 838 if result_key not in results[scene]: 840 if results[scene][result_key] not in ItsSession.RESULT_VALUES: 842 scene, results[result_key])) 843 if summary_key in results[scene]: 847 adb, results[scene][summary_key], device_summary_path)) 848 results[scene][summary_key] = device_summary_path 850 json_results = json.dumps(results)
|
/cts/tools/cts-media/ |
D | get_achievable_rates.py | 306 for test, results in json: 309 …if isinstance(results, list) and len(results[0]) and len(results[0][0]) == 2 and len(results[0][0]… 310 for result in results: 313 self.parse_perf(results, device, build)
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | BLASData.java | 650 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/camera/its/ |
D | ItsTestActivity.java | 159 String results = intent.getStringExtra(EXTRA_RESULTS); in onReceive() local 160 if (cameraId == null || results == null) { in onReceive() 162 ", results = " + ((results == null) ? "null" : results)); in onReceive() 187 JSONObject jsonResults = new JSONObject(results); in onReceive() 249 Log.e(TAG, "Error reading json result string:" + results , e); in onReceive()
|
/cts/hostsidetests/theme/ |
D | README | 25 modifications to the reference images will invalidate the test results. 69 To obtain reliable results, theme tests should be run against the device's 76 As of API 24, the results will NOT be 100% reliable due to scaling artifacts. 95 in the "diffs" directory of the CTS results indicated by "Test Result:" in the
|
/cts/tests/core/runner/src/com/android/cts/core/runner/ |
D | CoreTestRunner.java | 294 Bundle results = new Bundle(); in onStart() local 302 results.putString(Instrumentation.REPORT_KEY_STREAMRESULT, in onStart() 309 results, junitResults); in onStart() 311 results.putString(Instrumentation.REPORT_KEY_STREAMRESULT, in onStart() 317 finish(Activity.RESULT_OK, results); in onStart()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListAdapter.java | 212 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()
|