Home
last modified time | relevance | path

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

/frameworks/base/tests/Input/src/com/android/server/input/
DConfigurationProcessorTest.java53 Map<String, Integer> associations = null; in testGetInputPortAssociations() local
55 associations = ConfigurationProcessor.processInputPortAssociations(xml); in testGetInputPortAssociations()
59 assertNotNull(associations); in testGetInputPortAssociations()
60 assertEquals(2, associations.size()); in testGetInputPortAssociations()
61 assertEquals(0, associations.get("USB1").intValue()); in testGetInputPortAssociations()
62 assertEquals(1, associations.get("USB2").intValue()); in testGetInputPortAssociations()
70 Map<String, Integer> associations = null; in testGetInputPortAssociationsBadDisplayport() local
72 associations = ConfigurationProcessor.processInputPortAssociations(xml); in testGetInputPortAssociationsBadDisplayport()
76 assertNotNull(associations); in testGetInputPortAssociationsBadDisplayport()
77 assertEquals(0, associations.size()); in testGetInputPortAssociationsBadDisplayport()
/frameworks/base/services/companion/java/com/android/server/companion/association/
DAssociationDiskStore.java204 Associations associations; in readAssociationsByUser() local
225 associations = readAssociationsFromFile(userId, readFrom, rootTag); in readAssociationsByUser()
227 if (legacyBaseFile != null || associations.getVersion() < CURRENT_PERSISTENCE_VERSION) { in readAssociationsByUser()
230 writeAssociationsToFile(file, associations); in readAssociationsByUser()
238 return associations; in readAssociationsByUser()
245 @NonNull Associations associations) { in writeAssociationsForUser() argument
252 writeAssociationsToFile(file, associations); in writeAssociationsForUser()
275 Associations associations = new Associations(); in readAssociationsFromInputStream() local
279 associations = readAssociationsV0(parser, userId); in readAssociationsFromInputStream()
285 associations = readAssociationsV1(parser, userId); in readAssociationsFromInputStream()
[all …]
DAssociations.java53 public void setAssociations(List<AssociationInfo> associations) { in setAssociations() argument
54 mAssociations = List.copyOf(associations); in setAssociations()
DAssociationStore.java306 Associations associations = new Associations(); in writeCacheToDisk() local
308 associations.setMaxId(mMaxId); in writeCacheToDisk()
309 associations.setAssociations( in writeCacheToDisk()
313 mDiskStore.writeAssociationsForUser(userId, associations); in writeCacheToDisk()
/frameworks/base/services/core/java/com/android/server/input/
DConfigurationProcessor.java89 Map<String, Integer> associations = new HashMap<String, Integer>(); in processInputPortAssociations() local
109 associations.put(inputPort, displayPort); in processInputPortAssociations()
115 return associations; in processInputPortAssociations()
DInputManagerService.java2516 final Map<String, Integer> associations = new HashMap<>(mStaticAssociations); in getInputPortAssociations() local
2520 associations.putAll(mRuntimeAssociations); in getInputPortAssociations()
2523 return flatten(associations); in getInputPortAssociations()
2529 final Map<String, String> associations; in getInputUniqueIdAssociationsByPort() local
2531 associations = new HashMap<>(mUniqueIdAssociationsByPort); in getInputUniqueIdAssociationsByPort()
2534 return flatten(associations); in getInputUniqueIdAssociationsByPort()
2540 final Map<String, String> associations; in getInputUniqueIdAssociationsByDescriptor() local
2542 associations = new HashMap<>(mUniqueIdAssociationsByDescriptor); in getInputUniqueIdAssociationsByDescriptor()
2545 return flatten(associations); in getInputUniqueIdAssociationsByDescriptor()
2552 final Map<String, String> associations; in getDeviceTypeAssociations() local
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobNotificationCoordinator.java188 final SparseSetArray<JobServiceContext> associations = in removeNotificationAssociation() local
190 if (associations == null || !associations.remove(details.notificationId, hostingContext)) { in removeNotificationAssociation()
198 ArraySet<JobServiceContext> associatedContexts = associations.get(notificationId); in removeNotificationAssociation()
255 final SparseSetArray<JobServiceContext> associations = mCurrentAssociations.get(pkgDetails); in isNotificationUsedForAnyUij() local
256 if (associations == null) { in isNotificationUsedForAnyUij()
259 final ArraySet<JobServiceContext> associatedContexts = associations.get(notificationId); in isNotificationUsedForAnyUij()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DVirtualDeviceManagerService.java122 public void onAssociationsChanged(@NonNull List<AssociationInfo> associations) {
123 syncVirtualDevicesToCdmAssociations(associations);
305 private void syncVirtualDevicesToCdmAssociations(List<AssociationInfo> associations) { in syncVirtualDevicesToCdmAssociations() argument
312 Set<Integer> activeAssociationIds = new HashSet<>(associations.size()); in syncVirtualDevicesToCdmAssociations()
313 for (AssociationInfo association : associations) { in syncVirtualDevicesToCdmAssociations()
346 void onCdmAssociationsChanged(List<AssociationInfo> associations) { in onCdmAssociationsChanged() argument
348 for (int i = 0; i < associations.size(); ++i) { in onCdmAssociationsChanged()
349 AssociationInfo association = associations.get(i); in onCdmAssociationsChanged()
651 List<AssociationInfo> associations; in getAssociationInfo() local
654 associations = cdm.getAllAssociations(); in getAssociationInfo()
[all …]
/frameworks/base/core/java/android/companion/
DIOnAssociationsChangedListener.aidl40 void onAssociationsChanged(in List<AssociationInfo> associations); in onAssociationsChanged() argument
DIOnTransportsChangedListener.aidl24 oneway void onTransportsChanged(in List<AssociationInfo> associations); in onTransportsChanged() argument
DCompanionDeviceManager.java909 void onAssociationsChanged(@NonNull List<AssociationInfo> associations); in onAssociationsChanged() argument
1831 public void onAssociationsChanged(@NonNull List<AssociationInfo> associations) { in onAssociationsChanged() argument
1832 mExecutor.execute(() -> mListener.onAssociationsChanged(associations)); in onAssociationsChanged()
1848 public void onTransportsChanged(@NonNull List<AssociationInfo> associations) { in onTransportsChanged() argument
1849 mExecutor.execute(() -> mListener.accept(associations)); in onTransportsChanged()
/frameworks/base/services/companion/java/com/android/server/companion/devicepresence/
DBluetoothDeviceProcessor.java114 final List<AssociationInfo> associations = in onDeviceConnectivityChanged() local
117 for (AssociationInfo association : associations) { in onDeviceConnectivityChanged()
DDevicePresenceProcessor.java865 final List<AssociationInfo> associations = in onBinderDied() local
868 for (AssociationInfo association : associations) { in onBinderDied()
/frameworks/base/services/companion/java/com/android/server/companion/transport/
DCompanionTransportManager.java178 List<AssociationInfo> associations = new ArrayList<>(); in getAssociationsWithTransport() local
184 associations.add(association); in getAssociationsWithTransport()
188 return associations; in getAssociationsWithTransport()
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java238 final List<AssociationInfo> associations = mAssociationStore.getActiveAssociationsByUser( in onUserUnlocking() local
241 if (associations.isEmpty()) return; in onUserUnlocking()
243 updateAtm(userId, associations); in onUserUnlocking()
813 private void updateAtm(int userId, List<AssociationInfo> associations) { in updateAtm() argument
815 for (AssociationInfo association : associations) { in updateAtm()
844 final List<AssociationInfo> associations = in maybeGrantAutoRevokeExemptions() local
846 for (AssociationInfo a : associations) { in maybeGrantAutoRevokeExemptions()
/frameworks/base/core/tests/companiontests/src/android/companion/
DSystemDataTransportTest.java230 mCdm.addOnTransportsChangedListener(Runnable::run, associations -> { in testDisassociationCleanup()
231 if (associations.stream() in testDisassociationCleanup()
/frameworks/av/media/module/extractors/mp4/
DItemTable.cpp929 IpmaBox(DataSourceHelper *source, Vector<AssociationEntry> *associations) : in IpmaBox()
930 FullBox(source, FOURCC("ipma")), mAssociations(associations) {} in IpmaBox()
1072 Vector<AssociationEntry> *associations) : in IprpBox()
1074 mProperties(properties), mAssociations(associations) {} in IprpBox()
/frameworks/base/services/core/java/com/android/server/
DSystemConfig.java1391 ArraySet<String> associations = mAllowedAssociations.get(target); in readPermissionsFromXml() local
1392 if (associations == null) { in readPermissionsFromXml()
1393 associations = new ArraySet<>(); in readPermissionsFromXml()
1394 mAllowedAssociations.put(target, associations); in readPermissionsFromXml()
1397 associations.add(allowed); in readPermissionsFromXml()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessStats.java1769 ArrayList<AssociationDumpContainer> associations = in dumpLocked() local
1784 associations.add(cont); in dumpLocked()
1786 Collections.sort(associations, ASSOCIATION_COMPARATOR); in dumpLocked()
1787 final int NCONT = associations.size(); in dumpLocked()
1789 final AssociationDumpContainer cont = associations.get(iasc); in dumpLocked()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java10688 List<AssociationInfo> associations = mCompanionManager.getAssociations(pkg, userId);
10689 for (AssociationInfo association : associations) {
/frameworks/proto_logging/stats/
Datoms.proto12531 // Number of the set associations requested.
12533 // Concatenated string for the types from set associations request.
12536 // Concatenated string for the values from set associations request.
12567 // Number of the set associations in the response.
12569 // Concatenated string for the types from set associations request.
12572 // Concatenated string for the values from set associations request.
22555 * Log the CompanionDeviceManager associations are created by various device