Merge "DevicePolicyManager: annotate SystemApi" am: d63ebcf807 am: 5016cf0263
Change-Id: I27c2aa961fce4d7ee19ded54e4e3cc3172bec850
This commit is contained in:
@@ -683,6 +683,7 @@ package android.app {
|
||||
package android.app.admin {
|
||||
|
||||
public class DevicePolicyManager {
|
||||
method @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public boolean getBluetoothContactSharingDisabled(@NonNull android.os.UserHandle);
|
||||
method @Nullable @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public String getDeviceOwner();
|
||||
method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public android.content.ComponentName getDeviceOwnerComponentOnAnyUser();
|
||||
method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public String getDeviceOwnerNameOnAnyUser();
|
||||
|
||||
@@ -7009,7 +7009,9 @@ public class DevicePolicyManager {
|
||||
* @param userHandle The user for whom to check the caller-id permission
|
||||
* @hide
|
||||
*/
|
||||
public boolean getBluetoothContactSharingDisabled(UserHandle userHandle) {
|
||||
@SystemApi
|
||||
@RequiresPermission(permission.INTERACT_ACROSS_USERS)
|
||||
public boolean getBluetoothContactSharingDisabled(@NonNull UserHandle userHandle) {
|
||||
if (mService != null) {
|
||||
try {
|
||||
return mService.getBluetoothContactSharingDisabledForUser(userHandle
|
||||
|
||||
Reference in New Issue
Block a user