Lines Matching defs:Permission
143 * If sdkVersion is 0, then this is not a permission that we want to
150 new PackageParser.NewPermissionInfo(android.Manifest.permission.WRITE_EXTERNAL_STORAGE,
152 new PackageParser.NewPermissionInfo(android.Manifest.permission.READ_PHONE_STATE,
167 new PackageParser.SplitPermissionInfo(android.Manifest.permission.WRITE_EXTERNAL_STORAGE,
168 new String[] { android.Manifest.permission.READ_EXTERNAL_STORAGE },
170 new PackageParser.SplitPermissionInfo(android.Manifest.permission.READ_CONTACTS,
171 new String[] { android.Manifest.permission.READ_CALL_LOG },
173 new PackageParser.SplitPermissionInfo(android.Manifest.permission.WRITE_CONTACTS,
174 new String[] { android.Manifest.permission.WRITE_CALL_LOG },
1477 } else if (tagName.equals("permission-group")) {
1481 } else if (tagName.equals("permission")) {
1485 } else if (tagName.equals("permission-tree")) {
1489 } else if (tagName.equals("uses-permission")) {
1867 * b/8528162: Ignore the <uses-permission android:required> attribute if
1916 boolean required = true; // Optional <uses-permission> not supported
1937 outError[0] = "conflicting <uses-permission> entries";
2179 "<permission-group>", sa,
2203 if (!parseAllMetaData(res, parser, attrs, "<permission-group>", perm,
2214 private Permission parsePermission(Package owner, Resources res,
2217 Permission perm = new Permission(owner);
2223 "<permission>", sa,
2256 outError[0] = "<permission> does not specify protectionLevel";
2266 outError[0] = "<permission> protectionLevel specifies a flag but is "
2273 if (!parseAllMetaData(res, parser, attrs, "<permission>", perm,
2284 private Permission parsePermissionTree(Package owner, Resources res,
2287 Permission perm = new Permission(owner);
2293 "<permission-tree>", sa,
2311 outError[0] = "<permission-tree> name has less than three segments: "
2321 if (!parseAllMetaData(res, parser, attrs, "<permission-tree>", perm,
2566 ai.permission = (str != null && str.length() > 0) ? str.intern() : null;
3007 a.info.permission = owner.applicationInfo.permission;
3009 a.info.permission = str.length() > 0 ? str.toString().intern() : null;
3346 a.info.permission = str.length() > 0 ? str.toString().intern() : null;
3465 String permission = sa.getNonConfigurationString(
3470 str = permission;
3473 p.info.readPermission = owner.applicationInfo.permission;
3481 str = permission;
3484 p.info.writePermission = owner.applicationInfo.permission;
3570 } else if (parser.getName().equals("grant-uri-permission")) {
3610 Slog.w(TAG, "Unknown element under <path-permission>: "
3616 outError[0] = "No path, pathPrefix, or pathPattern for <path-permission>";
3622 } else if (parser.getName().equals("path-permission")) {
3628 String permission = sa.getNonConfigurationString(
3633 readPermission = permission;
3638 writePermission = permission;
3653 Slog.w(TAG, "No readPermission or writePermssion for <path-permission>: "
3659 outError[0] = "No readPermission or writePermssion for <path-permission>";
3700 Slog.w(TAG, "No path, pathPrefix, or pathPattern for <path-permission>: "
3706 outError[0] = "No path, pathPrefix, or pathPattern for <path-permission>";
3766 s.info.permission = owner.applicationInfo.permission;
3768 s.info.permission = str.length() > 0 ? str.toString().intern() : null;
4220 public final ArrayList<Permission> permissions = new ArrayList<Permission>(0);
4551 public final static class Permission extends Component<IntentInfo> {
4556 public Permission(Package _owner) {
4561 public Permission(Package _owner, PermissionInfo _info) {
4572 return "Permission{"
4729 Permission p, int flags) {