Home
last modified time | relevance | path

Searched refs:associations (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/notification/src/com/android/server/notification/
DNotificationManagerServiceTest.java547 List<String> associations = new ArrayList<>(); in testCreateChannelNotifyListener() local
548 associations.add("a"); in testCreateChannelNotifyListener()
549 when(mCompanionMgr.getAssociations(PKG, uid)).thenReturn(associations); in testCreateChannelNotifyListener()
572 List<String> associations = new ArrayList<>(); in testCreateChannelGroupNotifyListener() local
573 associations.add("a"); in testCreateChannelGroupNotifyListener()
574 when(mCompanionMgr.getAssociations(PKG, uid)).thenReturn(associations); in testCreateChannelGroupNotifyListener()
592 List<String> associations = new ArrayList<>(); in testUpdateChannelNotifyListener() local
593 associations.add("a"); in testUpdateChannelNotifyListener()
594 when(mCompanionMgr.getAssociations(PKG, uid)).thenReturn(associations); in testUpdateChannelNotifyListener()
610 List<String> associations = new ArrayList<>(); in testDeleteChannelNotifyListener() local
[all …]
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java431 updateAssociations(associations -> CollectionUtils.remove(associations,
494 updateAssociations(associations -> CollectionUtils.add(associations,
506 List<Association> associations = readAllAssociations(userId);
507 final List<Association> old = CollectionUtils.copyOf(associations);
508 associations = update.apply(associations);
509 if (size(old) == size(associations)) return;
511 List<Association> finalAssociations = associations;
630 ArrayList<Association> associations = readAllAssociations(getNextArgInt());
631 for (int i = 0; i < size(associations); i++) {
632 Association a = associations.get(i);
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java4900 List<String> associations = mCompanionManager.getAssociations( in hasCompanionDevice() local
4902 if (!ArrayUtils.isEmpty(associations)) { in hasCompanionDevice()