Lines Matching full:perm
69 for (UriPermission perm : readUriPermissions) {
70 perm.readOwners.remove(this);
71 if (perm.readOwners.size() == 0 && (perm.globalModeFlags
73 perm.modeFlags &= ~Intent.FLAG_GRANT_READ_URI_PERMISSION;
74 service.removeUriPermissionIfNeededLocked(perm);
81 for (UriPermission perm : writeUriPermissions) {
82 perm.writeOwners.remove(this);
83 if (perm.writeOwners.size() == 0 && (perm.globalModeFlags
85 perm.modeFlags &= ~Intent.FLAG_GRANT_WRITE_URI_PERMISSION;
86 service.removeUriPermissionIfNeededLocked(perm);
98 UriPermission perm = it.next();
99 if (uri.equals(perm.uri)) {
100 perm.readOwners.remove(this);
101 if (perm.readOwners.size() == 0 && (perm.globalModeFlags
103 perm.modeFlags &= ~Intent.FLAG_GRANT_READ_URI_PERMISSION;
104 service.removeUriPermissionIfNeededLocked(perm);
117 UriPermission perm = it.next();
118 if (uri.equals(perm.uri)) {
119 perm.writeOwners.remove(this);
120 if (perm.writeOwners.size() == 0 && (perm.globalModeFlags
122 perm.modeFlags &= ~Intent.FLAG_GRANT_WRITE_URI_PERMISSION;
123 service.removeUriPermissionIfNeededLocked(perm);
134 public void addReadPermission(UriPermission perm) {
138 readUriPermissions.add(perm);
141 public void addWritePermission(UriPermission perm) {
145 writeUriPermissions.add(perm);
148 public void removeReadPermission(UriPermission perm) {
149 readUriPermissions.remove(perm);
155 public void removeWritePermission(UriPermission perm) {
156 writeUriPermissions.remove(perm);