Home
last modified time | relevance | path

Searched refs:CollectionUtils (Results 1 – 25 of 84) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DCollectionUtilsTest.java43 assertEquals(0, CollectionUtils.size(res)); in testList()
44 assertTrue(CollectionUtils.isEmpty(res)); in testList()
45 assertNull(CollectionUtils.firstOrNull(res)); in testList()
46 assertFalse(CollectionUtils.contains(res, RED)); in testList()
47 assertFalse(CollectionUtils.contains(res, GREEN)); in testList()
49 res = CollectionUtils.add(res, RED); in testList()
50 assertEquals(1, CollectionUtils.size(res)); in testList()
51 assertFalse(CollectionUtils.isEmpty(res)); in testList()
52 assertEquals(RED, CollectionUtils.firstOrNull(res)); in testList()
53 assertTrue(CollectionUtils.contains(res, RED)); in testList()
[all …]
/frameworks/base/services/companion/java/com/android/server/companion/association/
DAssociationStore.java41 import com.android.internal.util.CollectionUtils;
310 CollectionUtils.filter(mIdToAssociationMap.values().stream().toList(), in writeCacheToDisk()
339 return CollectionUtils.filter(getAssociations(), AssociationInfo::isActive); in getActiveAssociations()
349 return CollectionUtils.filter(getAssociations(), a -> a.getUserId() == userId); in getAssociationsByUser()
359 return CollectionUtils.filter(getActiveAssociations(), a -> a.getUserId() == userId); in getActiveAssociationsByUser()
370 return CollectionUtils.filter(getAssociationsByUser(userId), in getAssociationsByPackage()
382 return CollectionUtils.filter(getActiveAssociationsByUser(userId), in getActiveAssociationsByPackage()
394 return CollectionUtils.find(getActiveAssociationsByPackage(userId, packageName), in getFirstAssociationByAddress()
416 return CollectionUtils.filter(getActiveAssociations(), in getActiveAssociationsByAddress()
428 return CollectionUtils.filter(getAssociations(), AssociationInfo::isRevoked); in getRevokedAssociations()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/wakeups/
DIrqDeviceMapTest.java27 import com.android.internal.util.CollectionUtils;
82 assertThat(CollectionUtils.isEmpty(subsystems)).isTrue(); in complexXml()
91 assertThat(CollectionUtils.isEmpty(subsystems)).isTrue(); in complexXml()
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityNodeInfoTest.java34 import com.android.internal.util.CollectionUtils;
65 AccessibilityAction brokenStandardAction = CollectionUtils.find( in testStandardActions_serializationFlagIsValid()
78 brokenStandardAction = CollectionUtils.find( in testStandardActions_serializationFlagIsValid()
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerServiceImpl.java51 import com.android.internal.util.CollectionUtils;
170 CollectionUtils.addAll(updatedTargets, removeOverlaysForUser( in updateOverlaysForUser()
193 CollectionUtils.addAll(updatedTargets, in updateOverlaysForUser()
211 CollectionUtils.addAll(updatedTargets, registerFabricatedOverlay( in updateOverlaysForUser()
250 CollectionUtils.add(updatedTargets, in updateOverlaysForUser()
312 return CollectionUtils.addAll(targets, in onPackageRemoved()
324 targets = CollectionUtils.add(targets, in removeOverlaysForUser()
370 updatedTargets = CollectionUtils.add(updatedTargets, in updatePackageOverlays()
384 updatedTargets = CollectionUtils.add(updatedTargets, in updatePackageOverlays()
390 updatedTargets = CollectionUtils.add(updatedTargets, in updatePackageOverlays()
[all …]
DOverlayActorEnforcer.java30 import com.android.internal.util.CollectionUtils;
56 if (!"overlay".equals(actorScheme) || CollectionUtils.size(actorPathSegments) != 1) { in getPackageNameForActor()
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileResolver.java26 import com.android.internal.util.CollectionUtils;
114 for (int i = CollectionUtils.size(crossProfileDomainInfos) - 1; i >= 0; i--) { in filterIfNotSystemUser()
DDefaultAppProvider.java27 import com.android.internal.util.CollectionUtils;
154 return CollectionUtils.firstOrNull(roleManager.getRoleHoldersAsUser(roleName, in getRoleHolder()
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilter.java36 import com.android.internal.util.CollectionUtils;
60 mServiceUuids = CollectionUtils.emptyIfNull(serviceUuids); in BluetoothDeviceFilter()
61 mServiceUuidMasks = CollectionUtils.emptyIfNull(serviceUuidMasks); in BluetoothDeviceFilter()
/frameworks/base/services/companion/java/com/android/server/companion/
DBackupRestoreProcessor.java35 import com.android.internal.util.CollectionUtils;
167 List<SystemDataTransferRequest> restoredRequests = CollectionUtils.filter( in applyRestoredPayload()
247 AssociationInfo local = CollectionUtils.find(localAssociations, isSameDevice); in handleCollision()
264 boolean requestTypeExists = CollectionUtils.any(localRequests, request -> in handleCollision()
/frameworks/base/core/java/com/android/internal/pm/parsing/pkg/
DPackageImpl.java85 import com.android.internal.util.CollectionUtils;
495 this.activities = CollectionUtils.add(this.activities, parsedActivity); in addActivity()
502 this.adoptPermissions = CollectionUtils.add(this.adoptPermissions, in addAdoptPermission()
510 this.apexSystemServices = CollectionUtils.add( in addApexSystemService()
517 this.attributions = CollectionUtils.add(this.attributions, attribution); in addAttribution()
523 this.configPreferences = CollectionUtils.add(this.configPreferences, configPreference); in addConfigPreference()
529 this.featureGroups = CollectionUtils.add(this.featureGroups, featureGroup); in addFeatureGroup()
536 this.implicitPermissions = CollectionUtils.add(this.implicitPermissions, in addImplicitPermission()
543 this.instrumentations = CollectionUtils.add(this.instrumentations, instrumentation); in addInstrumentation()
554 keySetMapping = CollectionUtils.add(this.keySetMapping, keySetName, publicKeys); in addKeySet()
[all …]
/frameworks/base/services/people/java/com/android/server/people/data/
DEventList.java21 import com.android.internal.util.CollectionUtils;
93 return CollectionUtils.copyOf(mEvents); in getAllEvents()
/frameworks/base/apex/jobscheduler/service/
Djarjar-rules.txt8 rule com.android.internal.util.CollectionUtils* com.android.internal.util.jobs.CollectionUtils@1
/frameworks/base/services/core/java/com/android/server/pm/pkg/
DPackageStateUnserialized.java27 import com.android.internal.util.CollectionUtils;
81 usesLibraryInfos = CollectionUtils.add(usesLibraryInfos, value); in addUsesLibraryInfo()
87 usesLibraryFiles = CollectionUtils.add(usesLibraryFiles, value); in addUsesLibraryFile()
/frameworks/base/services/core/java/com/android/server/appbinding/finders/
DCarrierMessagingClientServiceFinder.java35 import com.android.internal.util.CollectionUtils;
89 final String ret = CollectionUtils.firstOrNull(mRoleManager.getRoleHoldersAsUser( in getTargetPackage()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationUtils.java28 import com.android.internal.util.CollectionUtils;
70 int categoriesSize = CollectionUtils.size(categories); in isDomainVerificationIntent()
/frameworks/base/core/java/android/content/pm/parsing/
DPackageLite.java27 import com.android.internal.util.CollectionUtils;
184 if (!CollectionUtils.isEmpty(mBaseRequiredSplitTypes)) { in hasAnyRequiredSplitTypes()
187 return ArrayUtils.find(mRequiredSplitTypes, r -> !CollectionUtils.isEmpty(r)) != null; in hasAnyRequiredSplitTypes()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedComponentImpl.java36 import com.android.internal.util.CollectionUtils;
107 this.intents = CollectionUtils.add(this.intents, intent); in addIntent()
114 this.mProperties = CollectionUtils.add(this.mProperties, property.getName(), property); in addProperty()
DParsedProviderImpl.java31 import com.android.internal.util.CollectionUtils;
98 uriPermissionPatterns = CollectionUtils.add(uriPermissionPatterns, value); in addUriPermissionPattern()
104 pathPermissions = CollectionUtils.add(pathPermissions, value); in addPathPermission()
DParsedProcessUtils.java33 import com.android.internal.util.CollectionUtils;
54 perms = CollectionUtils.add(perms, perm); in parseDenyPermission()
72 perms = CollectionUtils.remove(perms, perm); in parseAllowPermission()
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DRemoteContentCaptureService.java42 import com.android.internal.util.CollectionUtils;
96 CollectionUtils.size(mPerUserService.getContentCaptureAllowlist())); in handleOnConnectedStateChanged()
DContentCapturePerUserService.java73 import com.android.internal.util.CollectionUtils;
644 CollectionUtils.size(oldList)); in setContentCaptureWhitelist()
648 CollectionUtils.size(packages), CollectionUtils.size(activities)); in setContentCaptureWhitelist()
729 int addingCount = CollectionUtils.size(adding); in updateContentCaptureOptions()
735 addingCount = CollectionUtils.size(adding); in updateContentCaptureOptions()
/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java32 import com.android.internal.util.CollectionUtils;
133 return CollectionUtils.firstOrNull(context.getSystemService(RoleManager.class) in getDefaultDialerApplication()
/frameworks/base/core/java/android/content/pm/parsing/result/
DParseTypeImpl.java30 import com.android.internal.util.CollectionUtils;
174 int size = CollectionUtils.size(mDeferredErrors);
/frameworks/base/core/java/android/content/
DUriRelativeFilterGroup.java30 import com.android.internal.util.CollectionUtils;
169 if (!CollectionUtils.contains(mUriRelativeFilters, uriRelativeFilter)) { in addUriRelativeFilter()

1234