Home
last modified time | relevance | path

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

12345678910>>...21

/external/autotest/site_utils/
Dserver_manager.py42 def _add_role(server, role, action): argument
52 server_models.validate(role=role)
53 if role in server.get_role_names():
55 'Server %s already has role %s.' % (server.hostname, role))
58 if not server_manager_utils.check_server(server.hostname, role):
60 'Server %s is not ready for role %s.' % (server.hostname, role))
62 if (role in server_models.ServerRole.ROLES_REQUIRE_UNIQUE_INSTANCE and
65 roles__role=role, status=server_models.Server.STATUS.PRIMARY)
69 (role, servers[0].hostname, role))
71 server_models.ServerRole.objects.create(server=server, role=role)
[all …]
Dserver_manager_utils.py39 def warn_missing_role(role, exclude_server): argument
47 roles__role=role,
54 (role, exclude_server.hostname, role))
58 def get_servers(hostname=None, role=None, status=None): argument
70 if role:
71 filters['roles__role'] = role
135 roles = [role for role, _ in server_models.ServerRole.ROLE.choices()]
138 for role in server.get_role_names():
139 servers_by_role[role].append(server)
143 def _format_role_servers_summary(role, servers): argument
[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/skqp/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/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/selinux/libsepol/src/
Dcontext.c38 role_datum_t *role; in context_is_valid() local
45 if (!c->role || c->role > p->p_roles.nprim) in context_is_valid()
54 if (c->role != OBJECT_R_VAL) { in context_is_valid()
58 role = p->role_val_to_struct[c->role - 1]; in context_is_valid()
59 if (!role || !ebitmap_get_bit(&role->cache, c->type - 1)) in context_is_valid()
70 if (!ebitmap_get_bit(&usrdatum->cache, c->role - 1)) in context_is_valid()
102 strlen(policydb->p_role_val_to_name[context->role - 1]) + 1; in context_to_string()
121 policydb->p_role_val_to_name[context->role - 1], in context_to_string()
126 strlen(policydb->p_role_val_to_name[context->role - 1]) + 1 + in context_to_string()
157 char *role = strdup(sepol_context_get_role(record)); in context_from_record() local
[all …]
Dcontext_record.c16 char *role; member
56 return con->role; in hidden_def()
62 sepol_context_t * con, const char *role) in hidden_def()
65 char *tmp_role = strdup(role); in hidden_def()
68 "context role to %s", role); in hidden_def()
71 free(con->role); in hidden_def()
72 con->role = tmp_role; in hidden_def()
143 con->role = NULL; in hidden_def()
170 if (!(new_con->role = strdup(con->role))) in hidden_def()
201 free(con->role); in hidden_def()
[all …]
/external/tcpdump/tests/
Dspb_bpduv4-v.out2 port-role Designated, CIST root-id 8000.52:54:00:45:5f:15, CIST ext-pathcost 0
8 MSTI 10, Flags [Learn, Forward], port-role Designated
14 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32,
18 port-role Designated, CIST root-id 8000.52:54:00:45:5f:15, CIST ext-pathcost 0
24 MSTI 10, Flags [Learn, Forward], port-role Designated
30 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32,
34 port-role Designated, CIST root-id 8000.52:54:00:45:5f:15, CIST ext-pathcost 0
40 MSTI 10, Flags [Learn, Forward], port-role Designated
46 Restricted role-flag: 0, Format id 0 cap 0, Convention id 2 cap 32,
50 port-role Designated, CIST root-id 8000.52:54:00:45:5f:15, CIST ext-pathcost 0
[all …]
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/libtextclassifier/utils/
Dtokenizer_test.cc86 return range->role; in TestFindTokenizationRole()
110 config->role = TokenizationCodepointRange_::Role_TOKEN_SEPARATOR; in TEST()
116 config->role = TokenizationCodepointRange_::Role_WHITESPACE_SEPARATOR; in TEST()
122 config->role = TokenizationCodepointRange_::Role_TOKEN_SEPARATOR; in TEST()
168 config->role = TokenizationCodepointRange_::Role_WHITESPACE_SEPARATOR; in TEST()
189 config->role = TokenizationCodepointRange_::Role_DEFAULT_ROLE; in TEST()
195 config->role = TokenizationCodepointRange_::Role_WHITESPACE_SEPARATOR; in TEST()
201 config->role = TokenizationCodepointRange_::Role_DEFAULT_ROLE; in TEST()
240 config->role = TokenizationCodepointRange_::Role_DEFAULT_ROLE; in TEST()
245 config->role = TokenizationCodepointRange_::Role_WHITESPACE_SEPARATOR; in TEST()
[all …]
/external/skqp/infra/bots/recipe_modules/builder_name_schema/
Dbuilder_name_schema.py70 for role in BUILDER_ROLES:
71 assert role in BUILDER_NAME_SCHEMA
88 role = parts.get(role_key)
89 if not role:
91 s = BUILDER_NAME_SCHEMA.get(role)
93 raise ValueError('Invalid parts; unknown role %s' % role)
94 rv_parts.append(role)
148 def _parse(depth, role, parts): argument
149 schema = BUILDER_NAME_SCHEMA.get(role)
153 result['role'] = role
[all …]
/external/skia/infra/bots/recipe_modules/builder_name_schema/
Dbuilder_name_schema.py70 for role in BUILDER_ROLES:
71 assert role in BUILDER_NAME_SCHEMA
88 role = parts.get(role_key)
89 if not role:
91 s = BUILDER_NAME_SCHEMA.get(role)
93 raise ValueError('Invalid parts; unknown role %s' % role)
94 rv_parts.append(role)
148 def _parse(depth, role, parts): argument
149 schema = BUILDER_NAME_SCHEMA.get(role)
153 result['role'] = role
[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/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/autotest/server/cros/power/
Dservo_v4_charge_utils.py70 def _change_role(self, role): argument
76 self._servo.set('servo_v4_role', role)
80 def check_servo_role(role): argument
82 if self._servo.get('servo_v4_role') != role:
84 '%s.' % role)
85 check_servo_role(role)
87 connected = True if role == 'src' else False

12345678910>>...21