Searched refs:componentsToBind (Results 1 – 2 of 2) sorted by relevance
/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | ManagedServices.java | 1303 protected void populateComponentsToBind(SparseArray<Set<ComponentName>> componentsToBind, in populateComponentsToBind() argument 1315 componentsToBind.put(userId, new ArraySet<>()); in populateComponentsToBind() 1327 componentsToBind.put(userId, add); in populateComponentsToBind() 1381 final SparseArray<Set<ComponentName>> componentsToBind = new SparseArray<>(); in rebindServices() local 1391 populateComponentsToBind(componentsToBind, userIds, approvedComponentsByUser); in rebindServices() 1396 forceRebind, removableBoundServices, componentsToBind, componentsToUnbind); in rebindServices() 1400 bindToServices(componentsToBind); in rebindServices() 1440 private void bindToServices(SparseArray<Set<ComponentName>> componentsToBind) { in bindToServices() argument 1441 for (int i = 0; i < componentsToBind.size(); i++) { in bindToServices() 1442 final int userId = componentsToBind.keyAt(i); in bindToServices() [all …]
|
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | ManagedServicesTest.java | 1427 SparseArray<Set<ComponentName>> componentsToBind = new SparseArray<>(); in populateComponentsToBind() local 1429 service.populateComponentsToBind(componentsToBind, users, approvedComponentsByUser); in populateComponentsToBind() 1431 assertEquals(2, componentsToBind.size()); in populateComponentsToBind() 1432 assertEquals(1, componentsToBind.get(0).size()); in populateComponentsToBind() 1433 assertTrue(componentsToBind.get(0).contains(ComponentName.unflattenFromString("a/a"))); in populateComponentsToBind() 1434 assertEquals(2, componentsToBind.get(10).size()); in populateComponentsToBind() 1435 assertTrue(componentsToBind.get(10).contains(ComponentName.unflattenFromString("b/b"))); in populateComponentsToBind() 1436 assertTrue(componentsToBind.get(10).contains(ComponentName.unflattenFromString("c/c"))); in populateComponentsToBind()
|