Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/policy/role/
DLegacyRoleResolutionPolicy.java35 import com.android.internal.util.CollectionUtils;
84 return CollectionUtils.singletonOrEmpty(packageName); in getRoleHolders()
90 return CollectionUtils.singletonOrEmpty(!TextUtils.isEmpty(setting) in getRoleHolders()
124 return CollectionUtils.singletonOrEmpty(result); in getRoleHolders()
131 return CollectionUtils.singletonOrEmpty(packageName); in getRoleHolders()
137 return CollectionUtils.singletonOrEmpty(defaultEmergencyApp); in getRoleHolders()
/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/telecomm/java/android/telecom/
DDefaultDialerManager.java32 import com.android.internal.util.CollectionUtils;
133 return CollectionUtils.firstOrNull(context.getSystemService(RoleManager.class) in getDefaultDialerApplication()
/frameworks/base/services/core/java/com/android/server/role/
DRoleManagerService.java66 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()
738 return CollectionUtils.firstOrNull(getOrCreateUserState(userId).getRoleHolders( in getDefaultBrowser()
792 return CollectionUtils.firstOrNull(getOrCreateUserState(userId).getRoleHolders( in getDefaultDialer()
802 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/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/wifi/
DAccessPoint.java62 import com.android.internal.util.CollectionUtils;
1311 if (CollectionUtils.isEmpty(scanResults)) { in setScanResults()
1367 if (!CollectionUtils.isEmpty(homeScans)) { in setScanResultsPasspoint()
1369 if (!CollectionUtils.isEmpty(roamingScans)) { in setScanResultsPasspoint()
1373 } else if (!CollectionUtils.isEmpty(roamingScans)) { in setScanResultsPasspoint()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothProfileManager.java43 import com.android.internal.util.CollectionUtils;
128 if (CollectionUtils.isEmpty(supportedList)) { in updateLocalProfiles()
/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;
1641 for (AppOpsManager.PackageOps pkg : CollectionUtils.emptyIfNull(pkgs)) { in getLastAccessTime()
1642 for (AppOpsManager.OpEntry op : CollectionUtils.emptyIfNull(pkg.getOps())) { in getLastAccessTime()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java224 import com.android.internal.util.CollectionUtils;
3870 return CollectionUtils.firstOrNull(allowedComponents);
4170 ComponentName allowedAssistant = CollectionUtils.firstOrNull(
7777 ComponentName currentComponent = CollectionUtils.firstOrNull(allowedComponents);
8476 return CollectionUtils.firstOrNull(allowedComponents);
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java86 import com.android.internal.util.CollectionUtils;
5085 final int size = CollectionUtils.size(list); in dumpComponents()
/frameworks/base/config/
Dpreloaded-classes5119 com.android.internal.util.CollectionUtils
7243 libcore.util.CollectionUtils
Dboot-image-profile.txt24134 HPLcom/android/internal/util/CollectionUtils;->addIf(Ljava/util/List;Ljava/util/Collection;Ljava/ut…
24135 HSPLcom/android/internal/util/CollectionUtils;->copyOf(Ljava/util/Set;)Ljava/util/Set;
24136 HSPLcom/android/internal/util/CollectionUtils;->filter(Ljava/util/Set;Ljava/util/function/Predicate…
24137 HSPLcom/android/internal/util/CollectionUtils;->firstOrNull(Ljava/util/Collection;)Ljava/lang/Objec…
24138 HSPLcom/android/internal/util/CollectionUtils;->firstOrNull(Ljava/util/List;)Ljava/lang/Object;
24139 HSPLcom/android/internal/util/CollectionUtils;->isEmpty(Ljava/util/Collection;)Z
24140 HSPLcom/android/internal/util/CollectionUtils;->map(Ljava/util/Set;Ljava/util/function/Function;)Lj…
24141 HPLcom/android/internal/util/CollectionUtils;->singletonOrEmpty(Ljava/lang/Object;)Ljava/util/List;
24142 HSPLcom/android/internal/util/CollectionUtils;->size(Ljava/util/Collection;)I
30885 HSPLlibcore/util/CollectionUtils;->removeDuplicates(Ljava/util/List;Ljava/util/Comparator;)V
[all …]