Home
last modified time | relevance | path

Searched refs:sv (Results 1 – 21 of 21) 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()
118 static constexpr auto kDeletedSuffix = " (deleted)"sv; in fromFd()
[all …]
DMountRegistry.cpp41 static const auto kPrefix = "\\"sv; in fixProcPath()
349 if (subdir == "/"sv) { in loadFrom()
359 subdir = ""sv; in loadFrom()
Dincfs.cpp119 if (entry->d_name == "corefs"sv) { in readIncFsFeatures()
155 static const auto kModulePrefix = "module:"sv; in parseProperty()
276 if (entry->d_name == "."sv || entry->d_name == ".."sv) { in rmDirContent()
/system/incremental_delivery/incfs/tests/
DMountRegistry_test.cpp75 ASSERT_EQ(std::pair("/root"sv, ""s), r().rootAndSubpathFor("/root")); in TEST_F()
76 ASSERT_EQ(std::pair("/root"sv, "1"s), r().rootAndSubpathFor("/bind")); in TEST_F()
77 ASSERT_EQ(std::pair("/root"sv, "2/3"s), r().rootAndSubpathFor("/bind2")); in TEST_F()
78 ASSERT_EQ(std::pair("/root"sv, "2/3/blah"s), r().rootAndSubpathFor("/bind2/blah")); in TEST_F()
79 ASSERT_EQ(std::pair("/root"sv, "2/3/blah"s), r().rootAndSubpathFor("/other/bind/blah")); in TEST_F()
Dincfs_test.cpp99 static IncFsSpan metadata(std::string_view sv) { in metadata() argument
100 return {.data = sv.data(), .size = IncFsSize(sv.size())}; in metadata()
193 inline static const std::string_view test_file_name_ = "test.txt"sv;
194 inline static const std::string_view test_dir_name_ = "test_dir"sv;
361 const std::string_view md = "abc"sv; in TEST_F()
382 const std::string_view test_file = "test1.txt"sv; in TEST_F()
/system/iorap/tests/src/inode2filename/
Dsearch_directories_test.cc384 EXPECT_THAT(IterableSplitStringViewVec("/hello", "/"), ElementsAre(""sv, "hello"sv)); in TEST()
385 …THAT(IterableSplitStringViewVec("/hello///", "/"), ElementsAre(""sv, "hello"sv, ""sv, ""sv, ""sv)); in TEST()
947 DCHECK_EQ(it.cur_value, "/"sv); in MakeBegin()
1162 EXPECT_EQ(PurePath{}.AsStringView(), "."sv); in TEST()
1163 EXPECT_EQ(PurePath{""}.AsStringView(), ""sv); in TEST()
1164 EXPECT_EQ(PurePath{""sv}.AsStringView(), ""sv); in TEST()
1165 EXPECT_EQ(PurePath{""s}.AsStringView(), ""sv); in TEST()
1166 EXPECT_EQ(PurePath{"/hello/world"}.AsStringView(), "/hello/world"sv); in TEST()
1167 EXPECT_EQ(PurePath{"/hello/world"s}.AsStringView(), "/hello/world"sv); in TEST()
1168 EXPECT_EQ(PurePath{"/hello/world"sv}.AsStringView(), "/hello/world"sv); in TEST()
[all …]
/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/adb/client/
Dadb_install.cpp317 if (android::base::EndsWithIgnoreCase(arg, ".apk"sv)) { in install_app_incremental()
322 } else if (arg.starts_with("install"sv)) { in install_app_incremental()
440 if (arg == "--streaming"sv) { in parse_install_mode()
442 } else if (arg == "--no-streaming"sv) { in parse_install_mode()
444 } else if (strlen(arg) >= "--incr"sv.size() && "--incremental"sv.starts_with(arg)) { in parse_install_mode()
446 } else if (strlen(arg) >= "--no-incr"sv.size() && "--no-incremental"sv.starts_with(arg)) { in parse_install_mode()
448 } else if (arg == "--wait"sv) { in parse_install_mode()
465 if (arg == "--fastdeploy"sv) { in parse_fast_deploy_mode()
467 } else if (arg == "--no-fastdeploy"sv) { in parse_fast_deploy_mode()
469 } else if (arg == "--force-agent"sv) { in parse_fast_deploy_mode()
[all …]
Dincremental.cpp223 static constexpr auto failure_msg_head = "Failure ["sv; in wait_for_installation()
/system/update_engine/
Dlogging_android.cc240 std::string_view sv = str_newline; in RedirectToLiblog() local
241 ignore_result(android::base::ConsumeSuffix(&sv, "\n")); in RedirectToLiblog()
242 std::string str(sv.data(), sv.size()); in RedirectToLiblog()
/system/incremental_delivery/incfs/include/
Dincfs_inline.h37 CStrWrapper(std::string_view sv) { in CStrWrapper() argument
38 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/vold/
DVoldNativeServiceValidation.cpp84 if (path.find("/../"sv) != path.npos || android::base::EndsWith(path, "/.."sv)) { in CheckArgumentPath()
/system/bt/hci/src/
Dhci_layer_linux.cc209 int sv[2]; in hci_initialize() local
210 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) < 0) { in hci_initialize()
214 reader_thread_ctrl_fd = sv[0]; in hci_initialize()
218 FROM_HERE, base::Bind(&monitor_socket, sv[1], bt_vendor_fd)); in hci_initialize()
/system/core/adb/
Dsysdeps.h201 extern int adb_socketpair(int sv[2]);
630 static inline int unix_socketpair(int d, int type, int protocol, int sv[2]) { in unix_socketpair()
631 return socketpair(d, type, protocol, sv); in unix_socketpair()
634 static inline int adb_socketpair(int sv[2]) { in adb_socketpair()
637 rc = unix_socketpair(AF_UNIX, SOCK_STREAM, 0, sv); in adb_socketpair()
640 close_on_exec(sv[0]); in adb_socketpair()
641 close_on_exec(sv[1]); in adb_socketpair()
Dsocket_test.cpp370 "echo foo\0bar"sv); in TEST()
Dsysdeps_win32.cpp1179 int adb_socketpair(int sv[2]) { in adb_socketpair()
1211 sv[0] = client; in adb_socketpair()
1212 sv[1] = accepted; in adb_socketpair()
/system/bt/stack/include/
Dbtm_api_types.h396 #define FIELDS_TO_COD(pd, mn, mj, sv) \ argument
399 (pd)[1] = (mj) + ((sv)&BTM_COD_SERVICE_CLASS_LO_B); \
400 (pd)[0] = (sv) >> 8; \
/system/core/libziparchive/
Dzip_archive.cc748 std::string_view sv; in Next() local
749 int32_t result = Next(cookie, data, &sv); in Next()
751 *name = std::string(sv); in Next()
/system/core/libutils/
DREADME92 constraints (the default being the empty set), eg res/values-sv-port
/system/timezone/input_data/android/
Dcountryzones.txt2967 isoCode:"sv"