Home
last modified time | relevance | path

Searched refs:componentsToUnbind (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DManagedServicesTest.java1039 SparseArray<Set<ComponentName>> componentsToUnbind = new SparseArray<>(); in testPopulateComponentsToUnbind_forceRebind() local
1042 componentsToUnbind); in testPopulateComponentsToUnbind_forceRebind()
1044 assertEquals(2, componentsToUnbind.size()); in testPopulateComponentsToUnbind_forceRebind()
1045 assertTrue(componentsToUnbind.get(0).contains(ComponentName.unflattenFromString("a/a"))); in testPopulateComponentsToUnbind_forceRebind()
1046 assertTrue(componentsToUnbind.get(10).contains(ComponentName.unflattenFromString("b/b"))); in testPopulateComponentsToUnbind_forceRebind()
1079 SparseArray<Set<ComponentName>> componentsToUnbind = new SparseArray<>(); in testPopulateComponentsToUnbind() local
1082 componentsToUnbind); in testPopulateComponentsToUnbind()
1084 assertEquals(1, componentsToUnbind.size()); in testPopulateComponentsToUnbind()
1085 assertEquals(1, componentsToUnbind.get(0).size()); in testPopulateComponentsToUnbind()
1086 assertTrue(componentsToUnbind.get(0).contains(ComponentName.unflattenFromString("c/c"))); in testPopulateComponentsToUnbind()
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java1174 SparseArray<Set<ComponentName>> componentsToUnbind) { in populateComponentsToUnbind() argument
1180 componentsToUnbind.get(info.userid, new ArraySet<>()); in populateComponentsToUnbind()
1182 componentsToUnbind.put(info.userid, toUnbind); in populateComponentsToUnbind()
1201 final SparseArray<Set<ComponentName>> componentsToUnbind = new SparseArray<>(); in rebindServices() local
1215 forceRebind, removableBoundServices, componentsToBind, componentsToUnbind); in rebindServices()
1218 unbindFromServices(componentsToUnbind); in rebindServices()
1222 protected void unbindFromServices(SparseArray<Set<ComponentName>> componentsToUnbind) { in unbindFromServices() argument
1223 for (int i = 0; i < componentsToUnbind.size(); i++) { in unbindFromServices()
1224 final int userId = componentsToUnbind.keyAt(i); in unbindFromServices()
1225 final Set<ComponentName> removableComponents = componentsToUnbind.get(userId); in unbindFromServices()