Home
last modified time | relevance | path

Searched refs:associationInfo (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/java/android/companion/
DCompanionDeviceService.java257 public void onDeviceAppeared(@NonNull AssociationInfo associationInfo) { in onDeviceAppeared() argument
258 if (!associationInfo.isSelfManaged()) { in onDeviceAppeared()
259 onDeviceAppeared(associationInfo.getDeviceMacAddressAsString()); in onDeviceAppeared()
270 public void onDeviceDisappeared(@NonNull AssociationInfo associationInfo) { in onDeviceDisappeared() argument
271 if (!associationInfo.isSelfManaged()) { in onDeviceDisappeared()
272 onDeviceDisappeared(associationInfo.getDeviceMacAddressAsString()); in onDeviceDisappeared()
312 public void onDeviceAppeared(AssociationInfo associationInfo) { in onDeviceAppeared() argument
313 mMainHandler.postAtFrontOfQueue(() -> mService.onDeviceAppeared(associationInfo)); in onDeviceAppeared()
317 public void onDeviceDisappeared(AssociationInfo associationInfo) { in onDeviceDisappeared() argument
318 mMainHandler.postAtFrontOfQueue(() -> mService.onDeviceDisappeared(associationInfo)); in onDeviceDisappeared()
DICompanionDeviceService.aidl25 void onDeviceAppeared(in AssociationInfo associationInfo); in onDeviceAppeared() argument
26 void onDeviceDisappeared(in AssociationInfo associationInfo); in onDeviceDisappeared() argument
DIAssociationRequestCallback.aidl26 oneway void onAssociationCreated(in AssociationInfo associationInfo); in onAssociationCreated() argument
DCompanionDeviceManager.java369 public void onAssociationCreated(@NonNull AssociationInfo associationInfo) {} in onAssociationCreated() argument
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/
DCrossDeviceSyncController.java120 for (AssociationInfo associationInfo : newAssociations) { in CrossDeviceSyncController()
121 if (!existingAssociations.contains(associationInfo)) { in CrossDeviceSyncController()
123 if (!isAssociationBlocked(associationInfo)) { in CrossDeviceSyncController()
129 associationInfo.getUserId(), /* added= */ true); in CrossDeviceSyncController()
130 callback.requestCrossDeviceSync(associationInfo); in CrossDeviceSyncController()
133 syncMessageToDevice(associationInfo.getId(), in CrossDeviceSyncController()
137 mBlocklist.add(associationInfo.getId()); in CrossDeviceSyncController()
142 for (AssociationInfo associationInfo : existingAssociations) { in CrossDeviceSyncController()
143 if (!newAssociations.contains(associationInfo)) { in CrossDeviceSyncController()
145 mBlocklist.remove(associationInfo.getId()); in CrossDeviceSyncController()
[all …]
DCallMetadataSyncInCallService.java132 void requestCrossDeviceSync(AssociationInfo associationInfo) {
133 if (associationInfo.getUserId() == getUserId()) {
134 sync(associationInfo);
253 private void sync(AssociationInfo associationInfo) { in sync() argument
254 mCdmsi.crossDeviceSync(associationInfo, mCurrentCalls.values()); in sync()
DCrossDeviceSyncControllerCallback.java41 void requestCrossDeviceSync(AssociationInfo associationInfo) {} in requestCrossDeviceSync() argument
/frameworks/base/tests/CompanionDeviceMultiDeviceTests/client/src/android/companion/multidevices/
DCallbackUtils.kt39 private var associationInfo: AssociationInfo? = null variable in android.companion.multidevices.CallbackUtils.AssociationCallback
47 override fun onAssociationCreated(associationInfo: AssociationInfo) { in onAssociationCreated()
48 this.associationInfo = associationInfo in onAssociationCreated()
79 return associationInfo in waitForAssociation()
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DRolesUtils.java63 @NonNull Context context, @NonNull AssociationInfo associationInfo, in addRoleHolderForAssociation() argument
65 final String deviceProfile = associationInfo.getDeviceProfile(); in addRoleHolderForAssociation()
74 final String packageName = associationInfo.getPackageName(); in addRoleHolderForAssociation()
75 final int userId = associationInfo.getUserId(); in addRoleHolderForAssociation()
/frameworks/base/services/companion/java/com/android/server/companion/devicepresence/
DCompanionServiceConnector.java109 void postOnDeviceAppeared(@NonNull AssociationInfo associationInfo) { in postOnDeviceAppeared() argument
110 post(companionService -> companionService.onDeviceAppeared(associationInfo)); in postOnDeviceAppeared()
113 void postOnDeviceDisappeared(@NonNull AssociationInfo associationInfo) { in postOnDeviceDisappeared() argument
114 post(companionService -> companionService.onDeviceDisappeared(associationInfo)); in postOnDeviceDisappeared()
DDevicePresenceProcessor.java576 final AssociationInfo associationInfo = mAssociationStore.getAssociationById(associationId); in simulateDeviceEvent() local
583 onBluetoothCompanionDeviceConnected(associationId, associationInfo.getUserId()); in simulateDeviceEvent()
589 onBluetoothCompanionDeviceDisconnected(associationId, associationInfo.getUserId()); in simulateDeviceEvent()
1056 final AssociationInfo associationInfo = mAssociationStore.getAssociationById( in sendDevicePresenceEventOnUnlocked() local
1059 if (associationInfo == null) { in sendDevicePresenceEventOnUnlocked()
1066 associationInfo.getId(), associationInfo.getUserId()); in sendDevicePresenceEventOnUnlocked()
1070 associationInfo.getId(), associationInfo.getUserId()); in sendDevicePresenceEventOnUnlocked()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DVirtualDeviceManagerService.java434 AssociationInfo associationInfo = getAssociationInfo(packageName, associationId); in createVirtualDevice() local
435 if (associationInfo == null) { in createVirtualDevice()
439 .contains(associationInfo.getDeviceProfile()) in createVirtualDevice()
442 + associationInfo.getDeviceProfile() + " for virtual device creation."); in createVirtualDevice()
454 VirtualDeviceImpl virtualDevice = new VirtualDeviceImpl(getContext(), associationInfo, in createVirtualDevice()
584 final AssociationInfo associationInfo; in getDisplayNameForPersistentDeviceId() local
586 associationInfo = mActiveAssociations.get(persistentDeviceId); in getDisplayNameForPersistentDeviceId()
588 return associationInfo == null ? null : associationInfo.getDisplayName(); in getDisplayNameForPersistentDeviceId()
662 AssociationInfo associationInfo = associations.get(i); in getAssociationInfo() local
663 if (associationInfo.belongsToPackage(callingUserId, packageName) in getAssociationInfo()
[all …]
DVirtualDeviceImpl.java245 AssociationInfo associationInfo,
259 associationInfo,
282 AssociationInfo associationInfo,
303 mAssociationInfo = associationInfo;
304 mPersistentDeviceId = createPersistentDeviceId(associationInfo.getId());
/frameworks/base/services/companion/java/com/android/server/companion/
DBackupRestoreProcessor.java239 Predicate<AssociationInfo> isSameDevice = associationInfo -> { in handleCollision()
241 associationInfo.getDeviceMacAddress(), in handleCollision()
244 || Objects.equals(associationInfo.getTag(), restored.getTag()); in handleCollision()
DCompanionDeviceManagerServiceInternal.java66 void crossDeviceSync(AssociationInfo associationInfo, Collection<CrossDeviceCall> calls); in crossDeviceSync() argument
DCompanionDeviceManagerService.java928 public void crossDeviceSync(AssociationInfo associationInfo, in crossDeviceSync() argument
932 mCrossDeviceSyncController.syncToSingleDevice(associationInfo, calls); in crossDeviceSync()
/frameworks/base/services/core/java/com/android/server/wearable/
DWearableSensingSecureChannel.java163 public void onAssociationCreated(AssociationInfo associationInfo) { in initialize()
165 associationInfo.getId()); in initialize()