Searched refs:componentsToBind (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ManagedServices.java | 940 protected void populateComponentsToBind(SparseArray<Set<ComponentName>> componentsToBind, in populateComponentsToBind() argument 952 componentsToBind.put(userId, new ArraySet<>()); in populateComponentsToBind() 959 componentsToBind.put(userId, add); in populateComponentsToBind() 1011 final SparseArray<Set<ComponentName>> componentsToBind = new SparseArray<>(); in rebindServices() local 1021 populateComponentsToBind(componentsToBind, userIds, approvedComponentsByUser); in rebindServices() 1026 forceRebind, removableBoundServices, componentsToBind, componentsToUnbind); in rebindServices() 1030 bindToServices(componentsToBind); in rebindServices() 1046 private void bindToServices(SparseArray<Set<ComponentName>> componentsToBind) { in bindToServices() argument 1047 for (int i = 0; i < componentsToBind.size(); i++) { in bindToServices() 1048 final int userId = componentsToBind.keyAt(i); in bindToServices() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ManagedServicesTest.java | 959 SparseArray<Set<ComponentName>> componentsToBind = new SparseArray<>(); in populateComponentsToBind() local 961 service.populateComponentsToBind(componentsToBind, users, approvedComponentsByUser); in populateComponentsToBind() 963 assertEquals(2, componentsToBind.size()); in populateComponentsToBind() 964 assertEquals(1, componentsToBind.get(0).size()); in populateComponentsToBind() 965 assertTrue(componentsToBind.get(0).contains(ComponentName.unflattenFromString("a/a"))); in populateComponentsToBind() 966 assertEquals(2, componentsToBind.get(10).size()); in populateComponentsToBind() 967 assertTrue(componentsToBind.get(10).contains(ComponentName.unflattenFromString("b/b"))); in populateComponentsToBind() 968 assertTrue(componentsToBind.get(10).contains(ComponentName.unflattenFromString("c/c"))); in populateComponentsToBind()
|