/frameworks/base/services/companion/java/com/android/server/companion/ |
D | RolesUtils.java | 54 final String deviceProfile = associationInfo.getDeviceProfile(); in addRoleHolderForAssociation() local 55 if (deviceProfile == null) return; in addRoleHolderForAssociation() 63 roleManager.addRoleHolderAsUser(deviceProfile, packageName, in addRoleHolderForAssociation() 68 + " to the list of " + deviceProfile + " holders."); in addRoleHolderForAssociation() 79 final String deviceProfile = associationInfo.getDeviceProfile(); in removeRoleHolderForAssociation() local 80 if (deviceProfile == null) return; in removeRoleHolderForAssociation() 88 Slog.i(TAG, "Removing CDM role holder, role=" + deviceProfile in removeRoleHolderForAssociation() 90 roleManager.removeRoleHolderAsUser(deviceProfile, packageName, in removeRoleHolderForAssociation() 95 + " from the list of " + deviceProfile + " holders."); in removeRoleHolderForAssociation()
|
D | PermissionsUtils.java | 82 @NonNull Context context, @Nullable String deviceProfile, int packageUid) { in enforceRequestDeviceProfilePermissions() argument 84 if (deviceProfile == null) return; in enforceRequestDeviceProfilePermissions() 86 if (!DEVICE_PROFILE_TO_PERMISSION.containsKey(deviceProfile)) { in enforceRequestDeviceProfilePermissions() 87 throw new IllegalArgumentException("Unsupported device profile: " + deviceProfile); in enforceRequestDeviceProfilePermissions() 90 final String permission = DEVICE_PROFILE_TO_PERMISSION.get(deviceProfile); in enforceRequestDeviceProfilePermissions() 94 + "with a device with " + deviceProfile + " profile."); in enforceRequestDeviceProfilePermissions()
|
D | CompanionDeviceManagerService.java | 859 @NonNull String packageName, @Nullable String deviceProfile) { in legacyCreateAssociation() argument 861 createAssociation(userId, packageName, macAddress, null, deviceProfile, false); in legacyCreateAssociation() 866 @Nullable String deviceProfile, boolean selfManaged) { in createAssociation() argument 871 macAddress, displayName, deviceProfile, selfManaged, in createAssociation() 878 if (deviceProfile != null) { in createAssociation() 883 logCreateAssociation(deviceProfile); in createAssociation() 967 final String deviceProfile = association.getDeviceProfile(); in disassociateInternal() local 984 logRemoveAssociation(deviceProfile); in disassociateInternal() 1023 final String deviceProfile = association.getDeviceProfile(); in maybeRemoveRoleHolderForAssociation() local 1024 if (deviceProfile == null) { in maybeRemoveRoleHolderForAssociation() [all …]
|
D | AssociationRequestsProcessor.java | 279 final String deviceProfile = request.getDeviceProfile(); in willAddRoleHolder() local 280 if (deviceProfile == null) return false; in willAddRoleHolder() 283 () -> isRoleHolder(mContext, userId, packageName, deviceProfile)); in willAddRoleHolder()
|
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
D | CompanionDeviceActivity.java | 409 final String deviceProfile = mRequest.getDeviceProfile(); in initUiForSelfManagedAssociation() local 435 switch (deviceProfile) { in initUiForSelfManagedAssociation() 453 throw new RuntimeException("Unsupported profile " + deviceProfile); in initUiForSelfManagedAssociation() 472 final String deviceProfile = mRequest.getDeviceProfile(); in initUiForSingleDevice() local 476 deviceFilterPairs, deviceProfile, appLabel)); in initUiForSingleDevice() 485 String deviceProfile, CharSequence appLabel) { in updateSingleDeviceUi() argument 505 if (deviceProfile == null) { in updateSingleDeviceUi() 510 } else if (deviceProfile.equals(DEVICE_PROFILE_WATCH)) { in updateSingleDeviceUi() 515 throw new RuntimeException("Unsupported profile " + deviceProfile); in updateSingleDeviceUi() 528 final String deviceProfile = mRequest.getDeviceProfile(); in initUiForMultipleDevices() local [all …]
|
D | CompanionVendorHelperDialogFragment.java | 103 final String deviceProfile = request.getDeviceProfile(); in onViewCreated() local 124 switch (deviceProfile) { in onViewCreated() 138 throw new RuntimeException("Unsupported profile " + deviceProfile); in onViewCreated()
|
/frameworks/base/core/java/android/companion/ |
D | AssociationRequest.java | 224 @Nullable @DeviceProfile String deviceProfile, in AssociationRequest() argument 230 mDeviceProfile = deviceProfile; in AssociationRequest() 358 public Builder setDeviceProfile(@NonNull @DeviceProfile String deviceProfile) { in setDeviceProfile() argument 360 mDeviceProfile = deviceProfile; in setDeviceProfile() 601 String deviceProfile = (flg & 0x4) == 0 ? null : in.readString(); in AssociationRequest() local 612 this.mDeviceProfile = deviceProfile; in AssociationRequest()
|
D | AssociationInfo.java | 81 @Nullable String deviceProfile, boolean selfManaged, boolean notifyOnDeviceNearby, in AssociationInfo() argument 98 mDeviceProfile = deviceProfile; in AssociationInfo()
|
/frameworks/base/services/companion/java/com/android/server/companion/virtual/ |
D | GenericWindowPolicyController.java | 157 @AssociationRequest.DeviceProfile String deviceProfile) { in GenericWindowPolicyController() argument 168 mDeviceProfile = deviceProfile; in GenericWindowPolicyController()
|