/external/autotest/site_utils/ |
D | server_manager.py | 43 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 …]
|
D | server_manager_utils.py | 39 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 186 for role, role_servers in servers_by_role.iteritems(): 187 result_lines.append(_format_role_servers_summary(role, role_servers)) 209 roles = [role for role, _ in server_models.ServerRole.ROLE.choices()] 212 for role in server.get_role_names(): [all …]
|
/external/selinux/libsepol/tests/ |
D | test-linker-roles.c | 55 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/ |
D | cil_role_statements.md | 4 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/ |
D | module1.conf | 6 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 …]
|
D | module2.conf | 15 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;
|
D | small-base.conf | 438 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/ |
D | MathPreconditions.java | 30 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/ |
D | cr-buildbucket.cfg | 12 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/ |
D | context.c | 38 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 …]
|
D | context_record.c | 16 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/ |
D | spb_bpduv4-v.out | 2 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 …]
|
D | rstp-v.out | 3 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 …]
|
D | mstp-v.out | 2 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 …]
|
D | rpvst-v.out | 13 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/ |
D | platform_UdevVars.py | 46 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/ |
D | TypeSafePriorityTest.java | 91 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()
|
D | ListFileldBeanTest.java | 95 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()
|
D | TypeSafeListNoGerericsTest.java | 104 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()
|
D | TypeSafeListTest.java | 102 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()
|
D | TypeSafeMapTest.java | 123 private String role; field in TypeSafeMapTest.Developer2 128 public Developer2(String name, String role) { in Developer2() argument 130 this.role = role; in Developer2() 142 return role; in getRole() 145 public void setRole(String role) { in setRole() argument 146 this.role = role; in setRole() 155 public Developer222(String name, String role) { in Developer222() argument 156 super(name, role); in Developer222()
|
/external/selinux/libselinux/utils/ |
D | getdefaultcon.c | 23 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/ |
D | xlink.c | 124 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/selinux/libselinux/src/ |
D | get_default_type.c | 8 static int find_default_type(FILE * fp, const char *role, char **type); 10 int get_default_type(const char *role, char **type) in get_default_type() argument 18 if (find_default_type(fp, role, type) < 0) { in get_default_type() 27 static int find_default_type(FILE * fp, const char *role, char **type) in find_default_type() argument 35 len = strlen(role); in find_default_type() 50 if (!strncmp(role, ptr, len)) { in find_default_type()
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/message/ |
D | OptionsMessage.java | 46 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()
|