/system/extras/memory_replay/tests/ |
D | AllocTest.cpp | 27 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/extras/memory_replay/ |
D | Alloc.cpp | 29 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 …]
|
D | TraceBenchmark.cpp | 102 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/core/fs_mgr/tests/ |
D | fs_mgr_test.cpp | 130 for (const auto& entry : result_space) { in TEST() local 132 if (!android::base::StartsWith(entry.first, androidboot)) continue; in TEST() 133 auto key = entry.first.substr(strlen(androidboot)); in TEST() 135 EXPECT_EQ(entry.second, content); in TEST() 155 auto& entry = fstab[i]; in TEST() local 157 EXPECT_EQ(mentry->mnt_fsname, entry.blk_device); in TEST() 158 EXPECT_EQ(mentry->mnt_dir, entry.mount_point); in TEST() 159 EXPECT_EQ(mentry->mnt_type, entry.fs_type); in TEST() 166 if (!entry.fs_options.empty()) { in TEST() 167 for (auto& s : android::base::Split(entry.fs_options, ",")) { in TEST() [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)) 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 | 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 187 (entry.name, entry.type, entry.typedef) 192 if entry.container == 'array': [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 …]
|
/system/netd/libnetdutils/ |
D | LogTest.cpp | 84 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/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 | 86 uint32_t entry; in ReadEntryPtr32() local 88 if (!memory_->ReadFully(addr + field_offset, &entry, sizeof(entry))) { in ReadEntryPtr32() 91 return entry; in ReadEntryPtr32() 95 uint64_t entry; in ReadEntryPtr64() local 97 if (!memory_->ReadFully(addr + field_offset, &entry, sizeof(entry))) { in ReadEntryPtr64() 100 return entry; in ReadEntryPtr64() 104 DEXFileEntry32 entry; in ReadEntry32() local 105 if (!memory_->ReadFully(entry_addr_, &entry, sizeof(entry)) || entry.dex_file == 0) { in ReadEntry32() 110 addrs_.push_back(entry.dex_file); in ReadEntry32() 111 entry_addr_ = entry.next; in ReadEntry32() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr_fstab.cpp | 104 void ParseFileEncryption(const std::string& arg, FstabEntry* entry) { in ParseFileEncryption() argument 105 entry->fs_mgr_flags.file_encryption = true; in ParseFileEncryption() 106 entry->encryption_options = arg; in ParseFileEncryption() 109 bool SetMountFlag(const std::string& flag, FstabEntry* entry) { in SetMountFlag() argument 112 entry->flags |= value; in SetMountFlag() 119 void ParseMountFlags(const std::string& flags, FstabEntry* entry) { in ParseMountFlags() argument 122 if (!SetMountFlag(flag, entry)) { in ParseMountFlags() 129 if (entry->fs_type == "f2fs" && StartsWith(flag, "reserve_root=")) { in ParseMountFlags() 134 if (!ParseInt(arg, &entry->reserved_size)) { in ParseMountFlags() 137 entry->reserved_size <<= 12; in ParseMountFlags() [all …]
|
D | fs_mgr.cpp | 304 static bool needs_block_encryption(const FstabEntry& entry); 305 static bool should_use_metadata_encryption(const FstabEntry& entry); 309 static bool read_ext4_superblock(const std::string& blk_device, const FstabEntry& entry, in read_ext4_superblock() argument 328 bool encrypted = should_use_metadata_encryption(entry) || needs_block_encryption(entry); in read_ext4_superblock() 329 if (entry.mount_point == "/data" && in read_ext4_superblock() 384 static void tune_quota(const std::string& blk_device, const FstabEntry& entry, in tune_quota() argument 387 bool want_quota = entry.fs_mgr_flags.quota; in tune_quota() 425 static void tune_reserved_size(const std::string& blk_device, const FstabEntry& entry, in tune_reserved_size() argument 427 if (entry.reserved_size == 0) { in tune_reserved_size() 434 uint64_t reserved_blocks = entry.reserved_size / EXT4_BLOCK_SIZE(sb); in tune_reserved_size() [all …]
|
D | fs_mgr_remount.cpp | 60 bool remountable_partition(const android::fs_mgr::FstabEntry& entry) { in remountable_partition() argument 61 if (entry.fs_mgr_flags.vold_managed) return false; in remountable_partition() 62 if (entry.fs_mgr_flags.recovery_only) return false; in remountable_partition() 63 if (entry.fs_mgr_flags.slot_select_other) return false; in remountable_partition() 64 if (!(entry.flags & MS_RDONLY)) return false; in remountable_partition() 65 if (entry.fs_type == "vfat") return false; in remountable_partition() 69 const std::string system_mount_point(const android::fs_mgr::FstabEntry& entry) { in system_mount_point() argument 70 if (entry.mount_point == "/") return "/system"; in system_mount_point() 71 return entry.mount_point; in system_mount_point() 75 const android::fs_mgr::FstabEntry& entry) { in is_wrapped() argument [all …]
|
D | fs_mgr_slotselect.cpp | 59 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/libziparchive/ |
D | ziptool.cpp | 197 static void ExtractToPipe(ZipArchiveHandle zah, const ZipEntry64& entry, const std::string& name) { in ExtractToPipe() argument 200 if (entry.uncompressed_length > SIZE_MAX) { in ExtractToPipe() 201 die(0, "entry size %" PRIu64 " is too large to extract.", entry.uncompressed_length); in ExtractToPipe() 203 auto uncompressed_length = static_cast<size_t>(entry.uncompressed_length); in ExtractToPipe() 205 int err = ExtractToMemory(zah, &entry, buffer, uncompressed_length); in ExtractToPipe() 215 static void ExtractOne(ZipArchiveHandle zah, const ZipEntry64& entry, std::string name) { in ExtractOne() argument 236 if (mkdir(name.c_str(), entry.unix_mode) == -1) { in ExtractOne() 248 int fd = open(name.c_str(), O_CREAT | O_WRONLY | O_CLOEXEC | O_EXCL, entry.unix_mode); in ExtractOne() 253 fd = open(name.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC | O_TRUNC, entry.unix_mode); in ExtractOne() 259 int err = ExtractEntryToFile(zah, &entry, fd); in ExtractOne() [all …]
|
/system/core/libcutils/ |
D | hashmap.cpp | 114 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/bt/gd/os/fuzz/ |
D | fake_timerfd.cc | 50 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/ |
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/bt/gd/security/channel/ |
D | security_manager_channel.cc | 44 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() 55 auto entry = link_map_.find(address); in Release() local 56 if (entry == link_map_.end()) { in Release() 60 entry->second->Release(); in Release() 64 auto entry = link_map_.find(address); in Disconnect() local 65 if (entry == link_map_.end()) { in Disconnect() 69 entry->second->Disconnect(); in Disconnect() [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 …]
|
/system/core/init/ |
D | mount_handler.cpp | 56 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() 133 auto entry = ParseMount(std::string(buf)); in MountHandlerFunction() local [all …]
|
/system/netd/libnetdutils/include/netdutils/ |
D | Log.h | 123 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 …]
|