/frameworks/base/services/core/java/com/android/server/policy/role/ |
D | LegacyRoleResolutionPolicy.java | 33 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/ |
D | NetworkStatsSubscriptionsMonitor.java | 35 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/ |
D | DeviceDiscoveryService.java | 23 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/ |
D | AccessibilityNodeInfoTest.java | 34 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/ |
D | CompanionDeviceManagerService.java | 20 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/ |
D | BluetoothDeviceFilter.java | 35 import com.android.internal.util.CollectionUtils; 59 mServiceUuids = CollectionUtils.emptyIfNull(serviceUuids); in BluetoothDeviceFilter() 60 mServiceUuidMasks = CollectionUtils.emptyIfNull(serviceUuidMasks); in BluetoothDeviceFilter()
|
D | AssociationRequest.java | 27 import com.android.internal.util.CollectionUtils; 53 this.mDeviceFilters = CollectionUtils.emptyIfNull(deviceFilters); in AssociationRequest()
|
/frameworks/base/services/core/java/com/android/server/appbinding/finders/ |
D | CarrierMessagingClientServiceFinder.java | 35 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/ |
D | RoleManagerService.java | 65 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()
|
D | RoleUserState.java | 34 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/ |
D | DefaultDialerManager.java | 32 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/ |
D | NetworkStatsSubscriptionsMonitorTest.java | 42 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/ |
D | QSTileHostTest.java | 40 import com.android.internal.util.CollectionUtils; 146 QSTile element = CollectionUtils.firstOrNull(mQSTileHost.getTiles()); in testSpecWithInvalidDoesNotUseDefault()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | CollectionUtils.java | 42 public class CollectionUtils { class 43 private CollectionUtils() { /* cannot be instantiated */ } in CollectionUtils() method in CollectionUtils
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProviderMap.java | 27 import com.android.internal.util.CollectionUtils; 343 CollectionUtils.addIf(allProviders, ret, filter); in getProvidersForName()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothProfileManager.java | 44 import com.android.internal.util.CollectionUtils; 129 if (CollectionUtils.isEmpty(supportedList)) { in updateLocalProfiles()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | AccessPoint.java | 63 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/ |
D | AccessibilityRecord.java | 19 import static com.android.internal.util.CollectionUtils.isEmpty;
|
D | AccessibilityNodeInfo.java | 53 import com.android.internal.util.CollectionUtils; 1121 return CollectionUtils.emptyIfNull(mActions); in getActionList()
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 135 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/ |
D | NotificationManagerService.java | 226 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/ |
D | Settings.java | 86 import com.android.internal.util.CollectionUtils; 5086 final int size = CollectionUtils.size(list); in dumpComponents()
|
/frameworks/base/config/ |
D | preloaded-classes | 5118 com.android.internal.util.CollectionUtils 7240 libcore.util.CollectionUtils
|
D | boot-image-profile.txt | 24133 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 …]
|