/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioFrequencyLineActivity.java | 372 private void computeResultsForVector(VectorAverage freqAverage,Results results) { in computeResultsForVector() argument 379 results.mValuesLog = new double[points]; in computeResultsForVector() 381 results.mValuesLog[i] = 20 * Math.log10(values[i]); in computeResultsForVector() 394 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in computeResultsForVector() 395 results.mPointsPerBand[currentBand]++; in computeResultsForVector() 400 if (results.mPointsPerBand[b] > 0) { in computeResultsForVector() 401 results.mAverageEnergyPerBand[b] = in computeResultsForVector() 402 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in computeResultsForVector() 408 bandSpecsArray[b].setOffset(results.mAverageEnergyPerBand[1]); in computeResultsForVector() 422 double value = results.mValuesLog[i]; in computeResultsForVector() [all …]
|
D | AudioFrequencySpeakerActivity.java | 406 private void computeResultsForVector(VectorAverage freqAverage,Results results, boolean isBase, in computeResultsForVector() argument 409 results.mIsBaseMeasurement = isBase; in computeResultsForVector() 415 results.mValuesLog = new double[points]; in computeResultsForVector() 417 results.mValuesLog[i] = 20 * Math.log10(values[i]); in computeResultsForVector() 430 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in computeResultsForVector() 431 results.mPointsPerBand[currentBand]++; in computeResultsForVector() 436 if (results.mPointsPerBand[b] > 0) { in computeResultsForVector() 437 results.mAverageEnergyPerBand[b] = in computeResultsForVector() 438 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in computeResultsForVector() 444 bandSpecs[b].setOffset(results.mAverageEnergyPerBand[1]); in computeResultsForVector() [all …]
|
D | AudioFrequencyMicActivity.java | 603 private boolean computeResultsForVector(VectorAverage freqAverage, Results results, in computeResultsForVector() argument 606 results.mIsBaseMeasurement = isBase; in computeResultsForVector() 612 results.mValuesLog = new double[points]; in computeResultsForVector() 614 results.mValuesLog[i] = 20 * Math.log10(values[i]); in computeResultsForVector() 627 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in computeResultsForVector() 628 results.mPointsPerBand[currentBand]++; in computeResultsForVector() 633 if (results.mPointsPerBand[b] > 0) { in computeResultsForVector() 634 results.mAverageEnergyPerBand[b] = in computeResultsForVector() 635 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in computeResultsForVector() 641 bandSpecs[b].setOffset(results.mAverageEnergyPerBand[1]); in computeResultsForVector() [all …]
|
D | AudioFrequencyVoiceRecognitionActivity.java | 497 private void processSpectrum(Results results, AudioBandSpecs[] bandsSpecs, int anchorBand) { in processSpectrum() argument 498 int points = results.mValuesLog.length; in processSpectrum() 510 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in processSpectrum() 511 results.mPointsPerBand[currentBand]++; in processSpectrum() 516 if (results.mPointsPerBand[b] > 0) { in processSpectrum() 517 results.mAverageEnergyPerBand[b] = in processSpectrum() 518 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in processSpectrum() 524 results.mAverageEnergyPerBand[anchorBand] : 0; in processSpectrum() 540 double value = results.mValuesLog[i]; in processSpectrum() 542 results.mInBoundPointsPerBand[currentBand]++; in processSpectrum() [all …]
|
D | AudioFrequencyUnprocessedActivity.java | 473 private void processSpectrum(Results results, AudioBandSpecs[] bandsSpecs, int anchorBand) { in processSpectrum() argument 474 int points = results.mValuesLog.length; in processSpectrum() 486 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in processSpectrum() 487 results.mPointsPerBand[currentBand]++; in processSpectrum() 492 if (results.mPointsPerBand[b] > 0) { in processSpectrum() 493 results.mAverageEnergyPerBand[b] = in processSpectrum() 494 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in processSpectrum() 501 bandsSpecs[b].setOffset(results.mAverageEnergyPerBand[anchorBand]); in processSpectrum() 518 double value = results.mValuesLog[i]; in processSpectrum() 520 results.mInBoundPointsPerBand[currentBand]++; in processSpectrum() [all …]
|
/cts/apps/CameraITS/tools/ |
D | run_all_tests.py | 151 def report_result(device_id, camera_id, results): argument 168 for scene in results: 169 if RESULT_KEY not in results[scene]: 171 if results[scene][RESULT_KEY] not in RESULT_VALUES: 173 if SUMMARY_KEY in results[scene]: 176 (adb, results[scene][SUMMARY_KEY], device_summary_path)) 177 results[scene][SUMMARY_KEY] = device_summary_path 179 json_results = json.dumps(results) 419 results = {} 443 results[s] = {RESULT_KEY: RESULT_NOT_EXECUTED} [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/performance/ |
D | CameraTestInstrumentation.java | 62 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/blobstore/test-apps/BlobStoreHostTestHelper/src/com/android/cts/device/blob/ |
D | DataCleanupTest.java | 150 final Bundle results = new Bundle(); in addSessionIdToResults() local 151 results.putLong(KEY_SESSION_ID, sessionId); in addSessionIdToResults() 152 mInstrumentation.addResults(results); in addSessionIdToResults() 161 final Bundle results = new Bundle(); in addBlobHandleToResults() local 162 results.putString(KEY_DIGEST, in addBlobHandleToResults() 164 results.putLong(KEY_EXPIRY, blobHandle.getExpiryTimeMillis()); in addBlobHandleToResults() 165 results.putCharSequence(KEY_LABEL, blobHandle.getLabel().toString()); in addBlobHandleToResults() 166 results.putString(KEY_TAG, blobHandle.getTag()); in addBlobHandleToResults() 167 mInstrumentation.addResults(results); in addBlobHandleToResults()
|
/cts/tests/tests/assist/common/src/android/assist/common/ |
D | BaseRemoteCallbackActivity.java | 55 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/tools/release-parser/src/com/android/cts/releaseparser/ |
D | SymbolicLinkParser.java | 37 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/ |
D | TextViewActivity.java | 44 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()
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/ |
D | SplitAppTest.java | 194 final Bundle results = receiver.get(); in shouldLoadFeatureAReceivers() local 195 assertThat(results.getString("base"), equalTo("Base String Default")); in shouldLoadFeatureAReceivers() 196 assertThat(results.getString("feature_a"), equalTo("Feature A String Default")); in shouldLoadFeatureAReceivers() 197 assertThat(results.getString("feature_b"), nullValue()); in shouldLoadFeatureAReceivers() 198 assertThat(results.getString("feature_c"), nullValue()); in shouldLoadFeatureAReceivers() 261 final Bundle results = receiver.get(); in shouldLoadFeatureAAndBReceivers() local 262 assertThat(results.getString("base"), equalTo("Base String Default")); in shouldLoadFeatureAAndBReceivers() 263 assertThat(results.getString("feature_a"), equalTo("Feature A String Default")); in shouldLoadFeatureAAndBReceivers() 264 assertThat(results.getString("feature_b"), equalTo("Feature B String Default")); in shouldLoadFeatureAAndBReceivers() 265 assertThat(results.getString("feature_c"), nullValue()); in shouldLoadFeatureAAndBReceivers() [all …]
|
/cts/tests/tests/contactsprovider/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 | CallLogProviderTest.java | 115 Cursor results = mContentResolver.query(uri, projection, null, null, null, null); in getLastModified() local 116 results.moveToFirst(); in getLastModified() 117 assertEquals(1, results.getCount()); in getLastModified() 118 return results.getLong(results.getColumnIndex(Calls.LAST_MODIFIED)); in getLastModified()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | InputHidTestCase.java | 286 List<HidResultData> results = new ArrayList<>(); in testInputVibratorEvents() local 293 results = mHidDevice.getResults(mDeviceId, UHID_EVENT_TYPE_UHID_OUTPUT); in testInputVibratorEvents() 294 if (results.size() < totalVibrations) { in testInputVibratorEvents() 298 for (int i = 0; i < results.size(); i++) { in testInputVibratorEvents() 299 HidResultData result = results.get(i); in testInputVibratorEvents() 354 List<HidResultData> results = new ArrayList<>(); in testInputVibratorManagerEvents() local 361 results = mHidDevice.getResults(mDeviceId, UHID_EVENT_TYPE_UHID_OUTPUT); in testInputVibratorManagerEvents() 362 if (results.size() < totalVibrations) { in testInputVibratorManagerEvents() 366 for (int i = 0; i < results.size(); i++) { in testInputVibratorManagerEvents() 367 HidResultData result = results.get(i); in testInputVibratorManagerEvents() [all …]
|
/cts/hostsidetests/classloaders/splits/apps/src/com/android/cts/classloadersplitapp/ |
D | SplitAppTest.java | 125 final Bundle results = receiver.get(); in testAllReceivers() local 128 assertThat(results.getString("loaderClassName"), in testAllReceivers() 132 assertThat(results.getString("featureA_loaderClassName"), in testAllReceivers() 134 assertThat(results.getString("featureA_parentClassName"), in testAllReceivers() 138 assertThat(results.getString("featureB_loaderClassName"), in testAllReceivers() 140 assertThat(results.getString("featureB_parentClassName"), in testAllReceivers()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | GraphicsStatsValidationTest.java | 70 GraphicsStatsProto[] results = runDrawTest("testDrawTenFrames"); in testBasicDrawFrame() local 71 GraphicsStatsProto statsBefore = results[0]; in testBasicDrawFrame() 72 GraphicsStatsProto statsAfter = results[1]; in testBasicDrawFrame() 92 GraphicsStatsProto[] results = runDrawTest("testDrawJankyFrames"); in testJankyDrawFrame() local 93 GraphicsStatsProto statsBefore = results[0]; in testJankyDrawFrame() 94 GraphicsStatsProto statsAfter = results[1]; in testJankyDrawFrame() 159 GraphicsStatsProto[] results = runDrawTest("testDrawDaveyFrames"); in testDaveyDrawFrame() local 161 GraphicsStatsProto statsBefore = results[0]; in testDaveyDrawFrame() 162 GraphicsStatsProto statsAfter = results[1]; in testDaveyDrawFrame()
|
/cts/tests/tests/permission3/src/android/permission3/cts/ |
D | PermissionReviewTest.kt | 118 val results = LinkedBlockingQueue<Int>() in testReviewPermissionWhenServiceIsBound() constant 132 results.offer(resultCode) in testReviewPermissionWhenServiceIsBound() 143 assertNull(results.poll(UNEXPECTED_TIMEOUT_MILLIS.toLong(), TimeUnit.MILLISECONDS)) in testReviewPermissionWhenServiceIsBound() 149 PackageManager.PERMISSION_GRANTED, results.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS) in testReviewPermissionWhenServiceIsBound()
|
/cts/apps/CameraITS/utils/ |
D | scene_change_utils.py | 92 results = {} 119 results[key] = calc_timing_adjustment(converged, scene_flag, 121 self.assertEqual(results, expected_results)
|
/cts/hostsidetests/packagemanager/multiuser/app/src/com/android/tests/packagemanager/multiuser/app/ |
D | PackageManagerMultiUserTest.java | 69 final Bundle results = new Bundle(); in testGetInstalledModules() local 70 results.putStringArrayList("installedModules", new ArrayList<>(names)); in testGetInstalledModules() 71 InstrumentationRegistry.getInstrumentation().addResults(results); in testGetInstalledModules()
|
/cts/tests/appsearch/src/com/android/cts/appsearch/app/ |
D | GlobalSearchSessionPlatformCtsTest.java | 463 try (SearchResultsShim results = mDb.search( in testReportSystemUsage() argument 469 List<SearchResult> page = results.getNextPage().get(); in testReportSystemUsage() 476 try (SearchResultsShim results = mDb.search( in testReportSystemUsage() argument 482 List<SearchResult> page = results.getNextPage().get(); in testReportSystemUsage() 489 try (SearchResultsShim results = mDb.search( in testReportSystemUsage() argument 496 List<SearchResult> page = results.getNextPage().get(); in testReportSystemUsage() 507 try (SearchResultsShim results = mDb.search("", searchSpec)) { in testReportSystemUsage() argument 508 List<SearchResult> page = results.getNextPage().get(); in testReportSystemUsage() 520 List<String> results = commandReceiver.globalSearch(TEXT); in assertPackageCannotAccess() local 521 assertThat(results).isEmpty(); in assertPackageCannotAccess() [all …]
|
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/ |
D | AppSearchSessionCtsTestBase.java | 1111 List<SearchResult> results; in testQuery_getNextPage() local 1115 results = searchResults.getNextPage().get(); in testQuery_getNextPage() 1117 for (SearchResult result : results) { in testQuery_getNextPage() 1120 } while (results.size() > 0); in testQuery_getNextPage() 1164 List<SearchResult> results = retrieveAllSearchResults(searchResults); in testQuery_relevanceScoring() local 1168 assertThat(results).hasSize(2); in testQuery_relevanceScoring() 1169 assertThat(results.get(0).getGenericDocument()).isEqualTo(email1); in testQuery_relevanceScoring() 1170 assertThat(results.get(0).getRankingSignal()) in testQuery_relevanceScoring() 1171 .isGreaterThan(results.get(1).getRankingSignal()); in testQuery_relevanceScoring() 1172 assertThat(results.get(1).getGenericDocument()).isEqualTo(email2); in testQuery_relevanceScoring() [all …]
|
/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/hostsidetests/cpptools/src/com/android/cts/cpptools/ |
D | RunasPermissionsTest.java | 58 String results = getDevice().executeShellCommand(String.format( in testRunasCanConnectToAppsSocket() local 61 assertEquals(EXPECTED_CONNECTOR_OUTPUT, results); in testRunasCanConnectToAppsSocket()
|
/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()
|