Merge "Fix FrameworksServicesTests fail"
This commit is contained in:
committed by
Android (Google) Code Review
commit
55a6847a19
@@ -468,7 +468,13 @@ public class AccessibilitySecurityPolicy {
|
||||
}
|
||||
}
|
||||
|
||||
boolean hasPermission(String permission) {
|
||||
/**
|
||||
* Permission check to caller.
|
||||
*
|
||||
* @param permission The permission to check
|
||||
* @return true if caller has permission
|
||||
*/
|
||||
public boolean hasPermission(@NonNull String permission) {
|
||||
return mContext.checkCallingPermission(permission) == PackageManager.PERMISSION_GRANTED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user