Home
last modified time | relevance | path

Searched refs:role (Results 1 – 25 of 498) sorted by relevance

12345678910>>...20

/external/autotest/site_utils/
Dserver_manager.py43 def _add_role(server, role, action): argument
53 server_models.validate(role=role)
54 if role in server.get_role_names():
56 'Server %s already has role %s.' % (server.hostname, role))
59 if not server_manager_utils.check_server(server.hostname, role):
61 'Server %s is not ready for role %s.' % (server.hostname, role))
63 if (role in server_models.ServerRole.ROLES_REQUIRE_UNIQUE_INSTANCE and
66 roles__role=role, status=server_models.Server.STATUS.PRIMARY)
70 (role, servers[0].hostname, role))
72 server_models.ServerRole.objects.create(server=server, role=role)
[all …]
Dserver_manager_utils.py37 def warn_missing_role(role, exclude_server): argument
45 roles__role=role,
52 (role, exclude_server.hostname, role))
56 def get_servers(hostname=None, role=None, status=None): argument
68 if role:
69 filters['roles__role'] = role
138 for role, _ in server_models.ServerRole.ROLE.choices():
139 servers_of_role = [s for s in servers if role in
140 [r.role for r in s.roles.all()]]
141 result += '%-15s: ' % role
[all …]
/external/selinux/libsepol/tests/
Dtest-linker-roles.c55 static void only_dominates_self(policydb_t * p, role_datum_t * role) in only_dominates_self() argument
61 ebitmap_for_each_bit(&role->dominates, tnode, i) { in only_dominates_self()
64 CU_ASSERT(i == role->s.value - 1); in only_dominates_self()
73 role_datum_t *role; in base_role_tests() local
85 role = test_role_type_set(base, "g_b_role_1", NULL, types, 1, 0); in base_role_tests()
87 only_dominates_self(base, role); in base_role_tests()
95 role = test_role_type_set(base, "o1_b_role_1", decl, types, 1, 0); in base_role_tests()
97 only_dominates_self(base, role); in base_role_tests()
102 role_datum_t *role; in module_role_tests() local
116 role = test_role_type_set(base, "g_m1_role_1", NULL, types, 1, 0); in module_role_tests()
[all …]
/external/selinux/secilc/docs/
Dcil_role_statements.md4 role section in Role Statements
7 Declares a role identifier in the current namespace.
11 (role role_id)
22 <td align="left"><p><code>role</code></p></td>
23 <td align="left"><p>The <code>role</code> keyword.</p></td>
27 <td align="left"><p>The <code>role</code> identifier.</p></td>
34 This example declares two roles: `object_r` in the global namespace and `unconfined.role`:
36 (role object_r)
39 (role role)
45 Authorises a [`role`](cil_role_statements.md#role) to access a [`type`](cil_type_statements.md#type…
[all …]
/external/selinux/libsepol/tests/policies/test-linker/
Dmodule1.conf6 role g_b_role_2;
22 role g_m1_role_1;
23 role g_m1_role_1 types g_m1_type_1;
41 role g_b_role_2 types g_m1_type_1;
42 role g_b_role_3;
43 role g_b_role_3 types g_m1_type_2;
46 role o1_b_role_2;
47 role o1_b_role_2 types g_m1_type_1;
50 role o4_b_role_1;
51 role o4_b_role_1 types g_m1_type_2;
[all …]
Dmodule2.conf15 role g_m2_role_1;
16 role g_m2_role_1 types g_m2_type_1;
23 role g_b_role_3;
24 role g_b_role_3 types g_m2_type_2;
27 role o4_b_role_1;
28 role o4_b_role_1 types g_m2_type_1;
51 role o1_m2_role_1;
52 role o1_m2_role_1 types o1_m2_type_1;
Dsmall-base.conf438 role g_b_role_1;
439 role g_b_role_2;
440 role g_b_role_3;
441 role g_b_role_4;
442 role g_b_role_1 types g_b_type_1;
443 role g_b_role_2 types g_b_type_2;
444 role g_b_role_3 types g_b_type_2;
445 role g_b_role_4 types g_b_type_2;
471 role o1_b_role_1;
472 role o1_b_role_1 types o1_b_type_1;
[all …]
/external/guava/guava/src/com/google/common/math/
DMathPreconditions.java30 static int checkPositive(@Nullable String role, int x) { in checkPositive() argument
32 throw new IllegalArgumentException(role + " (" + x + ") must be > 0"); in checkPositive()
37 static long checkPositive(@Nullable String role, long x) { in checkPositive() argument
39 throw new IllegalArgumentException(role + " (" + x + ") must be > 0"); in checkPositive()
44 static BigInteger checkPositive(@Nullable String role, BigInteger x) { in checkPositive() argument
46 throw new IllegalArgumentException(role + " (" + x + ") must be > 0"); in checkPositive()
51 static int checkNonNegative(@Nullable String role, int x) { in checkNonNegative() argument
53 throw new IllegalArgumentException(role + " (" + x + ") must be >= 0"); in checkNonNegative()
58 static long checkNonNegative(@Nullable String role, long x) { in checkNonNegative() argument
60 throw new IllegalArgumentException(role + " (" + x + ") must be >= 0"); in checkNonNegative()
[all …]
/external/skia/infra/project-config/
Dcr-buildbucket.cfg12 role: READER
16 role: SCHEDULER
20 role: SCHEDULER
24 role: WRITER
32 role: READER
36 role: SCHEDULER
40 role: SCHEDULER
44 role: WRITER
52 role: READER
56 role: SCHEDULER
[all …]
/external/chromium-trace/catapult/third_party/Paste/paste/auth/
Dgrantip.py67 for role in roles:
68 if role.startswith('-'):
69 remove_roles.append(role[1:])
71 if role not in cur_roles:
72 cur_roles.append(role)
73 for role in remove_roles:
74 if role in cur_roles:
75 cur_roles.remove(role)
103 username, role = value.split(':', 1)
106 role = ''
[all …]
/external/selinux/libsepol/src/
Dcontext.c37 role_datum_t *role; in context_is_valid() local
44 if (!c->role || c->role > p->p_roles.nprim) in context_is_valid()
53 if (c->role != OBJECT_R_VAL) { in context_is_valid()
57 role = p->role_val_to_struct[c->role - 1]; in context_is_valid()
58 if (!ebitmap_get_bit(&role->cache, c->type - 1)) in context_is_valid()
69 if (!ebitmap_get_bit(&usrdatum->cache, c->role - 1)) in context_is_valid()
101 strlen(policydb->p_role_val_to_name[context->role - 1]) + 1; in context_to_string()
120 policydb->p_role_val_to_name[context->role - 1], in context_to_string()
125 strlen(policydb->p_role_val_to_name[context->role - 1]) + 1 + in context_to_string()
156 char *role = strdup(sepol_context_get_role(record)); in context_from_record() local
[all …]
Dcontext_record.c15 char *role; member
55 return con->role; in hidden_def()
61 sepol_context_t * con, const char *role) in hidden_def()
64 char *tmp_role = strdup(role); in hidden_def()
67 "context role to %s", role); in hidden_def()
70 free(con->role); in hidden_def()
71 con->role = tmp_role; in hidden_def()
142 con->role = NULL; in hidden_def()
169 if (!(new_con->role = strdup(con->role))) in hidden_def()
200 free(con->role); in hidden_def()
[all …]
/external/tcpdump/tests/
Drstp-v.out3 root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
6 root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
9 root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
12 root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
15 root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
18 root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
21 root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
24 root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
27 root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
30 root-id 8001.00:19:06:ea:b8:80, root-pathcost 0, port-role Designated
[all …]
Dmstp-v.out2 port-role Root, CIST root-id 0000.00:1f:27:b4:7d:80, CIST ext-pathcost 200000
8 MSTI 1, Flags [Learn, Forward, Agreement, Topology change ACK], port-role Designated
11 MSTI 2, Flags [Learn, Forward, Agreement, Topology change ACK], port-role Root
15 port-role Designated, CIST root-id 0000.00:1f:27:b4:7d:80, CIST ext-pathcost 200000
21 MSTI 1, Flags [Learn, Forward, Agreement, Topology change ACK], port-role Root
24 MSTI 2, Flags [Learn, Forward, Agreement, Topology change ACK], port-role Designated
28 port-role Root, CIST root-id 0000.00:1f:27:b4:7d:80, CIST ext-pathcost 200000
34 MSTI 1, Flags [Learn, Forward, Agreement, Topology change ACK], port-role Designated
37 MSTI 2, Flags [Learn, Forward, Agreement, Topology change ACK], port-role Root
41 port-role Designated, CIST root-id 0000.00:1f:27:b4:7d:80, CIST ext-pathcost 200000
[all …]
Drpvst-v.out13 root-id 8001.00:1f:6d:96:ec:00, root-pathcost 0, port-role Designated
16 root-id 8001.00:1f:6d:96:ec:00, root-pathcost 0, port-role Designated
19 root-id 8005.00:1f:6d:96:ec:00, root-pathcost 0, port-role Designated
22 root-id 8001.00:1f:6d:96:ec:00, root-pathcost 0, port-role Designated
25 root-id 8001.00:1f:6d:96:ec:00, root-pathcost 0, port-role Designated
28 root-id 8005.00:1f:6d:96:ec:00, root-pathcost 0, port-role Designated
31 root-id 8001.00:1f:6d:96:ec:00, root-pathcost 0, port-role Designated
34 root-id 8001.00:1f:6d:96:ec:00, root-pathcost 0, port-role Designated
37 root-id 8005.00:1f:6d:96:ec:00, root-pathcost 0, port-role Designated
43 root-id 8001.00:1f:6d:96:ec:00, root-pathcost 0, port-role Designated
[all …]
/external/autotest/client/site_tests/platform_UdevVars/
Dplatform_UdevVars.py46 role = device.get('POWERD_ROLE', None)
47 if role:
48 logging.debug(' POWERD_ROLE=%s', role)
49 self.devices_with_role[role].append(device)
55 for role in sorted(self.devices_with_role.keys()):
56 for device in self.devices_with_role[role]:
59 logging.info(' %-21s %s [%s]', role + ':', path, name)
113 for role, expected_num in expected_num_per_role:
114 num = len(self.devices_with_role[role])
118 'one of %s', role, num, repr(expected_num))
/external/chromium-trace/catapult/firefighter/update/handlers/
Dbuilds.py138 os, os_version, role = _ParseBuilderName(builder.master_name, builder.name)
152 'role': role,
183 'role': role,
199 role = 'builder'
201 role = 'tester'
209 role = match[0]
210 if not role:
211 role = 'tester'
217 role = match[1]
223 role = match[1]
[all …]
/external/snakeyaml/src/test/java/examples/collections/
DTypeSafePriorityTest.java91 private String role; field in TypeSafePriorityTest.Developer
96 public Developer(String name, String role) { in Developer() argument
98 this.role = role; in Developer()
110 return role; in getRole()
113 public void setRole(String role) { in setRole() argument
114 this.role = role; in setRole()
DListFileldBeanTest.java95 private String role; field in ListFileldBeanTest.Developer
100 public Developer(String name, String role) { in Developer() argument
102 this.role = role; in Developer()
114 return role; in getRole()
117 public void setRole(String role) { in setRole() argument
118 this.role = role; in setRole()
DTypeSafeListTest.java102 private String role; field in TypeSafeListTest.Developer
107 public Developer(String name, String role) { in Developer() argument
109 this.role = role; in Developer()
121 return role; in getRole()
124 public void setRole(String role) { in setRole() argument
125 this.role = role; in setRole()
DTypeSafeListNoGerericsTest.java104 private String role; field in TypeSafeListNoGerericsTest.Developer
109 public Developer(String name, String role) { in Developer() argument
111 this.role = role; in Developer()
123 return role; in getRole()
126 public void setRole(String role) { in setRole() argument
127 this.role = role; in setRole()
/external/selinux/libselinux/utils/
Dgetdefaultcon.c23 char *user = NULL, *level = NULL, *role=NULL, *seuser=NULL, *dlevel=NULL; in main() local
34 role = strdup(optarg); in main()
70 if (role != NULL && role[0]) in main()
71 ret=get_default_context_with_rolelevel(seuser, role, level,cur_context,&usercon); in main()
79 …printf("%s: %s from %s %s %s %s -> %s\n", argv[0], user, cur_context, seuser, role, level, usercon… in main()
85 free(role); in main()
/external/libxml2/
Dxlink.c124 xmlChar *type = NULL, *role = NULL; in xlinkIsLink() local
154 role = xmlGetNsProp(node, BAD_CAST "role", XLINK_NAMESPACE); in xlinkIsLink()
155 if (role != NULL) { in xlinkIsLink()
160 if (xmlStrEqual(role, BAD_CAST"xlink:external-linkset")) in xlinkIsLink()
167 if (xmlStrEqual(role, buf)) in xlinkIsLink()
178 if (role != NULL) xmlFree(role); in xlinkIsLink()
/external/skia/tools/
Dbuilder_name_schema.py73 for role in BUILDER_ROLES:
74 assert role in BUILDER_NAME_SCHEMA
80 def MakeBuilderName(role, extra_config=None, is_trybot=False, **kwargs): argument
81 schema = BUILDER_NAME_SCHEMA.get(role)
83 raise ValueError('%s is not a recognized role.' % role)
92 name_parts = [role]
115 schema = BUILDER_NAME_SCHEMA.get(obj.role)
117 raise ValueError('%s is not a recognized role.' % obj.role)
118 name_parts = [obj.role]
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/message/
DOptionsMessage.java46 for (ProtocolRole role : ProtocolRole.values()) { in fromIntVal()
47 if (role.getAsInt() == intVal) { in fromIntVal()
48 return role; in fromIntVal()
132 ProtocolRole role; in getBestConfiguration() local
147 role = ProtocolRole.DISPLAY_DEVICE; in getBestConfiguration()
150 role = ProtocolRole.INPUT_DEVICE; in getBestConfiguration()
156 role = ProtocolRole.INPUT_DEVICE; in getBestConfiguration()
159 role = ProtocolRole.DISPLAY_DEVICE; in getBestConfiguration()
163 return new ConfigurationMessage(encoding, role); in getBestConfiguration()

12345678910>>...20