Home
last modified time | relevance | path

Searched refs:strings (Results 1 – 25 of 42) sorted by relevance

12

/system/core/base/
Dstrings_test.cpp26 TEST(strings, split_empty) { in TEST() argument
32 TEST(strings, split_single) { in TEST() argument
38 TEST(strings, split_simple) { in TEST() argument
46 TEST(strings, split_with_empty_part) { in TEST() argument
54 TEST(strings, split_with_trailing_empty_part) { in TEST() argument
62 TEST(strings, split_null_char) { in TEST() argument
70 TEST(strings, split_any) { in TEST() argument
78 TEST(strings, split_any_with_empty_part) { in TEST() argument
86 TEST(strings, trim_empty) { in TEST() argument
90 TEST(strings, trim_already_trimmed) { in TEST() argument
[all …]
DAndroid.bp57 "strings.cpp",
/system/extras/partition_tools/
Dlpdump.cc62 static std::string BuildFlagString(const std::vector<std::string>& strings) { in BuildFlagString() argument
63 return strings.empty() ? "none" : android::base::Join(strings, ","); in BuildFlagString()
67 std::vector<std::string> strings; in BuildAttributeString() local
68 if (attrs & LP_PARTITION_ATTR_READONLY) strings.emplace_back("readonly"); in BuildAttributeString()
69 if (attrs & LP_PARTITION_ATTR_SLOT_SUFFIXED) strings.emplace_back("slot-suffixed"); in BuildAttributeString()
70 return BuildFlagString(strings); in BuildAttributeString()
74 std::vector<std::string> strings; in BuildGroupFlagString() local
75 if (flags & LP_GROUP_SLOT_SUFFIXED) strings.emplace_back("slot-suffixed"); in BuildGroupFlagString()
76 return BuildFlagString(strings); in BuildGroupFlagString()
80 std::vector<std::string> strings; in BuildBlockDeviceFlagString() local
[all …]
/system/bt/osi/test/
Darray_test.cc54 char strings[][128] = { in TEST_F() local
61 array_append_ptr(array, strings[i % 8]); in TEST_F()
64 EXPECT_TRUE(!memcmp(array_at(array, i), strings[i % 8], 128)); in TEST_F()
/system/core/rootdir/
Dinit.usb.configfs.rc21 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "adb"
27 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "mtp"
36 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "mtp_adb"
43 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "ptp"
52 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "ptp_adb"
59 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "accessory"
68 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "accessory_adb"
75 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "audiosource"
84 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "audiosource_adb"
91 write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "accessory_audiosource"
[all …]
/system/core/property_service/libpropertyinfoserializer/
Dtrie_serializer.cpp27 void TrieSerializer::SerializeStrings(const std::set<std::string>& strings) { in SerializeStrings() argument
28 arena_->AllocateAndWriteUint32(strings.size()); in SerializeStrings()
31 uint32_t offset_array_offset = arena_->AllocateUint32Array(strings.size()); in SerializeStrings()
35 auto it = strings.begin(); in SerializeStrings()
36 for (unsigned int i = 0; i < strings.size(); ++i, ++it) { in SerializeStrings()
Dtrie_serializer.h38 void SerializeStrings(const std::set<std::string>& strings);
/system/bt/build/secondary/third_party/libchrome/
DBUILD.gn129 "base/strings/pattern.cc",
130 "base/strings/safe_sprintf.cc",
131 "base/strings/string16.cc",
132 "base/strings/string_number_conversions.cc",
133 "base/strings/string_piece.cc",
134 "base/strings/stringprintf.cc",
135 "base/strings/string_split.cc",
136 "base/strings/string_util.cc",
137 "base/strings/string_util_constants.cc",
138 "base/strings/sys_string_conversions_posix.cc",
[all …]
/system/timezone/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/
DUtils.java46 static List<String> toUpperCase(List<String> strings) { in toUpperCase() argument
47 return strings.stream().map(String::toUpperCase).collect(Collectors.toList()); in toUpperCase()
105 static boolean allLowerCaseAscii(List<String> strings) { in allLowerCaseAscii() argument
115 return !strings.stream().anyMatch(nonLowerCaseAscii); in allLowerCaseAscii()
/system/tools/hidl/build/
DfqName.go44 packageComponents: strings.Split(matches[0][1], "."),
53 components := strings.Split(pkg, ".")
69 return strings.Join(f.packageComponents, ".")
Dhidl_interface.go150 "roots": strings.Join(fullRootOptions, " "),
340 if !strings.HasSuffix(v, ".hal") {
346 name := strings.TrimSuffix(v, ".hal")
348 if strings.HasPrefix(name, "I") {
349 baseName := strings.TrimPrefix(name, "I")
764 if strings.HasPrefix(name, pkgname) {
779 if strings.HasPrefix(name, pkgname) {
796 if strings.HasPrefix(name, pkgname) {
817 ctx.Strict("VTS_SPEC_FILE_LIST", strings.Join(vtsList, " "))
/system/core/adb/daemon/
Dusb_ffs.cpp197 } __attribute__((packed)) strings = { variable
200 .length = cpu_to_le32(sizeof(strings)),
254 if (adb_write(control.get(), &strings, sizeof(strings)) < 0) { in open_functionfs()
/system/core/fastboot/device/
Dusb_client.cpp157 } __attribute__((packed)) strings = { variable
161 .length = htole32(sizeof(strings)),
212 ret = write(h->control.get(), &strings, sizeof(strings)); in InitFunctionFs()
/system/core/libutils/
DLruCache_test.cpp220 char* strings[kNumKeys]; in TEST_F() local
223 strings[i] = (char *)malloc(16); in TEST_F()
224 sprintf(strings[i], "%zu", i); in TEST_F()
234 EXPECT_EQ(strings[index], val); in TEST_F()
237 cache.put(key, strings[index]); in TEST_F()
246 free((void *)strings[i]); in TEST_F()
/system/extras/libjsonpb/
DREADME.md18 - The JSON file must use strings (to pass tests in `libjsonpbverify`)
19 - Parser code (that uses `libjsoncpp`) must explicitly convert strings to
25 - The JSON file must use strings (e.g. `"NaN"`, `"Infinity"`, `"-Infinity"`)
74 always be strings.
84 - JSON strings are generally `string`s, but if you want to impose more
/system/bt/build/
Dfluoride.go54 strings.Fields(board_bt_buildcfg_include_dir)
/system/extras/boottime_tools/io_analysis/
Dcheck_io_trace.py43 def get_string_pos(strings, string_to_find): argument
44 for i, s in enumerate(strings):
/system/chre/host/msm/daemon/generated/
Dchre_slpi_skel.c412 const char* strings; member
437 static const char strings[144] = "initialize_reverse_monitor\0deliver_message_from_host\0get_messag… variable
440 …SLIM(chre_slpi_slim) = {6,&(methodArrays[0]),0,0,&(methodStringsArrays [0]),methodStrings,strings};
Dchre_slpi_stub.c412 const char* strings; member
437 static const char strings[144] = "initialize_reverse_monitor\0deliver_message_from_host\0get_messag… variable
440 …SLIM(chre_slpi_slim) = {6,&(methodArrays[0]),0,0,&(methodStringsArrays [0]),methodStrings,strings};
/system/core/shell_and_utilities/
DREADME.md109 split stat strings swapoff swapon sync sysctl tac tail tar taskset tee
130 split stat strings swapoff swapon sync sysctl tac tail tar taskset tee
153 sha512sum sleep sort split start stat stop strings swapoff swapon sync
179 sort split start stat stop strings stty swapoff swapon sync sysctl tac
209 sort split start stat stop strings stty swapoff swapon sync sysctl
/system/sepolicy/tools/
Dcheckfc.c139 static void dump_char_array(FILE *stream, const char * const *strings) in dump_char_array() argument
142 const char * const *p = strings; in dump_char_array()
/system/extras/libjsonpb/verify/
Dtest.proto29 // the Protobuf Style Guide (a.k.a CAPITALIZED_SNAKE_CASE), use strings.
/system/libvintf/
Dparse_string.cpp76 bool parseEnum(const std::string &s, E *e, const Array &strings) { in parseEnum() argument
77 for (size_t i = 0; i < strings.size(); ++i) { in parseEnum()
78 if (s == strings.at(i)) { in parseEnum()
/system/tools/xsdc/build/
Dxsdc.go146 pkgName = strings.Replace(pkgName, ".", "_", -1)
/system/update_engine/
DAndroid.bp259 // TODO(deymo): Remove external/cros/system_api/dbus once the strings are moved
318 // TODO(deymo): Remove external/cros/system_api/dbus once the strings are moved
419 // TODO(deymo): Remove external/cros/system_api/dbus once the strings are moved

12