/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 | AudioFrequencyMicActivity.java | 620 private boolean computeResultsForVector(VectorAverage freqAverage, Results results, in computeResultsForVector() argument 623 results.mIsBaseMeasurement = isBase; in computeResultsForVector() 629 results.mValuesLog = new double[points]; in computeResultsForVector() 631 results.mValuesLog[i] = 20 * Math.log10(values[i]); in computeResultsForVector() 644 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in computeResultsForVector() 645 results.mPointsPerBand[currentBand]++; in computeResultsForVector() 650 if (results.mPointsPerBand[b] > 0) { in computeResultsForVector() 651 results.mAverageEnergyPerBand[b] = in computeResultsForVector() 652 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in computeResultsForVector() 658 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 | 146 final Bundle results = receiver.get(); in shouldLoadFeatureAReceivers() local 147 assertThat(results.getString("base"), equalTo("Base String Default")); in shouldLoadFeatureAReceivers() 148 assertThat(results.getString("feature_a"), equalTo("Feature A String Default")); in shouldLoadFeatureAReceivers() 149 assertThat(results.getString("feature_b"), nullValue()); in shouldLoadFeatureAReceivers() 150 assertThat(results.getString("feature_c"), nullValue()); in shouldLoadFeatureAReceivers() 196 final Bundle results = receiver.get(); in shouldLoadFeatureAAndBReceivers() local 197 assertThat(results.getString("base"), equalTo("Base String Default")); in shouldLoadFeatureAAndBReceivers() 198 assertThat(results.getString("feature_a"), equalTo("Feature A String Default")); in shouldLoadFeatureAAndBReceivers() 199 assertThat(results.getString("feature_b"), equalTo("Feature B String Default")); in shouldLoadFeatureAAndBReceivers() 200 assertThat(results.getString("feature_c"), nullValue()); in shouldLoadFeatureAAndBReceivers() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ClassLoaderSplitApp/src/com/android/cts/classloadersplitapp/ |
D | SplitAppTest.java | 117 final Bundle results = receiver.get(); in testAllReceivers() local 120 assertThat(results.getString("loaderClassName"), in testAllReceivers() 124 assertThat(results.getString("featureA_loaderClassName"), in testAllReceivers() 126 assertThat(results.getString("featureA_parentClassName"), in testAllReceivers() 130 assertThat(results.getString("featureB_loaderClassName"), in testAllReceivers() 132 assertThat(results.getString("featureB_parentClassName"), in testAllReceivers()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | GraphicsStatsValidationTest.java | 58 GraphicsStatsProto[] results = runDrawTest("testDrawTenFrames"); in testBasicDrawFrame() local 59 GraphicsStatsProto statsBefore = results[0]; in testBasicDrawFrame() 60 GraphicsStatsProto statsAfter = results[1]; in testBasicDrawFrame() 76 GraphicsStatsProto[] results = runDrawTest("testDrawJankyFrames"); 77 GraphicsStatsProto statsBefore = results[0]; 78 GraphicsStatsProto statsAfter = results[1]; 106 GraphicsStatsProto[] results = runDrawTest("testDrawDaveyFrames"); in testDaveyDrawFrame() local 107 GraphicsStatsProto statsBefore = results[0]; in testDaveyDrawFrame() 108 GraphicsStatsProto statsAfter = results[1]; in testDaveyDrawFrame()
|
/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/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/hostsidetests/ui/control/src/android/taskswitching/control/cts/ |
D | TaskSwitchingDeviceTest.java | 58 double[] results = MeasureTime.measure(NUMBER_REPEAT, new MeasureRun() { in testMeasureTaskSwitching() local 69 report.addValues("task_switching_time", results, ResultType.LOWER_BETTER, ResultUnit.MS); in testMeasureTaskSwitching() 70 Stat.StatResult stat = Stat.getStat(results); in testMeasureTaskSwitching()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeScanTest.java | 260 List<ScanResult> results = batchScanCallback.getBatchScanResults(); in testBatchScan() local 267 assertTrue(!results.isEmpty()); in testBatchScan() 270 verifyTimestamp(results, 0, scanEndMillis); in testBatchScan() 323 private void verifyTimestamp(Collection<ScanResult> results, long scanStartMillis, in verifyTimestamp() argument 325 for (ScanResult result : results) { in verifyTimestamp() 347 public void onBatchScanResults(List<ScanResult> results) { in onBatchScanResults() argument 350 mBatchScanResults.addAll(results); in onBatchScanResults()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
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/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/ |
D | DiscoveryWithRangingTestCase.java | 241 Pair<Integer, List<RangingResult>> results = rangingCb.waitForRangingResults(); in executeRanging() local 242 switch (results.first) { in executeRanging() 250 if (results.second == null || results.second.size() != 1) { in executeRanging() 254 RangingResult result = results.second.get(0); in executeRanging()
|
/cts/suite/cts/utils/ |
D | grapher.py | 46 results = tests[benchmark] 53 for r in results:
|
D | get_csv_report.py | 93 self.results = {} 116 self.results.update(casesFromChild) 124 return self.results
|
/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/tests/tests/net/src/android/net/cts/ |
D | DnsTest.java | 190 ArrayList<String> results = new ArrayList<String>(); in skiptestDnsPerf() local 219 results.add(thisResult); in skiptestDnsPerf() 262 results.add(thisResult); in skiptestDnsPerf() 264 for (String result : results) Log.d(TAG, result); in skiptestDnsPerf()
|
/cts/apps/CameraITS/tools/ |
D | run_all_tests.py | 233 results = {} 236 results[s] = {result_key: ItsSession.RESULT_NOT_EXECUTED} 443 results[scene][result_key] = (ItsSession.RESULT_PASS if passed 445 results[scene][ItsSession.SUMMARY_KEY] = summary_path 452 results_backup = copy.deepcopy(results) 455 its.device.report_result(device_id, camera_id, 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/apps/CameraITS/pymodules/its/ |
D | device.py | 892 def report_result(device_id, camera_id, results): argument 913 for scene in results: 916 if result_key not in results[scene]: 918 if results[scene][result_key] not in ItsSession.RESULT_VALUES: 920 scene, results[result_key])) 921 if summary_key in results[scene]: 925 adb, results[scene][summary_key], device_summary_path)) 926 results[scene][summary_key] = device_summary_path 928 json_results = json.dumps(results)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsTestActivity.java | 160 String results = intent.getStringExtra(EXTRA_RESULTS); in onReceive() local 161 if (cameraId == null || results == null) { in onReceive() 163 ", results = " + ((results == null) ? "null" : results)); in onReceive() 188 JSONObject jsonResults = new JSONObject(results); in onReceive() 250 Log.e(TAG, "Error reading json result string:" + results , e); in onReceive()
|
/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/tests/tests/widget/src/android/widget/cts/ |
D | FilterTest.java | 175 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument 178 mResults = results; in publishResults()
|
/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()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | ProcfsHostTests.java | 162 String results = mDevice.executeShellCommand(START_TEST_APP_COMMAND); in startTestApp() local 181 "Test app PID not captured. results = \"" + results + "\"; logs = \"" + logs + "\"", in startTestApp()
|
/cts/tests/tests/net/src/android/net/wifi/rtt/cts/ |
D | TestBase.java | 163 public void onRangingResults(List<RangingResult> results) { in onRangingResults() argument 165 mResults = results; in onRangingResults()
|