Home
last modified time | relevance | path

Searched refs:sv (Results 1 – 22 of 22) sorted by relevance

/system/incremental_delivery/incfs/
Dpath.cpp38 CStrWrapper(std::string_view sv) { in CStrWrapper() argument
39 if (sv[sv.size()] == '\0') { in CStrWrapper()
40 mCstr = sv.data(); in CStrWrapper()
42 mCopy.emplace(sv); in CStrWrapper()
60 inline CStrWrapper c_str(std::string_view sv) { in c_str() argument
61 return {sv}; in c_str()
74 if (path.starts_with("../"sv)) { in normalize()
95 if (part.empty() || part == "."sv) { in normalize()
98 if (part == ".."sv) { in normalize()
133 static constexpr auto kDeletedSuffix = " (deleted)"sv; in readlink()
[all …]
DMountRegistry.cpp41 static const auto kPrefix = "\\"sv; in fixProcPath()
306 if (!dir.starts_with("/proc/"sv)) { in fixBackingDir()
317 if (path::endsWith(mountDir, "mount"sv)) { in fixBackingDir()
318 return path::join(path::dirName(mountDir), "backing_store"sv); in fixBackingDir()
366 if (subdir == "/"sv) { in loadFrom()
368 subdir = ""sv; in loadFrom()
Dincfs.cpp159 static const auto kModulePrefix = "module:"sv; in parseProperty()
277 if (entry->d_name == "corefs"sv) { in readIncFsFeatures()
279 } else if (entry->d_name == "v2"sv || entry->d_name == "report_uid"sv) { in readIncFsFeatures()
352 if (entry->d_name == "."sv || entry->d_name == ".."sv) { in rmDirContent()
/system/libbase/include/android-base/
Dstrings.h60 std::string_view sv; in Trim() local
63 sv = std::forward<T>(t); in Trim()
69 sv = s; in Trim()
76 while (!sv.empty() && isspace(sv.front())) { in Trim()
77 sv.remove_prefix(1); in Trim()
81 while (!sv.empty() && isspace(sv.back())) { in Trim()
82 sv.remove_suffix(1); in Trim()
85 return std::string(sv); in Trim()
/system/incremental_delivery/incfs/include/
Dpath.h61 if (path == "/"sv) { in baseName()
62 return "/"sv; in baseName()
70 return path.empty() ? "/"sv : path; in baseName()
80 if (path == "/"sv) { in dirName()
81 return "/"sv; in dirName()
85 return "/"sv; in dirName()
88 return "."sv; in dirName()
Dincfs_inline.h37 CStrWrapper(std::string_view sv) { in CStrWrapper() argument
38 if (!sv.data()) { in CStrWrapper()
40 } else if (sv[sv.size()] == '\0') { in CStrWrapper()
41 mCstr = sv.data(); in CStrWrapper()
43 mCopy.emplace(sv); in CStrWrapper()
61 inline CStrWrapper c_str(std::string_view sv) { in c_str() argument
62 return {sv}; in c_str()
/system/media/audio_utils/include/audio_utils/
DFdToString.h227 std::string_view sv{buf, static_cast<size_t>(red)};
231 while ((ind = sv.find('\n', 0)) != std::string_view::npos) {
235 out.append(sv.data(), ind + 1);
236 sv.remove_prefix(ind + 1);
239 if (sv.length() > 0) {
240 out.append(sv);
244 out.append(sv);
/system/core/libcutils/
Dcanned_fs_config.cpp81 std::string_view sv = tokens[i]; in load_canned_fs_config() local
82 if (ConsumePrefix(&sv, "capabilities=")) { in load_canned_fs_config()
83 e.capabilities = strtoll(std::string(sv).c_str(), nullptr, 0); in load_canned_fs_config()
89 std::cerr << "info: ignored token \"" << sv << "\" in " << fn << std::endl; in load_canned_fs_config()
/system/incremental_delivery/incfs/incfsdump/
Dmain.cpp37 if (argv[i] == "--help"sv || argv[i] == "-h"sv) { in main()
/system/vold/tests/
DVoldNativeServiceValidation_test.cpp47 EXPECT_FALSE(CheckArgumentPath(std::string("/data/strange\0one"sv)).isOk()); in TEST_F()
48 EXPECT_FALSE(CheckArgumentPath(std::string("/data/strange\ntwo"sv)).isOk()); in TEST_F()
/system/core/fs_mgr/libfstab/
Dboot_config.cpp76 std::string_view sv(value); in ImportBootconfigFromString() local
77 android::base::ConsumePrefix(&sv, "\""); in ImportBootconfigFromString()
78 android::base::ConsumeSuffix(&sv, "\""); in ImportBootconfigFromString()
79 value = android::base::StringReplace(sv, R"(", ")", ",", true); in ImportBootconfigFromString()
/system/update_engine/aosp/
Dlogging_android.cc258 std::string_view sv = str_newline; in RedirectToLiblog() local
259 ignore_result(android::base::ConsumeSuffix(&sv, "\n")); in RedirectToLiblog()
260 std::string str(sv.data(), sv.size()); in RedirectToLiblog()
/system/vold/
DVoldNativeServiceValidation.cpp84 if (path.find("/../"sv) != path.npos || android::base::EndsWith(path, "/.."sv)) { in CheckArgumentPath()
/system/core/fs_mgr/
Dfs_mgr_overlayfs_mount.cpp101 std::string_view sv(normalized_path); in GetEncodedBaseDirForMountPoint() local
102 if (sv != "/") { in GetEncodedBaseDirForMountPoint()
103 android::base::ConsumePrefix(&sv, "/"); in GetEncodedBaseDirForMountPoint()
104 android::base::ConsumeSuffix(&sv, "/"); in GetEncodedBaseDirForMountPoint()
106 return android::base::StringReplace(sv, "/", "@", true); in GetEncodedBaseDirForMountPoint()
/system/tools/aidl/
Daidl_const_expressions.cpp320 bool ParseFloating(std::string_view sv, double* parsed) { in ParseFloating() argument
322 android::base::ConsumeSuffix(&sv, "f"); in ParseFloating()
323 return android::base::ParseDouble(std::string(sv).data(), parsed); in ParseFloating()
326 bool ParseFloating(std::string_view sv, float* parsed) { in ParseFloating() argument
328 if (!android::base::ConsumeSuffix(&sv, "f")) { in ParseFloating()
331 return android::base::ParseFloat(std::string(sv).data(), parsed); in ParseFloating()
Daidl_language.h81 bool ParseFloating(std::string_view sv, double* parsed);
82 bool ParseFloating(std::string_view sv, float* parsed);
/system/incremental_delivery/incfs/tests/
Dincfs_test.cpp44 static IncFsSpan metadata(std::string_view sv) { in metadata() argument
45 return {.data = sv.data(), .size = IncFsSize(sv.size())}; in metadata()
419 const std::string_view md = "abc"sv; in TEST_F()
440 const std::string_view test_file = "test1.txt"sv; in TEST_F()
/system/libziparchive/
Dzip_archive.cc1149 std::string_view sv; in Next() local
1150 int32_t result = Next(cookie, data, &sv); in Next()
1152 *name = std::string(sv); in Next()
/system/libcppbor/tests/
Dcppbor_test.cpp968 EXPECT_EQ("hello"sv, item->asViewTstr()->view()); in TEST()
1118 span<const uint8_t> sv(vec.data(), vec.size()); in TEST() local
1119 ViewBstr item(sv); in TEST()
1124 EXPECT_EQ(*clone->asViewBstr(), ViewBstr(sv)); in TEST()
/system/core/init/
Dproperty_service.cpp1384 constexpr auto ANDROIDBOOT_PREFIX = "androidboot."sv;
/system/timezone/output_data/android/
Dtzids.prototxt1624 isoCode: "sv"
/system/timezone/input_data/android/
Dcountryzones.txt3120 isoCode:"sv"