Searched refs:componentsToBind (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ManagedServices.java | 1129 protected void populateComponentsToBind(SparseArray<Set<ComponentName>> componentsToBind, in populateComponentsToBind() argument 1141 componentsToBind.put(userId, new ArraySet<>()); in populateComponentsToBind() 1148 componentsToBind.put(userId, add); in populateComponentsToBind() 1200 final SparseArray<Set<ComponentName>> componentsToBind = new SparseArray<>(); in rebindServices() local 1210 populateComponentsToBind(componentsToBind, userIds, approvedComponentsByUser); in rebindServices() 1215 forceRebind, removableBoundServices, componentsToBind, componentsToUnbind); in rebindServices() 1219 bindToServices(componentsToBind); in rebindServices() 1235 private void bindToServices(SparseArray<Set<ComponentName>> componentsToBind) { in bindToServices() argument 1236 for (int i = 0; i < componentsToBind.size(); i++) { in bindToServices() 1237 final int userId = componentsToBind.keyAt(i); in bindToServices() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ManagedServicesTest.java | 1110 SparseArray<Set<ComponentName>> componentsToBind = new SparseArray<>(); in populateComponentsToBind() local 1112 service.populateComponentsToBind(componentsToBind, users, approvedComponentsByUser); in populateComponentsToBind() 1114 assertEquals(2, componentsToBind.size()); in populateComponentsToBind() 1115 assertEquals(1, componentsToBind.get(0).size()); in populateComponentsToBind() 1116 assertTrue(componentsToBind.get(0).contains(ComponentName.unflattenFromString("a/a"))); in populateComponentsToBind() 1117 assertEquals(2, componentsToBind.get(10).size()); in populateComponentsToBind() 1118 assertTrue(componentsToBind.get(10).contains(ComponentName.unflattenFromString("b/b"))); in populateComponentsToBind() 1119 assertTrue(componentsToBind.get(10).contains(ComponentName.unflattenFromString("c/c"))); in populateComponentsToBind()
|