Searched refs:componentsToBind (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ManagedServices.java | 1367 protected void populateComponentsToBind(SparseArray<Set<ComponentName>> componentsToBind, in populateComponentsToBind() argument 1379 componentsToBind.put(userId, new ArraySet<>()); in populateComponentsToBind() 1391 componentsToBind.put(userId, add); in populateComponentsToBind() 1445 final SparseArray<Set<ComponentName>> componentsToBind = new SparseArray<>(); in rebindServices() local 1455 populateComponentsToBind(componentsToBind, userIds, approvedComponentsByUser); in rebindServices() 1460 forceRebind, removableBoundServices, componentsToBind, componentsToUnbind); in rebindServices() 1464 bindToServices(componentsToBind); in rebindServices() 1515 private void bindToServices(SparseArray<Set<ComponentName>> componentsToBind) { in bindToServices() argument 1516 for (int i = 0; i < componentsToBind.size(); i++) { in bindToServices() 1517 final int userId = componentsToBind.keyAt(i); in bindToServices() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ManagedServicesTest.java | 1508 SparseArray<Set<ComponentName>> componentsToBind = new SparseArray<>(); in populateComponentsToBind() local 1510 service.populateComponentsToBind(componentsToBind, users, approvedComponentsByUser); in populateComponentsToBind() 1512 assertEquals(2, componentsToBind.size()); in populateComponentsToBind() 1513 assertEquals(1, componentsToBind.get(0).size()); in populateComponentsToBind() 1514 assertTrue(componentsToBind.get(0).contains(ComponentName.unflattenFromString("a/a"))); in populateComponentsToBind() 1515 assertEquals(2, componentsToBind.get(10).size()); in populateComponentsToBind() 1516 assertTrue(componentsToBind.get(10).contains(ComponentName.unflattenFromString("b/b"))); in populateComponentsToBind() 1517 assertTrue(componentsToBind.get(10).contains(ComponentName.unflattenFromString("c/c"))); in populateComponentsToBind()
|