Home
last modified time | relevance | path

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

123

/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 …]
DAudioFrequencyMicActivity.java620 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 …]
DAudioFrequencyVoiceRecognitionActivity.java503 private void processSpectrum(Results results, AudioBandSpecs[] bandsSpecs, int anchorBand) { in processSpectrum() argument
504 int points = results.mValuesLog.length; in processSpectrum()
516 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in processSpectrum()
517 results.mPointsPerBand[currentBand]++; in processSpectrum()
522 if (results.mPointsPerBand[b] > 0) { in processSpectrum()
523 results.mAverageEnergyPerBand[b] = in processSpectrum()
524 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in processSpectrum()
530 results.mAverageEnergyPerBand[anchorBand] : 0; in processSpectrum()
546 double value = results.mValuesLog[i]; in processSpectrum()
548 results.mInBoundPointsPerBand[currentBand]++; in processSpectrum()
[all …]
DAudioFrequencyUnprocessedActivity.java486 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/
DSplitAppTest.java147 final Bundle results = receiver.get(); in shouldLoadFeatureAReceivers() local
148 assertThat(results.getString("base"), equalTo("Base String Default")); in shouldLoadFeatureAReceivers()
149 assertThat(results.getString("feature_a"), equalTo("Feature A String Default")); in shouldLoadFeatureAReceivers()
150 assertThat(results.getString("feature_b"), nullValue()); in shouldLoadFeatureAReceivers()
151 assertThat(results.getString("feature_c"), nullValue()); in shouldLoadFeatureAReceivers()
197 final Bundle results = receiver.get(); in shouldLoadFeatureAAndBReceivers() local
198 assertThat(results.getString("base"), equalTo("Base String Default")); in shouldLoadFeatureAAndBReceivers()
199 assertThat(results.getString("feature_a"), equalTo("Feature A String Default")); in shouldLoadFeatureAAndBReceivers()
200 assertThat(results.getString("feature_b"), equalTo("Feature B String Default")); in shouldLoadFeatureAAndBReceivers()
201 assertThat(results.getString("feature_c"), nullValue()); in shouldLoadFeatureAAndBReceivers()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/performance/
DCameraTestInstrumentation.java62 public void sendStatus(int resultCode, Bundle results) { in sendStatus() argument
63 super.sendStatus(resultCode, results); in sendStatus()
65 if (results == null) { in sendStatus()
69 Set<String> keys = results.keySet(); in sendStatus()
78 report = ReportLog.parse(results.getString(key)); in sendStatus()
/cts/hostsidetests/incident/src/com/android/server/cts/
DGraphicsStatsValidationTest.java61 GraphicsStatsProto[] results = runDrawTest("testDrawTenFrames"); in testBasicDrawFrame() local
62 GraphicsStatsProto statsBefore = results[0]; in testBasicDrawFrame()
63 GraphicsStatsProto statsAfter = results[1]; in testBasicDrawFrame()
83 GraphicsStatsProto[] results = runDrawTest("testDrawJankyFrames"); in testJankyDrawFrame() local
84 GraphicsStatsProto statsBefore = results[0]; in testJankyDrawFrame()
85 GraphicsStatsProto statsAfter = results[1]; in testJankyDrawFrame()
113 GraphicsStatsProto[] results = runDrawTest("testDrawDaveyFrames"); in testDaveyDrawFrame() local
114 GraphicsStatsProto statsBefore = results[0]; in testDaveyDrawFrame()
115 GraphicsStatsProto statsAfter = results[1]; in testDaveyDrawFrame()
/cts/hostsidetests/classloaders/splits/apps/src/com/android/cts/classloadersplitapp/
DSplitAppTest.java115 final Bundle results = receiver.get(); in testAllReceivers() local
118 assertThat(results.getString("loaderClassName"), in testAllReceivers()
122 assertThat(results.getString("featureA_loaderClassName"), in testAllReceivers()
124 assertThat(results.getString("featureA_parentClassName"), in testAllReceivers()
128 assertThat(results.getString("featureB_loaderClassName"), in testAllReceivers()
130 assertThat(results.getString("featureB_parentClassName"), in testAllReceivers()
/cts/tests/tests/assist/common/src/android/assist/common/
DBaseRemoteCallbackActivity.java55 mRemoteCallback = new RemoteCallback((results) -> { in registerReceivingCallback()
56 String action = results.getString(Utils.EXTRA_REMOTE_CALLBACK_ACTION); in registerReceivingCallback()
62 onReceivedEventFromCaller(results, action); in registerReceivingCallback()
75 protected void onReceivedEventFromCaller(Bundle results, String action) { in onReceivedEventFromCaller() argument
/cts/tests/tests/provider/src/android/provider/cts/contacts/
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()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DSymbolicLinkParser.java37 ArrayList results = new ArrayList<String>(); in getDependencies() local
38 results.add(getFileName()); in getDependencies()
39 return results; in getDependencies()
/cts/tests/tests/assist/testapp/src/android/assist/testapp/
DTextViewActivity.java44 protected void onReceivedEventFromCaller(Bundle results, String action) { in onReceivedEventFromCaller() argument
45 super.onReceivedEventFromCaller(results, action); in onReceivedEventFromCaller()
48 scrollX = results.getInt(Utils.SCROLL_X_POSITION, 0); in onReceivedEventFromCaller()
49 scrollY = results.getInt(Utils.SCROLL_Y_POSITION, 0); in onReceivedEventFromCaller()
DLifecycleActivity.java33 protected void onReceivedEventFromCaller(Bundle results, String action) { in onReceivedEventFromCaller() argument
34 super.onReceivedEventFromCaller(results, action); in onReceivedEventFromCaller()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothLeScanTest.java256 List<ScanResult> results = batchScanCallback.getBatchScanResults(); in testBatchScan() local
263 assertTrue(!results.isEmpty()); in testBatchScan()
266 verifyTimestamp(results, 0, scanEndMillis); in testBatchScan()
319 private void verifyTimestamp(Collection<ScanResult> results, long scanStartMillis, in verifyTimestamp() argument
321 for (ScanResult result : results) { in verifyTimestamp()
343 public void onBatchScanResults(List<ScanResult> results) { in onBatchScanResults() argument
346 mBatchScanResults.addAll(results); in onBatchScanResults()
/cts/tests/tests/util/src/android/util/cts/
DRationalTest.java347 Rational results = serializeRoundTrip(badZero); in testSerialize() local
348 fail("Deserializing " + results + " should not have succeeded"); in testSerialize()
355 Rational results = serializeRoundTrip(badPosInfinity); in testSerialize() local
356 fail("Deserializing " + results + " should not have succeeded"); in testSerialize()
364 Rational results = serializeRoundTrip(badNegInfinity); in testSerialize() local
365 fail("Deserializing " + results + " should not have succeeded"); in testSerialize()
372 Rational results = serializeRoundTrip(badReduced); in testSerialize() local
373 fail("Deserializing " + results + " should not have succeeded"); in testSerialize()
380 Rational results = serializeRoundTrip(badReducedNeg); in testSerialize() local
381 fail("Deserializing " + results + " should not have succeeded"); in testSerialize()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/
DDiscoveryWithRangingTestCase.java241 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/hostsidetests/ui/control/src/android/taskswitching/control/cts/
DTaskSwitchingDeviceTest.java58 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/apps/CameraITS/tools/
Drun_all_tests.py396 results = {}
399 results[s] = {result_key: ItsSession.RESULT_NOT_EXECUTED}
585 results[scene][result_key] = (ItsSession.RESULT_PASS if passed
587 results[scene][ItsSession.SUMMARY_KEY] = summary_path
588 results[scene][ItsSession.START_TIME_KEY] = scene_start_time
589 results[scene][ItsSession.END_TIME_KEY] = scene_end_time
601 results_backup = copy.deepcopy(results)
605 its.device.report_result(device_id, id_combo_string, results)
/cts/hostsidetests/appsecurity/test-apps/ReviewPermissionHelper/src/com/android/cts/reviewpermissionhelper/
DReviewPermissionsTest.kt146 val results = LinkedBlockingQueue<Int>() in reviewPermissionWhenServiceIsBound() constant
150 results.offer(resultCode) in reviewPermissionWhenServiceIsBound()
158 assertNull(results.poll(UI_TIMEOUT_UNEXPECTED, TimeUnit.MILLISECONDS)) in reviewPermissionWhenServiceIsBound()
163 assertEquals(PERMISSION_GRANTED, results.poll(UI_TIMEOUT, TimeUnit.MILLISECONDS)) in reviewPermissionWhenServiceIsBound()
/cts/tests/tests/view/src/android/view/cts/
DSystemGestureExclusionRectsTest.java104 final List<List<Rect>> results = new ArrayList<>(); in animatingView() local
107 final Consumer<List<Rect>> vtoListener = results::add; in animatingView()
124 assertFalse("results empty", results.isEmpty()); in animatingView()
125 for (List<Rect> list : results) { in animatingView()
144 oldResults.addAll(results); in animatingView()
153 assertEquals("got unexpected exclusion rects", oldResults, results); in animatingView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/ResultObjects/
DResultObject.java34 public ResultObject(HashMap<BaseResultsDialog.ResultType, Boolean> results) { in ResultObject() argument
35 mResults = results; in ResultObject()
/cts/hostsidetests/cpptools/src/com/android/cts/cpptools/
DRunasPermissionsTest.java58 String results = getDevice().executeShellCommand(String.format( in testRunasCanConnectToAppsSocket() local
61 assertEquals(EXPECTED_CONNECTOR_OUTPUT, results); in testRunasCanConnectToAppsSocket()
/cts/tools/cts-media/
Dget_achievable_rates.py306 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/
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 …]

123