Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/companion/
DCompanionDeviceService.java189 public void onDeviceAppeared(@NonNull AssociationInfo associationInfo) { in onDeviceAppeared() argument
190 if (!associationInfo.isSelfManaged()) { in onDeviceAppeared()
191 onDeviceAppeared(associationInfo.getDeviceMacAddressAsString()); in onDeviceAppeared()
201 public void onDeviceDisappeared(@NonNull AssociationInfo associationInfo) { in onDeviceDisappeared() argument
202 if (!associationInfo.isSelfManaged()) { in onDeviceDisappeared()
203 onDeviceDisappeared(associationInfo.getDeviceMacAddressAsString()); in onDeviceDisappeared()
232 public void onDeviceAppeared(AssociationInfo associationInfo) { in onDeviceAppeared() argument
233 mMainHandler.postAtFrontOfQueue(() -> mService.onDeviceAppeared(associationInfo)); in onDeviceAppeared()
237 public void onDeviceDisappeared(AssociationInfo associationInfo) { in onDeviceDisappeared() argument
238 mMainHandler.postAtFrontOfQueue(() -> mService.onDeviceDisappeared(associationInfo)); in onDeviceDisappeared()
DICompanionDeviceService.aidl23 void onDeviceAppeared(in AssociationInfo associationInfo); in onDeviceAppeared() argument
24 void onDeviceDisappeared(in AssociationInfo associationInfo); in onDeviceDisappeared() argument
DIAssociationRequestCallback.aidl26 oneway void onAssociationCreated(in AssociationInfo associationInfo); in onAssociationCreated() argument
DCompanionDeviceManager.java260 public void onAssociationCreated(@NonNull AssociationInfo associationInfo) {} in onAssociationCreated() argument
/frameworks/base/services/companion/java/com/android/server/companion/
DRolesUtils.java49 @NonNull Context context, @NonNull AssociationInfo associationInfo) { in addRoleHolderForAssociation() argument
51 Log.d(TAG, "addRoleHolderForAssociation() associationInfo=" + associationInfo); in addRoleHolderForAssociation()
54 final String deviceProfile = associationInfo.getDeviceProfile(); in addRoleHolderForAssociation()
59 final String packageName = associationInfo.getPackageName(); in addRoleHolderForAssociation()
60 final int userId = associationInfo.getUserId(); in addRoleHolderForAssociation()
74 @NonNull Context context, @NonNull AssociationInfo associationInfo) { in removeRoleHolderForAssociation() argument
76 Log.d(TAG, "removeRoleHolderForAssociation() associationInfo=" + associationInfo); in removeRoleHolderForAssociation()
79 final String deviceProfile = associationInfo.getDeviceProfile(); in removeRoleHolderForAssociation()
84 final String packageName = associationInfo.getPackageName(); in removeRoleHolderForAssociation()
85 final int userId = associationInfo.getUserId(); in removeRoleHolderForAssociation()
DCompanionDeviceServiceConnector.java94 void postOnDeviceAppeared(@NonNull AssociationInfo associationInfo) { in postOnDeviceAppeared() argument
95 post(companionService -> companionService.onDeviceAppeared(associationInfo)); in postOnDeviceAppeared()
98 void postOnDeviceDisappeared(@NonNull AssociationInfo associationInfo) { in postOnDeviceDisappeared() argument
99 post(companionService -> companionService.onDeviceDisappeared(associationInfo)); in postOnDeviceDisappeared()
DPersistentDataStore.java458 final AssociationInfo associationInfo = createAssociationInfoNoThrow(associationId, userId, in readAssociationV1() local
461 if (associationInfo != null) { in readAssociationV1()
462 out.add(associationInfo); in readAssociationV1()
557 AssociationInfo associationInfo = null; in createAssociationInfoNoThrow() local
559 associationInfo = new AssociationInfo(associationId, userId, appPackage, macAddress, in createAssociationInfoNoThrow()
565 return associationInfo; in createAssociationInfoNoThrow()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DVirtualDeviceManagerService.java250 AssociationInfo associationInfo = getAssociationInfo(packageName, associationId); in createVirtualDevice() local
251 if (associationInfo == null) { in createVirtualDevice()
264 associationInfo, token, callingUid, in createVirtualDevice()
283 notifyRunningAppsChanged(associationInfo.getId(), runningUids); in createVirtualDevice()
291 mVirtualDevices.put(associationInfo.getId(), virtualDevice); in createVirtualDevice()
349 AssociationInfo associationInfo = associations.get(i); in getAssociationInfo() local
350 if (associationInfo.belongsToPackage(callingUserId, packageName) in getAssociationInfo()
351 && associationId == associationInfo.getId()) { in getAssociationInfo()
352 return associationInfo; in getAssociationInfo()
DVirtualDeviceImpl.java143 VirtualDeviceImpl(Context context, AssociationInfo associationInfo,
149 this(context, associationInfo, token, ownerUid, /* inputController= */ null, listener,
154 VirtualDeviceImpl(Context context, AssociationInfo associationInfo, IBinder token,
162 mAssociationInfo = associationInfo;