Home
last modified time | relevance | path

Searched refs:firstOrNull (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DCollectionUtils.java333 public static @Nullable <T> T firstOrNull(@Nullable List<T> cur) { in firstOrNull() method in CollectionUtils
340 public static @Nullable <T> T firstOrNull(@Nullable Collection<T> cur) { in firstOrNull() method in CollectionUtils
DArrayUtils.java760 public static @Nullable <T> T firstOrNull(T[] items) { in firstOrNull() method in ArrayUtils
/frameworks/base/services/core/java/com/android/server/appbinding/finders/
DCarrierMessagingClientServiceFinder.java89 final String ret = CollectionUtils.firstOrNull(mRoleManager.getRoleHoldersAsUser( in getTargetPackage()
/frameworks/libs/net/common/devicetests/com/android/testutils/
DFakeDns.kt42 return answers.firstOrNull { it.match(hostname, type) } in match()
/frameworks/base/services/core/java/com/android/server/role/
DRoleManagerService.java641 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()
/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java133 return CollectionUtils.firstOrNull(context.getSystemService(RoleManager.class) in getDefaultDialerApplication()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSTileHostTest.java146 QSTile element = CollectionUtils.firstOrNull(mQSTileHost.getTiles()); in testSpecWithInvalidDoesNotUseDefault()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DDefaultPermissionGrantPolicy.java440 ArrayUtils.firstOrNull(getKnownPackages( in grantDefaultSystemHandlerPermissions()
445 final String verifier = ArrayUtils.firstOrNull(getKnownPackages( in grantDefaultSystemHandlerPermissions()
452 ArrayUtils.firstOrNull(getKnownPackages( in grantDefaultSystemHandlerPermissions()
602 String browserPackage = ArrayUtils.firstOrNull(getKnownPackages( in grantDefaultSystemHandlerPermissions()
DPermissionManagerService.java1715 String systemPackageName = ArrayUtils.firstOrNull(mPackageManagerInt.getKnownPackageNames( in grantSignaturePermission()
/frameworks/base/services/core/java/com/android/server/pm/
DComponentResolver.java380 final String setupWizardPackage = ArrayUtils.firstOrNull( in addAllComponents()
418 final String setupWizardPackage = ArrayUtils.firstOrNull( in fixProtectedFilterPriorities()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java1390 caller = ArrayUtils.firstOrNull(AppGlobals.getPackageManager() in ObserverEntry()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java3947 return CollectionUtils.firstOrNull(allowedComponents);
4280 ComponentName allowedAssistant = CollectionUtils.firstOrNull(
8017 ComponentName currentComponent = CollectionUtils.firstOrNull(allowedComponents);
8727 return CollectionUtils.firstOrNull(allowedComponents);
/frameworks/base/config/
Dboot-image-profile.txt24136 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;