/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | TextLinksTest.java | 83 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/ |
D | ResumeOnRebootServiceProviderTests.java | 86 ArrayList<ResolveInfo> resultList = new ArrayList<>(); in serviceNotGuardedWithPermission() local 88 resultList.add(mFakeResolvedInfo); in serviceNotGuardedWithPermission() 89 when(mMockPackageManager.queryIntentServices(any(), anyInt())).thenReturn(resultList); in serviceNotGuardedWithPermission() 96 ArrayList<ResolveInfo> resultList = new ArrayList<>(); in serviceResolved() local 97 resultList.add(mFakeResolvedInfo); in serviceResolved() 99 when(mMockPackageManager.queryIntentServices(any(), anyInt())).thenReturn(resultList); in serviceResolved()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/results/ |
D | GlobalResultsStore.java | 133 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/tests/src/com/android/ims/rcs/uce/request/ |
D | SubscribeCoordinatorTest.java | 100 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestUpdatedWithError() local 102 assertEquals(1, resultList.size()); in testRequestUpdatedWithError() 114 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestCommandError() local 116 assertEquals(1, resultList.size()); in testRequestCommandError() 129 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestNetworkRespSuccess() local 131 assertTrue(resultList.isEmpty()); in testRequestNetworkRespSuccess() 153 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestNetworkRespError() local 155 assertEquals(1, resultList.size()); in testRequestNetworkRespError() 217 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestTerminated() local 219 assertEquals(1, resultList.size()); in testRequestTerminated() [all …]
|
D | OptionsCoordinatorTest.java | 87 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestUpdatedWithError() local 89 assertEquals(1, resultList.size()); in testRequestUpdatedWithError() 103 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestCommandError() local 105 assertEquals(1, resultList.size()); in testRequestCommandError() 129 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRequestNetworkResponse() local 131 assertEquals(1, resultList.size()); in testRequestNetworkResponse()
|
D | RemoteOptionsCoordinatorTest.java | 89 Collection<RequestResult> resultList = coordinator.getFinishedRequest(); in testRemoteRequestFinished() local 91 assertEquals(1, resultList.size()); in testRemoteRequestFinished()
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/ |
D | CapabilityRequest.java | 197 List<EabCapabilityResult> resultList = null; in getCapabilitiesFromCache() local 199 resultList = mRequestManagerCallback.getCapabilitiesFromCache(mUriList); in getCapabilitiesFromCache() 204 resultList = new ArrayList<>(); in getCapabilitiesFromCache() 205 resultList.add(eabResult); in getCapabilitiesFromCache() 207 if (resultList == null) { in getCapabilitiesFromCache() 210 return resultList.stream() in getCapabilitiesFromCache()
|
/frameworks/base/tests/vcn/java/com/android/server/vcn/util/ |
D | PersistableBundleUtilsTest.java | 166 final List<TestClass> resultList = PersistableBundleUtils.toList(bundled, TestClass::new); in testListConversionLossless() local 168 assertEquals(sourceList, resultList); in testListConversionLossless() 188 final LinkedHashMap<TestKey, TestClass> resultList = in testMapConversionLossless() local 191 assertEquals(sourceMap, resultList); in testMapConversionLossless()
|
/frameworks/base/services/core/java/com/android/server/search/ |
D | Searchables.java | 467 final ArrayList<SearchableInfo> resultList = new ArrayList<>(list.size()); in createFilterdSearchableInfoList() local 473 resultList.add(info); in createFilterdSearchableInfoList() 476 return resultList; in createFilterdSearchableInfoList() 483 final ArrayList<ResolveInfo> resultList = new ArrayList<>(list.size()); in createFilterdResolveInfoList() local 490 resultList.add(info); in createFilterdResolveInfoList() 493 return resultList; in createFilterdResolveInfoList()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiTracker.java | 490 List<ScanResult> resultList; in updateScanResultCache() local 492 resultList = scanResultsByApKey.get(apKey); in updateScanResultCache() 494 resultList = new ArrayList<>(); in updateScanResultCache() 495 scanResultsByApKey.put(apKey, resultList); in updateScanResultCache() 498 resultList.add(result); in updateScanResultCache()
|
/frameworks/base/services/core/java/com/android/server/ |
D | IntentResolver.java | 384 ArrayList<R> resultList = new ArrayList<R>(); in queryIntentFromList() local 394 listCut.get(i), resultList, userId); in queryIntentFromList() 396 filterResults(resultList); in queryIntentFromList() 397 sortResults(resultList); in queryIntentFromList() 398 return resultList; in queryIntentFromList()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ChooserActivity.java | 837 return resultList -> { in createAppPredictorCallback() 844 if (resultList.isEmpty() in createAppPredictorCallback() 854 for (AppTarget appTarget : resultList) { in createAppPredictorCallback() 860 resultList = shortcutResults; in createAppPredictorCallback() field in ChooserActivity 861 for (AppTarget appTarget : resultList) { in createAppPredictorCallback() 867 sendShareShortcutInfoList(shareShortcutInfos, chooserListAdapter, resultList, in createAppPredictorCallback() argument 2088 List<ShortcutManager.ShareShortcutInfo> resultList = sm.getShareTargets(filter); 2089 sendShareShortcutInfoList(resultList, adapter, null, userHandle); 2117 List<ShortcutManager.ShareShortcutInfo> resultList, 2120 if (appTargets != null && appTargets.size() != resultList.size()) { [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 13573 ArrayList<AndroidPackage> resultList = null; in updateAllSharedLibrariesLocked() local 13599 if (resultList == null) { in updateAllSharedLibrariesLocked() 13600 resultList = new ArrayList<>(); in updateAllSharedLibrariesLocked() 13602 resultList.add(pkg); in updateAllSharedLibrariesLocked() 13633 return resultList; in updateAllSharedLibrariesLocked()
|