Lines Matching refs:permission
22 * Simple class for simulating basic permission states for tests.
35 * for a specific permission value. For all enforcePermission* calls
38 public void setPermission(String permission, int value) {
39 mPermissions.put(permission, value);
44 * for a specific permission value. For all enforceUriPermission* calls
52 boolean wantsCall(String permission) {
53 return mPermissions.containsKey(permission);
60 int check(String permission) {
61 return mPermissions.get(permission);
69 public void enforce(String permission) {
70 if (check(permission) != PackageManager.PERMISSION_GRANTED) {