Fix FrameworksServicesTests fail
Using default instead of private results in an unexpected fail on FrameworksServicesTests. Change to public to fix it. Fix: 139853891 Test: a11y CTS & unit tests Change-Id: I307d4f0da96310c310cbd407249b410608e0d0cd
This commit is contained in:
@@ -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