Home
last modified time | relevance | path

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

/system/bt/gd/shim/
Ddumpsys_test.cc107 int sv[2]; in TEST_F() local
108 ASSERT_EQ(0, socketpair(AF_LOCAL, SOCK_STREAM | SOCK_NONBLOCK, 0, sv)); in TEST_F()
109 int socket_buffer_size = GetSocketBufferSize(sv[0]); in TEST_F()
113 dumpsys_module_->Dump(sv[0], args, std::move(promise)); in TEST_F()
117 ASSERT_TRUE(SimpleJsonValidator(sv[1], &dumpsys_byte_cnt)); in TEST_F()
124 int sv[2]; in TEST_F() local
125 ASSERT_EQ(0, socketpair(AF_LOCAL, SOCK_STREAM | SOCK_NONBLOCK, 0, sv)); in TEST_F()
126 int socket_buffer_size = GetSocketBufferSize(sv[0]); in TEST_F()
130 dumpsys_module_->Dump(sv[0], args, std::move(promise)); in TEST_F()
134 ASSERT_TRUE(SimpleJsonValidator(sv[1], &dumpsys_byte_cnt)); in TEST_F()
/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()
344 if (subdir == "/"sv) { in loadFrom()
346 subdir = ""sv; in loadFrom()
Dincfs.cpp150 static const auto kModulePrefix = "module:"sv; in parseProperty()
267 if (entry->d_name == "corefs"sv) { in readIncFsFeatures()
269 } else if (entry->d_name == "v2"sv || entry->d_name == "report_uid"sv) { in readIncFsFeatures()
342 if (entry->d_name == "."sv || entry->d_name == ".."sv) { in rmDirContent()
/system/incremental_delivery/incfs/include/
Dpath.h57 if (path == "/"sv) { in baseName()
58 return "/"sv; in baseName()
66 return path.empty() ? "/"sv : path; in baseName()
76 if (path == "/"sv) { in dirName()
77 return "/"sv; in dirName()
81 return "/"sv; in dirName()
84 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/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.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/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/tools/aidl/
Daidl_const_expressions.cpp251 bool ParseFloating(std::string_view sv, double* parsed) { in ParseFloating() argument
253 android::base::ConsumeSuffix(&sv, "f"); in ParseFloating()
254 return android::base::ParseDouble(std::string(sv).data(), parsed); in ParseFloating()
257 bool ParseFloating(std::string_view sv, float* parsed) { in ParseFloating() argument
259 if (!android::base::ConsumeSuffix(&sv, "f")) { in ParseFloating()
262 return android::base::ParseFloat(std::string(sv).data(), parsed); in ParseFloating()
Daidl_language.h77 bool ParseFloating(std::string_view sv, double* parsed);
78 bool ParseFloating(std::string_view sv, float* parsed);
/system/bt/stack/include/
Dbtm_api_types.h153 #define FIELDS_TO_COD(pd, mn, mj, sv) \ argument
156 (pd)[1] = (mj) + ((sv)&BTM_COD_SERVICE_CLASS_LO_B); \
157 (pd)[0] = (sv) >> 8; \
/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()
381 const std::string_view md = "abc"sv; in TEST_F()
402 const std::string_view test_file = "test1.txt"sv; in TEST_F()
/system/libziparchive/
Dzip_archive.cc1054 std::string_view sv; in Next() local
1055 int32_t result = Next(cookie, data, &sv); in Next()
1057 *name = std::string(sv); in Next()
/system/core/init/
Dproperty_service.cpp1231 constexpr auto ANDROIDBOOT_PREFIX = "androidboot."sv;
/system/timezone/output_data/android/
Dtzids.prototxt1608 isoCode: "sv"
/system/timezone/input_data/android/
Dcountryzones.txt2999 isoCode:"sv"