Loading services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +8 −12 Original line number Diff line number Diff line Loading @@ -7960,13 +7960,11 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { Preconditions.checkCallAuthorization(hasCrossUsersPermission(caller, userId)); synchronized (getLockObject()) { if (mOwners.hasProfileOwner(userId) || mOwners.hasDeviceOwner()) { final ActiveAdmin admin = getDeviceOrProfileOwnerAdminLocked(userId); return admin.mNearbyNotificationStreamingPolicy; } return admin != null ? admin.mNearbyNotificationStreamingPolicy : NEARBY_STREAMING_NOT_CONTROLLED_BY_POLICY; } return NEARBY_STREAMING_NOT_CONTROLLED_BY_POLICY; } @Override Loading Loading @@ -8001,13 +7999,11 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { Preconditions.checkCallAuthorization(hasCrossUsersPermission(caller, userId)); synchronized (getLockObject()) { if (mOwners.hasProfileOwner(userId) || mOwners.hasDeviceOwner()) { final ActiveAdmin admin = getDeviceOrProfileOwnerAdminLocked(userId); return admin.mNearbyAppStreamingPolicy; } return admin != null ? admin.mNearbyAppStreamingPolicy : NEARBY_STREAMING_NOT_CONTROLLED_BY_POLICY; } return NEARBY_STREAMING_NOT_CONTROLLED_BY_POLICY; } /** Loading Loading
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +8 −12 Original line number Diff line number Diff line Loading @@ -7960,13 +7960,11 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { Preconditions.checkCallAuthorization(hasCrossUsersPermission(caller, userId)); synchronized (getLockObject()) { if (mOwners.hasProfileOwner(userId) || mOwners.hasDeviceOwner()) { final ActiveAdmin admin = getDeviceOrProfileOwnerAdminLocked(userId); return admin.mNearbyNotificationStreamingPolicy; } return admin != null ? admin.mNearbyNotificationStreamingPolicy : NEARBY_STREAMING_NOT_CONTROLLED_BY_POLICY; } return NEARBY_STREAMING_NOT_CONTROLLED_BY_POLICY; } @Override Loading Loading @@ -8001,13 +7999,11 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { Preconditions.checkCallAuthorization(hasCrossUsersPermission(caller, userId)); synchronized (getLockObject()) { if (mOwners.hasProfileOwner(userId) || mOwners.hasDeviceOwner()) { final ActiveAdmin admin = getDeviceOrProfileOwnerAdminLocked(userId); return admin.mNearbyAppStreamingPolicy; } return admin != null ? admin.mNearbyAppStreamingPolicy : NEARBY_STREAMING_NOT_CONTROLLED_BY_POLICY; } return NEARBY_STREAMING_NOT_CONTROLLED_BY_POLICY; } /** Loading