Home
last modified time | relevance | path

Searched refs:string_view (Results 1 – 25 of 79) sorted by relevance

1234

/aosp14/frameworks/base/services/incremental/
H A Dpath.h58 bool operator()(std::string_view l, std::string_view r) const;
70 std::string_view relativize(std::string_view parent, std::string_view nested);
72 return relativize(std::string_view(parent), std::string_view(nested)); in relativize()
74 inline std::string_view relativize(std::string_view parent, const char* nested) { in relativize()
77 inline std::string_view relativize(const char* parent, std::string_view nested) { in relativize()
81 std::string_view relativize(std::string&& parent, std::string_view nested) = delete;
82 std::string_view relativize(std::string_view parent, std::string&& nested) = delete;
86 std::string_view dirname(std::string_view path);
87 std::string_view basename(std::string_view path);
89 bool startsWith(std::string_view path, std::string_view prefix);
[all …]
H A Dpath.cpp42 bool PathLess::operator()(std::string_view l, std::string_view r) const { in operator ()()
47 static void preparePathComponent(std::string_view& path, bool trimAll) { in preparePathComponent()
59 void details::append_next_path(std::string& target, std::string_view path) { in append_next_path()
70 std::string_view relativize(std::string_view parent, std::string_view nested) { in relativize()
87 bool isAbsolute(std::string_view path) { in isAbsolute()
91 std::string normalize(std::string_view path) { in normalize()
138 std::string_view basename(std::string_view path) { in basename()
156 std::string_view dirname(std::string_view path) { in dirname()
173 details::CStrWrapper::CStrWrapper(std::string_view sv) { in CStrWrapper()
184 std::optional<bool> isEmptyDir(std::string_view dir) { in isEmptyDir()
[all …]
H A DServiceWrappers.h87 void(std::string_view root, std::string_view backingDir,
88 std::span<std::pair<std::string_view, std::string_view>> binds)>;
97 virtual Control openMount(std::string_view path) const = 0;
108 virtual FileId getFileId(const Control& control, std::string_view path) const = 0;
110 const Control& control, std::string_view path) const = 0;
112 std::string_view path) const = 0;
115 virtual ErrorCode link(const Control& control, std::string_view from,
116 std::string_view to) const = 0;
130 virtual std::optional<Metrics> getMetrics(std::string_view sysfsName) const = 0;
172 using FileCallback = android::base::function_ref<bool(std::string_view)>;
[all …]
H A DIncrementalService.h154 StorageId createStorage(std::string_view mountPoint,
159 StorageId openStorage(std::string_view path);
168 int bind(StorageId storage, std::string_view source, std::string_view target, BindKind kind);
169 int unbind(StorageId storage, std::string_view target);
181 std::string_view newPath);
182 int unlink(StorageId storage, std::string_view path);
197 std::string_view libDirRelativePath, std::string_view abi,
393 static void cleanupFilesystem(std::string_view root);
410 std::unordered_set<std::string_view> adoptMountedInstances();
412 bool mountExistingImage(std::string_view root);
[all …]
H A DServiceWrappers.cpp155 Control openMount(std::string_view path) const final { return incfs::open(path); } in openMount()
160 ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId id, in makeFile()
164 ErrorCode makeMappedFile(const Control& control, std::string_view path, int mode, in makeMappedFile()
168 ErrorCode makeDir(const Control& control, std::string_view path, int mode) const final { in makeDir()
180 FileId getFileId(const Control& control, std::string_view path) const final { in getFileId()
184 const Control& control, std::string_view path) const final { in countFilledBlocks()
215 std::string_view path) const final { in isFileFullyLoaded()
224 ErrorCode link(const Control& control, std::string_view from, std::string_view to) const final { in link()
227 ErrorCode unlink(const Control& control, std::string_view path) const final { in unlink()
267 std::optional<Metrics> getMetrics(std::string_view sysfsName) const final { in getMetrics()
[all …]
H A DIncrementalService.cpp156 static std::string toMountKey(std::string_view path) { in toMountKey()
215 static bool isValidMountTarget(std::string_view path) { in isValidMountTarget()
219 std::string makeUniqueName(std::string_view prefix) { in makeUniqueName()
301 static auto openDir(std::string_view dir) { in openDir()
881 std::string_view path) const { in findStorageLocked()
1077 int IncrementalService::bind(StorageId storage, std::string_view source, std::string_view target, in bind()
1152 std::string_view path) const { in normalizePathToStorageLocked()
1660 std::string_view name = entry->d_name; in mountExistingImages()
1729 auto name = std::string_view(e->d_name); in mountExistingImage()
1746 auto name = std::string_view(e->d_name); in mountExistingImage()
[all …]
/aosp14/frameworks/base/libs/androidfw/
H A DApkParsing.cpp24 const std::string_view APK_LIB = "lib/";
27 const std::string_view LIB_PREFIX = "/lib";
30 const std::string_view LIB_SUFFIX = ".so";
33 static const std::array<std::string_view, 2> abis = {"arm64-v8a", "x86_64"};
73 if (suppress64Bit && std::find(abis.begin(), abis.end(), std::string_view( in ValidLibraryPathLastSlash()
H A DIdmap.cpp229 std::optional<std::string_view> ReadString(const uint8_t** in_out_data_ptr, size_t* in_out_size, in ReadString()
249 return std::string_view(data, *len); in ReadString()
261 std::string_view overlay_apk_path, std::string_view target_apk_path) in LoadedIdmap()
297 std::optional<std::string_view> overlay_path = ReadString(&data_ptr, &data_size, "overlay path"); in Load()
301 std::optional<std::string_view> target_path = ReadString(&data_ptr, &data_size, "target path"); in Load()
345 std::optional<std::string_view> string_pool = ReadString(&data_ptr, &data_size, "string pool"); in Load()
H A DAssetsProvider.cpp266 std::optional<uint32_t> ZipAssetsProvider::GetCrc(std::string_view path) const { in GetCrc()
274 std::optional<std::string_view> ZipAssetsProvider::GetPath() const { in GetPath()
341 std::optional<std::string_view> DirectoryAssetsProvider::GetPath() const { in GetPath()
392 std::optional<std::string_view> MultiAssetsProvider::GetPath() const { in GetPath()
430 std::optional<std::string_view> EmptyAssetsProvider::GetPath() const { in GetPath()
/aosp14/system/core/fs_mgr/liblp/include/liblp/
H A Dbuilder.h43 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 …]
/aosp14/frameworks/base/libs/androidfw/include/androidfw/
H A DIdmap.h163 std::string_view IdmapPath() const { in IdmapPath()
168 std::string_view OverlayApkPath() const { in OverlayApkPath()
173 std::string_view TargetApkPath() const { in TargetApkPath()
207 std::string_view overlay_apk_path_;
208 std::string_view target_apk_path_;
223 std::string_view overlay_apk_path,
224 std::string_view target_apk_path);
H A DAssetsProvider.h54 WARN_UNUSED virtual std::optional<std::string_view> GetPath() const = 0;
96 WARN_UNUSED std::optional<std::string_view> GetPath() const override;
99 WARN_UNUSED std::optional<uint32_t> GetCrc(std::string_view path) const;
148 WARN_UNUSED std::optional<std::string_view> GetPath() const override;
173 WARN_UNUSED std::optional<std::string_view> GetPath() const override;
188 std::optional<std::string_view> path_;
200 WARN_UNUSED std::optional<std::string_view> GetPath() const override;
H A DUtil.h76 std::string Utf8ToModifiedUtf8(std::string_view utf8);
79 std::string ModifiedUtf8ToUtf8(std::string_view modified_utf8);
/aosp14/frameworks/base/tools/aapt2/filter/
H A DAbiFilter.h42 bool Keep(std::string_view path) override;
45 explicit AbiFilter(std::unordered_set<std::string_view> abis) : abis_(std::move(abis)) { in AbiFilter()
51 const std::unordered_set<std::string_view> abis_;
H A DFilter.h34 virtual bool Keep(std::string_view path) = 0;
46 bool Keep(std::string_view path) override { in Keep()
63 bool Keep(std::string_view path) override { in Keep()
H A DAbiFilter.cpp26 std::unordered_set<std::string_view> abi_set; in FromAbiList()
34 bool AbiFilter::Keep(std::string_view path) { in Keep()
/aosp14/system/core/libprocessgroup/include/processgroup/
H A Dprocessgroup.h43 bool SetTaskProfiles(int tid, std::initializer_list<std::string_view> profiles,
45 bool SetProcessProfiles(uid_t uid, pid_t pid, std::initializer_list<std::string_view> profiles);
47 bool SetTaskProfiles(int tid, std::span<const std::string_view> profiles,
49 bool SetProcessProfiles(uid_t uid, pid_t pid, std::span<const std::string_view> profiles);
/aosp14/frameworks/base/tools/aapt2/
H A DNameMangler.h57 bool ShouldMangle(std::string_view package) const { in ShouldMangle()
71 static std::string MangleEntry(std::string_view package, std::string_view name) { in MangleEntry()
/aosp14/frameworks/base/tools/aapt2/io/
H A DUtil.cpp29 bool CopyInputStreamToArchive(IAaptContext* context, InputStream* in, std::string_view out_path, in CopyInputStreamToArchive()
46 bool CopyFileToArchive(IAaptContext* context, io::IFile* file, std::string_view out_path, in CopyFileToArchive()
59 std::string_view out_path, IArchiveWriter* writer) { in CopyFileToArchivePreserveCompression()
65 std::string_view out_path, uint32_t compression_flags, in CopyProtoToArchive()
H A DUtil.h32 bool CopyInputStreamToArchive(IAaptContext* context, InputStream* in, std::string_view out_path,
35 bool CopyFileToArchive(IAaptContext* context, IFile* file, std::string_view out_path,
39 std::string_view out_path, IArchiveWriter* writer);
42 std::string_view out_path, uint32_t compression_flags,
/aosp14/system/core/init/
H A Dinit_test.cpp281 void InitApexService(const std::string_view& init_template) { in InitApexService()
342 std::string_view script_template = R"init( in TEST()
357 std::string_view script_template = R"init( in TEST()
377 std::string_view apex_script_template = R"init( in TEST()
389 std::string_view other_apex_script_template = R"init( in TEST()
406 std::string_view apex_script_template = R"init( in TEST()
418 std::string_view non_apex_script_template = R"init( in TEST()
435 std::string_view script_template = R"init( in TEST()
443 std::string_view other_apex_script_template = R"init( in TEST()
451 std::string_view non_apex_script_template = R"init( in TEST()
[all …]
/aosp14/system/core/fastboot/
H A Dmock_transport.h38 explicit RawDataMatcher(std::string_view data) : data_(data) {} in RawDataMatcher()
53 std::string_view data_;
H A Dvendor_boot_img_utils_test.cpp92 auto remainder = std::string_view(arg).substr(expected.size());
108 return std::string_view(expected).substr(expected.size() - AVB_FOOTER_SIZE) ==
109 std::string_view(arg).substr(arg.size() - AVB_FOOTER_SIZE);
288 std::string_view new_content(*new_content_res); in TEST_P()
331 std::string_view GetRamdiskName(const vendor_ramdisk_table_entry_v4* entry) { in GetRamdiskName()
333 return std::string_view(ramdisk_name, strnlen(ramdisk_name, VENDOR_RAMDISK_NAME_SIZE)); in GetRamdiskName()
376 std::string_view new_content(*new_content_res); in TEST_P()
/aosp14/system/core/libprocessgroup/
H A Dprocessgroup.cpp160 bool SetProcessProfiles(uid_t uid, pid_t pid, std::initializer_list<std::string_view> profiles) { in SetProcessProfiles()
162 uid, pid, std::span<const std::string_view>(profiles), false); in SetProcessProfiles()
165 bool SetProcessProfiles(uid_t uid, pid_t pid, std::span<const std::string_view> profiles) { in SetProcessProfiles()
179 bool SetTaskProfiles(int tid, std::initializer_list<std::string_view> profiles, bool use_fd_cache) { in SetTaskProfiles()
181 tid, std::span<const std::string_view>(profiles), use_fd_cache); in SetTaskProfiles()
184 bool SetTaskProfiles(int tid, std::span<const std::string_view> profiles, bool use_fd_cache) { in SetTaskProfiles()
195 std::vector<std::string_view> profiles_; in android_set_process_profiles()
200 return SetProcessProfiles(uid, pid, std::span<const std::string_view>(profiles_)); in android_set_process_profiles()
/aosp14/system/core/fs_mgr/libsnapshot/
H A Dsnapshot_metadata_updater_test.cpp78 std::string T(std::string_view name) { return std::string(name) + target_suffix_; } in T()
94 AssertionResult CheckSize(std::string_view name, uint64_t size) { in CheckSize()
107 AssertionResult CheckGroupSize(std::string_view name, uint64_t size) { in CheckGroupSize()
121 AssertionResult CheckGroupName(std::string_view partition_name, std::string_view group_name) { in CheckGroupName()

1234