Example usage for android.os UserManager hasUserRestriction

List of usage examples for android.os UserManager hasUserRestriction

Introduction

In this page you can find the example usage for android.os UserManager hasUserRestriction.

Prototype

@UnsupportedAppUsage
public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) 

Source Link

Usage

From source file:com.android.server.MountService.java

private boolean hasUserRestriction(String restriction) {
    UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
    return um.hasUserRestriction(restriction, Binder.getCallingUserHandle());
}