Home
last modified time | relevance | path

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

12345678910>>...18

/system/extras/memory_replay/tests/
DAllocTest.cpp27 AllocEntry entry; in TEST() local
28 AllocGetData(line, &entry); in TEST()
29 EXPECT_EQ(MALLOC, entry.type); in TEST()
30 EXPECT_EQ(1234, entry.tid); in TEST()
31 EXPECT_EQ(0xabd0000U, entry.ptr); in TEST()
32 EXPECT_EQ(20U, entry.size); in TEST()
33 EXPECT_EQ(0U, entry.u.align); in TEST()
38 AllocEntry entry; in TEST() local
39 EXPECT_DEATH(AllocGetData(line, &entry), ""); in TEST()
42 EXPECT_DEATH(AllocGetData(line, &entry), ""); in TEST()
[all …]
/system/core/fs_mgr/tests/
Dfs_mgr_test.cpp225 for (const auto& entry : result_space) { in TEST() local
227 if (!android::base::StartsWith(entry.first, androidboot)) continue; in TEST()
228 auto key = entry.first.substr(strlen(androidboot)); in TEST()
230 EXPECT_EQ(entry.second, content); in TEST()
244 for (const auto& entry : bootconfig_result_space) { in TEST() local
246 if (!android::base::StartsWith(entry.first, androidboot)) continue; in TEST()
247 auto key = entry.first.substr(strlen(androidboot)); in TEST()
250 EXPECT_EQ(entry.second, content); in TEST()
271 auto& entry = fstab[i]; in TEST() local
273 EXPECT_EQ(mentry->mnt_fsname, entry.blk_device); in TEST()
[all …]
/system/extras/memory_replay/
DAlloc.cpp29 void AllocGetData(const std::string& line, AllocEntry* entry) { in AllocGetData() argument
38 if (sscanf(line.c_str(), "%d: %127s %" SCNx64 " %n", &entry->tid, name, &entry->ptr, &line_pos) != in AllocGetData()
47 if (sscanf(line_end, "%zu", &entry->size) != 1) { in AllocGetData()
50 entry->type = MALLOC; in AllocGetData()
54 entry->type = FREE; in AllocGetData()
58 if (sscanf(line_end, "%" SCNd64 " %zu", &entry->u.n_elements, &entry->size) != 2) { in AllocGetData()
61 entry->type = CALLOC; in AllocGetData()
65 if (sscanf(line_end, "%" SCNx64 " %zu", &entry->u.old_ptr, &entry->size) != 2) { in AllocGetData()
68 entry->type = REALLOC; in AllocGetData()
72 if (sscanf(line_end, "%" SCNd64 " %zu", &entry->u.align, &entry->size) != 2) { in AllocGetData()
[all …]
DTraceBenchmark.cpp102 AllocEntry* entry = &trace_data->entries[i]; in GetTraceData() local
103 switch (entry->type) { in GetTraceData()
108 ptr_to_index[entry->ptr] = idx; in GetTraceData()
109 entry->ptr = idx; in GetTraceData()
113 if (entry->u.old_ptr != 0) { in GetTraceData()
114 auto idx_entry = ptr_to_index.find(entry->u.old_ptr); in GetTraceData()
116 errx(1, "File Error: Failed to find realloc pointer %" PRIx64, entry->u.old_ptr); in GetTraceData()
121 entry->u.old_ptr = old_pointer_idx + 1; in GetTraceData()
124 ptr_to_index[entry->ptr] = idx; in GetTraceData()
125 entry->ptr = idx; in GetTraceData()
[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))
267 for entry in soup.find_all("entry"):
268 entry_container = entry.attrs.get('container')
271 container_tag = entry.find(entry_container)
[all …]
Dmetadata_parser_xml.py140 for entry in self.soup.find_all(entry_filter):
141 if entry.name == 'entry':
143 'name': fully_qualified_name(entry),
144 'type': entry['type'],
145 'kind': find_kind(entry),
146 'type_notes': entry.attrs.get('type_notes')
149 d2 = self._parse_entry(entry)
153 'name': entry['entry'],
154 'kind': find_kind(entry),
155 'target_kind': entry['kind'],
[all …]
Dndk_camera_metadata_tags.mako46 def annotated_type(entry):
47 type = entry.type
48 if entry.container == 'array':
49 type += '[' + '*'.join(entry.container_sizes) + ']'
50 if entry.enum:
51 type += ' (acamera_metadata_enum_%s_t)'%(csym(entry.name).lower())
87 % for idx,entry in enumerate(remove_synthetic_or_fwk_only(find_unique_entries(sec))):
88 % if entry.applied_ndk_visible == "true":
89 % if entry.deprecated:
90 ${ndk(entry.name) + " = " | csym,ljust(60)}// Deprecated! DO NOT USE
[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.py66 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
189 (entry.name, entry.type, entry.typedef), file=sys.stderr)
194 if entry.container == 'array':
[all …]
/system/netd/libnetdutils/
DLogTest.cpp84 const LogEntry entry = functionName(); in TEST() local
85 EXPECT_EQ("functionName()", entry.toString()); in TEST()
89 const LogEntry entry = prettyFunctionName(); in TEST() local
90 EXPECT_EQ("prettyFunctionName()", entry.toString()); in TEST()
94 const LogEntry entry = AAA().functionName(); in TEST() local
95 EXPECT_EQ("functionName()", entry.toString()); in TEST()
99 const LogEntry entry = AAA().prettyFunctionName(); in TEST() local
100 EXPECT_EQ("AAA::prettyFunctionName()", entry.toString()); in TEST()
104 const LogEntry entry = AAA::BBB().functionName(); in TEST() local
105 EXPECT_EQ("functionName()", entry.toString()); in TEST()
[all …]
/system/unwinding/libunwindstack/tests/
DElfFake.cpp40 auto& entry = functions_.front(); in GetFunctionName() local
41 *name = SharedString(std::move(entry.name)); in GetFunctionName()
42 *offset = entry.offset; in GetFunctionName()
48 auto entry = globals_.find(global); in GetGlobalVariable() local
49 if (entry == globals_.end()) { in GetGlobalVariable()
52 *offset = entry->second; in GetGlobalVariable()
60 auto entry = steps_.front(); in Step() local
63 if (entry.pc == 0 && entry.sp == 0 && !entry.finished) { in Step()
69 fake_regs->set_pc(entry.pc); in Step()
70 fake_regs->set_sp(entry.sp); in Step()
[all …]
/system/extras/simpleperf/
Dreport_utils.cpp26 static bool IsArtEntry(const CallChainReportEntry& entry, bool* is_jni_trampoline) { in IsArtEntry() argument
27 if (entry.execution_type == CallChainExecutionType::NATIVE_METHOD) { in IsArtEntry()
28 if (android::base::EndsWith(entry.dso->Path(), "/libart.so") || in IsArtEntry()
29 android::base::EndsWith(entry.dso->Path(), "/libartd.so")) { in IsArtEntry()
33 if (strcmp(entry.symbol->Name(), "art_jni_trampoline") == 0) { in IsArtEntry()
109 auto& entry = result.back(); in Build() local
110 entry.ip = ips[i]; in Build()
111 entry.symbol = symbol; in Build()
112 entry.dso = dso; in Build()
113 entry.vaddr_in_file = vaddr_in_file; in Build()
[all …]
/system/core/libcutils/
Dhashmap.cpp114 Entry* entry = map->buckets[i]; in expandIfNecessary() local
115 while (entry != NULL) { in expandIfNecessary()
116 Entry* next = entry->next; in expandIfNecessary()
117 size_t index = calculateIndex(newBucketCount, entry->hash); in expandIfNecessary()
118 entry->next = newBuckets[index]; in expandIfNecessary()
119 newBuckets[index] = entry; in expandIfNecessary()
120 entry = next; in expandIfNecessary()
142 Entry* entry = map->buckets[i]; in hashmapFree() local
143 while (entry != NULL) { in hashmapFree()
144 Entry* next = entry->next; in hashmapFree()
[all …]
/system/libziparchive/
Dziptool.cpp223 static void TestOne(ZipArchiveHandle zah, const ZipEntry64& entry, const std::string& name) { in TestOne() argument
226 int err = ExtractToWriter(zah, &entry, &writer); in TestOne()
230 if (writer.crc == entry.crc32) { in TestOne()
234 printf("bad CRC %08" PRIx32 " (should be %08" PRIx32 ")\n", writer.crc, entry.crc32); in TestOne()
240 static void ExtractToPipe(ZipArchiveHandle zah, const ZipEntry64& entry, const std::string& name) { in ExtractToPipe() argument
243 if (entry.uncompressed_length > SIZE_MAX) { in ExtractToPipe()
244 die(0, "entry size %" PRIu64 " is too large to extract.", entry.uncompressed_length); in ExtractToPipe()
246 auto uncompressed_length = static_cast<size_t>(entry.uncompressed_length); in ExtractToPipe()
248 int err = ExtractToMemory(zah, &entry, buffer, uncompressed_length); in ExtractToPipe()
258 static void ExtractOne(ZipArchiveHandle zah, const ZipEntry64& entry, std::string name) { in ExtractOne() argument
[all …]
/system/core/fs_mgr/
Dfs_mgr_fstab.cpp105 void ParseFileEncryption(const std::string& arg, FstabEntry* entry) { in ParseFileEncryption() argument
106 entry->fs_mgr_flags.file_encryption = true; in ParseFileEncryption()
107 entry->encryption_options = arg; in ParseFileEncryption()
110 bool SetMountFlag(const std::string& flag, FstabEntry* entry) { in SetMountFlag() argument
113 entry->flags |= value; in SetMountFlag()
120 void ParseMountFlags(const std::string& flags, FstabEntry* entry) { in ParseMountFlags() argument
123 if (!SetMountFlag(flag, entry)) { in ParseMountFlags()
132 if (entry->fs_type == "f2fs" && StartsWith(flag, "reserve_root=")) { in ParseMountFlags()
133 if (!ParseInt(arg, &entry->reserved_size)) { in ParseMountFlags()
136 entry->reserved_size <<= 12; in ParseMountFlags()
[all …]
Dfs_mgr.cpp359 static void tune_quota(const std::string& blk_device, const FstabEntry& entry, in tune_quota() argument
362 bool want_quota = entry.fs_mgr_flags.quota; in tune_quota()
400 static void tune_reserved_size(const std::string& blk_device, const FstabEntry& entry, in tune_reserved_size() argument
402 if (entry.reserved_size == 0) { in tune_reserved_size()
409 uint64_t reserved_blocks = entry.reserved_size / EXT4_BLOCK_SIZE(sb); in tune_reserved_size()
442 static void tune_encrypt(const std::string& blk_device, const FstabEntry& entry, in tune_encrypt() argument
444 if (!entry.fs_mgr_flags.file_encryption) { in tune_encrypt()
452 if (!android::fscrypt::ParseOptions(entry.encryption_options, &options)) { in tune_encrypt()
454 << entry.encryption_options; in tune_encrypt()
487 static void tune_verity(const std::string& blk_device, const FstabEntry& entry, in tune_verity() argument
[all …]
Dfs_mgr_remount.cpp63 bool remountable_partition(const android::fs_mgr::FstabEntry& entry) { in remountable_partition() argument
64 if (entry.fs_mgr_flags.vold_managed) return false; in remountable_partition()
65 if (entry.fs_mgr_flags.recovery_only) return false; in remountable_partition()
66 if (entry.fs_mgr_flags.slot_select_other) return false; in remountable_partition()
67 if (!(entry.flags & MS_RDONLY)) return false; in remountable_partition()
68 if (entry.fs_type == "vfat") return false; in remountable_partition()
72 const std::string system_mount_point(const android::fs_mgr::FstabEntry& entry) { in system_mount_point() argument
73 if (entry.mount_point == "/") return "/system"; in system_mount_point()
74 return entry.mount_point; in system_mount_point()
78 const android::fs_mgr::FstabEntry& entry) { in is_wrapped() argument
[all …]
Dfs_mgr_slotselect.cpp59 for (auto& entry : *fstab) { in fs_mgr_update_for_slotselect()
60 if (!entry.fs_mgr_flags.slot_select && !entry.fs_mgr_flags.slot_select_other) { in fs_mgr_update_for_slotselect()
71 entry.fs_mgr_flags.slot_select ? ab_suffix : other_suffix(ab_suffix); in fs_mgr_update_for_slotselect()
72 entry.blk_device = entry.blk_device + update_suffix; in fs_mgr_update_for_slotselect()
73 entry.logical_partition_name = entry.logical_partition_name + update_suffix; in fs_mgr_update_for_slotselect()
/system/unwinding/libunwindstack/
DThreadUnwinder.cpp49 ThreadEntry* entry = ThreadEntry::Get(android::base::GetThreadId(), false); in SignalHandler() local
50 if (!entry) { in SignalHandler()
54 entry->CopyUcontextFromSigcontext(sigcontext); in SignalHandler()
57 entry->Wake(); in SignalHandler()
62 if (entry->Wait(WAIT_FOR_UNWIND_TO_COMPLETE)) { in SignalHandler()
65 entry->Wake(); in SignalHandler()
88 ThreadEntry* entry = ThreadEntry::Get(tid); in SendSignalToThread() local
89 entry->Lock(); in SendSignalToThread()
96 ThreadEntry::Remove(entry); in SendSignalToThread()
111 ThreadEntry::Remove(entry); in SendSignalToThread()
[all …]
/system/bt/gd/os/fuzz/
Dfake_timerfd.cc50 FakeTimerFd* entry = new FakeTimerFd(); in fake_timerfd_create() local
51 fake_timers[fd] = entry; in fake_timerfd_create()
52 entry->fd = fd; in fake_timerfd_create()
61 FakeTimerFd* entry = fake_timers[fd]; in fake_timerfd_settime() local
64 entry->active = trigger_delta_ms != 0; in fake_timerfd_settime()
65 if (!entry->active) { in fake_timerfd_settime()
70 entry->trigger_ms = clock + trigger_delta_ms; in fake_timerfd_settime()
71 entry->period_ms = period_ms; in fake_timerfd_settime()
96 FakeTimerFd* entry = it->second; in fire_next_event() local
97 if (!entry->active) { in fire_next_event()
[all …]
/system/core/libutils/include/utils/
DLruCache.h88 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/bt/gd/security/channel/
Dsecurity_manager_channel.cc44 auto entry = link_map_.find(address); in Connect() local
45 if (entry != link_map_.end()) { in Connect()
47 entry->second->Hold(); in Connect()
48 entry->second->EnsureAuthenticated(); in Connect()
56 auto entry = link_map_.find(address); in Release() local
57 if (entry == link_map_.end()) { in Release()
61 entry->second->Release(); in Release()
66 auto entry = link_map_.find(address); in Disconnect() local
67 if (entry == link_map_.end()) { in Disconnect()
71 entry->second->Disconnect(); in Disconnect()
[all …]
/system/unwinding/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 …]
/system/core/init/
Dmount_handler.cpp56 auto entry = GetEntryForMountPoint(&fstab, "/"); in ParseMount() local
57 if (entry || (entry = GetEntryForMountPoint(&fstab, "/system"))) { in ParseMount()
58 fields[0] = entry->blk_device; in ParseMount()
70 void SetMountProperty(const MountHandlerEntry& entry, bool add) { in SetMountProperty() argument
72 if (!android::base::StartsWith(entry.blk_device, devblock)) return; in SetMountProperty()
75 value = entry.blk_device.substr(strlen(devblock)); in SetMountProperty()
85 if (stat(entry.mount_point.c_str(), &sb) || !S_ISDIR(sb.st_mode)) value = ""; in SetMountProperty()
88 if (android::base::StartsWith(entry.mount_point, "/apex/")) value = ""; in SetMountProperty()
90 auto mount_prop = entry.mount_point; in SetMountProperty()
137 auto entry = ParseMount(buf_string); in MountHandlerFunction() local
[all …]
/system/netd/libnetdutils/include/netdutils/
DLog.h123 void log(const std::string& entry) { record(Level::LOG, entry); } in log() argument
125 void log(const char entry[n]) { log(std::string(entry)); } in log()
126 void log(const LogEntry& entry) { log(entry.toString()); } in log() argument
138 void info(const std::string& entry) { record(Level::INFO, entry); } in info() argument
140 void info(const char entry[n]) { info(std::string(entry)); } in info()
141 void info(const LogEntry& entry) { info(entry.toString()); } in info() argument
153 void warn(const std::string& entry) { record(Level::WARN, entry); } in warn() argument
155 void warn(const char entry[n]) { warn(std::string(entry)); } in warn()
156 void warn(const LogEntry& entry) { warn(entry.toString()); } in warn() argument
168 void error(const std::string& entry) { record(Level::ERROR, entry); } in error() argument
[all …]

12345678910>>...18