/frameworks/base/services/companion/java/com/android/server/companion/devicepresence/ |
D | DevicePresenceProcessor.java | 206 final int associationId = request.getAssociationId(); in startObservingDevicePresence() local 208 associationId); in startObservingDevicePresence() 222 if (isDevicePresent(associationId)) { in startObservingDevicePresence() 224 if (isBlePresent(associationId)) { in startObservingDevicePresence() 225 onDevicePresenceEvent(mNearbyBleDevices, associationId, EVENT_BLE_APPEARED); in startObservingDevicePresence() 226 } else if (isBtConnected(associationId)) { in startObservingDevicePresence() 227 onDevicePresenceEvent(mConnectedBtDevices, associationId, EVENT_BT_CONNECTED); in startObservingDevicePresence() 228 } else if (isSimulatePresent(associationId)) { in startObservingDevicePresence() 229 onDevicePresenceEvent(mSimulated, associationId, EVENT_BLE_APPEARED); in startObservingDevicePresence() 262 final int associationId = request.getAssociationId(); in stopObservingDevicePresence() local [all …]
|
D | BluetoothDeviceProcessor.java | 49 void onBluetoothCompanionDeviceConnected(int associationId, int userId); in onBluetoothCompanionDeviceConnected() argument 51 void onBluetoothCompanionDeviceDisconnected(int associationId, int userId); in onBluetoothCompanionDeviceDisconnected() argument
|
/frameworks/base/tests/CompanionDeviceMultiDeviceTests/client/src/android/companion/multidevices/bluetooth/ |
D | BluetoothConnector.kt | 48 fun attachClientSocket(associationId: Int) { in attachClientSocket() 50 val device = remoteDevices[associationId]!! in attachClientSocket() 52 if (clientSockets.containsKey(associationId)) { in attachClientSocket() 53 detachClientSocket(associationId) in attachClientSocket() 54 clientSockets[associationId] = socket in attachClientSocket() 56 clientSockets += associationId to socket in attachClientSocket() 62 associationId, in attachClientSocket() 72 fun attachServerSocket(associationId: Int) { in attachServerSocket() 74 if (serverThreads.containsKey(associationId)) { in attachServerSocket() 75 serverThread = serverThreads[associationId]!! in attachServerSocket() [all …]
|
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/ |
D | SystemDataTransferProcessor.java | 103 public void onMessageReceived(int associationId, byte[] data) throws RemoteException { in SystemDataTransferProcessor() 123 public boolean isPermissionTransferUserConsented(int associationId) { in isPermissionTransferUserConsented() argument 124 mAssociationStore.getAssociationWithCallerChecks(associationId); in isPermissionTransferUserConsented() 125 PermissionSyncRequest request = getPermissionSyncRequest(associationId); in isPermissionTransferUserConsented() 136 @UserIdInt int userId, int associationId) { in buildPermissionTransferUserConsentIntent() argument 140 PermissionSyncRequest request = getPermissionSyncRequest(associationId); in buildPermissionTransferUserConsentIntent() 142 PermissionSyncRequest newRequest = new PermissionSyncRequest(associationId); in buildPermissionTransferUserConsentIntent() 150 + "] associationId [" + associationId + "]"); in buildPermissionTransferUserConsentIntent() 153 associationId); in buildPermissionTransferUserConsentIntent() 157 PermissionSyncRequest request = new PermissionSyncRequest(associationId); in buildPermissionTransferUserConsentIntent() [all …]
|
D | SystemDataTransferRequestStore.java | 109 int associationId) { in readRequestsByAssociationId() argument 117 if (request.getAssociationId() == associationId) { in readRequestsByAssociationId() 142 public void removeRequestsByAssociationId(@UserIdInt int userId, int associationId) { in removeRequestsByAssociationId() argument 144 + ", associationId=" + associationId); in removeRequestsByAssociationId() 149 cachedRequests.removeIf(request -> request.getAssociationId() == associationId); in removeRequestsByAssociationId() 266 final int associationId = readIntAttribute(parser, XML_ATTR_ASSOCIATION_ID); in readRequestFromXml() local 272 PermissionSyncRequest request = new PermissionSyncRequest(associationId); in readRequestFromXml()
|
/frameworks/base/services/companion/java/com/android/server/companion/transport/ |
D | CompanionTransportManager.java | 137 public void attachSystemDataTransport(int associationId, ParcelFileDescriptor fd) { in attachSystemDataTransport() argument 138 Slog.i(TAG, "Attaching transport for association id=[" + associationId + "]..."); in attachSystemDataTransport() 140 mAssociationStore.getAssociationWithCallerChecks(associationId); in attachSystemDataTransport() 143 if (mTransports.contains(associationId)) { in attachSystemDataTransport() 144 detachSystemDataTransport(associationId); in attachSystemDataTransport() 148 initializeTransport(associationId, fd, null); in attachSystemDataTransport() 159 public void detachSystemDataTransport(int associationId) { in detachSystemDataTransport() argument 160 Slog.i(TAG, "Detaching transport for association id=[" + associationId + "]..."); in detachSystemDataTransport() 162 mAssociationStore.getAssociationWithCallerChecks(associationId); in detachSystemDataTransport() 165 final Transport transport = mTransports.removeReturnOld(associationId); in detachSystemDataTransport() [all …]
|
D | SecureTransport.java | 39 SecureTransport(int associationId, ParcelFileDescriptor fd, Context context) { in SecureTransport() argument 40 super(associationId, fd, context); in SecureTransport() 44 SecureTransport(int associationId, ParcelFileDescriptor fd, Context context, in SecureTransport() argument 46 super(associationId, fd, context); in SecureTransport()
|
D | RawTransport.java | 33 RawTransport(int associationId, ParcelFileDescriptor fd, Context context) { in RawTransport() argument 34 super(associationId, fd, context); in RawTransport()
|
/frameworks/base/core/java/android/companion/ |
D | ICompanionDeviceManager.aidl | 50 void disassociate(int associationId); in disassociate() argument 101 void notifySelfManagedDeviceAppeared(int associationId); in notifySelfManagedDeviceAppeared() argument 104 void notifySelfManagedDeviceDisappeared(int associationId); in notifySelfManagedDeviceDisappeared() argument 107 int associationId); in buildPermissionTransferUserConsentIntent() argument 109 boolean isPermissionTransferUserConsented(String callingPackage, int userId, int associationId); in isPermissionTransferUserConsented() argument 111 void startSystemDataTransfer(String packageName, int userId, int associationId, in startSystemDataTransfer() argument 115 …void attachSystemDataTransport(String packageName, int userId, int associationId, in ParcelFileDes… in attachSystemDataTransport() argument 118 void detachSystemDataTransport(String packageName, int userId, int associationId); in detachSystemDataTransport() argument 124 void enableSystemDataSync(int associationId, int flags); in enableSystemDataSync() argument 126 void disableSystemDataSync(int associationId, int flags); in disableSystemDataSync() argument [all …]
|
D | CompanionDeviceManager.java | 563 public void enableSystemDataSyncForTypes(int associationId, @DataSyncTypes int flags) { in enableSystemDataSyncForTypes() argument 570 mService.enableSystemDataSync(associationId, flags); in enableSystemDataSyncForTypes() 586 public void disableSystemDataSyncForTypes(int associationId, @DataSyncTypes int flags) { in disableSystemDataSyncForTypes() argument 593 mService.disableSystemDataSync(associationId, flags); in disableSystemDataSyncForTypes() 602 public void enablePermissionsSync(int associationId) { in enablePermissionsSync() argument 609 mService.enablePermissionsSync(associationId); in enablePermissionsSync() 618 public void disablePermissionsSync(int associationId) { in disablePermissionsSync() argument 625 mService.disablePermissionsSync(associationId); in disablePermissionsSync() 634 public PermissionSyncRequest getPermissionSyncRequest(int associationId) { in getPermissionSyncRequest() argument 641 return mService.getPermissionSyncRequest(associationId); in getPermissionSyncRequest() [all …]
|
D | CompanionDeviceService.java | 162 public void onMessageDispatchedFromSystem(int messageId, int associationId, in onMessageDispatchedFromSystem() argument 195 public final void dispatchMessageToSystem(int messageId, int associationId, in dispatchMessageToSystem() argument 225 public final void attachSystemDataTransport(int associationId, @NonNull InputStream in, in attachSystemDataTransport() argument 228 .attachSystemDataTransport(associationId, in attachSystemDataTransport() 244 public final void detachSystemDataTransport(int associationId) in detachSystemDataTransport() argument 247 .detachSystemDataTransport(associationId); in detachSystemDataTransport()
|
D | ObservingDevicePresenceRequest.java | 53 private ObservingDevicePresenceRequest(int associationId, ParcelUuid uuid) { in ObservingDevicePresenceRequest() argument 54 mAssociationId = associationId; in ObservingDevicePresenceRequest() 163 public Builder setAssociationId(int associationId) { in setAssociationId() argument 165 this.mAssociationId = associationId; in setAssociationId()
|
D | IOnMessageReceivedListener.aidl | 22 oneway void onMessageReceived(int associationId, in byte[] data); in onMessageReceived() argument
|
D | DevicePresenceEvent.java | 114 int associationId, @Event int event, @Nullable ParcelUuid uuid) { in DevicePresenceEvent() argument 115 mAssociationId = associationId; in DevicePresenceEvent()
|
/frameworks/base/services/companion/java/com/android/server/companion/ |
D | CompanionDeviceShellCommand.java | 81 final int associationId; in onCommand() local 143 associationId = getNextIntArgRequired(); in onCommand() 144 mDevicePresenceProcessor.simulateDeviceEvent(associationId, /* event */ 0); in onCommand() 148 associationId = getNextIntArgRequired(); in onCommand() 149 mDevicePresenceProcessor.simulateDeviceEvent(associationId, /* event */ 1); in onCommand() 154 associationId = getNextIntArgRequired(); in onCommand() 156 mDevicePresenceProcessor.simulateDeviceEvent(associationId, event); in onCommand() 177 associationId = getNextIntArgRequired(); in onCommand() 184 associationId, userId, event, parcelUuid); in onCommand() 260 associationId = getNextIntArgRequired(); in onCommand() [all …]
|
D | CompanionDeviceManagerService.java | 434 public void disassociate(int associationId) { in disassociate() argument 435 mDisassociationProcessor.disassociate(associationId); in disassociate() 551 public boolean removeBond(int associationId, String packageName, int userId) { in removeBond() argument 555 + "associationId=" + associationId + ", " in removeBond() 561 .getAssociationWithCallerChecks(associationId); in removeBond() 565 "Association id=[" + associationId + "] doesn't have a device address."); in removeBond() 576 int userId, int associationId) { in buildPermissionTransferUserConsentIntent() argument 578 packageName, userId, associationId); in buildPermissionTransferUserConsentIntent() 583 int associationId) { in isPermissionTransferUserConsented() argument 584 return mSystemDataTransferProcessor.isPermissionTransferUserConsented(associationId); in isPermissionTransferUserConsented() [all …]
|
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/ |
D | CallMetadataSyncConnectionService.java | 59 void processContextSyncMessage(int associationId, 65 associationId, call.getId())); 73 if (e.getValue().getAssociationId() == associationId 85 new CallMetadataSyncConnectionIdentifier(associationId, 93 && associationId == connection.getAssociationId() 128 final int associationId = connectionRequest.getExtras().getInt( in onCreateIncomingConnection() local 139 associationId, in onCreateIncomingConnection() 143 void sendCallAction(int associationId, String callId, int action) { in onCreateIncomingConnection() 144 mCdmsi.sendCrossDeviceSyncMessage(associationId, in onCreateIncomingConnection() 184 final int associationId = phoneAccount.getExtras().getInt( in onCreateOutgoingConnection() local [all …]
|
D | CrossDeviceSyncController.java | 201 public void onMessageReceived(int associationId, byte[] data) { in CrossDeviceSyncController() 202 if (isAssociationBlockedLocal(associationId)) { in CrossDeviceSyncController() 209 mPhoneAccountManager.updateFacilitators(associationId, processedData); in CrossDeviceSyncController() 210 mCallManager.updateCalls(associationId, processedData); in CrossDeviceSyncController() 224 inCallServiceCallback.processContextSyncMessage(associationId, in CrossDeviceSyncController() 237 connectionServiceCallback.processContextSyncMessage(associationId, in CrossDeviceSyncController() 250 private void clearInProgressCalls(int associationId) { in clearInProgressCalls() argument 251 final Set<String> removedIds = mCallManager.clearCallIdsForAssociationId(associationId); in clearInProgressCalls() 318 private boolean isAssociationBlockedLocal(int associationId) { in isAssociationBlockedLocal() argument 319 return mBlocklist.contains(associationId); in isAssociationBlockedLocal() [all …]
|
/frameworks/base/core/java/android/companion/datatransfer/ |
D | PermissionSyncRequest.java | 31 public PermissionSyncRequest(int associationId) { in PermissionSyncRequest() argument 32 super(associationId, DATA_TYPE_PERMISSION_SYNC); in PermissionSyncRequest() 52 public PermissionSyncRequest copyWithNewId(int associationId) { in copyWithNewId() argument 53 PermissionSyncRequest newRequest = new PermissionSyncRequest(associationId); in copyWithNewId()
|
D | SystemDataTransferRequest.java | 51 SystemDataTransferRequest(int associationId, int dataType) { in SystemDataTransferRequest() argument 52 mAssociationId = associationId; in SystemDataTransferRequest() 116 public abstract SystemDataTransferRequest copyWithNewId(int associationId); in copyWithNewId() argument
|
/frameworks/base/tests/CompanionDeviceMultiDeviceTests/client/src/android/companion/multidevices/ |
D | CompanionDeviceManagerSnippet.kt | 132 fun disassociate(associationId: Int) { in disassociate() 133 companionDeviceManager.disassociate(associationId) in disassociate() 140 fun startPermissionsSync(associationId: Int) { in startPermissionsSync() 142 .buildPermissionTransferUserConsentIntent(associationId)) in startPermissionsSync() 152 companionDeviceManager.startSystemDataTransfer(associationId, executor, callback) in startPermissionsSync()
|
/frameworks/base/services/companion/java/com/android/server/companion/association/ |
D | AssociationRequestsProcessor.java | 327 public void enableSystemDataSync(int associationId, int flags) { in enableSystemDataSync() argument 329 associationId); in enableSystemDataSync() 338 public void disableSystemDataSync(int associationId, int flags) { in disableSystemDataSync() argument 340 associationId); in disableSystemDataSync() 349 public void setAssociationTag(int associationId, String tag) { in setAssociationTag() argument 350 Slog.i(TAG, "Setting association tag=[" + tag + "] to id=[" + associationId + "]..."); in setAssociationTag() 353 associationId); in setAssociationTag()
|
D | AssociationDiskStore.java | 364 int associationId = getFirstAssociationIdForUser(userId); in readAssociationsV0() local 373 associations.addAssociation(readAssociationV0(parser, userId, associationId++)); in readAssociationsV0() 376 associations.setMaxId(associationId - 1); in readAssociationsV0() 382 @UserIdInt int userId, int associationId) in readAssociationV0() argument 393 return new AssociationInfo(associationId, userId, appPackage, tag, in readAssociationV0() 431 final int associationId = readIntAttribute(parser, XML_ATTR_ID); in readAssociationV1() local 448 return new AssociationInfo(associationId, userId, appPackage, tag, macAddress, displayName, in readAssociationV1()
|
/frameworks/base/core/tests/companiontests/src/android/companion/ |
D | SystemDataTransportTest.java | 225 final int associationId = createAssociation(); in testDisassociationCleanup() local 232 .anyMatch(association -> associationId == association.getId())) { in testDisassociationCleanup() 241 mCdm.attachSystemDataTransport(associationId, in, out); in testDisassociationCleanup() 247 mCdm.disassociate(associationId); in testDisassociationCleanup()
|
/frameworks/base/services/core/java/com/android/server/wearable/ |
D | WearableSensingSecureChannel.java | 182 private void onAssociationCreated(int associationId) { in onAssociationCreated() argument 188 mAssociationId = associationId; in onAssociationCreated() 196 associationId, in onAssociationCreated()
|