/system/incremental_delivery/incfs/include/ |
D | path.h | 29 void appendNextPath(std::string& res, std::string_view c); 32 constexpr auto procfsFdDir = std::string_view("/proc/self/fd"); 36 std::string readlink(std::string_view path); 37 bool isAbsolute(std::string_view path); 38 std::string normalize(std::string_view path); 40 std::string_view relativize(std::string_view parent, std::string_view nested); 41 inline std::string_view relativize(const char* parent, const char* nested) { in relativize() 42 return relativize(std::string_view(parent), std::string_view(nested)); in relativize() 44 inline std::string_view relativize(std::string_view parent, const char* nested) { in relativize() 45 return relativize(parent, std::string_view(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 | 208 IncFsFileId toFileId(std::string_view str); 210 bool isIncFsPath(std::string_view path); 212 UniqueControl mount(std::string_view backingPath, std::string_view targetDir, 214 UniqueControl open(std::string_view dir); 219 ErrorCode bindMount(std::string_view sourceDir, std::string_view targetDir); 220 ErrorCode unmount(std::string_view dir); 224 ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId fileId, 226 ErrorCode makeMappedFile(const Control& control, std::string_view path, int mode, 228 ErrorCode makeDir(const Control& control, std::string_view path, int mode = 0555); 229 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/update_engine/common/ |
D | prefs.h | 45 virtual bool GetKey(std::string_view key, std::string* value) const = 0; 49 virtual bool GetSubKeys(std::string_view ns, 54 virtual bool SetKey(std::string_view key, std::string_view value) = 0; 57 virtual bool KeyExists(std::string_view key) const = 0; 61 virtual bool DeleteKey(std::string_view key) = 0; 70 bool GetString(std::string_view key, std::string* value) const override; 71 bool SetString(std::string_view key, std::string_view value) override; 72 bool GetInt64(std::string_view key, int64_t* value) const override; 73 bool SetInt64(std::string_view key, const int64_t value) override; 74 bool GetBoolean(std::string_view key, bool* value) const override; [all …]
|
D | prefs_interface.h | 40 virtual void OnPrefSet(std::string_view key) = 0; 43 virtual void OnPrefDeleted(std::string_view key) = 0; 51 virtual bool GetString(std::string_view key, std::string* value) const = 0; 55 virtual bool SetString(std::string_view key, std::string_view value) = 0; 60 virtual bool GetInt64(std::string_view key, int64_t* value) const = 0; 64 virtual bool SetInt64(std::string_view key, const int64_t value) = 0; 69 virtual bool GetBoolean(std::string_view key, bool* value) const = 0; 73 virtual bool SetBoolean(std::string_view key, const bool value) = 0; 77 virtual bool Exists(std::string_view key) const = 0; 81 virtual bool Delete(std::string_view key) = 0; [all …]
|
D | mock_prefs.h | 32 MOCK_CONST_METHOD2(GetString, bool(std::string_view key, std::string* value)); 33 MOCK_METHOD2(SetString, bool(std::string_view key, std::string_view value)); 34 MOCK_CONST_METHOD2(GetInt64, bool(std::string_view key, int64_t* value)); 35 MOCK_METHOD2(SetInt64, bool(std::string_view key, const int64_t value)); 37 MOCK_CONST_METHOD2(GetBoolean, bool(std::string_view key, bool* value)); 38 MOCK_METHOD2(SetBoolean, bool(std::string_view key, const bool value)); 40 MOCK_CONST_METHOD1(Exists, bool(std::string_view key)); 41 MOCK_METHOD1(Delete, bool(std::string_view key)); 43 bool(std::string_view key, const std::vector<std::string>& nss)); 46 bool(std::string_view, std::vector<std::string>*)); [all …]
|
D | fake_prefs.h | 44 bool GetString(std::string_view key, std::string* value) const override; 45 bool SetString(std::string_view key, std::string_view value) override; 46 bool GetInt64(std::string_view key, int64_t* value) const override; 47 bool SetInt64(std::string_view key, const int64_t value) override; 48 bool GetBoolean(std::string_view key, bool* value) const override; 49 bool SetBoolean(std::string_view key, const bool value) override; 51 bool Exists(std::string_view key) const override; 52 bool Delete(std::string_view key) override; 53 bool Delete(std::string_view key, 56 bool GetSubKeys(std::string_view ns, [all …]
|
D | prefs.cc | 54 bool PrefsBase::GetString(const std::string_view key, string* value) const { in GetString() 58 bool PrefsBase::SetString(std::string_view key, std::string_view value) { in SetString() 69 bool PrefsBase::GetInt64(const std::string_view key, int64_t* value) const { in GetInt64() 78 bool PrefsBase::SetInt64(std::string_view key, const int64_t value) { in SetInt64() 82 bool PrefsBase::GetBoolean(std::string_view key, bool* value) const { in GetBoolean() 98 bool PrefsBase::SetBoolean(std::string_view key, const bool value) { in SetBoolean() 102 bool PrefsBase::Exists(std::string_view key) const { in Exists() 106 bool PrefsBase::Delete(std::string_view key) { in Delete() 117 bool PrefsBase::Delete(std::string_view pref_key, const vector<string>& nss) { in Delete() 135 bool PrefsBase::GetSubKeys(std::string_view ns, vector<string>* keys) const { in GetSubKeys() [all …]
|
D | fake_prefs.cc | 31 void CheckNotNull(std::string_view key, void* ptr) { in CheckNotNull() 66 bool FakePrefs::GetString(std::string_view key, string* value) const { in GetString() 70 bool FakePrefs::SetString(std::string_view key, std::string_view value) { in SetString() 75 bool FakePrefs::GetInt64(std::string_view key, int64_t* value) const { in GetInt64() 79 bool FakePrefs::SetInt64(std::string_view key, const int64_t value) { in SetInt64() 84 bool FakePrefs::GetBoolean(std::string_view key, bool* value) const { in GetBoolean() 88 bool FakePrefs::SetBoolean(std::string_view key, const bool value) { in SetBoolean() 93 bool FakePrefs::Exists(std::string_view key) const { in Exists() 97 bool FakePrefs::Delete(std::string_view key) { in Delete() 110 bool FakePrefs::Delete(std::string_view key, const vector<string>& nss) { in Delete() [all …]
|
/system/libbase/include/android-base/ |
D | strings.h | 60 std::string_view sv; in Trim() 62 if constexpr (std::is_convertible_v<T, std::string_view>) { in Trim() 93 extern template std::string Trim(std::string_view&); 94 extern template std::string Trim(std::string_view&&); 118 bool StartsWith(std::string_view s, std::string_view prefix); 119 bool StartsWith(std::string_view s, char prefix); 120 bool StartsWithIgnoreCase(std::string_view s, std::string_view prefix); 123 bool EndsWith(std::string_view s, std::string_view suffix); 124 bool EndsWith(std::string_view s, char suffix); 125 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix); [all …]
|
/system/libbase/ |
D | strings.cpp | 74 return Trim(std::string_view(s)); in Trim() 81 template std::string Trim(std::string_view&); 82 template std::string Trim(std::string_view&&); 91 bool StartsWith(std::string_view s, std::string_view prefix) { in StartsWith() 95 bool StartsWith(std::string_view s, char prefix) { in StartsWith() 99 bool StartsWithIgnoreCase(std::string_view s, std::string_view prefix) { in StartsWithIgnoreCase() 103 bool EndsWith(std::string_view s, std::string_view suffix) { in EndsWith() 107 bool EndsWith(std::string_view s, char suffix) { in EndsWith() 111 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix) { in EndsWithIgnoreCase() 116 bool EqualsIgnoreCase(std::string_view lhs, std::string_view rhs) { in EqualsIgnoreCase() [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() 132 std::string readlink(std::string_view path) { in readlink() 161 static void preparePathComponent(std::string_view& path, bool trimAll) { in preparePathComponent() 173 std::string_view relativize(std::string_view parent, std::string_view nested) { in relativize() 190 void details::appendNextPath(std::string& res, std::string_view path) { in appendNextPath() 201 std::pair<std::string_view, std::string_view> splitDirBase(std::string& full) { in splitDirBase() 209 int isEmptyDir(std::string_view dir) { in isEmptyDir() [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/libziparchive/ |
D | zip_cd_entry_map.h | 58 virtual ZipError AddToMap(std::string_view name, const uint8_t* start) = 0; 62 virtual std::pair<ZipError, uint64_t> GetCdEntryOffset(std::string_view name, 69 virtual std::pair<std::string_view, uint64_t> Next(const uint8_t* cd_start) = 0; 113 ZipError AddToMap(std::string_view name, const uint8_t* start) override; 114 std::pair<ZipError, uint64_t> GetCdEntryOffset(std::string_view name, 117 std::pair<std::string_view, uint64_t> Next(const uint8_t* cd_start) override; 152 ZipError AddToMap(std::string_view name, const uint8_t* start) override; 153 std::pair<ZipError, uint64_t> GetCdEntryOffset(std::string_view name, 156 std::pair<std::string_view, uint64_t> Next(const uint8_t* cd_start) override; 161 std::map<std::string_view, uint64_t> entry_table_; [all …]
|
D | zip_cd_entry_map.cc | 19 static uint32_t ComputeHash(std::string_view name) { in ComputeHash() 20 return static_cast<uint32_t>(std::hash<std::string_view>{}(name)); in ComputeHash() 24 const std::string_view ToStringView(ZipStringOffset& entry, const uint8_t *start) { in ToStringView() 26 return std::string_view{name, entry.name_length}; in ToStringView() 32 std::string_view name, const uint8_t* start) const { in GetCdEntryOffset() 49 ZipError CdEntryMapZip32<ZipStringOffset>::AddToMap(std::string_view name, const uint8_t* start) { in AddToMap() 79 std::pair<std::string_view, uint64_t> CdEntryMapZip32<ZipStringOffset>::Next( in Next() 93 ZipError CdEntryMapZip64::AddToMap(std::string_view name, const uint8_t* start) { in AddToMap() 103 std::pair<ZipError, uint64_t> CdEntryMapZip64::GetCdEntryOffset(std::string_view name, in GetCdEntryOffset() 118 std::pair<std::string_view, uint64_t> CdEntryMapZip64::Next(const uint8_t* /*cd_start*/) { in Next()
|
/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 52 return static_cast<std::string_view>(a) == static_cast<std::string_view>(b); 54 static inline bool operator==(const SharedString& a, std::string_view b) { 55 return static_cast<std::string_view>(a) == b; 57 static inline bool operator==(std::string_view a, const SharedString& b) { 58 return a == static_cast<std::string_view>(b); 64 static inline bool operator!=(const SharedString& a, std::string_view b) { 67 static inline bool operator!=(std::string_view a, const SharedString& b) {
|
/system/extras/simpleperf/ |
D | RegEx.h | 37 static std::unique_ptr<RegEx> Create(std::string_view pattern); 41 virtual bool Match(std::string_view s) const = 0; 42 virtual bool Search(std::string_view s) const = 0; 44 virtual std::unique_ptr<RegExMatch> SearchAll(std::string_view s) const = 0; 49 RegEx(std::string_view pattern) : pattern_(pattern) {} in RegEx()
|
D | RegEx.cpp | 29 RegExMatchImpl(std::string_view s, const std::regex& re) in RegExMatchImpl() 44 RegExImpl(std::string_view pattern) in RegExImpl() 47 bool Match(std::string_view s) const override { in Match() 50 bool Search(std::string_view s) const override { in Search() 53 std::unique_ptr<RegExMatch> SearchAll(std::string_view s) const override { in SearchAll() 71 std::unique_ptr<RegEx> RegEx::Create(std::string_view pattern) { in Create()
|
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/update_engine/lz4diff/ |
D | lz4patch.h | 25 bool Lz4Patch(std::string_view src_data, 26 std::string_view patch_data, 29 bool Lz4Patch(std::string_view src_data, 30 std::string_view patch_data,
|
D | lz4patch.cc | 64 std::string_view inner_patch; 110 constexpr StringViewStream(std::string_view read_memory) in StringViewStream() 117 std::string_view read_memory_; 124 bool ParseLz4DifffPatch(std::string_view patch_data, Lz4diffPatch* output) { in ParseLz4DifffPatch() 154 bool bspatch(std::string_view input_data, in bspatch() 155 std::string_view patch_data, in bspatch() 172 bool puffpatch(std::string_view input_data, in puffpatch() 173 std::string_view patch_data, in puffpatch() 242 bool Lz4Patch(std::string_view src_data, in Lz4Patch() 296 bspatch(std::string_view(reinterpret_cast<const char*>(data), size), in Lz4Patch() [all …]
|
D | lz4diff_compress.h | 36 Blob TryCompressBlob(std::string_view blob, 40 bool TryCompressBlob(std::string_view blob, 46 Blob TryDecompressBlob(std::string_view blob,
|
/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 …]
|