Home
last modified time | relevance | path

Searched refs:metadata (Results 1 – 25 of 36) sorted by relevance

12

/system/media/radio/src/
Dradio_metadata.c59 radio_metadata_buffer_t *metadata = *metadata_ptr; in check_size() local
60 unsigned int index_offset = metadata->size_int - metadata->count - 1; in check_size()
61 unsigned int data_offset = *((unsigned int *)metadata + index_offset); in check_size()
69 req_size_int = data_offset + metadata->count + 1 + 1 + size_int; in check_size()
72 if (req_size_int <= metadata->size_int) { in check_size()
76 if (req_size_int > RADIO_METADATA_MAX_SIZE || metadata->size_int >= RADIO_METADATA_MAX_SIZE) { in check_size()
80 new_size_int = metadata->size_int; in check_size()
84 ALOGV("%s growing from %u to %u", __func__, metadata->size_int, new_size_int); in check_size()
85 metadata = realloc(metadata, new_size_int * sizeof(unsigned int)); in check_size()
87 memmove((unsigned int *)metadata + new_size_int - (metadata->count + 1), in check_size()
[all …]
/system/media/camera/src/
Dcamera_metadata.c163 const camera_metadata_t *metadata) { in get_entries() argument
165 ((uint8_t*)metadata + metadata->entries_start); in get_entries()
168 static uint8_t *get_data(const camera_metadata_t *metadata) { in get_data() argument
169 return (uint8_t*)metadata + metadata->data_start; in get_data()
187 camera_metadata_t *metadata = (camera_metadata_t*) buffer; in allocate_copy_camera_metadata_checked() local
188 if (validate_camera_metadata_structure(metadata, &src_size) != OK) { in allocate_copy_camera_metadata_checked()
193 return metadata; in allocate_copy_camera_metadata_checked()
217 camera_metadata_t *metadata = (camera_metadata_t*)dst; in place_camera_metadata() local
218 metadata->version = CURRENT_METADATA_VERSION; in place_camera_metadata()
219 metadata->flags = 0; in place_camera_metadata()
[all …]
/system/media/radio/include/system/
Dradio_metadata.h92 int radio_metadata_allocate(radio_metadata_t **metadata,
103 void radio_metadata_deallocate(radio_metadata_t *metadata);
120 int radio_metadata_add_int(radio_metadata_t **metadata,
140 int radio_metadata_add_text(radio_metadata_t **metadata,
159 int radio_metadata_add_raw(radio_metadata_t **metadata,
179 int radio_metadata_add_clock(radio_metadata_t **metadata,
210 int radio_metadata_check(const radio_metadata_t *metadata);
224 size_t radio_metadata_get_size(const radio_metadata_t *metadata);
238 int radio_metadata_get_count(const radio_metadata_t *metadata);
257 int radio_metadata_get_at_index(const radio_metadata_t *metadata,
[all …]
/system/extras/tests/sdcard/
Dplot_sdcard.py133 metadata = Metadata()
142 if not metadata.complete:
143 metadata.Parse(line)
152 metadata.UpdateWith(dataset)
176 if not metadata.complete:
180 return (metadata, data)
183 def PlotIterations(metadata, data): argument
205 gp.title(metadata.AsTitle())
210 dataset.RescaleTo(metadata.iterations)
224 (metadata.name, metadata.kernel, metadata.duration),
[all …]
/system/bt/btcore/src/
Dmodule.c40 static hash_map_t *metadata; variable
49 metadata = hash_map_new( in module_management_start()
61 if (!metadata) in module_management_stop()
64 hash_map_free(metadata); in module_management_stop()
65 metadata = NULL; in module_management_stop()
77 assert(metadata != NULL); in module_init()
94 assert(metadata != NULL); in module_start_up()
114 assert(metadata != NULL); in module_shut_down()
135 assert(metadata != NULL); in module_clean_up()
172 module_state_t *state_ptr = hash_map_get(metadata, module); in get_module_state()
[all …]
/system/media/camera/include/system/
Dcamera_metadata.h211 void free_camera_metadata(camera_metadata_t *metadata);
226 size_t get_camera_metadata_size(const camera_metadata_t *metadata);
234 size_t get_camera_metadata_compact_size(const camera_metadata_t *metadata);
243 size_t get_camera_metadata_entry_count(const camera_metadata_t *metadata);
249 size_t get_camera_metadata_entry_capacity(const camera_metadata_t *metadata);
255 size_t get_camera_metadata_data_count(const camera_metadata_t *metadata);
262 size_t get_camera_metadata_data_capacity(const camera_metadata_t *metadata);
296 int validate_camera_metadata_structure(const camera_metadata_t *metadata,
519 void dump_camera_metadata(const camera_metadata_t *metadata,
528 void dump_indented_camera_metadata(const camera_metadata_t *metadata,
/system/media/camera/docs/
Dndk_camera_metadata_tags.mako52 % for i in find_all_sections(metadata):
64 % for i in find_all_sections(metadata):
71 * Main enum for camera metadata tags.
74 % for sec in find_all_sections(metadata):
88 ${entry.description | ndkdoc(metadata)}\
92 % if metadata.is_entry_this_kind(entry, 'static'):
95 % if metadata.is_entry_this_kind(entry, 'dynamic'):
98 % if metadata.is_entry_this_kind(entry, 'controls'):
103 ${entry.details | ndkdoc(metadata)}\
124 % for sec in find_all_sections(metadata):
[all …]
Dmetadata_parser_xml.py106 def metadata(self): member in MetadataParserXml
125 self.metadata.insert_tag(tag['id'], tag.string)
134 self.metadata.insert_type(tp['name'], 'typedef', languages=languages)
149 insert = self.metadata.insert_entry
160 insert = self.metadata.insert_clone
167 self.metadata.construct_graph()
313 ctx = Context(buf, metadata=self.metadata, **helpers)
Dcamera_metadata_tags.mako45 * Top level hierarchy definitions for camera metadata. *_INFO sections are for
46 * the static metadata that can be retrived without opening the camera device.
51 % for i in find_all_sections(metadata):
64 % for i in find_all_sections(metadata):
71 * Main enum for defining camera metadata tags. New entries must always go
77 % for sec in find_all_sections(metadata):
95 % for sec in find_all_sections(metadata):
Dcamera_metadata_tag_info.mako35 % for i in find_all_sections(metadata):
41 % for i in find_all_sections(metadata):
47 % for sec in find_all_sections(metadata):
59 % for i in find_all_sections(metadata):
72 % for sec in find_all_sections(metadata):
102 enum_values = metadata.find_all(find_values)
Dmetadata_template.mako17 <metadata
18 xmlns="http://schemas.android.com/service/camera/metadata/"
20 … xsi:schemaLocation="http://schemas.android.com/service/camera/metadata/ metadata_properties.xsd">
23 % for tag in metadata.tags:
33 % for typedef in metadata.types:
42 % for root in metadata.outer_namespaces:
199 </metadata>
Dmetadata_helpers.py783 def javadoc(metadata, indent = 4): argument
857 javatext = filter_tags(javatext, metadata, javadoc_crossref_filter, javadoc_crossref_see_filter)
872 def ndkdoc(metadata, indent = 4): argument
928 ndktext = filter_tags(ndktext, metadata, ndkdoc_crossref_filter, ndkdoc_crossref_see_filter)
930 ndktext = ndk_replace_tag_wildcards(ndktext, metadata)
1024 def filter_tags(text, metadata, filter_function, summary_function = None): argument
1050 for outer_namespace in metadata.outer_namespaces:
1072 node = metadata.find_first(name_match(candidate2.replace('\n','')))
1077 node = metadata.find_first(name_match(candidate2b))
1088 node = metadata.find_first(name_match(candidate3.replace('\n','')))
[all …]
Dmetadata_helpers_test.py123 metadata = MetadataParserXml(test_metadata_xml, 'metadata_helpers_test.py').metadata
156 result_text = filter_tags(test_text, metadata, filter_test, summary_test)
Dmetadata-generate194 $thisdir/metadata-check-dependencies || exit 1
195 $thisdir/metadata-validate $thisdir/metadata_properties.xml || exit 1
196 $thisdir/metadata-parser-sanity-check || exit 1
DCameraMetadataKeys.mako18 ## These sections of metadata Key definitions are inserted into the middle of
22 * The key entries below this point are generated from metadata
45 ${concatenated_info | javadoc(metadata)}\
75 % for outer_namespace in metadata.outer_namespaces: ## assumes single 'android' namespace
DACameraMetadata.mako20 % for outer_namespace in metadata.outer_namespaces: ## assumes single 'android' namespace
47 * The key entries below this point are generated from metadata
69 % for sec in find_all_sections(metadata):
DCaptureResultTest.mako18 * The key entries below this point are generated from metadata
25 % for sec in find_all_sections(metadata):
DCameraDeviceInfo.mako18 * The key entries below this point are generated from metadata
25 % for sec in find_all_sections(metadata):
Dhtml.mako143 def linkify_tags(metadata):
145 tagged_text = filter_tags(text, metadata, html_anchor)
176 % for root in metadata.outer_namespaces:
210 % for root in metadata.outer_namespaces:
315 … <span class="entry_type_enum_notes">${value.notes | md_html, linkify_tags(metadata), wbr}</span>
326 ${prop.description | md_html, linkify_tags(metadata), wbr}
341 ${prop.range | md_html, linkify_tags(metadata), wbr}
362 ${prop.details | md_html, linkify_tags(metadata), wbr}
373 ${prop.hal_details | md_html, linkify_tags(metadata), wbr}
397 % for tag in metadata.tags:
Dmetadata-validate20 $thisdir/metadata-check-dependencies || exit 1
DCameraMetadataEnums.mako21 * The enum values below this point are generated from metadata
35 ${value.notes | javadoc(metadata)}\
52 % for outer_namespace in metadata.outer_namespaces: ## assumes single 'android' namespace
Dmetadata-parser-sanity-check26 $thisdir/metadata-check-dependencies || exit 1
/system/core/adb/
Dset_verity_enable_state_service.cpp63 fec_verity_metadata metadata; in set_verity_enabled_state() local
65 if (!fh.get_verity_metadata(metadata)) { in set_verity_enabled_state()
70 if (!enable && metadata.disabled) { in set_verity_enabled_state()
75 if (enable && !metadata.disabled) { in set_verity_enabled_state()
/system/core/include/system/
Dradio.h173 radio_metadata_t *metadata; /* non null if meta data are present (e.g PTY, song title ...) */ member
204 radio_metadata_t *metadata; /* RADIO_EVENT_METADATA */ member
216 radio_metadata_t *metadata; /* offset from start of struct when in shared memory */ member
/system/extras/libfec/
Dfec_verity.cpp462 std::unique_ptr<uint8_t[]> metadata( in rewrite_metadata() local
465 if (!metadata) { in rewrite_metadata()
470 memset(metadata.get(), 0, VERITY_METADATA_SIZE); in rewrite_metadata()
473 memcpy(metadata.get(), &v->header, sizeof(v->header)); in rewrite_metadata()
479 memcpy(metadata.get() + sizeof(v->header), v->table, len); in rewrite_metadata()
481 return raw_pwrite(f, metadata.get(), VERITY_METADATA_SIZE, offset); in rewrite_metadata()

12