/system/media/camera/docs/ |
H A 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 [all...] |
H A D | metadata_validate.py | 43 def fully_qualified_name(entry): 45 Calculates the fully qualified name for an entry by walking the path 49 entry: a BeautifulSoup Tag corresponding to an <entry ...> XML node, 53 ValueError: if entry does not correspond to one of the above XML nodes 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 [all...] |
H A 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: 37 * @see ${target_class}#${entry.name | jkey_identifier} 38 % if entry.applied_visibility == 'hidden' or value.hidden: 45 public static final int ${jenum_value(entry, value)} = ${enum_calculate_value_string(value)}; 59 % for entry in filter_visibility(inner_namespace.entries, ('hidden','public')): 60 % if entry.enum \ 61 and not (entry.typedef and entry [all...] |
H A D | metadata_parser_xml.py | 138 entry_filter = lambda x: x.name == 'entry' or x.name == 'clone' 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['entr [all...] |
H A D | CaptureResultTest.mako | 26 % for entry in find_unique_entries(sec): 27 % if entry.kind == 'dynamic' and entry.visibility == "public": 28 resultKeys.add(CaptureResult.${jkey_identifier(entry.name)});
|
H A 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_visibility} 81 ${path_name(find_parent_section(entry)) | csym}_START, 83 ${entry [all...] |
H A D | metadata_helpers.py | 63 def find_parent_section(entry): 68 entry: an Entry or Clone node 73 return entry.find_parent_first(_is_sec_or_ins) 84 A sequence of MergedEntry nodes representing an entry 88 one entry (e.g. if there are multiple entries in different kinds). 100 for entry in i.entries: 101 d[entry.name] = entry 196 Convert an entry name string into an uppercase C symbol. 212 Convert an entry nam [all...] |
/system/core/include/log/ |
H A D | logger.h | 33 char msg[0]; /* the entry's payload */ 49 char msg[0]; /* the entry's payload */ 60 char msg[0]; /* the entry's payload */ 64 * The maximum size of the log entry payload that can be 66 * this amount will result in a truncated log entry. 71 * The maximum size of a log entry which can be read from the 82 struct logger_entry_v3 entry; member in union:log_msg::__anon1330 91 return (entry.sec == T.entry.sec) && (entry [all...] |
/system/core/logd/ |
H A D | FlushCommand.cpp | 49 LogTimeEntry *entry = NULL; local 55 entry = (*it); 56 if (entry->mClient == client) { 57 entry->triggerReader_Locked(); 58 if (entry->runningReader_Locked()) { 62 entry->incRef_Locked(); 74 entry = new LogTimeEntry(mReader, client, mNonBlock, mTail, mLogMask, mPid, mStart); 75 times.push_back(entry); 80 // release client and entry reference counts once done 81 entry [all...] |
/system/core/liblog/ |
H A D | log_read_kern.c | 35 #define LOGGER_GET_NEXT_ENTRY_LEN _IO(__LOGGERIO, 3) /* next entry len */ 146 struct log_msg entry; member in struct:logger_list 151 struct log_msg entry; /* Truncated to event->len() + 1 to save space */ member in struct:log_list 172 struct log_list *entry = node_to_item( local 174 list_remove(&entry->node); 175 free(entry); 423 struct log_list *entry = node_to_item(node, local 426 || (entry->entry.entry 607 struct log_list *entry; local [all...] |
H A D | logprint.c | 376 * entry allocated by caller. Pointers will point directly into buf 378 * Returns 0 on success and -1 on invalid wire format (entry will be 382 AndroidLogEntry *entry) 384 entry->tv_sec = buf->sec; 385 entry->tv_nsec = buf->nsec; 386 entry->pid = buf->pid; 387 entry->tid = buf->tid; 402 * An well-formed entry must consist of at least a priority 405 fprintf(stderr, "+++ LOG: entry too small\n"); 439 entry 381 android_log_processLogBuffer(struct logger_entry *buf, AndroidLogEntry *entry) argument 658 android_log_processBinaryLogBuffer(struct logger_entry *buf, AndroidLogEntry *entry, const EventTagMap* map, char* messageBuf, int messageBufLen) argument 879 android_log_formatLogLine( AndroidLogFormat *p_format, char *defaultBuffer, size_t defaultBufferSize, const AndroidLogEntry *entry, size_t *p_outLength) argument 1103 android_log_printLogLine( AndroidLogFormat *p_format, int fd, const AndroidLogEntry *entry) argument [all...] |
/system/core/libcutils/ |
H A D | hashmap.c | 115 Entry* entry = map->buckets[i]; local 116 while (entry != NULL) { 117 Entry* next = entry->next; 118 size_t index = calculateIndex(newBucketCount, entry->hash); 119 entry->next = newBuckets[index]; 120 newBuckets[index] = entry; 121 entry = next; 143 Entry* entry = map->buckets[i]; local 144 while (entry != NULL) { 145 Entry* next = entry 167 Entry* entry = malloc(sizeof(Entry)); local 225 Entry* entry = map->buckets[index]; local 240 Entry* entry = map->buckets[index]; local 311 Entry* entry = map->buckets[i]; local 331 Entry* entry = map->buckets[i]; local [all...] |
/system/extras/kexec_tools/ |
H A D | kexec.h | 19 static inline long kexec_load(unsigned int entry, unsigned long nr_segments, argument 21 return syscall(__NR_kexec_load, entry, nr_segments, segment, flags);
|
/system/extras/ext4_utils/ |
H A D | xattr.h | 38 #define EXT4_XATTR_NEXT(entry) \ 40 (char *)(entry) + EXT4_XATTR_LEN((entry)->e_name_len))) 43 #define IS_LAST_ENTRY(entry) (*(uint32_t *)(entry) == 0)
|
H A D | contents.c | 96 of each directory entry into dentries[i].inode, to be filled in later 97 when the inode for the entry is allocated. Returns the inode number of the 268 static size_t xattr_free_space(struct ext4_xattr_entry *entry, char *end) argument 271 while(!IS_LAST_ENTRY(entry) && (((char *) entry) < end)) { 272 end -= EXT4_XATTR_SIZE(le32_to_cpu(entry->e_value_size)); 273 entry = EXT4_XATTR_NEXT(entry); 276 if (((char *) entry) > end) { 281 return end - ((char *) entry); 288 xattr_get_last(struct ext4_xattr_entry *entry) argument 314 xattr_assert_sane(struct ext4_xattr_entry *entry) argument 341 ext4_xattr_hash_entry(struct ext4_xattr_header *header, struct ext4_xattr_entry *entry) argument [all...] |
/system/core/libbacktrace/ |
H A D | ThreadEntry.cpp | 51 ThreadEntry* entry = list_; local 52 while (entry != nullptr) { 53 if (entry->Match(pid, tid)) { 56 entry = entry->next_; 59 if (!entry) { 61 entry = new ThreadEntry(pid, tid); 64 entry->ref_count_++; 68 return entry; 71 void ThreadEntry::Remove(ThreadEntry* entry) { argument [all...] |
H A D | BacktraceCurrent.cpp | 97 ThreadEntry* entry = ThreadEntry::Get(getpid(), gettid(), false); local 98 if (!entry) { 99 BACK_LOGE("pid %d, tid %d entry not found", getpid(), gettid()); 103 entry->CopyUcontextFromSigcontext(sigcontext); 106 entry->Wake(); 112 if (entry->Wait(2)) { 113 // Do not remove the entry here because that can result in a deadlock 115 entry->Wake(); 117 // At this point, it is possible that entry has been freed, so just exit. 127 ThreadEntry* entry local [all...] |
/system/core/include/utils/ |
H A D | LruCache.h | 93 void attachToCache(Entry& entry); 94 void detachFromCache(Entry& entry); 133 Entry& entry = mTable->editEntryAt(index); local 134 detachFromCache(entry); 135 attachToCache(entry); 136 return entry.value; 154 // Would it be better to initialize a blank entry and assign key, value? 157 Entry& entry = mTable->editEntryAt(index); local 158 attachToCache(entry); 169 Entry& entry local 208 attachToCache(Entry& entry) argument 219 detachFromCache(Entry& entry) argument [all...] |
/system/extras/simpleperf/ |
H A D | utils.cpp | 62 dirent* entry; local 63 while ((entry = readdir(dir)) != nullptr) { 64 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) { 67 if (entry->d_type == DT_DIR) { 69 subdirs->push_back(entry->d_name); 73 files->push_back(entry->d_name);
|
/system/media/camera/src/ |
H A D | camera_metadata.c | 36 * A single metadata entry, storing an array of values of a given type. If the 241 // Start entry list at aligned boundary 354 ALOGE("%s: Entry count (%" PRIu32 ") should be <= entry capacity " 386 // Validate each entry 399 camera_metadata_buffer_entry_t entry = entries[i]; local 401 if (entry.type >= NUM_TYPES) { 403 __FUNCTION__, i, entry.type); 409 uint32_t tag_section = entry.tag >> 16; 410 int tag_type = get_camera_metadata_tag_type(entry.tag); 411 if (tag_type != (int)entry 470 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count; local 535 camera_metadata_buffer_entry_t *entry = get_entries(dst) + dst->entry_count; local 595 get_camera_metadata_entry(camera_metadata_t *src, size_t index, camera_metadata_entry_t *entry) argument 616 get_camera_metadata_ro_entry(const camera_metadata_t *src, size_t index, camera_metadata_ro_entry_t *entry) argument 623 find_camera_metadata_entry(camera_metadata_t *src, uint32_t tag, camera_metadata_entry_t *entry) argument 656 find_camera_metadata_ro_entry(const camera_metadata_t *src, uint32_t tag, camera_metadata_ro_entry_t *entry) argument 864 camera_metadata_buffer_entry_t *entry = get_entries(metadata); local [all...] |
/system/media/radio/src/ |
H A D | radio_metadata.c | 69 /* do not grow buffer if it can accommodate the new entry plus an additional index entry */ 104 radio_metadata_entry_t *entry; local 120 entry = (radio_metadata_entry_t *)((unsigned int *)metadata + data_offset); 121 entry->key = key; 122 entry->type = type; 123 entry->size = size; 124 memcpy(entry->data, value, size); 288 /* sanity check on entry count versus buffer size */ 298 /* sanity check on each entry */ 300 radio_metadata_entry_t *entry = get_entry_at_index(metadata_buf, count, true); local 353 radio_metadata_entry_t *entry; local 381 radio_metadata_entry_t *entry = NULL; local [all...] |
/system/bt/osi/src/ |
H A D | config.c | 127 entry_t *entry = entry_find(config, section, key); local 128 if (!entry) 132 int ret = strtol(entry->value, &endptr, 0); 141 entry_t *entry = entry_find(config, section, key); local 142 if (!entry) 145 if (!strcmp(entry->value, "true")) 147 if (!strcmp(entry->value, "false")) 158 entry_t *entry = entry_find(config, section, key); local 159 if (!entry) 162 return entry 191 entry_t *entry = list_node(node); local 199 entry_t *entry = entry_new(key, value); local 220 entry_t *entry = entry_find(config, section, key); local 274 const entry_t *entry = (const entry_t *)list_node(enode); local 390 entry_t *entry = osi_calloc(sizeof(entry_t)); local 415 entry_t *entry = list_node(node); local [all...] |
/system/core/gpttool/ |
H A D | gpttool.c | 83 struct efi_entry entry[EFI_ENTRIES]; member in struct:ptable 120 struct efi_entry *entry = ptbl->entry; local 132 for (n = 0; n < EFI_ENTRIES; n++, entry++) { 133 if (entry->type_uuid[0]) 135 memcpy(entry->type_uuid, partition_type_uuid, 16); 136 get_uuid(entry->uniq_uuid); 137 entry->first_lba = first; 138 entry->last_lba = last; 140 entry 161 struct efi_entry *entry = ptbl->entry; local 182 struct efi_entry *entry = ptbl->entry; local [all...] |
/system/security/keystore/ |
H A D | auth_token_table.h | 108 Entry(Entry&& entry) { *this = std::move(entry); } argument 121 bool Supersedes(const Entry& entry) const; 124 bool is_newer_than(const Entry* entry) { argument 125 if (!entry) 127 return timestamp_host_order() > entry->timestamp_host_order(); 153 void RemoveEntriesSupersededBy(const Entry& entry); 154 bool IsSupersededBySomeEntry(const Entry& entry);
|
H A D | operation.cpp | 52 auto entry = mMap.find(token); local 53 if (entry == mMap.end()) { 58 *outHandle = entry->second.handle; 59 *outKeyid = entry->second.keyid; 60 *outPurpose = entry->second.purpose; 61 *outDevice = entry->second.device; 63 *outCharacteristics = entry->second.characteristics.get(); 77 auto entry = mMap.find(token); local 78 if (entry == mMap.end()) { 81 sp<IBinder> appToken = entry 122 auto entry = mMap.find(token); local 131 auto entry = mMap.find(token); local [all...] |