Home
last modified time | relevance | path

Searched refs:resultList (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextLinksTest.java83 final List<TextLinks.TextLink> resultList = new ArrayList<>(result.getLinks()); in testParcel() local
86 assertEquals(2, resultList.size()); in testParcel()
87 assertEquals(0, resultList.get(0).getStart()); in testParcel()
88 assertEquals(4, resultList.get(0).getEnd()); in testParcel()
89 assertEquals(1, resultList.get(0).getEntityCount()); in testParcel()
90 assertEquals(TextClassifier.TYPE_OTHER, resultList.get(0).getEntity(0)); in testParcel()
91 assertEquals(1.f, resultList.get(0).getConfidenceScore(TextClassifier.TYPE_OTHER), 1e-7f); in testParcel()
92 assertEquals(BUNDLE_VALUE, resultList.get(0).getExtras().getString(BUNDLE_KEY)); in testParcel()
93 assertEquals(5, resultList.get(1).getStart()); in testParcel()
94 assertEquals(12, resultList.get(1).getEnd()); in testParcel()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DResumeOnRebootServiceProviderTests.java88 ArrayList<ResolveInfo> resultList = new ArrayList<>(); in serviceNotGuardedWithPermission() local
90 resultList.add(mFakeResolvedInfo); in serviceNotGuardedWithPermission()
91 when(mMockPackageManager.queryIntentServices(any(), anyInt())).thenReturn(resultList); in serviceNotGuardedWithPermission()
98 ArrayList<ResolveInfo> resultList = new ArrayList<>(); in serviceResolved() local
99 resultList.add(mFakeResolvedInfo); in serviceResolved()
101 when(mMockPackageManager.queryIntentServices(any(), anyInt())).thenReturn(resultList); in serviceResolved()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/results/
DGlobalResultsStore.java133 ArrayList<UiBenchmarkResult> resultList = new ArrayList<>(); in loadTestResults() local
179 if (resultList.size() == iteration) { in loadTestResults()
181 resultList.add(iteration, iterationResult); in loadTestResults()
183 iterationResult = resultList.get(iteration); in loadTestResults()
193 int total = resultList.get(0).getTotalFrameCount(); in loadTestResults()
195 … System.out.println(""+ resultList.get(0).getMetricAtIndex(0, FrameMetrics.TOTAL_DURATION)); in loadTestResults()
198 return resultList; in loadTestResults()
228 ArrayList<UiBenchmarkResult> resultList = results.get(name); in loadDetailedResults() local
229 if (resultList == null) { in loadDetailedResults()
230 resultList = new ArrayList<>(); in loadDetailedResults()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
DCapabilityRequest.java236 List<EabCapabilityResult> resultList = null; in getCapabilitiesFromCache() local
238 resultList = mRequestManagerCallback.getCapabilitiesFromCacheIncludingExpired(mUriList); in getCapabilitiesFromCache()
244 resultList = new ArrayList<>(); in getCapabilitiesFromCache()
245 resultList.add(eabResult); in getCapabilitiesFromCache()
247 if (resultList == null) { in getCapabilitiesFromCache()
250 return resultList; in getCapabilitiesFromCache()
300 List<RcsContactUceCapability> resultList = new ArrayList<>(); in getFromThrottlingList() local
321 resultList.add(eabResult.getContactCapabilities()); in getFromThrottlingList()
330 resultList.addAll(notFoundFromCacheList); in getFromThrottlingList()
335 return resultList; in getFromThrottlingList()
DSubscribeRequestCoordinator.java366 List<RcsContactUceCapability> resultList = new ArrayList<>(); in getCapabilitiesFromCacheIncludingExpired() local
377 resultList.add(eabResult.getContactCapabilities()); in getCapabilitiesFromCacheIncludingExpired()
386 resultList.addAll(notFoundFromCacheList); in getCapabilitiesFromCacheIncludingExpired()
391 return resultList; in getCapabilitiesFromCacheIncludingExpired()
DUceRequestManager.java662 List<EabCapabilityResult> resultList = Collections.emptyList(); in getCapabilitiesFromCache() local
664 resultList = mRequestMgrCallback.getCapabilitiesFromCache(uriList); in getCapabilitiesFromCache()
667 resultList = Collections.singletonList( in getCapabilitiesFromCache()
672 return resultList.stream().filter(Objects::nonNull) in getCapabilitiesFromCache()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/request/
DSubscribeCoordinatorTest.java103 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestUpdatedWithError() local
105 assertEquals(1, resultList.size()); in testRequestUpdatedWithError()
118 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestCommandError() local
120 assertEquals(1, resultList.size()); in testRequestCommandError()
148 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestNetworkRespSuccess() local
150 assertTrue(resultList.isEmpty()); in testRequestNetworkRespSuccess()
152 Iterator<RequestResult> requestResults = resultList.iterator(); in testRequestNetworkRespSuccess()
212 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestNetworkRespError() local
214 assertEquals(1, resultList.size()); in testRequestNetworkRespError()
283 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestTerminated() local
[all …]
DOptionsCoordinatorTest.java90 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestUpdatedWithError() local
92 assertEquals(1, resultList.size()); in testRequestUpdatedWithError()
109 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestCommandError() local
111 assertEquals(1, resultList.size()); in testRequestCommandError()
138 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestNetworkResponse() local
140 assertEquals(1, resultList.size()); in testRequestNetworkResponse()
DRemoteOptionsCoordinatorTest.java93 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRemoteRequestFinished() local
95 assertEquals(1, resultList.size()); in testRemoteRequestFinished()
/frameworks/base/services/core/java/com/android/server/search/
DSearchables.java511 final ArrayList<SearchableInfo> resultList = new ArrayList<>(list.size()); in createFilterdSearchableInfoList() local
517 resultList.add(info); in createFilterdSearchableInfoList()
520 return resultList; in createFilterdSearchableInfoList()
527 final ArrayList<ResolveInfo> resultList = new ArrayList<>(list.size()); in createFilterdResolveInfoList() local
534 resultList.add(info); in createFilterdResolveInfoList()
537 return resultList; in createFilterdResolveInfoList()
/frameworks/base/tests/vcn/java/com/android/server/vcn/util/
DPersistableBundleUtilsTest.java168 final List<TestClass> resultList = PersistableBundleUtils.toList(bundled, TestClass::new); in testListConversionLossless() local
170 assertEquals(sourceList, resultList); in testListConversionLossless()
190 final LinkedHashMap<TestKey, TestClass> resultList = in testMapConversionLossless() local
193 assertEquals(sourceMap, resultList); in testMapConversionLossless()
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/serviceforward/
DForwardPreviewExtender.java266 List<Pair<CaptureResult.Key, Object>> resultList = new ArrayList<>(); in process()
269 resultList.add(new Pair(key, captureResult.get(key))); in process()
273 resultList); in process()
277 resultList); in process()
DForwardImageCaptureExtender.java364 List<Pair<CaptureResult.Key, Object>> resultList = new ArrayList<>(); in process()
367 resultList.add(new Pair(key, captureResult.get(key))); in process()
371 resultList); in process()
375 resultList); in process()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiTracker.java491 List<ScanResult> resultList; in updateScanResultCache() local
493 resultList = scanResultsByApKey.get(apKey); in updateScanResultCache()
495 resultList = new ArrayList<>(); in updateScanResultCache()
496 scanResultsByApKey.put(apKey, resultList); in updateScanResultCache()
499 resultList.add(result); in updateScanResultCache()
/frameworks/base/services/core/java/com/android/server/
DIntentResolver.java365 ArrayList<R> resultList = new ArrayList<R>(); in queryIntentFromList() local
375 listCut.get(i), resultList, userId, customFlags); in queryIntentFromList()
377 filterResults(resultList); in queryIntentFromList()
378 sortResults(resultList); in queryIntentFromList()
379 return resultList; in queryIntentFromList()
DBinaryTransparencyService.java188 List<String> resultList = new ArrayList<>(); in computePackageSignerSha256Digests() local
192 resultList.add(digestHexString); in computePackageSignerSha256Digests()
194 return resultList.toArray(new String[1]); in computePackageSignerSha256Digests()
/frameworks/base/services/core/java/com/android/server/input/
DKeyboardLayoutManager.java208 List<KeyboardLayoutSelectionResult> resultList = new ArrayList<>(); in onInputDeviceChangedInternal() local
219 resultList.add(result); in onInputDeviceChangedInternal()
246 logKeyboardConfigurationEvent(inputDevice, imeInfoList, resultList, in onInputDeviceChangedInternal()
991 @NonNull List<KeyboardLayoutSelectionResult> resultList, in logKeyboardConfigurationEvent() argument
993 if (imeInfoList.isEmpty() || resultList.isEmpty()) { in logKeyboardConfigurationEvent()
1000 KeyboardLayoutSelectionResult result = resultList.get(i); in logKeyboardConfigurationEvent()
/frameworks/base/services/core/java/com/android/server/pm/
DSharedLibrariesImpl.java678 ArrayList<AndroidPackage> resultList = null;
706 if (resultList == null) {
707 resultList = new ArrayList<>();
709 resultList.add(pkg);
742 return resultList;
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupRestoreEventLoggerTest.java380 List<DataTypeResult> resultList = logger.getLoggingResults(); in getResultForDataTypeIfPresent() local
381 return resultList.stream() in getResultForDataTypeIfPresent()