/frameworks/base/core/java/android/companion/ |
D | CompanionDeviceService.java | 257 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()
|
D | ICompanionDeviceService.aidl | 25 void onDeviceAppeared(in AssociationInfo associationInfo); in onDeviceAppeared() argument 26 void onDeviceDisappeared(in AssociationInfo associationInfo); in onDeviceDisappeared() argument
|
D | IAssociationRequestCallback.aidl | 26 oneway void onAssociationCreated(in AssociationInfo associationInfo); in onAssociationCreated() argument
|
D | CompanionDeviceManager.java | 369 public void onAssociationCreated(@NonNull AssociationInfo associationInfo) {} in onAssociationCreated() argument
|
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/ |
D | CrossDeviceSyncController.java | 120 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 …]
|
D | CallMetadataSyncInCallService.java | 132 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()
|
D | CrossDeviceSyncControllerCallback.java | 41 void requestCrossDeviceSync(AssociationInfo associationInfo) {} in requestCrossDeviceSync() argument
|
/frameworks/base/tests/CompanionDeviceMultiDeviceTests/client/src/android/companion/multidevices/ |
D | CallbackUtils.kt | 39 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/ |
D | RolesUtils.java | 63 @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/ |
D | CompanionServiceConnector.java | 109 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()
|
D | DevicePresenceProcessor.java | 576 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/ |
D | VirtualDeviceManagerService.java | 434 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 …]
|
D | VirtualDeviceImpl.java | 245 AssociationInfo associationInfo, 259 associationInfo, 282 AssociationInfo associationInfo, 303 mAssociationInfo = associationInfo; 304 mPersistentDeviceId = createPersistentDeviceId(associationInfo.getId());
|
/frameworks/base/services/companion/java/com/android/server/companion/ |
D | BackupRestoreProcessor.java | 239 Predicate<AssociationInfo> isSameDevice = associationInfo -> { in handleCollision() 241 associationInfo.getDeviceMacAddress(), in handleCollision() 244 || Objects.equals(associationInfo.getTag(), restored.getTag()); in handleCollision()
|
D | CompanionDeviceManagerServiceInternal.java | 66 void crossDeviceSync(AssociationInfo associationInfo, Collection<CrossDeviceCall> calls); in crossDeviceSync() argument
|
D | CompanionDeviceManagerService.java | 928 public void crossDeviceSync(AssociationInfo associationInfo, in crossDeviceSync() argument 932 mCrossDeviceSyncController.syncToSingleDevice(associationInfo, calls); in crossDeviceSync()
|
/frameworks/base/services/core/java/com/android/server/wearable/ |
D | WearableSensingSecureChannel.java | 163 public void onAssociationCreated(AssociationInfo associationInfo) { in initialize() 165 associationInfo.getId()); in initialize()
|