Home
last modified time | relevance | path

Searched refs:datum (Results 1 – 25 of 145) sorted by relevance

123456

/external/selinux/libsepol/cil/src/
Dcil_symtab.c62 void cil_symtab_datum_init(struct cil_symtab_datum *datum) in cil_symtab_datum_init() argument
64 datum->name = NULL; in cil_symtab_datum_init()
65 datum->fqn = NULL; in cil_symtab_datum_init()
66 datum->symtab = NULL; in cil_symtab_datum_init()
67 cil_list_init(&datum->nodes, CIL_LIST_ITEM); in cil_symtab_datum_init()
70 void cil_symtab_datum_destroy(struct cil_symtab_datum *datum) in cil_symtab_datum_destroy() argument
72 cil_list_destroy(&datum->nodes, 0); in cil_symtab_datum_destroy()
73 cil_symtab_remove_datum(datum); in cil_symtab_datum_destroy()
76 void cil_symtab_datum_remove_node(struct cil_symtab_datum *datum, struct cil_tree_node *node) in cil_symtab_datum_remove_node() argument
78 if (datum && datum->nodes != NULL) { in cil_symtab_datum_remove_node()
[all …]
Dcil_copy_ast.c101 char *key = orig->datum.name; in cil_copy_block()
102 struct cil_symtab_datum *datum = NULL; in cil_copy_block() local
104 cil_symtab_get_datum(symtab, key, &datum); in cil_copy_block()
105 if (datum == NULL) { in cil_copy_block()
110 *copy = datum;; in cil_copy_block()
148 char *key = orig->datum.name; in cil_copy_policycap()
149 struct cil_symtab_datum *datum = NULL; in cil_copy_policycap() local
151 cil_symtab_get_datum(symtab, key, &datum); in cil_copy_policycap()
152 if (datum == NULL) { in cil_copy_policycap()
157 *copy = datum; in cil_copy_policycap()
[all …]
Dcil_fqn.c48 struct cil_symtab_datum *datum = (struct cil_symtab_datum *)d; in __cil_fqn_qualify_decls() local
57 newlen = fqn_args->len + strlen(datum->name); in __cil_fqn_qualify_decls()
59 cil_log(CIL_INFO, "Fully qualified name for %s is too long\n", datum->name); in __cil_fqn_qualify_decls()
64 strcat(prefix, datum->name); in __cil_fqn_qualify_decls()
65 datum->fqn = cil_strpool_add(prefix); in __cil_fqn_qualify_decls()
76 struct cil_symtab_datum *datum = (struct cil_symtab_datum *)block; in __cil_fqn_qualify_blocks() local
77 struct cil_tree_node *node = NODE(datum); in __cil_fqn_qualify_blocks()
85 int newlen = fqn_args->len + strlen(datum->name) + 1; in __cil_fqn_qualify_blocks()
87 cil_log(CIL_INFO, "Fully qualified name for block %s is too long\n", datum->name); in __cil_fqn_qualify_blocks()
95 strcat(child_args.prefix, datum->name); in __cil_fqn_qualify_blocks()
Dcil_symtab.h62 struct cil_complex_symtab_datum *datum; member
74 void cil_symtab_datum_init(struct cil_symtab_datum *datum);
75 void cil_symtab_datum_destroy(struct cil_symtab_datum *datum);
76 void cil_symtab_datum_remove_node(struct cil_symtab_datum *datum, struct cil_tree_node *node);
77 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct c…
78 void cil_symtab_remove_datum(struct cil_symtab_datum *datum);
79 int cil_symtab_get_datum(symtab_t *symtab, char *key, struct cil_symtab_datum **datum);
85 …mplex_symtab *symtab, struct cil_complex_symtab_key *ckey, struct cil_complex_symtab_datum *datum);
Dcil_verify.c327 int cil_verify_no_self_reference(struct cil_symtab_datum *datum, struct cil_list *datum_list) in cil_verify_no_self_reference() argument
334 if (d == datum) { in cil_verify_no_self_reference()
335 cil_log(CIL_ERR,"Self-reference found for %s\n",datum->name); in cil_verify_no_self_reference()
339 int rc = cil_verify_no_self_reference(datum, i->data); in cil_verify_no_self_reference()
389 cil_tree_log(node, CIL_ERR, "SID %s not in sidorder statement", sid->datum.name); in __cil_verify_ordered_node_helper()
395 cil_tree_log(node, CIL_ERR, "Class %s not in classorder statement", class->datum.name); in __cil_verify_ordered_node_helper()
401 cil_tree_log(node, CIL_ERR, "Category %s not in categoryorder statement", cat->datum.name); in __cil_verify_ordered_node_helper()
407 … cil_tree_log(node, CIL_ERR, "Sensitivity %s not in sensitivityorder statement", sens->datum.name); in __cil_verify_ordered_node_helper()
441 struct cil_tree_node *node = sid->datum.nodes->head->data; in __cil_verify_initsids()
442 …cil_tree_log(node, CIL_INFO, "No context assigned to SID %s, omitting from policy",sid->datum.name… in __cil_verify_initsids()
[all …]
Dcil_tree.c225 struct cil_symtab_datum *datum; in cil_tree_node_destroy() local
232 datum = (*node)->data; in cil_tree_node_destroy()
233 cil_symtab_datum_remove_node(datum, *node); in cil_tree_node_destroy()
234 if (datum->nodes == NULL) { in cil_tree_node_destroy()
527 cil_log(CIL_INFO, " %s", ((struct cil_perm *)current_perm->data)->datum.name); in cil_tree_print_perms_list()
529 cil_log(CIL_INFO, " %s", ((struct cil_perm*)current_perm->data)->datum.name); in cil_tree_print_perms_list()
601 cil_log(CIL_INFO, " %s", level->sens->datum.name); in cil_tree_print_level()
636 cil_log(CIL_INFO, " %s", context->user->datum.name); in cil_tree_print_context()
642 cil_log(CIL_INFO, " %s", context->role->datum.name); in cil_tree_print_context()
682 cil_log(CIL_INFO, "BLOCK: %s\n", block->datum.name); in cil_tree_print_node()
[all …]
Dcil_internal.h338 struct cil_symtab_datum datum; member
359 struct cil_symtab_datum datum; member
364 struct cil_symtab_datum datum; member
370 struct cil_symtab_datum datum; member
394 struct cil_symtab_datum datum; member
415 struct cil_symtab_datum datum; member
425 struct cil_symtab_datum datum; member
441 struct cil_symtab_datum datum; member
450 struct cil_symtab_datum datum; member
495 struct cil_symtab_datum datum; member
[all …]
Dcil_resolve_ast.c77 struct cil_symtab_datum *datum = NULL; in __cil_insert_name() local
82 cil_symtab_get_datum(symtab, key, &datum); in __cil_insert_name()
83 if (datum != NULL) { in __cil_insert_name()
84 return (struct cil_name *)datum; in __cil_insert_name()
156 struct cil_symtab_datum *datum = NULL; in cil_resolve_classperms() local
160 rc = cil_resolve_name(current, cp->class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classperms()
165 class = (struct cil_class *)datum; in cil_resolve_classperms()
173 rc = __cil_resolve_perms(&class->perms, common_symtab, cp->perm_strs, &cp->perms, FLAVOR(datum)); in cil_resolve_classperms()
187 struct cil_symtab_datum *datum = NULL; in cil_resolve_classperms_set() local
189 rc = cil_resolve_name(current, cp_set->set_str, CIL_SYM_CLASSPERMSETS, extra_args, &datum); in cil_resolve_classperms_set()
[all …]
Dcil.c440 (*db)->selftype->datum.name = CIL_KEY_SELF; in cil_db_init()
441 (*db)->selftype->datum.fqn = CIL_KEY_SELF; in cil_db_init()
1395 …str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->pre… in cil_userprefixes_to_string()
1407 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string()
1472 if (strcmp(low->sens->datum.fqn, high->sens->datum.fqn)) { in cil_level_equals()
1508 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen()
1515 str1 = cat->datum.fqn; in __cil_level_strlen()
1520 str2 = cat->datum.fqn; in __cil_level_strlen()
1523 str_len += strlen(str1) + strlen(cat->datum.fqn) + 1; in __cil_level_strlen()
1525 str_len += strlen(str1) + strlen(str2) + strlen(cat->datum.fqn) + 2; in __cil_level_strlen()
[all …]
Dandroid.c79 struct version_datum *datum; in __extract_attributees_helper() local
93 datum = cil_malloc(sizeof(*datum)); in __extract_attributees_helper()
94 datum->db = args->db; in __extract_attributees_helper()
95 datum->ast_node = node; in __extract_attributees_helper()
96 datum->orig_name = DATUM(node->data)->name; in __extract_attributees_helper()
97 key = datum->orig_name; in __extract_attributees_helper()
103 free(datum); in __extract_attributees_helper()
105 rc = hashtab_insert(args->vers_map, (hashtab_key_t) key, (hashtab_datum_t) datum); in __extract_attributees_helper()
215 new_key = __cil_attrib_get_versname(type->datum.name, args->num); in __cil_attrib_convert_type()
244 struct cil_symtab_datum *datum = (struct cil_symtab_datum *) node->data; in __cil_attrib_swap_symtab_key() local
[all …]
/external/opencensus-java/exporters/stats/signalfx/src/test/java/io/opencensus/exporter/stats/signalfx/
DSignalFxSessionAdaptorTest.java173 Datum datum = SignalFxSessionAdaptor.createDatum(data); in createDatumFromDoubleSum() local
174 assertTrue(datum.hasDoubleValue()); in createDatumFromDoubleSum()
175 assertFalse(datum.hasIntValue()); in createDatumFromDoubleSum()
176 assertFalse(datum.hasStrValue()); in createDatumFromDoubleSum()
177 assertEquals(3.15d, datum.getDoubleValue(), 0d); in createDatumFromDoubleSum()
183 Datum datum = SignalFxSessionAdaptor.createDatum(data); in createDatumFromLongSum() local
184 assertFalse(datum.hasDoubleValue()); in createDatumFromLongSum()
185 assertTrue(datum.hasIntValue()); in createDatumFromLongSum()
186 assertFalse(datum.hasStrValue()); in createDatumFromLongSum()
187 assertEquals(42L, datum.getIntValue()); in createDatumFromLongSum()
[all …]
/external/selinux/checkpolicy/
Dmodule_compiler.c154 static int create_symbol(uint32_t symbol_type, hashtab_key_t key, hashtab_datum_t datum, in create_symbol() argument
164 ret = symtab_insert(policydbp, symbol_type, key, datum, scope, in create_symbol()
197 hashtab_key_t key, hashtab_datum_t datum, in declare_symbol() argument
201 int ret = create_symbol(symbol_type, key, datum, dest_value, SCOPE_DECL); in declare_symbol()
255 role_datum_t *datum = NULL; in create_role() local
268 datum = malloc(sizeof(*datum)); in create_role()
269 if (datum == NULL) { in create_role()
275 role_datum_init(datum); in create_role()
276 datum->flavor = isattr; in create_role()
279 ret = declare_symbol(SYM_ROLES, id, datum, &value, &value); in create_role()
[all …]
/external/tensorflow/tensorflow/python/debug/lib/
Ddebug_data.py202 def has_inf_or_nan(datum, tensor): argument
219 _ = datum # Datum metadata is unused in this predicate.
564 datum = self._dump_file_name_to_datum(root, f)
565 self._dump_tensor_data[device_name].append(datum)
566 self._debug_watches[device_name][datum.node_name][
567 datum.output_slot].add(datum.debug_op)
639 for datum in self._dump_tensor_data[device_name]:
640 if datum.watch_key not in self._watch_key_to_devices:
641 self._watch_key_to_devices[datum.watch_key] = {device_name}
643 self._watch_key_to_devices[datum.watch_key].add(device_name)
[all …]
Ddebug_data_test.py120 datum = debug_data.DebugTensorDatum(dump_root, debug_dump_rel_path)
122 self.assertEqual("DebugIdentity", datum.debug_op)
123 self.assertEqual("ns1/ns2/node_a_1", datum.node_name)
124 self.assertEqual(2, datum.output_slot)
125 self.assertEqual("ns1/ns2/node_a_1:2", datum.tensor_name)
126 self.assertEqual(1472563253536385, datum.timestamp)
127 self.assertEqual("ns1/ns2/node_a_1:2:DebugIdentity", datum.watch_key)
129 os.path.join(dump_root, debug_dump_rel_path), datum.file_path)
132 "%s:%d @ %s @ %d}" % (datum.node_name,
133 datum.output_slot,
[all …]
/external/selinux/libsepol/tests/
Dtest-common.c59 static int common_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in common_test_index() argument
61 common_datum_t *d = (common_datum_t *) datum; in common_test_index()
68 static int class_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in class_test_index() argument
70 class_datum_t *d = (class_datum_t *) datum; in class_test_index()
78 static int role_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in role_test_index() argument
80 role_datum_t *d = (role_datum_t *) datum; in role_test_index()
88 static int type_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in type_test_index() argument
90 type_datum_t *d = (type_datum_t *) datum; in type_test_index()
102 static int user_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in user_test_index() argument
104 user_datum_t *d = (user_datum_t *) datum; in user_test_index()
[all …]
/external/ImageMagick/MagickCore/
Dstring.c195 string_info->datum=(unsigned char *) AcquireQuantumMemory( in AcquireStringInfo()
196 string_info->length+MagickPathExtent,sizeof(*string_info->datum)); in AcquireStringInfo()
197 if (string_info->datum == (unsigned char *) NULL) in AcquireStringInfo()
199 (void) memset(string_info->datum,0,(length+MagickPathExtent)* in AcquireStringInfo()
200 sizeof(*string_info->datum)); in AcquireStringInfo()
238 string_info->datum=(unsigned char *) AcquireQuantumMemory(length+ in BlobToStringInfo()
239 MagickPathExtent,sizeof(*string_info->datum)); in BlobToStringInfo()
240 if (string_info->datum == (unsigned char *) NULL) in BlobToStringInfo()
246 (void) memcpy(string_info->datum,blob,length); in BlobToStringInfo()
248 (void) memset(string_info->datum,0,length*sizeof(*string_info->datum)); in BlobToStringInfo()
[all …]
Dsignature.c225 *datum; in FinalizeSignature() local
240 datum=GetStringInfoDatum(signature_info->message); in FinalizeSignature()
241 datum[extent++]=(unsigned char) 0x80; in FinalizeSignature()
243 (void) memset(datum+extent,0,GetStringInfoLength( in FinalizeSignature()
247 (void) memset(datum+extent,0,GetStringInfoLength( in FinalizeSignature()
250 (void) memset(datum,0,GetStringInfoLength( in FinalizeSignature()
253 datum[56]=(unsigned char) (high_order >> 24); in FinalizeSignature()
254 datum[57]=(unsigned char) (high_order >> 16); in FinalizeSignature()
255 datum[58]=(unsigned char) (high_order >> 8); in FinalizeSignature()
256 datum[59]=(unsigned char) high_order; in FinalizeSignature()
[all …]
/external/selinux/policycoreutils/newrole/
Dhashtab.c45 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) in hashtab_insert() argument
69 newnode->datum = datum; in hashtab_insert()
109 destroy(cur->key, cur->datum, args); in hashtab_remove()
115 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, in hashtab_replace() argument
135 destroy(cur->key, cur->datum, args); in hashtab_replace()
137 cur->datum = datum; in hashtab_replace()
144 newnode->datum = datum; in hashtab_replace()
174 return cur->datum; in hashtab_search()
214 ret = apply(cur->key, cur->datum, args); in hashtab_map()
242 ret = apply(cur->key, cur->datum, args); in hashtab_map_remove_on_error()
[all …]
/external/selinux/libsepol/src/
Dhashtab.c66 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) in hashtab_insert() argument
90 newnode->datum = datum; in hashtab_insert()
130 destroy(cur->key, cur->datum, args); in hashtab_remove()
136 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, in hashtab_replace() argument
156 destroy(cur->key, cur->datum, args); in hashtab_replace()
158 cur->datum = datum; in hashtab_replace()
165 newnode->datum = datum; in hashtab_replace()
195 return cur->datum; in hashtab_search()
235 ret = apply(cur->key, cur->datum, args); in hashtab_map()
263 ret = apply(cur->key, cur->datum, args); in hashtab_map_remove_on_error()
[all …]
Davtab.c93 avtab_datum_t * datum) in avtab_insert_node() argument
110 if (datum->xperms) /* else caller populates xperms */ in avtab_insert_node()
111 *xperms = *(datum->xperms); in avtab_insert_node()
113 newnode->datum.xperms = xperms; in avtab_insert_node()
118 newnode->datum.data = datum->data; in avtab_insert_node()
120 newnode->datum = *datum; in avtab_insert_node()
135 int avtab_insert(avtab_t * h, avtab_key_t * key, avtab_datum_t * datum) in avtab_insert() argument
168 newnode = avtab_insert_node(h, hvalue, prev, key, datum); in avtab_insert()
180 avtab_insert_nonunique(avtab_t * h, avtab_key_t * key, avtab_datum_t * datum) in avtab_insert_nonunique() argument
207 newnode = avtab_insert_node(h, hvalue, prev, key, datum); in avtab_insert_nonunique()
[all …]
Dhierarchy.c43 avtab_key_t *avtab_key, avtab_datum_t *datum) in bounds_insert_helper() argument
45 int rc = avtab_insert(avtab, avtab_key, datum); in bounds_insert_helper()
58 avtab_key_t *avtab_key, avtab_datum_t *datum) in bounds_insert_rule() argument
64 rc = bounds_insert_helper(handle, avtab, avtab_key, datum); in bounds_insert_rule()
67 dup->data |= datum->data; in bounds_insert_rule()
77 data = dup->data & datum->data; in bounds_insert_rule()
104 avtab_datum_t datum; in bounds_expand_rule() local
110 datum.data = data; in bounds_expand_rule()
117 &avtab_key, &datum); in bounds_expand_rule()
137 n->key.target_class, n->datum.data); in bounds_expand_cond_rules()
[all …]
/external/python/cpython2/Lib/plat-irix6/
Dflp.py199 datum = _parse_1_line(file)
200 if datum != ('Magic', 12321):
204 datum = _parse_1_line(file)
205 if type(datum) == type(()) and datum[0] == 'Numberofforms':
207 return datum[1]
213 datum = _parse_1_line(file)
214 if datum != FORMLINE:
317 datum = _parse_1_line(file)
318 if datum in (SPLITLINE, FORMLINE, ENDLINE):
319 if datum == FORMLINE:
[all …]
/external/python/cpython2/Lib/plat-irix5/
Dflp.py200 datum = _parse_1_line(file)
201 if datum != ('Magic', 12321):
205 datum = _parse_1_line(file)
206 if type(datum) == type(()) and datum[0] == 'Numberofforms':
208 return datum[1]
214 datum = _parse_1_line(file)
215 if datum != FORMLINE:
318 datum = _parse_1_line(file)
319 if datum in (SPLITLINE, FORMLINE, ENDLINE):
320 if datum == FORMLINE:
[all …]
/external/tensorflow/tensorflow/python/profiler/
Dpprof_profiler.py223 def add(self, datum, location_ids): argument
231 node_name = datum.node_exec_stats.node_name
245 label.str = self._string_table.index_of(datum.op_type)
248 sample.value[1] += datum.node_exec_stats.all_end_rel_micros
250 datum.node_exec_stats.op_end_rel_micros -
251 datum.node_exec_stats.op_start_rel_micros)
315 for datum in profile_datum_generator:
316 if not datum.traceback:
319 stack_frame = datum.traceback[-1]
324 for stack_frame_index in reversed(range(len(datum.traceback) - 1)):
[all …]
/external/autotest/client/site_tests/graphics_WebGLManyPlanetsDeep/
Dgraphics_WebGLManyPlanetsDeep.py59 for datum in frame_data:
60 if not datum or datum['seq'] in self.frame_data:
62 self.frame_data[datum['seq']] = {
63 'start_time': datum['startTime'],
64 'frame_elapsed_time': datum['frameElapsedTime'],
65 'js_elapsed_time': datum['jsElapsedTime']

123456