Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/policy/role/
DLegacyRoleResolutionPolicy.java33 import com.android.internal.util.CollectionUtils;
85 return CollectionUtils.singletonOrEmpty(packageName); in getRoleHolders()
92 return CollectionUtils.singletonOrEmpty(packageName); in getRoleHolders()
109 return CollectionUtils.singletonOrEmpty(packageName); in getRoleHolders()
124 return CollectionUtils.singletonOrEmpty(packageName); in getRoleHolders()
131 return CollectionUtils.singletonOrEmpty(packageName); in getRoleHolders()
137 return CollectionUtils.singletonOrEmpty(defaultEmergencyApp); in getRoleHolders()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitor.java35 import com.android.internal.util.CollectionUtils;
98 final RatTypeListener match = CollectionUtils.find(mRatListeners, in onSubscriptionsChanged()
120 final Integer match = CollectionUtils.find(newSubs, it -> it == listener.mSubId); in onSubscriptionsChanged()
142 final RatTypeListener match = CollectionUtils.find(mRatListeners, in getRatTypeForSubscriberId()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceDiscoveryService.java23 import static com.android.internal.util.CollectionUtils.emptyIfNull;
24 import static com.android.internal.util.CollectionUtils.size;
66 import com.android.internal.util.CollectionUtils;
153 mWifiFilters = CollectionUtils.filter(mFilters, WifiDeviceFilter.class); in startDiscovery()
154 mBluetoothFilters = CollectionUtils.filter(mFilters, BluetoothDeviceFilter.class); in startDiscovery()
155 mBLEFilters = CollectionUtils.filter(mFilters, BluetoothLeDeviceFilter.class); in startDiscovery()
156 … mBLEScanFilters = CollectionUtils.map(mBLEFilters, BluetoothLeDeviceFilter::getScanFilter); in startDiscovery()
393 = CollectionUtils.find(filters, f -> f.matches(dev)); in findMatch()
/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/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java20 import static com.android.internal.util.CollectionUtils.size;
72 import com.android.internal.util.CollectionUtils;
145 as -> CollectionUtils.filter(as, in registerPackageMonitor()
274 return new ArrayList<>(CollectionUtils.map( in getAssociations()
458 updateAssociations(associations -> CollectionUtils.remove(associations,
524 updateAssociations(associations -> CollectionUtils.add(associations,
537 final Set<Association> old = CollectionUtils.copyOf(associations);
555 CollectionUtils.forEach(finalAssociations, association -> {
672 CollectionUtils.forEach(
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilter.java35 import com.android.internal.util.CollectionUtils;
59 mServiceUuids = CollectionUtils.emptyIfNull(serviceUuids); in BluetoothDeviceFilter()
60 mServiceUuidMasks = CollectionUtils.emptyIfNull(serviceUuidMasks); in BluetoothDeviceFilter()
DAssociationRequest.java27 import com.android.internal.util.CollectionUtils;
53 this.mDeviceFilters = CollectionUtils.emptyIfNull(deviceFilters); in AssociationRequest()
/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/role/
DRoleManagerService.java65 import com.android.internal.util.CollectionUtils;
291 int numComponents = CollectionUtils.size(enabledComponents); in computeComponentStateHash()
299 numComponents = CollectionUtils.size(disabledComponents); in computeComponentStateHash()
641 return CollectionUtils.firstOrNull( in getDefaultSmsPackage()
704 return CollectionUtils.firstOrNull(getOrCreateUserState(userId).getRoleHolders( in getDefaultBrowser()
758 return CollectionUtils.firstOrNull(getOrCreateUserState(userId).getRoleHolders( in getDefaultDialer()
768 return CollectionUtils.firstOrNull(getOrCreateUserState(userId).getRoleHolders( in getDefaultHome()
DRoleUserState.java34 import com.android.internal.util.CollectionUtils;
589 for (int i = 0, size = CollectionUtils.size(mRoles); i < size; ++i) { in snapshotRolesLocked()
/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/tests/net/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitorTest.java42 import com.android.internal.util.CollectionUtils;
118 final RatTypeListener match = CollectionUtils in setRatTypeForSub()
233 final RatTypeListener listener = CollectionUtils in test5g()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSTileHostTest.java40 import com.android.internal.util.CollectionUtils;
146 QSTile element = CollectionUtils.firstOrNull(mQSTileHost.getTiles()); in testSpecWithInvalidDoesNotUseDefault()
/frameworks/base/core/java/com/android/internal/util/
DCollectionUtils.java42 public class CollectionUtils { class
43 private CollectionUtils() { /* cannot be instantiated */ } in CollectionUtils() method in CollectionUtils
/frameworks/base/services/core/java/com/android/server/am/
DProviderMap.java27 import com.android.internal.util.CollectionUtils;
343 CollectionUtils.addIf(allProviders, ret, filter); in getProvidersForName()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothProfileManager.java44 import com.android.internal.util.CollectionUtils;
129 if (CollectionUtils.isEmpty(supportedList)) { in updateLocalProfiles()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java63 import com.android.internal.util.CollectionUtils;
1389 if (CollectionUtils.isEmpty(scanResults)) { in setScanResults()
1444 if (!CollectionUtils.isEmpty(homeScans)) { in setScanResultsPasspoint()
1446 if (!CollectionUtils.isEmpty(roamingScans)) { in setScanResultsPasspoint()
1450 } else if (!CollectionUtils.isEmpty(roamingScans)) { in setScanResultsPasspoint()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityRecord.java19 import static com.android.internal.util.CollectionUtils.isEmpty;
DAccessibilityNodeInfo.java53 import com.android.internal.util.CollectionUtils;
1121 return CollectionUtils.emptyIfNull(mActions); in getActionList()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java135 import com.android.internal.util.CollectionUtils;
1652 for (AppOpsManager.PackageOps pkg : CollectionUtils.emptyIfNull(pkgs)) { in getLastAccessTime()
1653 for (AppOpsManager.OpEntry op : CollectionUtils.emptyIfNull(pkg.getOps())) { in getLastAccessTime()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java226 import com.android.internal.util.CollectionUtils;
3947 return CollectionUtils.firstOrNull(allowedComponents);
4280 ComponentName allowedAssistant = CollectionUtils.firstOrNull(
8017 ComponentName currentComponent = CollectionUtils.firstOrNull(allowedComponents);
8727 return CollectionUtils.firstOrNull(allowedComponents);
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java86 import com.android.internal.util.CollectionUtils;
5086 final int size = CollectionUtils.size(list); in dumpComponents()
/frameworks/base/config/
Dpreloaded-classes5118 com.android.internal.util.CollectionUtils
7240 libcore.util.CollectionUtils
Dboot-image-profile.txt24133 HPLcom/android/internal/util/CollectionUtils;->addIf(Ljava/util/List;Ljava/util/Collection;Ljava/ut…
24134 HSPLcom/android/internal/util/CollectionUtils;->copyOf(Ljava/util/Set;)Ljava/util/Set;
24135 HSPLcom/android/internal/util/CollectionUtils;->filter(Ljava/util/Set;Ljava/util/function/Predicate…
24136 HSPLcom/android/internal/util/CollectionUtils;->firstOrNull(Ljava/util/Collection;)Ljava/lang/Objec…
24137 HSPLcom/android/internal/util/CollectionUtils;->firstOrNull(Ljava/util/List;)Ljava/lang/Object;
24138 HSPLcom/android/internal/util/CollectionUtils;->isEmpty(Ljava/util/Collection;)Z
24139 HSPLcom/android/internal/util/CollectionUtils;->map(Ljava/util/Set;Ljava/util/function/Function;)Lj…
24140 HPLcom/android/internal/util/CollectionUtils;->singletonOrEmpty(Ljava/lang/Object;)Ljava/util/List;
24141 HSPLcom/android/internal/util/CollectionUtils;->size(Ljava/util/Collection;)I
30884 HSPLlibcore/util/CollectionUtils;->removeDuplicates(Ljava/util/List;Ljava/util/Comparator;)V
[all …]