Home
last modified time | relevance | path

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

1234567

/frameworks/base/services/incremental/
Dpath.h29 CStrWrapper(std::string_view sv);
44 void append_next_path(std::string& res, std::string_view c);
58 bool operator()(std::string_view l, std::string_view r) const;
66 inline details::CStrWrapper c_str(std::string_view sv) { in c_str()
70 std::string_view relativize(std::string_view parent, std::string_view nested);
71 inline std::string_view relativize(const char* parent, const char* nested) { in relativize()
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()
75 return relativize(parent, std::string_view(nested)); in relativize()
77 inline std::string_view relativize(const char* parent, std::string_view nested) { in relativize()
[all …]
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 …]
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;
100 virtual ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId id,
102 virtual ErrorCode makeMappedFile(const Control& control, std::string_view path, int mode,
104 virtual ErrorCode makeDir(const Control& control, std::string_view path, int mode) const = 0;
105 virtual ErrorCode makeDirs(const Control& control, std::string_view path, int mode) const = 0;
107 virtual incfs::RawMetadata getMetadata(const Control& control, 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;
[all …]
DIncrementalService.h90 explicit IncrementalService(ServiceManagerWrapper&& sm, std::string_view rootDir);
154 StorageId createStorage(std::string_view mountPoint,
157 StorageId createLinkedStorage(std::string_view mountPoint, StorageId linkedStorage,
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);
175 int makeFile(StorageId storage, std::string_view path, int mode, FileId id,
177 int makeDir(StorageId storage, std::string_view path, int mode = 0755);
178 int makeDirs(StorageId storage, std::string_view path, int mode = 0755);
180 int link(StorageId sourceStorageId, std::string_view oldPath, StorageId destStorageId,
[all …]
/frameworks/av/media/utils/include/mediautils/
DStaticStringView.h70 struct StaticStringView final : private std::string_view {
102 constexpr std::string_view getStringView() const { return *this; }
105 using std::string_view::begin;
106 using std::string_view::cbegin;
107 using std::string_view::cend;
108 using std::string_view::crbegin;
109 using std::string_view::crend;
110 using std::string_view::end;
111 using std::string_view::rbegin;
112 using std::string_view::rend;
[all …]
/frameworks/native/services/surfaceflinger/Utils/
DDumper.h40 void dump(std::string_view name, std::string_view value = {}) {
50 void dump(std::string_view name, const std::string& value) { in dump()
51 dump(name, static_cast<const std::string_view&>(value)); in dump()
54 void dump(std::string_view name, bool value) { in dump()
60 void dump(std::string_view name, const std::optional<T>& opt) { in dump()
70 void dump(std::string_view name, const ftl::Optional<T>& opt) { in dump()
75 void dump(std::string_view name, const T& value, const Ts&... rest) { in dump()
102 Section(Dumper& dumper, std::string_view heading) : dumper(dumper) { in Section()
/frameworks/av/media/libmediahelper/include/media/
DAudioValidator.h40 const audio_attributes_t& attr, std::string_view bugNumber = {});
47 const effect_descriptor_t& desc, std::string_view bugNumber = {});
54 const struct audio_port_config& config, std::string_view bugNumber = {});
61 const struct audio_port& port, std::string_view bugNumber = {});
68 const struct audio_port_v7& port, std::string_view bugNumber = {});
75 const struct audio_patch& patch, std::string_view bugNumber = {});
/frameworks/base/tools/aapt2/trace/
DTraceBuffer.h37 Trace(std::string_view tag, const std::vector<android::StringPiece>& args);
54 explicit FlushTrace(std::string_view basepath, std::string_view tag);
55 explicit FlushTrace(std::string_view basepath, std::string_view tag,
57 explicit FlushTrace(std::string_view basepath, std::string_view tag,
DTraceBuffer.cpp125 std::string makeTag(std::string_view tag, const SpanOfStrings& args) { in makeTag()
137 Trace::Trace(std::string_view tag, const std::vector<android::StringPiece>& args) { in Trace()
148 FlushTrace::FlushTrace(std::string_view basepath, std::string_view tag) { in FlushTrace()
155 FlushTrace::FlushTrace(std::string_view basepath, std::string_view tag, in FlushTrace()
163 FlushTrace::FlushTrace(std::string_view basepath, std::string_view tag, in FlushTrace()
/frameworks/libs/binary_translation/base/
Dconfig_globals.cc41 const char* MakeForeverCStr(std::string_view view) { in MakeForeverCStr()
50 bool TryReadBionicSystemPropertyImpl(const std::string_view prop_name, const char** value_ptr) { in TryReadBionicSystemPropertyImpl()
64 bool TryReadBionicSystemProperty(const std::string_view prop_name, const char** value_ptr) { in TryReadBionicSystemProperty()
77 [[maybe_unused]] const std::string_view prop_name, in TryReadConfig()
96 void SetMainExecutableRealPath(std::string_view path) { in SetMainExecutableRealPath()
106 void SetAppPackageName(std::string_view name) { in SetAppPackageName()
115 void SetAppPrivateDir(std::string_view name) { in SetAppPrivateDir()
/frameworks/native/include/ftl/details/
Dconcat.h37 const std::string_view view;
48 const std::string_view view{&character, 1u};
62 const std::string_view view;
72 const std::string_view view;
77 std::string_view view;
87 const std::string_view view;
/frameworks/av/media/libmediahelper/
DAudioValidator.cpp28 status_t safetyNetLog(status_t status, std::string_view bugNumber) { in safetyNetLog()
36 const audio_attributes_t& attr, std::string_view bugNumber) in validateAudioAttributes()
47 const effect_descriptor_t& desc, std::string_view bugNumber) in validateEffectDescriptor()
57 const struct audio_port_config& config, std::string_view bugNumber) in validateAudioPortConfig()
71 static status_t validateAudioPortInternal(const T& port, std::string_view bugNumber = {}) { in validateAudioPortInternal()
89 const struct audio_port& port, std::string_view bugNumber) in validateAudioPort()
95 const struct audio_port_v7& port, std::string_view bugNumber) in validateAudioPort()
102 const struct audio_patch& patch, std::string_view bugNumber) in validateAudioPatch()
/frameworks/base/libs/androidfw/
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"};
78 if (suppress64Bit && std::find(abis.begin(), abis.end(), std::string_view( in ValidLibraryPathLastSlash()
/frameworks/native/cmds/servicemanager/
DNameUtil.h33 static bool fill(std::string_view name, NativeName* nname) { in fill()
35 if (slash == std::string_view::npos) { in fill()
39 if (name.find('/', slash + 1) != std::string_view::npos) { in fill()
47 if (name.rfind('.', slash) != std::string_view::npos) { in fill()
/frameworks/libs/binary_translation/base/include/berberis/base/
Dconfig_globals.h34 void SetMainExecutableRealPath(std::string_view path);
37 void SetAppPackageName(std::string_view name);
40 void SetAppPrivateDir(std::string_view name);
/frameworks/base/tools/aapt2/filter/
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_;
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()
/frameworks/native/libs/ftl/
Dhash_test.cpp34 EXPECT_EQ(6278090252846864564ull, ftl::stable_hash(std::string_view(string).substr(0, 8))); in TEST()
35 EXPECT_EQ(1883356980931444616ull, ftl::stable_hash(std::string_view(string).substr(0, 16))); in TEST()
36 EXPECT_EQ(8073093283835059304ull, ftl::stable_hash(std::string_view(string).substr(0, 32))); in TEST()
/frameworks/base/libs/androidfw/include/androidfw/
DIdmap.h164 std::string_view OverlayApkPath() const { in OverlayApkPath()
169 std::string_view TargetApkPath() const { in TargetApkPath()
203 std::string_view overlay_apk_path_;
204 std::string_view target_apk_path_;
219 std::string_view overlay_apk_path,
220 std::string_view target_apk_path);
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;
/frameworks/av/media/utils/
DProcess.cpp27 void processLine(std::string_view s, std::map<std::string, double>& m) { in processLine()
31 if (colon_pos == std::string_view::npos) return; in processLine()
34 if (space_pos == 0 || space_pos == std::string_view::npos || space_pos > colon_pos) return; in processLine()
38 if (value_pos == std::string_view::npos) return; in processLine()
DTimeCheck.cpp74 static size_t commonTimePrefixPosition(std::string_view time1, std::string_view time2) { in commonTimePrefixPosition()
106 std::string_view timeSuffix(std::string_view time1, std::string_view time2) { in timeSuffix()
158 TimeCheck::TimeCheck(std::string_view tag, OnTimerFunc&& onTimer, Duration requestedTimeoutDuration, in TimeCheck()
322 std::string_view className, std::string_view methodName) { in makeTimeCheckStatsForClassMethod()
/frameworks/native/services/surfaceflinger/EventLog/
DEventLog.h30 static void logFrameDurations(const std::string_view& name, const int32_t* durations,
59 void writeString(const std::string_view&);
69 void doLogFrameDurations(const std::string_view& name, const int32_t* durations,
/frameworks/libs/binary_translation/runtime_primitives/
Dcode_pool_test.cc86 constexpr std::string_view kCode = "test1"; in TEST()
90 EXPECT_EQ(std::string_view{reinterpret_cast<const char*>(first_exec_region_memory_write)}, in TEST()
98 constexpr std::string_view kCode = "test2"; in TEST()
102 EXPECT_EQ(std::string_view{reinterpret_cast<const char*>(second_exec_region_memory_write)}, in TEST()
/frameworks/av/media/utils/tests/
Dstatic_string_view_tests.cpp53 EXPECT_EQ(std::string_view{"ab"}, Ticket1.getStringView()); in TEST()
58 EXPECT_EQ(ticket, std::string_view{"test"}); in TEST()
62 EXPECT_EQ(ticket2, std::string_view{"test2"}); in TEST()
66 EXPECT_EQ(ticket3, std::string_view{"abc"}); in TEST()

1234567