Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 79) sorted by relevance

1234

/system/core/liblog/
Dlog_read_kern.c146 struct log_msg entry; member
151 struct log_msg entry; /* Truncated to event->len() + 1 to save space */ member
172 struct log_list *entry = node_to_item( in android_logger_free() local
174 list_remove(&entry->node); in android_logger_free()
175 free(entry); in android_logger_free()
423 struct log_list *entry = node_to_item(node, in android_logger_list_flush() local
426 || (entry->entry.entry.sec < oldest->entry.entry.sec) in android_logger_list_flush()
427 || ((entry->entry.entry.sec == oldest->entry.entry.sec) in android_logger_list_flush()
428 && (entry->entry.entry.nsec < oldest->entry.entry.nsec))) { in android_logger_list_flush()
429 oldest = entry; in android_logger_list_flush()
[all …]
Dlogprint.c382 AndroidLogEntry *entry) in android_log_processLogBuffer() argument
384 entry->tv_sec = buf->sec; in android_log_processLogBuffer()
385 entry->tv_nsec = buf->nsec; in android_log_processLogBuffer()
386 entry->pid = buf->pid; in android_log_processLogBuffer()
387 entry->tid = buf->tid; in android_log_processLogBuffer()
439 entry->priority = msg[0]; in android_log_processLogBuffer()
440 entry->tag = msg + 1; in android_log_processLogBuffer()
441 entry->message = msg + msgStart; in android_log_processLogBuffer()
442 entry->messageLen = msgEnd - msgStart; in android_log_processLogBuffer()
659 AndroidLogEntry *entry, const EventTagMap* map, char* messageBuf, in android_log_processBinaryLogBuffer() argument
[all …]
/system/core/libcutils/
Dhashmap.c115 Entry* entry = map->buckets[i]; in expandIfNecessary() local
116 while (entry != NULL) { in expandIfNecessary()
117 Entry* next = entry->next; in expandIfNecessary()
118 size_t index = calculateIndex(newBucketCount, entry->hash); in expandIfNecessary()
119 entry->next = newBuckets[index]; in expandIfNecessary()
120 newBuckets[index] = entry; in expandIfNecessary()
121 entry = next; in expandIfNecessary()
143 Entry* entry = map->buckets[i]; in hashmapFree() local
144 while (entry != NULL) { in hashmapFree()
145 Entry* next = entry->next; in hashmapFree()
[all …]
/system/core/include/log/
Dlogger.h82 struct logger_entry_v3 entry; member
91 return (entry.sec == T.entry.sec) && (entry.nsec == T.entry.nsec);
99 return (entry.sec < T.entry.sec)
100 || ((entry.sec == T.entry.sec)
101 && (entry.nsec < T.entry.nsec));
109 return (entry.sec > T.entry.sec)
110 || ((entry.sec == T.entry.sec)
111 && (entry.nsec > T.entry.nsec));
119 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
125 return (log_id_t) entry.lid; in id()
[all …]
/system/media/camera/docs/
Dmetadata_validate.py43 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))
244 for entry in soup.find_all("entry"):
245 entry_container = entry.attrs.get('container')
248 container_tag = entry.find(entry_container)
[all …]
Dmetadata_parser_xml.py139 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 …]
DCameraMetadataKeys.mako29 <%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 …]
Dmetadata_helpers.py63 def find_parent_section(entry): argument
73 return entry.find_parent_first(_is_sec_or_ins)
100 for entry in i.entries:
101 d[entry.name] = entry
320 def _jtypedef_type(entry): argument
321 typedef = entry.typedef
328 if entry.container == 'array':
330 for size in entry.container_sizes:
359 def jtype_unboxed(entry): argument
372 if not isinstance(entry, metadata_model.Entry):
[all …]
Dcamera_metadata_tags.mako31 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_vi…
81 ${path_name(find_parent_section(entry)) | csym}_START,
83 …${entry.name + "," | csym,ljust(50)}// ${annotated_type(entry) | ljust(12)} | ${entry.applied_visi…
96 % for entry in remove_synthetic(find_unique_entries(sec)):
97 % if entry.enum:
[all …]
DCameraMetadataEnums.mako27 <%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.typedef.languages.get('java')) \
62 and not entry.is_clone():
[all …]
/system/media/camera/src/
Dcamera_metadata.c399 camera_metadata_buffer_entry_t entry = entries[i]; in validate_camera_metadata_structure() local
401 if (entry.type >= NUM_TYPES) { in validate_camera_metadata_structure()
403 __FUNCTION__, i, entry.type); in validate_camera_metadata_structure()
409 uint32_t tag_section = entry.tag >> 16; in validate_camera_metadata_structure()
410 int tag_type = get_camera_metadata_tag_type(entry.tag); in validate_camera_metadata_structure()
411 if (tag_type != (int)entry.type && tag_section < VENDOR_SECTION) { in validate_camera_metadata_structure()
413 __FUNCTION__, i, tag_type, entry.type); in validate_camera_metadata_structure()
418 calculate_camera_metadata_entry_data_size(entry.type, in validate_camera_metadata_structure()
419 entry.count); in validate_camera_metadata_structure()
424 entry.data.offset); in validate_camera_metadata_structure()
[all …]
/system/core/include/utils/
DLruCache.h93 void attachToCache(Entry& entry);
94 void detachFromCache(Entry& entry);
133 Entry& entry = mTable->editEntryAt(index); in get() local
134 detachFromCache(entry); in get()
135 attachToCache(entry); in get()
136 return entry.value; in get()
157 Entry& entry = mTable->editEntryAt(index); in put() local
158 attachToCache(entry); in put()
169 Entry& entry = mTable->editEntryAt(index); in remove() local
171 (*mListener)(entry.key, entry.value); in remove()
[all …]
/system/core/libbacktrace/
DThreadEntry.cpp51 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 …]
DBacktraceCurrent.cpp97 ThreadEntry* entry = ThreadEntry::Get(getpid(), gettid(), false); in SignalHandler() local
98 if (!entry) { in SignalHandler()
103 entry->CopyUcontextFromSigcontext(sigcontext); in SignalHandler()
106 entry->Wake(); in SignalHandler()
112 if (entry->Wait(2)) { in SignalHandler()
115 entry->Wake(); in SignalHandler()
127 ThreadEntry* entry = ThreadEntry::Get(Pid(), Tid()); in UnwindThread() local
128 entry->Lock(); in UnwindThread()
137 ThreadEntry::Remove(entry); in UnwindThread()
145 ThreadEntry::Remove(entry); in UnwindThread()
[all …]
/system/core/gpttool/
Dgpttool.c83 struct efi_entry entry[EFI_ENTRIES]; member
120 struct efi_entry *entry = ptbl->entry; in add_ptn() local
132 for (n = 0; n < EFI_ENTRIES; n++, entry++) { in add_ptn()
133 if (entry->type_uuid[0]) in add_ptn()
135 memcpy(entry->type_uuid, partition_type_uuid, 16); in add_ptn()
136 get_uuid(entry->uniq_uuid); in add_ptn()
137 entry->first_lba = first; in add_ptn()
138 entry->last_lba = last; in add_ptn()
140 entry->name[n] = *name++; in add_ptn()
161 struct efi_entry *entry = ptbl->entry; in show() local
[all …]
/system/media/radio/src/
Dradio_metadata.c104 radio_metadata_entry_t *entry; in add_metadata() local
120 entry = (radio_metadata_entry_t *)((unsigned int *)metadata + data_offset); in add_metadata()
121 entry->key = key; in add_metadata()
122 entry->type = type; in add_metadata()
123 entry->size = size; in add_metadata()
124 memcpy(entry->data, value, size); in add_metadata()
300 radio_metadata_entry_t *entry = get_entry_at_index(metadata_buf, count, true); in radio_metadata_check() local
302 if (entry == NULL) { in radio_metadata_check()
305 if (!is_valid_metadata_key(entry->key)) { in radio_metadata_check()
308 if (entry->type != radio_metadata_type_of_key(entry->key)) { in radio_metadata_check()
[all …]
/system/security/keystore/
Doperation.cpp52 auto entry = mMap.find(token); in getOperation() local
53 if (entry == mMap.end()) { in getOperation()
58 *outHandle = entry->second.handle; in getOperation()
59 *outKeyid = entry->second.keyid; in getOperation()
60 *outPurpose = entry->second.purpose; in getOperation()
61 *outDevice = entry->second.device; in getOperation()
63 *outCharacteristics = entry->second.characteristics.get(); in getOperation()
77 auto entry = mMap.find(token); in removeOperation() local
78 if (entry == mMap.end()) { in removeOperation()
81 sp<IBinder> appToken = entry->second.appToken; in removeOperation()
[all …]
Dauth_token_table.cpp128 for (auto& entry : entries_) in FindTimedAuthorization() local
129 if (entry.SatisfiesAuth(sids, auth_type) && entry.is_newer_than(newest_match)) in FindTimedAuthorization()
130 newest_match = &entry; in FindTimedAuthorization()
153 void AuthTokenTable::RemoveEntriesSupersededBy(const Entry& entry) { in RemoveEntriesSupersededBy() argument
154 entries_.erase(remove_if(entries_, [&](Entry& e) { return entry.Supersedes(e); }), in RemoveEntriesSupersededBy()
162 bool AuthTokenTable::IsSupersededBySomeEntry(const Entry& entry) { in IsSupersededBySomeEntry() argument
164 [&](Entry& e) { return e.Supersedes(entry); }); in IsSupersededBySomeEntry()
207 bool AuthTokenTable::Entry::Supersedes(const Entry& entry) const { in Supersedes()
208 if (!entry.completed()) in Supersedes()
211 return (token_->user_id == entry.token_->user_id && in Supersedes()
[all …]
/system/core/logd/
DFlushCommand.cpp49 LogTimeEntry *entry = NULL; in runSocketCommand() local
55 entry = (*it); in runSocketCommand()
56 if (entry->mClient == client) { in runSocketCommand()
57 entry->triggerReader_Locked(); in runSocketCommand()
58 if (entry->runningReader_Locked()) { in runSocketCommand()
62 entry->incRef_Locked(); in runSocketCommand()
74 entry = new LogTimeEntry(mReader, client, mNonBlock, mTail, mLogMask, mPid, mStart); in runSocketCommand()
75 times.push_back(entry); in runSocketCommand()
81 entry->startReader_Locked(); in runSocketCommand()
DLogBufferElement.cpp194 struct logger_entry_v3 entry; in flushTo() local
196 memset(&entry, 0, sizeof(struct logger_entry_v3)); in flushTo()
198 entry.hdr_size = sizeof(struct logger_entry_v3); in flushTo()
199 entry.lid = mLogId; in flushTo()
200 entry.pid = mPid; in flushTo()
201 entry.tid = mTid; in flushTo()
202 entry.sec = mRealTime.tv_sec; in flushTo()
203 entry.nsec = mRealTime.tv_nsec; in flushTo()
206 iovec[0].iov_base = &entry; in flushTo()
212 entry.len = populateDroppedMessage(buffer, parent); in flushTo()
[all …]
DLogStatistics.cpp165 const PidEntry &entry = it->second; in uidToName() local
167 if (entry.getUid() == uid) { in uidToName()
168 const char *n = entry.getName(); in uidToName()
280 const UidEntry *entry = sorted[index]; in format() local
281 uid_t u = entry->getKey(); in format()
325 size.appendFormat("%zu", entry->getSizes()); in format()
328 size_t dropped = entry->getDropped(); in format()
343 const PidEntry *entry = sorted[index]; in format() local
344 uid_t u = entry->getUid(); in format()
370 name.appendFormat("%5u/%u", entry->getKey(), u); in format()
[all …]
/system/bt/osi/src/
Dconfig.c127 entry_t *entry = entry_find(config, section, key); in config_get_int() local
128 if (!entry) in config_get_int()
132 int ret = strtol(entry->value, &endptr, 0); in config_get_int()
141 entry_t *entry = entry_find(config, section, key); in config_get_bool() local
142 if (!entry) in config_get_bool()
145 if (!strcmp(entry->value, "true")) in config_get_bool()
147 if (!strcmp(entry->value, "false")) in config_get_bool()
158 entry_t *entry = entry_find(config, section, key); in config_get_string() local
159 if (!entry) in config_get_string()
162 return entry->value; in config_get_string()
[all …]
/system/extras/ext4_utils/
Dcontents.c268 static size_t xattr_free_space(struct ext4_xattr_entry *entry, char *end) in xattr_free_space() argument
271 while(!IS_LAST_ENTRY(entry) && (((char *) entry) < end)) { in xattr_free_space()
272 end -= EXT4_XATTR_SIZE(le32_to_cpu(entry->e_value_size)); in xattr_free_space()
273 entry = EXT4_XATTR_NEXT(entry); in xattr_free_space()
276 if (((char *) entry) > end) { in xattr_free_space()
281 return end - ((char *) entry); in xattr_free_space()
288 static struct ext4_xattr_entry* xattr_get_last(struct ext4_xattr_entry *entry) in xattr_get_last() argument
290 for (; !IS_LAST_ENTRY(entry); entry = EXT4_XATTR_NEXT(entry)) { in xattr_get_last()
293 return entry; in xattr_get_last()
314 static void xattr_assert_sane(struct ext4_xattr_entry *entry) in xattr_assert_sane() argument
[all …]
Dxattr.h38 #define EXT4_XATTR_NEXT(entry) \ argument
40 (char *)(entry) + EXT4_XATTR_LEN((entry)->e_name_len)))
43 #define IS_LAST_ENTRY(entry) (*(uint32_t *)(entry) == 0) argument
/system/extras/simpleperf/
Dutils.cpp62 dirent* entry; in GetEntriesInDir() local
63 while ((entry = readdir(dir)) != nullptr) { in GetEntriesInDir()
64 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) { in GetEntriesInDir()
67 if (entry->d_type == DT_DIR) { in GetEntriesInDir()
69 subdirs->push_back(entry->d_name); in GetEntriesInDir()
73 files->push_back(entry->d_name); in GetEntriesInDir()

1234