Searched defs:role (Results 1 - 25 of 94) sorted by relevance

1234

/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/message/
H A DConfigurationMessage.java31 * The client role component of the message.
36 OptionsMessage.ProtocolRole role) {
39 mClientRole = role;
35 ConfigurationMessage(EncodingOption enc, OptionsMessage.ProtocolRole role) argument
/external/guava/guava/src/com/google/common/math/
H A DMathPreconditions.java30 static int checkPositive(@Nullable String role, int x) { argument
32 throw new IllegalArgumentException(role + " (" + x + ") must be > 0");
37 static long checkPositive(@Nullable String role, long x) { argument
39 throw new IllegalArgumentException(role + " (" + x + ") must be > 0");
44 static BigInteger checkPositive(@Nullable String role, BigInteger x) { argument
46 throw new IllegalArgumentException(role + " (" + x + ") must be > 0");
51 static int checkNonNegative(@Nullable String role, int x) { argument
53 throw new IllegalArgumentException(role + " (" + x + ") must be >= 0");
58 static long checkNonNegative(@Nullable String role, long x) { argument
60 throw new IllegalArgumentException(role
65 checkNonNegative(@ullable String role, BigInteger x) argument
72 checkNonNegative(@ullable String role, double x) argument
[all...]
/external/jetty/src/java/org/eclipse/jetty/security/
H A DConstraintAware.java51 * @param role
53 void addRole(String role); argument
H A DSpnegoUserIdentity.java52 public boolean isUserInRole(String role, Scope scope) argument
54 return _roles.contains(role);
H A DUserAuthentication.java50 public boolean isUserInRole(Scope scope, String role) argument
52 return _userIdentity.isUserInRole(role, scope);
H A DDefaultUserIdentity.java56 public boolean isUserInRole(String role, Scope scope) argument
59 role=scope.getRoleRefMap().get(role);
62 if (r.equals(role))
H A DRoleInfo.java26 * Badly named class that holds the role and user data constraint info for a
116 public void addRole(String role) argument
118 _roles.add(role);
/external/jetty/src/java/org/eclipse/jetty/server/
H A DUserIdentity.java26 /** User object that encapsulates user identity and operations such as run-as-role actions,
48 /** Check if the user is in a role.
50 * container code which will be using translated role names.
51 * @param role A role name.
53 * @return True if the user can act in that role.
55 boolean isUserInRole(String role, Scope scope); argument
81 * @return A map of role reference names that converts from names used by application code
105 public boolean isUserInRole(String role, Scope scope)
H A DAuthentication.java45 boolean isUserInRole(UserIdentity.Scope scope,String role); argument
/external/selinux/libselinux/src/
H A Dget_default_type.c8 static int find_default_type(FILE * fp, const char *role, char **type);
10 int get_default_type(const char *role, char **type) argument
18 if (find_default_type(fp, role, type) < 0) {
27 static int find_default_type(FILE * fp, const char *role, char **type) argument
35 len = strlen(role);
50 if (!strncmp(role, ptr, len)) {
H A Dquery_user_context.c109 char role[100]; /* The role requested by the user */ local
124 new_context = context_new("user:role:type:level");
126 new_context = context_new("user:role:type");
144 get_field("role", role, rolelen);
145 if (context_role_set(new_context, role)) {
/external/selinux/libsepol/src/
H A Droles.c10 /* Check if a role exists */
12 sepol_policydb_t * p, const char *role, int *response)
17 (const hashtab_key_t)role) != NULL);
11 sepol_role_exists(sepol_handle_t * handle __attribute__ ((unused)), sepol_policydb_t * p, const char *role, int *response) argument
H A Dcontext_record.c14 /* Selinux role */
15 char *role; member in struct:sepol_context
55 return con->role;
61 sepol_context_t * con, const char *role)
64 char *tmp_role = strdup(role);
67 "context role to %s", role);
70 free(con->role);
71 con->role = tmp_role;
142 con->role
[all...]
H A Dcontext.c37 role_datum_t *role; local
44 if (!c->role || c->role > p->p_roles.nprim)
53 if (c->role != OBJECT_R_VAL) {
57 role = p->role_val_to_struct[c->role - 1];
58 if (!ebitmap_get_bit(&role->cache, c->type - 1))
59 /* role may not be associated with type */
63 * User must be authorized for the role.
69 if (!ebitmap_get_bit(&usrdatum->cache, c->role
156 char *role = strdup(sepol_context_get_role(record)); local
[all...]
H A Duser_record.c18 /* The role array */
171 sepol_user_t * user, const char *role)
177 if (sepol_user_has_role(user, role))
180 role_cp = strdup(role);
194 ERR(handle, "out of memory, could not add role %s", role);
202 int sepol_user_has_role(const sepol_user_t * user, const char *role)
208 if (!strcmp(user->roles[i], role))
287 void sepol_user_del_role(sepol_user_t * user, const char *role)
292 if (!strcmp(user->roles[i], role)) {
170 sepol_user_add_role(sepol_handle_t * handle, sepol_user_t * user, const char *role) argument
[all...]
/external/selinux/libsepol/tests/
H A Dtest-linker-roles.c33 * - role in appropriate symtab (global and decl)
38 * - role in base, no modules
39 * - role in base optional, no modules
40 * - role a in base, b in module
41 * - role a in base and module (additive)
42 * - role a in base and 2 module
43 * - role a in base optional, b in module
44 * - role a in base, b in module optional
45 * - role a in base optional, b in module optional
46 * - role
55 only_dominates_self(policydb_t * p, role_datum_t * role) argument
73 role_datum_t *role; local
102 role_datum_t *role; local
[all...]
/external/libxml2/
H A Dxlink.c124 xmlChar *type = NULL, *role = NULL; local
154 role = xmlGetNsProp(node, BAD_CAST "role", XLINK_NAMESPACE);
155 if (role != NULL) {
160 if (xmlStrEqual(role, BAD_CAST"xlink:external-linkset"))
167 if (xmlStrEqual(role, buf))
178 if (role != NULL) xmlFree(role);
/external/selinux/libselinux/utils/
H A Dgetdefaultcon.c23 char *user = NULL, *level = NULL, *role=NULL, *seuser=NULL, *dlevel=NULL; local
34 role = strdup(optarg);
70 if (role != NULL && role[0])
71 ret=get_default_context_with_rolelevel(seuser, role, level,cur_context,&usercon);
79 printf("%s: %s from %s %s %s %s -> %s\n", argv[0], user, cur_context, seuser, role, level, usercon);
85 free(role);
/external/selinux/libsemanage/src/
H A Dcontext_record.c33 semanage_context_t * con, const char *role)
36 return sepol_context_set_role(handle->sepolh, con, role);
32 semanage_context_set_role(semanage_handle_t * handle, semanage_context_t * con, const char *role) argument
H A Duser_base_record.c114 const char *role)
117 return sepol_user_add_role(handle->sepolh, user, role);
121 const char *role)
124 sepol_user_del_role(user, role);
128 const char *role)
131 return sepol_user_has_role(user, role);
112 semanage_user_base_add_role(semanage_handle_t * handle, semanage_user_base_t * user, const char *role) argument
120 semanage_user_base_del_role(semanage_user_base_t * user, const char *role) argument
127 semanage_user_base_has_role(const semanage_user_base_t * user, const char *role) argument
H A Duser_record.c188 semanage_user_t * user, const char *role)
191 return semanage_user_base_add_role(handle, user->base, role);
196 void semanage_user_del_role(semanage_user_t * user, const char *role)
199 semanage_user_base_del_role(user->base, role);
202 int semanage_user_has_role(const semanage_user_t * user, const char *role) argument
205 return semanage_user_base_has_role(user->base, role);
187 semanage_user_add_role(semanage_handle_t * handle, semanage_user_t * user, const char *role) argument
/external/selinux/libsepol/include/sepol/policydb/
H A Dcontext.h29 * identity, a role, a type and a MLS range.
33 uint32_t role; member in struct:context_struct
77 dst->role = src->role;
87 c->user = c->role = c->type = 0;
94 (c1->role == c2->role) &&
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/protobuf/
H A DProtobufWireAdapter.java400 private int toProto(OptionsMessage.ProtocolRole role) { argument
401 switch (role) {
516 OptionsMessage.ProtocolRole role = OptionsMessage.ProtocolRole.UNKNOWN;
520 role = OptionsMessage.ProtocolRole.INPUT_DEVICE;
523 role = OptionsMessage.ProtocolRole.DISPLAY_DEVICE;
527 return new ConfigurationMessage(enc, role);
/external/jetty/src/java/org/eclipse/jetty/security/authentication/
H A DSessionAuthentication.java76 public boolean isUserInRole(Scope scope, String role) argument
78 return _userIdentity.isUserInRole(role, scope);
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/threegpp26244/
H A DLocationInformationBox.java18 private int role; field in class:LocationInformationBox
46 return role;
49 public void setRole(int role) { argument
50 this.role = role;
102 role = IsoTypeReader.readUInt8(content);
117 IsoTypeWriter.writeUInt8(byteBuffer, role);

Completed in 987 milliseconds

1234