/frameworks/base/services/core/java/com/android/server/policy/role/ |
D | LegacyRoleResolutionPolicy.java | 35 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/ |
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/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/services/core/java/com/android/server/role/ |
D | RoleManagerService.java | 66 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()
|
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/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/wifi/ |
D | AccessPoint.java | 62 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/ |
D | LocalBluetoothProfileManager.java | 43 import com.android.internal.util.CollectionUtils; 128 if (CollectionUtils.isEmpty(supportedList)) { in updateLocalProfiles()
|
/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; 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/ |
D | NotificationManagerService.java | 224 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/ |
D | Settings.java | 86 import com.android.internal.util.CollectionUtils; 5085 final int size = CollectionUtils.size(list); in dumpComponents()
|
/frameworks/base/config/ |
D | preloaded-classes | 5119 com.android.internal.util.CollectionUtils 7243 libcore.util.CollectionUtils
|
D | boot-image-profile.txt | 24134 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 …]
|