/system/core/include/log/ |
D | logger.h | 98 struct logger_entry_v4 entry; member 108 return (entry.sec == T.entry.sec) && (entry.nsec == T.entry.nsec); 116 return (entry.sec < T.entry.sec) 117 || ((entry.sec == T.entry.sec) 118 && (entry.nsec < T.entry.nsec)); 126 return (entry.sec > T.entry.sec) 127 || ((entry.sec == T.entry.sec) 128 && (entry.nsec > T.entry.nsec)); 136 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec() 142 return (log_id_t) entry.lid; in id() [all …]
|
/system/core/libcutils/ |
D | hashmap.c | 118 Entry* entry = map->buckets[i]; in expandIfNecessary() local 119 while (entry != NULL) { in expandIfNecessary() 120 Entry* next = entry->next; in expandIfNecessary() 121 size_t index = calculateIndex(newBucketCount, entry->hash); in expandIfNecessary() 122 entry->next = newBuckets[index]; in expandIfNecessary() 123 newBuckets[index] = entry; in expandIfNecessary() 124 entry = next; in expandIfNecessary() 146 Entry* entry = map->buckets[i]; in hashmapFree() local 147 while (entry != NULL) { in hashmapFree() 148 Entry* next = entry->next; in hashmapFree() [all …]
|
D | android_reboot.c | 42 struct mntent entry; member 84 item->entry = *mentry; in find_rw() 85 item->entry.mnt_fsname = strdup(mentry->mnt_fsname); in find_rw() 86 item->entry.mnt_dir = strdup(mentry->mnt_dir); in find_rw() 87 item->entry.mnt_type = strdup(mentry->mnt_type); in find_rw() 88 item->entry.mnt_opts = strdup(mentry->mnt_opts); in find_rw() 101 free(item->entry.mnt_fsname); in free_entries() 102 free(item->entry.mnt_dir); in free_entries() 103 free(item->entry.mnt_type); in free_entries() 104 free(item->entry.mnt_opts); in free_entries() [all …]
|
/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)) 244 for entry in soup.find_all("entry"): 245 entry_container = entry.attrs.get('container') 248 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 | metadata_helpers.py | 64 def find_parent_section(entry): argument 74 return entry.find_parent_first(_is_sec_or_ins) 101 for entry in i.entries: 102 d[entry.name] = entry 147 def protobuf_type(entry): argument 156 if entry.typedef is None: 157 typeName = entry.type 159 typeName = entry.typedef.name 183 (entry.name, entry.type, entry.typedef) 188 if entry.container == 'array': [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 | ndk_camera_metadata_tags.mako | 40 def annotated_type(entry): 41 type = entry.type 42 if entry.container == 'array': 43 type += '[' + '*'.join(entry.container_sizes) + ']' 44 if entry.enum: 81 % for idx,entry in enumerate(remove_synthetic(find_unique_entries(sec))): 82 % if entry.applied_ndk_visible == "true": 83 % if entry.deprecated: 84 ${ndk(entry.name) + " = " | csym,ljust(60)}// Deprecated! DO NOT USE 86 % if entry.description or entry.details: [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_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 …]
|
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 in ('hidden', 'ndk_public') 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', 'ndk_public', 'java_… 60 % if entry.enum \ 61 and not (entry.typedef and entry.typedef.languages.get('java')) \ 62 and not entry.is_clone(): [all …]
|
/system/connectivity/shill/ |
D | routing_table.cc | 98 const RoutingTableEntry& entry) { in AddRoute() argument 100 << "destination " << entry.dst.ToString() in AddRoute() 102 << " gateway " << entry.gateway.ToString() in AddRoute() 103 << " metric " << entry.metric; in AddRoute() 105 CHECK(!entry.from_rtnl); in AddRoute() 107 entry, in AddRoute() 112 tables_[interface_index].push_back(entry); in AddRoute() 118 RoutingTableEntry* entry) { in GetDefaultRoute() argument 122 *entry = *found_entry; in GetDefaultRoute() 129 RoutingTableEntry** entry) { in GetDefaultRouteInternal() argument [all …]
|
D | routing_table_unittest.cc | 90 const RoutingTableEntry& entry); 94 const RoutingTableEntry& entry, 134 void(int interface_index, const RoutingTableEntry& entry)); 136 void UnreachedTarget(int interface_index, const RoutingTableEntry& entry) { in UnreachedTarget() argument 203 MATCHER_P4(IsRoutingPacket, mode, index, entry, flags, "") { 211 arg->family() == entry.gateway.family() && 214 entry.table == RoutingTableTest::kTestTableId && 216 status.scope == entry.scope && 221 status.dst_prefix).Equals(entry.dst) && 222 ((!arg->HasAttribute(RTA_SRC) && entry.src.IsDefault()) || [all …]
|
/system/core/include/utils/ |
D | LruCache.h | 71 size_t operator() (const Entry* entry) const { in operator() 72 return hash_type(entry->key); in operator() 84 void attachToCache(Entry& entry); 85 void detachFromCache(Entry& entry); 174 Entry *entry = *find_result; in get() local 175 detachFromCache(*entry); in get() 176 attachToCache(*entry); in get() 177 return entry->value; in get() 202 Entry* entry = *find_result; in remove() local 203 mSet->erase(entry); in remove() [all …]
|
/system/media/camera/src/ |
D | camera_metadata.c | 440 camera_metadata_buffer_entry_t entry = entries[i]; in validate_camera_metadata_structure() local 442 if (entry.type >= NUM_TYPES) { in validate_camera_metadata_structure() 444 __FUNCTION__, i, entry.type); in validate_camera_metadata_structure() 450 uint32_t tag_section = entry.tag >> 16; in validate_camera_metadata_structure() 451 int tag_type = get_camera_metadata_tag_type(entry.tag); in validate_camera_metadata_structure() 452 if (tag_type != (int)entry.type && tag_section < VENDOR_SECTION) { in validate_camera_metadata_structure() 454 __FUNCTION__, i, tag_type, entry.type); in validate_camera_metadata_structure() 459 if (validate_and_calculate_camera_metadata_entry_data_size(&data_size, entry.type, in validate_camera_metadata_structure() 460 entry.count) != OK) { in validate_camera_metadata_structure() 461 ALOGE("%s: Entry data size is invalid. type: %u count: %u", __FUNCTION__, entry.type, in validate_camera_metadata_structure() [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 | 103 ThreadEntry* entry = ThreadEntry::Get(getpid(), gettid(), false); in SignalHandler() local 104 if (!entry) { in SignalHandler() 109 entry->CopyUcontextFromSigcontext(sigcontext); in SignalHandler() 112 entry->Wake(); in SignalHandler() 118 if (entry->Wait(2)) { in SignalHandler() 121 entry->Wake(); in SignalHandler() 133 ThreadEntry* entry = ThreadEntry::Get(Pid(), Tid()); in UnwindThread() local 134 entry->Lock(); in UnwindThread() 143 ThreadEntry::Remove(entry); in UnwindThread() 159 ThreadEntry::Remove(entry); in UnwindThread() [all …]
|
/system/core/logd/ |
D | FlushCommand.cpp | 55 LogTimeEntry *entry = NULL; in runSocketCommand() local 61 entry = (*it); in runSocketCommand() 62 if (entry->mClient == client) { in runSocketCommand() 63 if (entry->mTimeout.tv_sec || entry->mTimeout.tv_nsec) { in runSocketCommand() 67 entry->triggerReader_Locked(); in runSocketCommand() 68 if (entry->runningReader_Locked()) { in runSocketCommand() 72 entry->incRef_Locked(); in runSocketCommand() 84 entry = new LogTimeEntry(mReader, client, mNonBlock, mTail, mLogMask, in runSocketCommand() 86 times.push_front(entry); in runSocketCommand() 92 entry->startReader_Locked(); in runSocketCommand()
|
D | LogBufferElement.cpp | 204 struct logger_entry_v4 entry; in flushTo() local 206 memset(&entry, 0, sizeof(struct logger_entry_v4)); in flushTo() 208 entry.hdr_size = privileged ? in flushTo() 211 entry.lid = mLogId; in flushTo() 212 entry.pid = mPid; in flushTo() 213 entry.tid = mTid; in flushTo() 214 entry.uid = mUid; in flushTo() 215 entry.sec = mRealTime.tv_sec; in flushTo() 216 entry.nsec = mRealTime.tv_nsec; in flushTo() 219 iovec[0].iov_base = &entry; in flushTo() [all …]
|
/system/core/libziparchive/ |
D | zip_archive_stream_entry.cc | 38 bool ZipArchiveStreamEntry::Init(const ZipEntry& entry) { in Init() argument 40 off64_t data_offset = entry.offset; in Init() 45 crc32_ = entry.crc32; in Init() 59 bool Init(const ZipEntry& entry) override; 68 bool ZipArchiveStreamEntryUncompressed::Init(const ZipEntry& entry) { in Init() argument 69 if (!ZipArchiveStreamEntry::Init(entry)) { in Init() 73 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/security/keystore/ |
D | operation.cpp | 50 auto entry = mMap.find(token); in getOperation() local 51 if (entry == mMap.end()) { in getOperation() 56 *outHandle = entry->second.handle; in getOperation() 57 *outKeyid = entry->second.keyid; in getOperation() 58 *outPurpose = entry->second.purpose; in getOperation() 59 *outDevice = entry->second.device; in getOperation() 61 *outCharacteristics = entry->second.characteristics.get(); in getOperation() 75 auto entry = mMap.find(token); in removeOperation() local 76 if (entry == mMap.end()) { in removeOperation() 79 sp<IBinder> appToken = entry->second.appToken; in removeOperation() [all …]
|
/system/media/radio/src/ |
D | radio_metadata.c | 105 radio_metadata_entry_t *entry; in add_metadata() local 121 entry = (radio_metadata_entry_t *)((unsigned int *)metadata + data_offset); in add_metadata() 122 entry->key = key; in add_metadata() 123 entry->type = type; in add_metadata() 124 entry->size = size; in add_metadata() 125 memcpy(entry->data, value, size); in add_metadata() 314 radio_metadata_entry_t *entry = get_entry_at_index(metadata_buf, count, true); in radio_metadata_check() local 316 if (entry == NULL) { in radio_metadata_check() 319 if (!is_valid_metadata_key(entry->key)) { in radio_metadata_check() 322 if (entry->type != radio_metadata_type_of_key(entry->key)) { in radio_metadata_check() [all …]
|
/system/bt/osi/src/ |
D | config.c | 119 entry_t *entry = list_node(node_entry); in config_new_clone() local 121 config_set_string(ret, sec->name, entry->key, entry->value); in config_new_clone() 156 entry_t *entry = entry_find(config, section, key); in config_get_int() local 157 if (!entry) in config_get_int() 161 int ret = strtol(entry->value, &endptr, 0); in config_get_int() 170 entry_t *entry = entry_find(config, section, key); in config_get_bool() local 171 if (!entry) in config_get_bool() 174 if (!strcmp(entry->value, "true")) in config_get_bool() 176 if (!strcmp(entry->value, "false")) in config_get_bool() 187 entry_t *entry = entry_find(config, section, key); in config_get_string() local [all …]
|
/system/core/liblog/ |
D | logprint.c | 463 AndroidLogEntry *entry) in android_log_processLogBuffer() argument 465 entry->tv_sec = buf->sec; in android_log_processLogBuffer() 466 entry->tv_nsec = buf->nsec; in android_log_processLogBuffer() 467 entry->uid = -1; in android_log_processLogBuffer() 468 entry->pid = buf->pid; in android_log_processLogBuffer() 469 entry->tid = buf->tid; in android_log_processLogBuffer() 500 entry->uid = ((struct logger_entry_v4 *)buf)->uid; in android_log_processLogBuffer() 534 entry->priority = msg[0]; in android_log_processLogBuffer() 535 entry->tag = msg + 1; in android_log_processLogBuffer() 536 entry->message = msg + msgStart; in android_log_processLogBuffer() [all …]
|
/system/bt/device/src/ |
D | interop.c | 77 interop_addr_entry_t *entry = osi_calloc(sizeof(interop_addr_entry_t)); in interop_database_add() local 78 memcpy(&entry->addr, addr, length); in interop_database_add() 79 entry->feature = feature; in interop_database_add() 80 entry->length = length; in interop_database_add() 83 list_append(interop_list, entry); in interop_database_add() 124 interop_addr_entry_t *entry = (interop_addr_entry_t *)data; in interop_free_entry_() local 125 osi_free(entry); in interop_free_entry_() 140 interop_addr_entry_t *entry = list_node(node); in interop_match_dynamic_() local 141 assert(entry); in interop_match_dynamic_() 143 if (feature == entry->feature && memcmp(addr, &entry->addr, entry->length) == 0) in interop_match_dynamic_()
|
/system/extras/ext4_utils/ |
D | contents.c | 268 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 …]
|