/system/libbase/ |
D | strings_test.cpp | 26 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, tokenize_empty) { in TEST() argument 91 TEST(strings, tokenize_all_delimiter) { in TEST() argument [all …]
|
/system/extras/partition_tools/ |
D | lpdump.cc | 67 static std::string BuildFlagString(const std::vector<std::string>& strings) { in BuildFlagString() argument 68 return strings.empty() ? "none" : android::base::Join(strings, ","); in BuildFlagString() 72 std::vector<std::string> strings; in BuildHeaderFlagString() local 75 strings.emplace_back("virtual_ab_device"); in BuildHeaderFlagString() 83 strings.emplace_back("unknown_flag_bit_" + std::to_string(i)); in BuildHeaderFlagString() 85 return BuildFlagString(strings); in BuildHeaderFlagString() 89 std::vector<std::string> strings; in BuildAttributeString() local 90 if (attrs & LP_PARTITION_ATTR_READONLY) strings.emplace_back("readonly"); in BuildAttributeString() 91 if (attrs & LP_PARTITION_ATTR_SLOT_SUFFIXED) strings.emplace_back("slot-suffixed"); in BuildAttributeString() 92 if (attrs & LP_PARTITION_ATTR_UPDATED) strings.emplace_back("updated"); in BuildAttributeString() [all …]
|
/system/tools/aidl/build/ |
D | aidl_gen_rule.go | 143 g.nextImportFlags = strings.Join(wrap("-N", nextImports, ""), " ") 144 g.importFlags = strings.Join(wrap("-I", g.deps.imports, ""), " ") 174 baseDir := strings.TrimSuffix(strings.TrimSuffix(src.String(), relPath), "/") 208 if !strings.HasPrefix(baseDir, ctx.Config().SoongOutDir()) { 268 "optionalFlags": strings.Join(optionalFlags, " "), 281 "optionalFlags": strings.Join(optionalFlags, " "), 285 typeName := strings.TrimSuffix(filepath.Base(relPath), ".aidl") 292 strings.ToUpper(baseName)[1] == baseName[1] { 293 baseName = strings.TrimPrefix(typeName, "I") 335 "optionalFlags": strings.Join(optionalFlags, " "), [all …]
|
D | aidl_interface.go | 153 …ctx.ModuleErrorf("depends on multiple versions of the same aidl_interface: %s", strings.Join(viola… 176 notFrozen = []string{strings.TrimSuffix(mctx.ModuleName(), "-source")} 228 baseDir := strings.TrimSuffix(src.String(), src.Rel()) 229 baseDir = strings.TrimSuffix(baseDir, "/") 243 !strings.HasPrefix(path, "../") && !strings.HasPrefix(path, "/") 810 if !strings.HasPrefix(flag, "-W") { 867 versionIdx := strings.LastIndex(moduleName, "-V") 900 if android.InList(i.Owner(), strings.Fields(mctx.Config().Getenv("AIDL_FROZEN_OWNERS"))) { 1045 computedType := strings.TrimSuffix(strings.ReplaceAll(src.Rel(), "/", "."), ".aidl")
|
D | aidl_interface_metadata_singleton.go | 128 readHashes = "$$(sed 's/.*/\"&\",/' " + strings.Join(info.HashFiles, " ") + 152 "types": strings.Join(wrap(`\"`, info.ComputedTypes, `\"`), ", "),
|
D | aidl_utils.go | 49 return strings.Map(func(r rune) rune {
|
D | aidl_api.go | 171 "optionalFlags": strings.Join(optionalFlags, " "), 172 "imports": strings.Join(wrap("-I", imports, ""), " "), 246 moduleName := strings.TrimSuffix(api.Name(), aidlApiSuffix) 755 ownersToFreeze := strings.Fields(ctx.Config().Getenv("AIDL_FREEZE_OWNERS"))
|
D | aidl_rust_source_provider.go | 83 "imports": strings.Join(importFlags, " "),
|
/system/core/rootdir/ |
D | init.usb.configfs.rc | 21 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/tools/hidl/build/ |
D | hidl_interface.go | 143 "extras": strings.Join(wrap("{\\\"interface\\\":\\\"", additionalInterfaces, "\\\"},"), " "), 144 "files": strings.Join(inheritanceHierarchyOutputs.Strings(), " "), 182 "files": strings.Join(hidlLintOutputs.Strings(), " "), 224 if strings.HasSuffix(src, ".hal") && strings.HasPrefix(src, "I") { 225 interfaces = append(interfaces, strings.TrimSuffix(src, ".hal")) 281 "options": strings.Join(extraOptions, " "), 296 "options": strings.Join(extraOptions, " "), 313 "options": strings.Join(extraOptions, " "), 434 if !strings.HasSuffix(v, ".hal") { 440 name := strings.TrimSuffix(v, ".hal") [all …]
|
D | fqName.go | 44 packageComponents: strings.Split(matches[0][1], "."), 53 components := strings.Split(pkg, ".") 69 return strings.Join(f.packageComponents, ".")
|
/system/core/property_service/libpropertyinfoserializer/ |
D | trie_serializer.cpp | 27 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()
|
D | trie_serializer.h | 38 void SerializeStrings(const std::set<std::string>& strings);
|
/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/ |
D | Utils.java | 46 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/extras/simpleperf/scripts/test/ |
D | test_utils.py | 194 def check_strings_in_file(self, filename, strings: List[Union[str, re.Pattern]]): 197 self.check_strings_in_content(fh.read(), strings) 205 def check_strings_in_content(self, content: str, strings: List[Union[str, re.Pattern]]): 207 for s in strings: 212 self.check_fulfilled_entries(fulfilled, strings)
|
/system/tools/aidl/tests/java/src/android/aidl/tests/ |
D | MapTests.java | 99 String[] strings = readFoo.stringArrayMap.get("Foo"); in testWriteAndThenReadMaps() local 100 assertThat(strings.length, is(1)); in testWriteAndThenReadMaps() 101 assertThat(strings[0], is("Bar")); in testWriteAndThenReadMaps()
|
/system/core/fastboot/device/ |
D | usb_client.cpp | 157 } __attribute__((packed)) strings = { variable 161 .length = htole32(sizeof(strings)), 212 ret = write(h->control.get(), &strings, sizeof(strings)); in InitFunctionFs()
|
/system/core/libutils/ |
D | LruCache_test.cpp | 223 char* strings[kNumKeys]; in TEST_F() local 226 strings[i] = (char *)malloc(16); in TEST_F() 227 sprintf(strings[i], "%zu", i); in TEST_F() 237 EXPECT_EQ(strings[index], val); in TEST_F() 240 cache.put(key, strings[index]); in TEST_F() 249 free((void *)strings[i]); in TEST_F()
|
/system/extras/libjsonpb/ |
D | README.md | 18 - 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/extras/boottime_tools/io_analysis/ |
D | check_io_trace.py | 43 def get_string_pos(strings, string_to_find): argument 44 for i, s in enumerate(strings):
|
/system/core/shell_and_utilities/ |
D | README.md | 68 sha512sum sleep sort split stat strings stty swapoff swapon sync sysctl 106 sha512sum sleep sort split stat strings stty swapoff swapon sync sysctl 140 sha512sum sleep sort split stat strings stty swapoff swapon sync sysctl 174 sha512sum sleep sort split stat strings stty swapoff swapon sync sysctl 208 split stat strings stty swapoff swapon sync sysctl tac tail tar taskset 240 sort split start stat stop strings stty swapoff swapon sync sysctl 268 sort split start stat stop strings **stty** swapoff swapon sync sysctl tac 293 **sha512sum** sleep sort split start stat stop strings swapoff swapon sync 316 split stat strings swapoff swapon sync sysctl tac tail tar taskset tee 337 split stat strings swapoff swapon sync sysctl tac tail tar taskset tee
|
/system/chre/host/msm/daemon/generated/ |
D | chre_slpi_skel.c | 414 const char* strings; member 439 static const char strings[145] = "initialize_reverse_monitor\0deliver_message_from_host\0get_messag… variable 442 …SLIM(chre_slpi_slim) = {6,&(methodArrays[0]),0,0,&(methodStringsArrays [0]),methodStrings,strings};
|
D | chre_slpi_stub.c | 414 const char* strings; member 439 static const char strings[145] = "initialize_reverse_monitor\0deliver_message_from_host\0get_messag… variable 442 …SLIM(chre_slpi_slim) = {6,&(methodArrays[0]),0,0,&(methodStringsArrays [0]),methodStrings,strings};
|
/system/unwinding/libunwindstack/tests/fuzz/ |
D | UnwinderComponentCreator.cpp | 376 std::vector<std::string> strings; in GetStringList() local 378 strings.push_back(data_provider->ConsumeRandomLengthString(max_str_len)); in GetStringList() 380 return strings; in GetStringList()
|
/system/tools/aidl/tests/ |
D | aidl_test_client_primitives.cpp | 147 TEST_F(AidlPrimitiveTest, strings) { in TEST_F() argument 148 std::vector<String16> strings = { in TEST_F() local 155 for (auto sent : strings) { in TEST_F()
|