/system/incremental_delivery/incfs/include/ |
D | path.h | 29 void appendNextPath(std::string& res, std::string_view c); 33 bool isAbsolute(std::string_view path); 34 std::string normalize(std::string_view path); 36 std::string_view relativize(std::string_view parent, std::string_view nested); 37 inline std::string_view relativize(const char* parent, const char* nested) { in relativize() 38 return relativize(std::string_view(parent), std::string_view(nested)); in relativize() 40 inline std::string_view relativize(std::string_view parent, const char* nested) { in relativize() 41 return relativize(parent, std::string_view(nested)); in relativize() 43 inline std::string_view relativize(const char* parent, std::string_view nested) { in relativize() 44 return relativize(std::string_view(parent), nested); in relativize() [all …]
|
D | MountRegistry.h | 62 std::string_view root() const { return mBase->path; } in root() 63 std::string_view backingDir() const { return mBase->backing; } in backingDir() 64 std::vector<std::pair<std::string_view, std::string_view>> binds() const; 78 static Mounts load(base::borrowed_fd fd, std::string_view filesystem); 79 bool loadFrom(base::borrowed_fd fd, std::string_view filesystem); 86 std::string_view rootFor(std::string_view path) const; 87 std::pair<const Root*, std::string> rootAndSubpathFor(std::string_view path) const; 92 void addRoot(std::string_view root, std::string_view backingDir); 93 void removeRoot(std::string_view root); 94 void addBind(std::string_view what, std::string_view where); [all …]
|
D | incfs.h | 207 IncFsFileId toFileId(std::string_view str); 209 bool isIncFsPath(std::string_view path); 211 UniqueControl mount(std::string_view backingPath, std::string_view targetDir, 213 UniqueControl open(std::string_view dir); 218 ErrorCode bindMount(std::string_view sourceDir, std::string_view targetDir); 219 ErrorCode unmount(std::string_view dir); 223 ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId fileId, 225 ErrorCode makeMappedFile(const Control& control, std::string_view path, int mode, 227 ErrorCode makeDir(const Control& control, std::string_view path, int mode = 0555); 228 ErrorCode makeDirs(const Control& control, std::string_view path, int mode = 0555); [all …]
|
D | incfs_inline.h | 35 CStrWrapper(std::string_view sv) { in CStrWrapper() 59 inline CStrWrapper c_str(std::string_view sv) { in c_str() 77 inline bool isIncFsPath(std::string_view path) { in isIncFsPath() 95 inline IncFsFileId toFileId(std::string_view str) { in toFileId() 133 inline UniqueControl mount(std::string_view backingPath, std::string_view targetDir, in mount() 139 inline UniqueControl open(std::string_view dir) { in open() 153 inline ErrorCode bindMount(std::string_view sourceDir, std::string_view targetDir) { in bindMount() 157 inline ErrorCode unmount(std::string_view dir) { in unmount() 173 inline ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId fileId, in makeFile() 177 inline ErrorCode makeMappedFile(const Control& control, std::string_view path, int mode, in makeMappedFile() [all …]
|
/system/libbase/include/android-base/ |
D | strings.h | 60 bool StartsWith(std::string_view s, std::string_view prefix); 61 bool StartsWith(std::string_view s, char prefix); 62 bool StartsWithIgnoreCase(std::string_view s, std::string_view prefix); 65 bool EndsWith(std::string_view s, std::string_view suffix); 66 bool EndsWith(std::string_view s, char suffix); 67 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix); 70 bool EqualsIgnoreCase(std::string_view lhs, std::string_view rhs); 74 inline bool ConsumePrefix(std::string_view* s, std::string_view prefix) { in ConsumePrefix() 82 inline bool ConsumeSuffix(std::string_view* s, std::string_view suffix) { in ConsumeSuffix() 90 [[nodiscard]] std::string StringReplace(std::string_view s, std::string_view from, [all …]
|
/system/libziparchive/ |
D | zip_cd_entry_map.h | 36 virtual ZipError AddToMap(std::string_view name, const uint8_t* start) = 0; 40 virtual std::pair<ZipError, uint64_t> GetCdEntryOffset(std::string_view name, 47 virtual std::pair<std::string_view, uint64_t> Next(const uint8_t* cd_start) = 0; 65 const std::string_view ToStringView(const uint8_t* start) const { in ToStringView() 66 return std::string_view{reinterpret_cast<const char*>(start + name_offset), name_length}; in ToStringView() 77 ZipError AddToMap(std::string_view name, const uint8_t* start) override; 78 std::pair<ZipError, uint64_t> GetCdEntryOffset(std::string_view name, 81 std::pair<std::string_view, uint64_t> Next(const uint8_t* cd_start) override; 102 ZipError AddToMap(std::string_view name, const uint8_t* start) override; 103 std::pair<ZipError, uint64_t> GetCdEntryOffset(std::string_view name, [all …]
|
D | zip_cd_entry_map.cc | 39 static uint32_t ComputeHash(std::string_view name) { in ComputeHash() 40 return static_cast<uint32_t>(std::hash<std::string_view>{}(name)); in ComputeHash() 44 std::pair<ZipError, uint64_t> CdEntryMapZip32::GetCdEntryOffset(std::string_view name, in GetCdEntryOffset() 61 ZipError CdEntryMapZip32::AddToMap(std::string_view name, const uint8_t* start) { in AddToMap() 89 std::pair<std::string_view, uint64_t> CdEntryMapZip32::Next(const uint8_t* cd_start) { in Next() 125 ZipError CdEntryMapZip64::AddToMap(std::string_view name, const uint8_t* start) { in AddToMap() 135 std::pair<ZipError, uint64_t> CdEntryMapZip64::GetCdEntryOffset(std::string_view name, in GetCdEntryOffset() 150 std::pair<std::string_view, uint64_t> CdEntryMapZip64::Next(const uint8_t* /*cd_start*/) { in Next()
|
/system/libbase/ |
D | strings.cpp | 90 bool StartsWith(std::string_view s, std::string_view prefix) { in StartsWith() 94 bool StartsWith(std::string_view s, char prefix) { in StartsWith() 98 bool StartsWithIgnoreCase(std::string_view s, std::string_view prefix) { in StartsWithIgnoreCase() 102 bool EndsWith(std::string_view s, std::string_view suffix) { in EndsWith() 106 bool EndsWith(std::string_view s, char suffix) { in EndsWith() 110 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix) { in EndsWithIgnoreCase() 115 bool EqualsIgnoreCase(std::string_view lhs, std::string_view rhs) { in EqualsIgnoreCase() 119 std::string StringReplace(std::string_view s, std::string_view from, std::string_view to, in StringReplace() 124 std::string_view::size_type start_pos = 0; in StringReplace() 126 std::string_view::size_type pos = s.find(from, start_pos); in StringReplace() [all …]
|
/system/incremental_delivery/incfs/ |
D | split.h | 33 void Split(std::string_view s, Separator delimiters, Callback&& onSplitCb) { in Split() 38 if (found == std::string_view::npos) { in Split() 52 void Split(std::string_view s, Separator delimiters, std::vector<std::string_view>* out) { in Split() 54 Split(s, delimiters, [out](std::string_view split) { out->emplace_back(split); }); in Split() 58 std::vector<std::string_view> Split(std::string_view s, Separator delimiters) { in Split() 59 std::vector<std::string_view> result; in Split()
|
D | path.cpp | 38 CStrWrapper(std::string_view sv) { in CStrWrapper() 60 inline CStrWrapper c_str(std::string_view sv) { in c_str() 66 bool isAbsolute(std::string_view path) { in isAbsolute() 70 std::string normalize(std::string_view path) { in normalize() 148 static void preparePathComponent(std::string_view& path, bool trimAll) { in preparePathComponent() 160 std::string_view relativize(std::string_view parent, std::string_view nested) { in relativize() 177 void details::appendNextPath(std::string& res, std::string_view path) { in appendNextPath() 188 std::pair<std::string_view, std::string_view> splitDirBase(std::string& full) { in splitDirBase() 196 int isEmptyDir(std::string_view dir) { in isEmptyDir() 212 bool startsWith(std::string_view path, std::string_view prefix) { in startsWith() [all …]
|
D | MountRegistry.cpp | 67 std::vector<std::pair<std::string_view, std::string_view>> MountRegistry::Mounts::Mount::binds() in binds() 69 std::vector<std::pair<std::string_view, std::string_view>> result; in binds() 88 std::string_view path) const { in rootIndex() 108 std::string_view MountRegistry::Mounts::rootFor(std::string_view path) const { in rootFor() 116 auto MountRegistry::Mounts::rootAndSubpathFor(std::string_view path) const in rootAndSubpathFor() 130 void MountRegistry::Mounts::addRoot(std::string_view root, std::string_view backingDir) { in addRoot() 137 void MountRegistry::Mounts::removeRoot(std::string_view root) { in removeRoot() 167 void MountRegistry::Mounts::addBind(std::string_view what, std::string_view where) { in addBind() 185 void MountRegistry::Mounts::removeBind(std::string_view what) { in removeBind() 204 MountRegistry::MountRegistry(std::string_view filesystem) in MountRegistry() [all …]
|
/system/unwinding/libunwindstack/include/unwindstack/ |
D | SharedString.h | 44 operator std::string_view() const { return static_cast<const std::string&>(*this); } in string_view() function 51 return static_cast<std::string_view>(a) == static_cast<std::string_view>(b); 53 static inline bool operator==(const SharedString& a, std::string_view b) { 54 return static_cast<std::string_view>(a) == b; 56 static inline bool operator==(std::string_view a, const SharedString& b) { 57 return a == static_cast<std::string_view>(b); 62 static inline bool operator!=(const SharedString& a, std::string_view b) { 65 static inline bool operator!=(std::string_view a, const SharedString& b) {
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | builder.h | 43 static constexpr std::string_view kDefaultGroup = "default"; 113 explicit PartitionGroup(std::string_view name, uint64_t maximum_size) in PartitionGroup() 130 Partition(std::string_view name, std::string_view group_name, uint32_t attributes); 157 void set_group_name(std::string_view group_name) { group_name_ = group_name; } in set_group_name() 276 bool AddGroup(std::string_view group_name, uint64_t maximum_size); 284 Partition* AddPartition(std::string_view name, std::string_view group_name, 292 void RemovePartition(std::string_view name); 295 Partition* FindPartition(std::string_view name) const; 298 PartitionGroup* FindGroup(std::string_view name) const; 321 std::vector<Partition*> ListPartitionsInGroup(std::string_view group_name); [all …]
|
/system/libziparchive/include/ziparchive/ |
D | zip_archive.h | 213 int32_t FindEntry(const ZipArchiveHandle archive, const std::string_view entryName, 230 const std::string_view optional_prefix = "", 231 const std::string_view optional_suffix = ""); 240 std::function<bool(std::string_view entry_name)> matcher); 248 int32_t Next(void* cookie, ZipEntry64* data, std::string_view* name); 292 int32_t FindEntry(const ZipArchiveHandle archive, const std::string_view entryName, ZipEntry* data); 294 int32_t Next(void* cookie, ZipEntry* data, std::string_view* name);
|
D | zip_writer.h | 106 int32_t StartEntry(std::string_view path, size_t flags); 116 int32_t StartAlignedEntry(std::string_view path, size_t flags, uint32_t alignment); 121 int32_t StartEntryWithTime(std::string_view path, size_t flags, time_t time); 126 …int32_t StartAlignedEntryWithTime(std::string_view path, size_t flags, time_t time, uint32_t align…
|
/system/extras/simpleperf/ |
D | read_symbol_map.cpp | 33 std::optional<std::string_view> ConsumeWord(std::string_view& content_ref) { in ConsumeWord() 49 std::optional<uint64_t> ConsumeUInt(std::string_view& content_ref) { in ConsumeUInt() 66 void ReadSymbol(std::string_view content, std::vector<Symbol>* symbols) { in ReadSymbol()
|
/system/memory/libmeminfo/include/meminfo/ |
D | sysmeminfo.h | 56 static constexpr std::initializer_list<std::string_view> kDefaultSysMemInfoTags = { 69 bool ReadMemInfo(size_t ntags, const std::string_view* tags, uint64_t* out, 101 std::map<std::string_view, uint64_t> mem_in_kb_; 103 bool ReadMemInfo(const char* path, size_t ntags, const std::string_view* tags, 104 std::function<void(std::string_view, uint64_t)> store_val);
|
/system/chre/external/flatbuffers/include/flatbuffers/ |
D | base.h | 205 … #if __has_include(<string_view>) && (__cplusplus >= 201606 || (defined(_HAS_CXX17) && _HAS_CXX17)) 208 typedef std::string_view string_view; typedef 212 #elif __has_include(<experimental/string_view>) && (__cplusplus >= 201411) 215 typedef std::experimental::string_view string_view; typedef 222 typedef absl::string_view string_view; typedef
|
/system/iorap/src/serialize/ |
D | protobuf_io.h | 48 std::string_view file_path); 55 std::string_view file_path = "<unknown>");
|
/system/iorap/src/inode2filename/ |
D | inode_result.cc | 21 std::optional<std::string_view> InodeResult::ErrorMessage() const { in ErrorMessage() 27 return std::string_view{ in ErrorMessage()
|
D | main.cc | 79 std::optional<DataSourceKind> ParseDataSourceKind(std::string_view str) { in ParseDataSourceKind() 96 std::optional<OutputFormatKind> ParseOutputFormatKind(std::string_view str) { in ParseOutputFormatKind() 107 std::optional<VerifyKind> ParseVerifyKind(std::string_view str) { in ParseVerifyKind() 116 std::optional<ProcessMode> ParseProcessMode(std::string_view str) { in ParseProcessMode() 125 bool StartsWith(std::string_view haystack, std::string_view needle) { in StartsWith() 130 bool EndsWith(std::string_view haystack, std::string_view needle) { in EndsWith() 135 bool StartsWithOneOf(std::string_view haystack, in StartsWithOneOf() 136 std::string_view needle, in StartsWithOneOf() 137 std::string_view needle2) { in StartsWithOneOf()
|
/system/tools/aidl/ |
D | comments.cpp | 41 static const std::string_view kLineCommentBegin = "//"; 42 static const std::string_view kBlockCommentBegin = "/*"; 43 static const std::string_view kBlockCommentEnd = "*/"; 44 static const std::string_view kDocCommentBegin = "/**"; 48 std::string ConsumePrefix(const std::string& s, std::string_view prefix) { in ConsumePrefix() 54 std::string ConsumeSuffix(const std::string& s, std::string_view suffix) { in ConsumeSuffix()
|
/system/incremental_delivery/incfs/tests/include/ |
D | IncFsTestBase.h | 29 static bool exists(std::string_view path) { in exists() 66 static void checkRestoreconResult(std::string_view path) { in checkRestoreconResult() 119 inline static const std::string_view test_file_name_ = "test.txt"; 120 inline static const std::string_view test_dir_name_ = "test_dir";
|
/system/logging/liblog/ |
D | event_tag_map.cpp | 40 typedef std::pair<std::string_view, std::string_view> TagFmt; 51 std::unordered_map<std::string_view, uint32_t> Tag2Idx; 74 int find(std::string_view tag) const; 121 int EventTagMap::find(std::string_view tag) const { in find() 209 TagFmt(std::make_pair(std::string_view(tag, tagLen), std::string_view(fmt, fmtLen))), in scanTagLine()
|
/system/memory/libmeminfo/ |
D | sysmeminfo.cpp | 56 [&](std::string_view tag, uint64_t val) { in ReadMemInfo() 72 bool SysMemInfo::ReadMemInfo(size_t ntags, const std::string_view* tags, uint64_t* out, in ReadMemInfo() 74 return ReadMemInfo(path, ntags, tags, [&]([[maybe_unused]] std::string_view tag, uint64_t val) { in ReadMemInfo() 90 bool SysMemInfo::ReadMemInfo(const char* path, size_t ntags, const std::string_view* tags, in ReadMemInfo() 91 std::function<void(std::string_view, uint64_t)> store_val) { in ReadMemInfo() argument 112 const std::string_view& tag = tags[tagno]; in ReadMemInfo()
|