/cts/tests/tests/content/src/android/content/pm/cts/ |
D | SaferIntentTest.java | 292 List<ResolveInfo> results; in testQueryEnforceIntentFilterMatch() local 300 results = mPackageManager.queryIntentActivities(intent, emptyFlags); in testQueryEnforceIntentFilterMatch() 301 assertEquals(2 /* TestPmActivity and TestPmActivityWithSelector */, results.size()); in testQueryEnforceIntentFilterMatch() 303 results = mPackageManager.queryIntentActivities(intent, activityFlags); in testQueryEnforceIntentFilterMatch() 304 assertEquals(1 /* TestPmActivity */, results.size()); in testQueryEnforceIntentFilterMatch() 305 results = mPackageManager.queryIntentServices(intent, emptyFlags); in testQueryEnforceIntentFilterMatch() 306 assertEquals(1, results.size()); in testQueryEnforceIntentFilterMatch() 307 results = mPackageManager.queryBroadcastReceivers(intent, emptyFlags); in testQueryEnforceIntentFilterMatch() 308 assertEquals(1, results.size()); in testQueryEnforceIntentFilterMatch() 312 results = mPackageManager.queryIntentActivities(intent, emptyFlags); in testQueryEnforceIntentFilterMatch() [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | MatchHelper.kt | 24 val results = this.matchAll(pattern) in <lambda>() constant 25 if (results.isNotEmpty()) { in <lambda>() 38 val results = mutableListOf<String>() in String() constant 41 results.add(match.groupValues[1]) in String() 44 return results in String()
|
/cts/apps/CameraITS/tools/ |
D | run_all_tests.py | 214 def report_result(device_id, camera_id, results): argument 228 for scene in results: 229 if RESULT_KEY not in results[scene]: 231 if results[scene][RESULT_KEY] not in RESULT_VALUES: 233 if SUMMARY_KEY in results[scene]: 237 results[scene][SUMMARY_KEY] = device_summary_path 239 json_results = json.dumps(results) 246 def write_result(testbed_index, device_id, camera_id, results): argument 256 result = {'device_id': device_id, 'results': results} 276 results = {} [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/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
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 | AudioFrequencyLineActivity.java | 377 private void computeResultsForVector(VectorAverage freqAverage,Results results) { in computeResultsForVector() argument 384 results.mValuesLog = new double[points]; in computeResultsForVector() 386 results.mValuesLog[i] = 20 * Math.log10(values[i]); in computeResultsForVector() 399 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in computeResultsForVector() 400 results.mPointsPerBand[currentBand]++; in computeResultsForVector() 405 if (results.mPointsPerBand[b] > 0) { in computeResultsForVector() 406 results.mAverageEnergyPerBand[b] = in computeResultsForVector() 407 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in computeResultsForVector() 413 bandSpecsArray[b].setOffset(results.mAverageEnergyPerBand[1]); in computeResultsForVector() 427 double value = results.mValuesLog[i]; in computeResultsForVector() [all …]
|
D | AudioFrequencyMicActivity.java | 596 private boolean computeResultsForVector(VectorAverage freqAverage, Results results, in computeResultsForVector() argument 599 results.mIsBaseMeasurement = isBase; in computeResultsForVector() 605 results.mValuesLog = new double[points]; in computeResultsForVector() 607 results.mValuesLog[i] = 20 * Math.log10(values[i]); in computeResultsForVector() 620 results.mAverageEnergyPerBand[currentBand] += results.mValuesLog[i]; in computeResultsForVector() 621 results.mPointsPerBand[currentBand]++; in computeResultsForVector() 626 if (results.mPointsPerBand[b] > 0) { in computeResultsForVector() 627 results.mAverageEnergyPerBand[b] = in computeResultsForVector() 628 results.mAverageEnergyPerBand[b] / results.mPointsPerBand[b]; in computeResultsForVector() 634 bandSpecs[b].setOffset(results.mAverageEnergyPerBand[1]); in computeResultsForVector() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/presence/nan/ |
D | RttRanger.java | 67 public void onRangingResults(List<RangingResult> results) { in createRangingResultCallback() argument 68 Log.i(TAG, "RTT NAN ranging results: " + results); in createRangingResultCallback() 70 if (results.isEmpty()) { in createRangingResultCallback() 75 if (results.get(0).getStatus() == RangingResult.STATUS_FAIL) { in createRangingResultCallback() 79 RangingResult result = results.get(0); in createRangingResultCallback()
|
/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/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/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/hostsidetests/securitybulletin/test-apps/CVE-2023-21254/helper-app/src/android/security/cts/CVE_2023_21254_helper/ |
D | PocActivity.java | 37 public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] results) { in onRequestPermissionsResult() argument 38 super.onRequestPermissionsResult(requestCode, permissions, results); in onRequestPermissionsResult() 41 && results[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21249/helper-app/src/android/security/cts/CVE_2023_21249_helper/ |
D | PocActivity.java | 37 public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] results) { in onRequestPermissionsResult() argument 38 super.onRequestPermissionsResult(requestCode, permissions, results); in onRequestPermissionsResult() 41 && results[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
|
/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/tests/appsearch/testutils/src/android/app/appsearch/testutil/external/testutil/ |
D | AppSearchTestUtils.java | 99 List<SearchResult> results = retrieveAllSearchResults(searchResults); in convertSearchResultsToDocuments() local 100 List<GenericDocument> documents = new ArrayList<>(results.size()); in convertSearchResultsToDocuments() 101 for (SearchResult result : results) { in convertSearchResultsToDocuments() 112 List<SearchResult> results = new ArrayList<>(); in retrieveAllSearchResults() local 114 results.addAll(page); in retrieveAllSearchResults() 117 return results; in retrieveAllSearchResults()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationManagerBroadcastReceiver.java | 33 public List<Intent> results = new ArrayList<>(); field in NotificationManagerBroadcastReceiver 38 results.add(intent); in onReceive() 44 return results.get(index).getExtras().get(key); in getExtra()
|
/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()
|
/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/packagemanager/stats/device/src/com/android/cts/packagemanager/stats/device/ |
D | PackageInstallationSessionReportedStatsTestsHelper.java | 51 final ArrayList<Integer> results = new ArrayList<>(); in getUserTypeIntegers() local 55 results.add(UserInfoUtil.getUserTypeForStatsd( in getUserTypeIntegers() 64 results.stream().map(Object::toString).collect(Collectors.joining(","))); in getUserTypeIntegers()
|
/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/hardware/src/android/hardware/input/cts/tests/ |
D | InputHidTestCase.java | 282 List<HidResultData> results = new ArrayList<>(); in testInputVibratorEvents() local 289 results = mHidDevice.getResults(mDeviceId, UHID_EVENT_TYPE_UHID_OUTPUT); in testInputVibratorEvents() 290 if (results.size() < totalVibrations) { in testInputVibratorEvents() 294 for (int i = 0; i < results.size(); i++) { in testInputVibratorEvents() 295 HidResultData result = results.get(i); in testInputVibratorEvents() 350 List<HidResultData> results = new ArrayList<>(); in testInputVibratorManagerEvents() local 357 results = mHidDevice.getResults(mDeviceId, UHID_EVENT_TYPE_UHID_OUTPUT); in testInputVibratorManagerEvents() 358 if (results.size() < totalVibrations) { in testInputVibratorManagerEvents() 362 for (int i = 0; i < results.size(); i++) { in testInputVibratorManagerEvents() 363 HidResultData result = results.get(i); in testInputVibratorManagerEvents() [all …]
|
/cts/tests/contextualsearch/src/android/contextualsearch/cts/ |
D | ContextualSearchManagerTest.kt | 160 callback.results.get(0).extras.getParcelable( in testRequestContextualSearchStateWithTokenRefresh() 166 callback.results.get(0).extras.getParcelable( in testRequestContextualSearchStateWithTokenRefresh() 171 assertThat(callback.results.get(1).structure).isNotNull() in testRequestContextualSearchStateWithTokenRefresh() 172 assertThat(callback.results.get(1).content).isNotNull() in testRequestContextualSearchStateWithTokenRefresh() 173 assertThat(callback.results.get(1).extras).isNotNull() in testRequestContextualSearchStateWithTokenRefresh() 224 val results = mutableListOf<ContextualSearchState>() constant in android.contextualsearch.cts.ContextualSearchManagerTest.TestOutcomeReceiver 225 val result get() = results.getOrElse(0) { null } in <lambda>() 227 result?.let { this.results.add(it) } in onResult()
|
/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/apps/CameraITS/utils/ |
D | low_light_utils.py | 284 def _compute_avg(results): argument 294 luminance_values = [luminance for _, luminance in results[:6]] 299 def _compute_avg_delta_of_successive_boxes(results): argument 309 luminance_values = [luminance for _, luminance in results[:6]] 316 def _plot_results(results, file_stem): argument 323 luminance_values = [luminance for _, luminance in results] 324 box_labels = [f'Box {i + 1}' for i in range(len(results))] 339 def _plot_successive_difference(results, file_stem): argument 348 luminance_values = [luminance for _, luminance in results] 351 box_labels = [f'Box {i} to Box {i + 1}' for i in range(1, len(results))]
|
/cts/hostsidetests/packagemanager/multiuser/app/src/com/android/tests/packagemanager/multiuser/app/ |
D | PackageManagerMultiUserTest.java | 73 final Bundle results = new Bundle(); in testGetInstalledModules() local 74 results.putStringArrayList("installedModules", new ArrayList<>(names)); in testGetInstalledModules() 75 InstrumentationRegistry.getInstrumentation().addResults(results); in testGetInstalledModules()
|