/system/media/camera/docs/ |
D | metadata_validate.py | 43 def fully_qualified_name(entry): argument 60 parents = [i['name'] for i in entry.parents if i.name in filter_tags] 62 if entry.name == 'entry': 63 name = entry['name'] 64 elif entry.name == 'clone': 65 name = entry['entry'].split(".")[-1] # "a.b.c" => "c" 68 %(entry.name, entry)) 267 for entry in soup.find_all("entry"): 268 entry_container = entry.attrs.get('container') 271 container_tag = entry.find(entry_container) [all …]
|
D | metadata_parser_xml.py | 139 for entry in self.soup.find_all(entry_filter): 140 if entry.name == 'entry': 142 'name': fully_qualified_name(entry), 143 'type': entry['type'], 144 'kind': find_kind(entry), 145 'type_notes': entry.attrs.get('type_notes') 148 d2 = self._parse_entry(entry) 152 'name': entry['entry'], 153 'kind': find_kind(entry), 154 'target_kind': entry['kind'], [all …]
|
D | ndk_camera_metadata_tags.mako | 47 def annotated_type(entry): 48 type = entry.type 49 if entry.container == 'array': 50 type += '[' + '*'.join(entry.container_sizes) + ']' 51 if entry.enum: 52 type += ' (acamera_metadata_enum_%s_t)'%(csym(entry.name).lower()) 88 % for idx,entry in enumerate(remove_synthetic(find_unique_entries(sec))): 89 % if entry.applied_ndk_visible == "true": 90 % if entry.deprecated: 91 ${ndk(entry.name) + " = " | csym,ljust(60)}// Deprecated! DO NOT USE [all …]
|
D | CameraMetadataKeys.mako | 29 <%def name="generate_key(entry)">\ 34 if entry.description: 35 description = dedent(entry.description) + "\n\n" 37 if entry.details: 38 details = dedent(entry.details) 40 extra_detail = generate_extra_javadoc_detail(entry)("") 46 % if entry.enum and not (entry.typedef and entry.typedef.languages.get('java')): 47 % for value in entry.enum.values: 49 * @see #${jenum_value(entry, value)} 53 % if entry.deprecated: [all …]
|
D | camera_metadata_tags.mako | 31 def annotated_type(entry): 32 if entry.enum: 35 type = entry.type 36 if entry.container == 'array': 78 % for idx,entry in enumerate(remove_synthetic(find_unique_entries(sec))): 80 …entry.name + " = " | csym,ljust(50)}// ${annotated_type(entry) | ljust(12)} | ${entry.applied_visi… 81 ${path_name(find_parent_section(entry)) | csym}_START, 83 …entry.name + "," | csym,ljust(50)}// ${annotated_type(entry) | ljust(12)} | ${entry.applied_visibi… 96 % for entry in remove_synthetic(find_unique_entries(sec)): 97 % if entry.enum: [all …]
|
D | metadata_helpers.py | 66 def find_parent_section(entry): argument 76 return entry.find_parent_first(_is_sec_or_ins) 103 for entry in i.entries: 104 d[entry.name] = entry 149 def protobuf_type(entry): argument 158 if entry.typedef is None: 159 typeName = entry.type 161 typeName = entry.typedef.name 186 (entry.name, entry.type, entry.typedef) 191 if entry.container == 'array': [all …]
|
D | HidlMetadata.mako | 18 def annotated_type(entry): 19 if entry.enum: 22 type = entry.type 23 if entry.container == 'array': 101 …% for idx,entry in enumerate(filter_added_in_hal_version(remove_synthetic(find_unique_entries(sec)… 103 /** ${entry.name} [${entry.kind}, ${annotated_type(entry)}, ${entry.applied_visibility}] 104 % if entry.description: 106 ${entry.description | hidldoc(metadata)}\ 111 …${entry.name + " =" | csym} CameraMetadataSectionStart:${path_name(find_parent_section(entry)) | c… 114 …${entry.name + " =" | csym} ${'android.hardware.camera.metadata@%d.%d' % prevVersion}::CameraMetad… [all …]
|
D | CameraMetadataEnums.mako | 27 <%def name="generate_enum(entry, target_class)">\ 29 // Enumeration values for ${target_class}#${entry.name | jkey_identifier} 32 % for value in entry.enum.values: 40 * @see ${target_class}#${entry.name | jkey_identifier} 41 % if entry.applied_visibility in ('hidden', 'ndk_public') or value.hidden: 51 public static final int ${jenum_value(entry, value)} = ${enum_calculate_value_string(value)}; 65 …% for entry in filter_visibility(inner_namespace.entries, ('hidden','public', 'ndk_public', 'java_… 66 % if entry.enum \ 67 and not (entry.typedef and entry.typedef.languages.get('java')) \ 68 and not entry.is_clone(): [all …]
|
/system/core/logd/ |
D | FlushCommand.cpp | 39 LogTimeEntry* entry = NULL; in runSocketCommand() local 45 entry = (*it); in runSocketCommand() 46 if (entry->mClient == client) { in runSocketCommand() 47 if (!entry->isWatchingMultiple(mLogMask)) { in runSocketCommand() 51 if (entry->mTimeout.tv_sec || entry->mTimeout.tv_nsec) { in runSocketCommand() 59 if (((entry->mEnd + entry->mTimeout) > now) && in runSocketCommand() 60 (now > entry->mEnd)) { in runSocketCommand() 65 entry->triggerReader_Locked(); in runSocketCommand() 66 if (entry->runningReader_Locked()) { in runSocketCommand() 70 entry->incRef_Locked(); in runSocketCommand() [all …]
|
/system/core/libunwindstack/tests/ |
D | ElfFake.cpp | 39 auto entry = functions_.front(); in GetFunctionName() local 41 *name = entry.name; in GetFunctionName() 42 *offset = entry.offset; in GetFunctionName() 47 auto entry = globals_.find(global); in GetGlobalVariable() local 48 if (entry == globals_.end()) { in GetGlobalVariable() 51 *offset = entry->second; in GetGlobalVariable() 59 auto entry = steps_.front(); in Step() local 62 if (entry.pc == 0 && entry.sp == 0 && !entry.finished) { in Step() 68 fake_regs->set_pc(entry.pc); in Step() 69 fake_regs->set_sp(entry.sp); in Step() [all …]
|
/system/core/libunwindstack/ |
D | DexFiles.cpp | 52 for (auto& entry : files_) { in ~DexFiles() local 53 delete entry.second; in ~DexFiles() 79 uint32_t entry; in ReadEntryPtr32() local 81 if (!memory_->ReadFully(addr + field_offset, &entry, sizeof(entry))) { in ReadEntryPtr32() 84 return entry; in ReadEntryPtr32() 88 uint64_t entry; in ReadEntryPtr64() local 90 if (!memory_->ReadFully(addr + field_offset, &entry, sizeof(entry))) { in ReadEntryPtr64() 93 return entry; in ReadEntryPtr64() 97 DEXFileEntry32 entry; in ReadEntry32() local 98 if (!memory_->ReadFully(entry_addr_, &entry, sizeof(entry)) || entry.dex_file == 0) { in ReadEntry32() [all …]
|
D | Symbols.cpp | 73 SymType entry; in GetName() local 74 if (!elf_memory->ReadFully(cur_offset_, &entry, sizeof(entry))) { in GetName() 81 if (entry.st_shndx != SHN_UNDEF && ELF32_ST_TYPE(entry.st_info) == STT_FUNC) { in GetName() 83 uint64_t start_offset = entry.st_value; in GetName() 84 if (entry.st_shndx != SHN_ABS) { in GetName() 87 uint64_t end_offset = start_offset + entry.st_size; in GetName() 90 symbols_.emplace_back(start_offset, end_offset, str_offset_ + entry.st_name); in GetName() 95 uint64_t offset = str_offset_ + entry.st_name; in GetName() 115 SymType entry; in GetGlobal() local 116 if (!elf_memory->ReadFully(cur_offset, &entry, sizeof(entry))) { in GetGlobal() [all …]
|
/system/core/liblog/ |
D | stderr_write.c | 153 AndroidLogEntry entry; in stderrWrite() local 162 log_msg.entry.len = 0; in stderrWrite() 163 log_msg.entry.hdr_size = sizeof(log_msg.entry); in stderrWrite() 164 log_msg.entry.pid = getpid(); in stderrWrite() 166 log_msg.entry.tid = gettid(); in stderrWrite() 168 log_msg.entry.tid = getpid(); in stderrWrite() 170 log_msg.entry.sec = ts->tv_sec; in stderrWrite() 171 log_msg.entry.nsec = ts->tv_nsec; in stderrWrite() 172 log_msg.entry.lid = logId; in stderrWrite() 173 log_msg.entry.uid = __android_log_uid(); in stderrWrite() [all …]
|
D | logprint.c | 506 AndroidLogEntry* entry) { in android_log_processLogBuffer() argument 507 entry->message = NULL; in android_log_processLogBuffer() 508 entry->messageLen = 0; in android_log_processLogBuffer() 510 entry->tv_sec = buf->sec; in android_log_processLogBuffer() 511 entry->tv_nsec = buf->nsec; in android_log_processLogBuffer() 512 entry->uid = -1; in android_log_processLogBuffer() 513 entry->pid = buf->pid; in android_log_processLogBuffer() 514 entry->tid = buf->tid; in android_log_processLogBuffer() 544 (buf2->hdr_size > sizeof(((struct log_msg*)NULL)->entry))) { in android_log_processLogBuffer() 550 entry->uid = ((struct logger_entry_v4*)buf)->uid; in android_log_processLogBuffer() [all …]
|
/system/core/libcutils/ |
D | hashmap.cpp | 119 Entry* entry = map->buckets[i]; in expandIfNecessary() local 120 while (entry != NULL) { in expandIfNecessary() 121 Entry* next = entry->next; in expandIfNecessary() 122 size_t index = calculateIndex(newBucketCount, entry->hash); in expandIfNecessary() 123 entry->next = newBuckets[index]; in expandIfNecessary() 124 newBuckets[index] = entry; in expandIfNecessary() 125 entry = next; in expandIfNecessary() 147 Entry* entry = map->buckets[i]; in hashmapFree() local 148 while (entry != NULL) { in hashmapFree() 149 Entry* next = entry->next; in hashmapFree() [all …]
|
/system/core/liblog/include_vndk/log/ |
D | log_read.h | 145 struct logger_entry_v4 entry; member 154 return (entry.sec == T.entry.sec) && (entry.nsec == T.entry.nsec); 160 return (entry.sec < T.entry.sec) || 161 ((entry.sec == T.entry.sec) && (entry.nsec < T.entry.nsec)); 167 return (entry.sec > T.entry.sec) || 168 ((entry.sec == T.entry.sec) && (entry.nsec > T.entry.nsec)); 174 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec() 179 return static_cast<log_id_t>(entry.lid); in id() 182 unsigned short hdr_size = entry.hdr_size; in msg() 186 if ((hdr_size < sizeof(entry_v1)) || (hdr_size > sizeof(entry))) { in msg() [all …]
|
/system/core/liblog/include/log/ |
D | log_read.h | 145 struct logger_entry_v4 entry; member 154 return (entry.sec == T.entry.sec) && (entry.nsec == T.entry.nsec); 160 return (entry.sec < T.entry.sec) || 161 ((entry.sec == T.entry.sec) && (entry.nsec < T.entry.nsec)); 167 return (entry.sec > T.entry.sec) || 168 ((entry.sec == T.entry.sec) && (entry.nsec > T.entry.nsec)); 174 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec() 179 return static_cast<log_id_t>(entry.lid); in id() 182 unsigned short hdr_size = entry.hdr_size; in msg() 186 if ((hdr_size < sizeof(entry_v1)) || (hdr_size > sizeof(entry))) { in msg() [all …]
|
/system/core/libutils/include/utils/ |
D | LruCache.h | 88 size_t operator() (const KeyedEntry* entry) const { in operator() 89 return hash_type(entry->getKey()); in operator() 103 void attachToCache(Entry& entry); 104 void detachFromCache(Entry& entry); 197 Entry *entry = reinterpret_cast<Entry*>(*find_result); in get() local 198 detachFromCache(*entry); in get() 199 attachToCache(*entry); in get() 200 return entry->value; in get() 227 Entry* entry = reinterpret_cast<Entry*>(*find_result); in remove() local 228 mSet->erase(entry); in remove() [all …]
|
/system/core/libbacktrace/ |
D | ThreadEntry.cpp | 51 ThreadEntry* entry = list_; in Get() local 52 while (entry != nullptr) { in Get() 53 if (entry->Match(pid, tid)) { in Get() 56 entry = entry->next_; in Get() 59 if (!entry) { in Get() 61 entry = new ThreadEntry(pid, tid); in Get() 64 entry->ref_count_++; in Get() 68 return entry; in Get() 71 void ThreadEntry::Remove(ThreadEntry* entry) { in Remove() argument 72 entry->Unlock(); in Remove() [all …]
|
D | BacktraceCurrent.cpp | 124 ThreadEntry* entry = ThreadEntry::Get(getpid(), gettid(), false); in SignalHandler() local 125 if (!entry) { in SignalHandler() 130 entry->CopyUcontextFromSigcontext(sigcontext); in SignalHandler() 133 entry->Wake(); in SignalHandler() 139 if (entry->Wait(2)) { in SignalHandler() 142 entry->Wake(); in SignalHandler() 154 ThreadEntry* entry = ThreadEntry::Get(Pid(), Tid()); in UnwindThread() local 155 entry->Lock(); in UnwindThread() 164 ThreadEntry::Remove(entry); in UnwindThread() 180 ThreadEntry::Remove(entry); in UnwindThread() [all …]
|
/system/core/libziparchive/ |
D | unzip.cpp | 137 static void ExtractToPipe(ZipArchiveHandle zah, ZipEntry& entry, const std::string& name) { in ExtractToPipe() argument 140 uint8_t* buffer = new uint8_t[entry.uncompressed_length]; in ExtractToPipe() 141 int err = ExtractToMemory(zah, &entry, buffer, entry.uncompressed_length); in ExtractToPipe() 145 if (!android::base::WriteFully(1, buffer, entry.uncompressed_length)) { in ExtractToPipe() 151 static void ExtractOne(ZipArchiveHandle zah, ZipEntry& entry, const std::string& name) { in ExtractOne() argument 173 if (mkdir(name.c_str(), entry.unix_mode) == -1) { in ExtractOne() 185 int fd = open(name.c_str(), O_CREAT | O_WRONLY | O_CLOEXEC | O_EXCL, entry.unix_mode); in ExtractOne() 190 fd = open(name.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC | O_TRUNC, entry.unix_mode); in ExtractOne() 196 int err = ExtractEntryToFile(zah, &entry, fd); in ExtractOne() 201 static void ListOne(const ZipEntry& entry, const std::string& name) { in ListOne() argument [all …]
|
D | zip_archive_stream_entry.cc | 40 bool ZipArchiveStreamEntry::Init(const ZipEntry& entry) { in Init() argument 41 crc32_ = entry.crc32; in Init() 42 offset_ = entry.offset; in Init() 57 bool Init(const ZipEntry& entry) override; 66 bool ZipArchiveStreamEntryUncompressed::Init(const ZipEntry& entry) { in Init() argument 67 if (!ZipArchiveStreamEntry::Init(entry)) { in Init() 71 length_ = entry.uncompressed_length; in Init() 121 bool Init(const ZipEntry& entry) override; 141 bool ZipArchiveStreamEntryCompressed::Init(const ZipEntry& entry) { in Init() argument 142 if (!ZipArchiveStreamEntry::Init(entry)) { in Init() [all …]
|
/system/media/camera/src/ |
D | camera_metadata.c | 507 camera_metadata_buffer_entry_t entry = entries[i]; in validate_camera_metadata_structure() local 509 if (entry.type >= NUM_TYPES) { in validate_camera_metadata_structure() 511 __FUNCTION__, i, entry.type); in validate_camera_metadata_structure() 517 uint32_t tag_section = entry.tag >> 16; in validate_camera_metadata_structure() 518 int tag_type = get_local_camera_metadata_tag_type(entry.tag, metadata); in validate_camera_metadata_structure() 519 if (tag_type != (int)entry.type && tag_section < VENDOR_SECTION) { in validate_camera_metadata_structure() 521 __FUNCTION__, i, tag_type, entry.type); in validate_camera_metadata_structure() 526 if (validate_and_calculate_camera_metadata_entry_data_size(&data_size, entry.type, in validate_camera_metadata_structure() 527 entry.count) != OK) { in validate_camera_metadata_structure() 528 ALOGE("%s: Entry data size is invalid. type: %u count: %u", __FUNCTION__, entry.type, in validate_camera_metadata_structure() [all …]
|
/system/bt/osi/src/ |
D | config.cc | 56 for (const entry_t& entry : sec->entries) { in entry_find() local 57 if (entry.key == key) return &entry; in entry_find() 91 for (const entry_t& entry : sec.entries) { in config_new_clone() local 92 config_set_string(ret.get(), sec.name, entry.key, entry.value); in config_new_clone() 110 const entry_t* entry = entry_find(config, section, key); in config_get_int() local 111 if (!entry) return def_value; in config_get_int() 114 int ret = strtol(entry->value.c_str(), &endptr, 0); in config_get_int() 120 const entry_t* entry = entry_find(config, section, key); in config_get_uint64() local 121 if (!entry) return def_value; in config_get_uint64() 124 uint64_t ret = strtoull(entry->value.c_str(), &endptr, 0); in config_get_uint64() [all …]
|
/system/media/radio/src/ |
D | radio_metadata.c | 109 radio_metadata_entry_t *entry; in add_metadata() local 125 entry = (radio_metadata_entry_t *)((uint32_t *)metadata + data_offset); in add_metadata() 126 entry->key = key; in add_metadata() 127 entry->type = type; in add_metadata() 128 entry->size = (uint32_t)size; in add_metadata() 129 memcpy(entry->data, value, size); in add_metadata() 326 radio_metadata_entry_t *entry = get_entry_at_index(metadata_buf, count, true); in radio_metadata_check() local 328 if (entry == NULL) { in radio_metadata_check() 331 if (!is_valid_metadata_key(entry->key)) { in radio_metadata_check() 334 if (entry->type != radio_metadata_type_of_key(entry->key)) { in radio_metadata_check() [all …]
|