Home
last modified time | relevance | path

Searched refs:sv (Results 1 – 19 of 19) 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.cpp155 static const auto kModulePrefix = "module:"sv; in parseProperty()
273 if (entry->d_name == "corefs"sv) { in readIncFsFeatures()
275 } else if (entry->d_name == "v2"sv || entry->d_name == "report_uid"sv) { in readIncFsFeatures()
348 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.h35 CStrWrapper(std::string_view sv) { in CStrWrapper() argument
36 if (!sv.data()) { in CStrWrapper()
38 } else if (sv[sv.size()] == '\0') { in CStrWrapper()
39 mCstr = sv.data(); in CStrWrapper()
41 mCopy.emplace(sv); in CStrWrapper()
59 inline CStrWrapper c_str(std::string_view sv) { in c_str() argument
60 return {sv}; in c_str()
/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/update_engine/aosp/
Dlogging_android.cc257 std::string_view sv = str_newline; in RedirectToLiblog() local
258 ignore_result(android::base::ConsumeSuffix(&sv, "\n")); in RedirectToLiblog()
259 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/tools/aidl/
Daidl_const_expressions.cpp294 bool ParseFloating(std::string_view sv, double* parsed) { in ParseFloating() argument
296 android::base::ConsumeSuffix(&sv, "f"); in ParseFloating()
297 return android::base::ParseDouble(std::string(sv).data(), parsed); in ParseFloating()
300 bool ParseFloating(std::string_view sv, float* parsed) { in ParseFloating() argument
302 if (!android::base::ConsumeSuffix(&sv, "f")) { in ParseFloating()
305 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/libcppbor/tests/
Dcppbor_test.cpp967 EXPECT_EQ("hello"sv, item->asViewTstr()->view()); in TEST()
972 basic_string_view<uint8_t> sv(vec.data(), vec.size()); in TEST() local
973 unique_ptr<Item> item = details::makeItem(ViewBstr(sv)); in TEST()
989 EXPECT_EQ(sv, item->asViewBstr()->view()); in TEST()
1114 basic_string_view<uint8_t> sv(vec.data(), vec.size()); in TEST() local
1115 ViewBstr item(sv); in TEST()
1120 EXPECT_EQ(*clone->asViewBstr(), ViewBstr(sv)); in TEST()
/system/libziparchive/
Dzip_archive.cc1136 std::string_view sv; in Next() local
1137 int32_t result = Next(cookie, data, &sv); in Next()
1139 *name = std::string(sv); in Next()
/system/core/init/
Dproperty_service.cpp1340 constexpr auto ANDROIDBOOT_PREFIX = "androidboot."sv;
/system/timezone/output_data/android/
Dtzids.prototxt1616 isoCode: "sv"
/system/timezone/input_data/android/
Dcountryzones.txt3102 isoCode:"sv"