Home
last modified time | relevance | path

Searched refs:parts (Results 1 – 25 of 1658) sorted by relevance

12345678910>>...67

/external/grpc-grpc/test/core/slice/
Dslice_string_helpers_test.cc64 grpc_slice_buffer* parts; in test_strsplit() local
69 parts = in test_strsplit()
71 grpc_slice_buffer_init(parts); in test_strsplit()
74 grpc_slice_split(str, ", ", parts); in test_strsplit()
75 GPR_ASSERT(4 == parts->count); in test_strsplit()
76 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[0], "one")); in test_strsplit()
77 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[1], "two")); in test_strsplit()
78 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[2], "three")); in test_strsplit()
79 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[3], "four")); in test_strsplit()
80 grpc_slice_buffer_reset_and_unref(parts); in test_strsplit()
[all …]
/external/tensorflow/tensorflow/tools/docs/
Dpretty_docs.py60 parts = ['# %s\n\n' % page_info.full_name]
63 parts.append('### Aliases:\n\n')
64 parts.extend('* `%s`\n' % name for name in page_info.aliases)
65 parts.append('\n')
68 parts.append(_build_signature(page_info))
71 parts.append('\n\n')
72 parts.append(str(page_info.defined_in))
74 parts.append(page_info.guides)
75 parts.append(page_info.doc.docstring)
76 parts.append(_build_function_details(page_info.doc.function_details))
[all …]
/external/libbrillo/brillo/strings/
Dstring_utils_unittest.cc17 std::vector<std::string> parts; in TEST() local
19 parts = string_utils::Split("", ",", false, false); in TEST()
20 EXPECT_EQ(0, parts.size()); in TEST()
22 parts = string_utils::Split("abc", ",", false, false); in TEST()
23 EXPECT_EQ(1, parts.size()); in TEST()
24 EXPECT_EQ("abc", parts[0]); in TEST()
26 parts = string_utils::Split(",a,bc , d, ,e, ", ",", true, true); in TEST()
27 EXPECT_EQ(4, parts.size()); in TEST()
28 EXPECT_EQ("a", parts[0]); in TEST()
29 EXPECT_EQ("bc", parts[1]); in TEST()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DConfigurationV25.java75 ArrayList<String> parts = new ArrayList<String>(); in resourceQualifierString() local
78 parts.add("mcc" + config.mcc); in resourceQualifierString()
80 parts.add("mnc" + config.mnc); in resourceQualifierString()
88 parts.add(resourceQualifier); in resourceQualifierString()
94 parts.add("ldltr"); in resourceQualifierString()
97 parts.add("ldrtl"); in resourceQualifierString()
104 parts.add("sw" + config.smallestScreenWidthDp + "dp"); in resourceQualifierString()
108 parts.add("w" + config.screenWidthDp + "dp"); in resourceQualifierString()
112 parts.add("h" + config.screenHeightDp + "dp"); in resourceQualifierString()
117 parts.add("small"); in resourceQualifierString()
[all …]
/external/skqp/infra/bots/
Dgen_tasks.go108 alternateSwarmDimensions func(parts map[string]string) []string
112 internalHardwareLabelFn func(parts map[string]string) *int
334 func internalHardwareLabel(parts map[string]string) *int {
336 return internalHardwareLabelFn(parts)
363 func deriveCompileTaskName(jobName string, parts map[string]string) string {
366 } else if parts["role"] == "Test" || parts["role"] == "Perf" || parts["role"] == "Calmbench" {
367 task_os := parts["os"]
369 if val := parts["extra_config"]; val != "" {
402 "compiler": parts["compiler"],
403 "target_arch": parts["arch"],
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DLogicalGrouping.java58 XPathParts parts = new XPathParts(); in getPaths() local
59 parts.set(path); in getPaths()
62 String metazoneName = parts.getAttributeValue(3, "type"); in getPaths()
69 String dayName = parts.size() > 7 ? parts.getAttributeValue(7, "type") : null; in getPaths()
73 parts.setAttribute("day", "type", str); in getPaths()
74 result.add(parts.toString()); in getPaths()
81 String dayPeriodType = parts.findAttributeValue("dayPeriod", "type"); in getPaths()
85 parts.setAttribute("dayPeriod", "type", s); in getPaths()
86 result.add(parts.toString()); in getPaths()
91 …DayPeriodInfo.Type dayPeriodContext = DayPeriodInfo.Type.fromString(parts.findAttributeValue("dayP… in getPaths()
[all …]
/external/skia/infra/bots/
Dgen_tasks.go106 alternateSwarmDimensions func(parts map[string]string) []string
110 internalHardwareLabelFn func(parts map[string]string) *int
333 func internalHardwareLabel(parts map[string]string) *int {
335 return internalHardwareLabelFn(parts)
362 func deriveCompileTaskName(jobName string, parts map[string]string) string {
365 } else if parts["role"] == "Test" || parts["role"] == "Perf" || parts["role"] == "Calmbench" {
366 task_os := parts["os"]
368 if val := parts["extra_config"]; val != "" {
403 "compiler": parts["compiler"],
404 "target_arch": parts["arch"],
[all …]
/external/skia/infra/bots/recipe_modules/builder_name_schema/
Dbuilder_name_schema.py77 def MakeBuilderName(**parts): argument
78 for v in parts.itervalues():
84 def process(depth, parts): argument
88 role = parts.get(role_key)
95 del parts[role_key]
98 value = parts.get(key)
102 del parts[key]
107 sub_role = parts.get(sub_role_key)
115 parts = process(depth+1, parts)
121 if parts.get(key):
[all …]
/external/skqp/infra/bots/recipe_modules/builder_name_schema/
Dbuilder_name_schema.py77 def MakeBuilderName(**parts): argument
78 for v in parts.itervalues():
84 def process(depth, parts): argument
88 role = parts.get(role_key)
95 del parts[role_key]
98 value = parts.get(key)
102 del parts[key]
107 sub_role = parts.get(sub_role_key)
115 parts = process(depth+1, parts)
121 if parts.get(key):
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DExtractIsoCurrencyData.java45 String[][] parts = new String[5][5]; in main() local
64 for (int i = 0; i < parts.length; ++i) { in main()
66 for (int j = 0; j < parts[i].length; ++j) { in main()
67 parts[i][j] = parts[i][j].replace("&nbsp;", " "); in main()
68 parts[i][j] = parts[i][j].replace("\u2020", " "); in main()
69 parts[i][j] = parts[i][j].replace("\u2021", " "); in main()
70 parts[i][j] = parts[i][j].replace("\u00A0", " "); in main()
71 parts[i][j] = parts[i][j].trim(); in main()
72 empty &= parts[i][j].length() == 0; in main()
77 if (parts[i][0].length() == 0) { in main()
[all …]
/external/swiftshader/third_party/LLVM/unittests/ADT/
DStringRefTest.cpp144 SmallVector<StringRef, 5> parts; in TEST() local
148 StringRef(",ab,,c,").split(parts, ",", -1, false); in TEST()
149 EXPECT_TRUE(parts == expected); in TEST()
151 expected.clear(); parts.clear(); in TEST()
154 StringRef(",ab,,c,").split(parts, ",", -1, true); in TEST()
155 EXPECT_TRUE(parts == expected); in TEST()
157 expected.clear(); parts.clear(); in TEST()
159 StringRef("").split(parts, ",", -1, true); in TEST()
160 EXPECT_TRUE(parts == expected); in TEST()
162 expected.clear(); parts.clear(); in TEST()
[all …]
/external/llvm/unittests/ADT/
DStringRefTest.cpp151 SmallVector<StringRef, 5> parts; in TEST() local
155 StringRef(",ab,,c,").split(parts, ",", -1, false); in TEST()
156 EXPECT_TRUE(parts == expected); in TEST()
158 expected.clear(); parts.clear(); in TEST()
161 StringRef(",ab,,c,").split(parts, ",", -1, true); in TEST()
162 EXPECT_TRUE(parts == expected); in TEST()
164 expected.clear(); parts.clear(); in TEST()
166 StringRef("").split(parts, ",", -1, true); in TEST()
167 EXPECT_TRUE(parts == expected); in TEST()
169 expected.clear(); parts.clear(); in TEST()
[all …]
/external/openssh/openbsd-compat/
Dinet_aton.c93 u_int parts[4]; in inet_aton() local
94 u_int *pp = parts; in inet_aton()
131 if (pp >= parts + 3) in inet_aton()
147 n = pp - parts + 1; in inet_aton()
157 if ((val > 0xffffff) || (parts[0] > 0xff)) in inet_aton()
159 val |= parts[0] << 24; in inet_aton()
163 if ((val > 0xffff) || (parts[0] > 0xff) || (parts[1] > 0xff)) in inet_aton()
165 val |= (parts[0] << 24) | (parts[1] << 16); in inet_aton()
169 if ((val > 0xff) || (parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xff)) in inet_aton()
171 val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8); in inet_aton()
/external/guava/guava/src/com/google/common/base/
DJoiner.java95 public <A extends Appendable> A appendTo(A appendable, Iterable<?> parts) throws IOException { in appendTo() argument
96 return appendTo(appendable, parts.iterator()); in appendTo()
105 public <A extends Appendable> A appendTo(A appendable, Iterator<?> parts) throws IOException { in appendTo() argument
107 if (parts.hasNext()) { in appendTo()
108 appendable.append(toString(parts.next())); in appendTo()
109 while (parts.hasNext()) { in appendTo()
111 appendable.append(toString(parts.next())); in appendTo()
121 public final <A extends Appendable> A appendTo(A appendable, Object[] parts) throws IOException { in appendTo() argument
122 return appendTo(appendable, Arrays.asList(parts)); in appendTo()
139 public final StringBuilder appendTo(StringBuilder builder, Iterable<?> parts) { in appendTo() argument
[all …]
/external/lzma/CPP/7zip/UI/Common/
DExtractingFilePath.cpp178 void Correct_FsPath(bool absIsAllowed, bool keepAndReplaceEmptyPrefixes, UStringVector &parts, bool… in Correct_FsPath() argument
188 if (parts[0].IsEmpty()) in Correct_FsPath()
192 if (parts.Size() > 1 && parts[1].IsEmpty()) in Correct_FsPath()
195 if (parts.Size() > 2 && parts[2] == L"?") in Correct_FsPath()
198 if (parts.Size() > 3 && NWindows::NFile::NName::IsDrivePath2(parts[3])) in Correct_FsPath()
208 else if (NWindows::NFile::NName::IsDrivePath2(parts[0])) in Correct_FsPath()
217 UString &ds = parts[i - 1]; in Correct_FsPath()
220 parts.Insert(i, ds.Ptr(2)); in Correct_FsPath()
230 for (; i < parts.Size();) in Correct_FsPath()
232 UString &s = parts[i]; in Correct_FsPath()
[all …]
/external/deqp-deps/SPIRV-Tools/utils/
Dgenerate_language_headers.py86 parts = []
88 parts.extend(["{}{}".format(self.comment_prefix(), f) for f in grammar.copyright])
89 parts.append('')
93 parts.append('#ifndef {}'.format(guard))
94 parts.append('#define {}'.format(guard))
95 parts.append('')
97 parts.append(self.cpp_guard_preamble())
100 parts.append(self.const_definition(grammar.name, 'Version', grammar.version))
103 parts.append(self.const_definition(grammar.name, 'Revision', grammar.revision))
105 parts.append('')
[all …]
/external/swiftshader/third_party/SPIRV-Tools/utils/
Dgenerate_language_headers.py86 parts = []
88 parts.extend(["{}{}".format(self.comment_prefix(), f) for f in grammar.copyright])
89 parts.append('')
93 parts.append('#ifndef {}'.format(guard))
94 parts.append('#define {}'.format(guard))
95 parts.append('')
97 parts.append(self.cpp_guard_preamble())
100 parts.append(self.const_definition(grammar.name, 'Version', grammar.version))
103 parts.append(self.const_definition(grammar.name, 'Revision', grammar.revision))
105 parts.append('')
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DStringRefTest.cpp198 SmallVector<StringRef, 5> parts; in TEST() local
202 StringRef(",ab,,c,").split(parts, ",", -1, false); in TEST()
203 EXPECT_TRUE(parts == expected); in TEST()
205 expected.clear(); parts.clear(); in TEST()
208 StringRef(",ab,,c,").split(parts, ",", -1, true); in TEST()
209 EXPECT_TRUE(parts == expected); in TEST()
211 expected.clear(); parts.clear(); in TEST()
213 StringRef("").split(parts, ",", -1, true); in TEST()
214 EXPECT_TRUE(parts == expected); in TEST()
216 expected.clear(); parts.clear(); in TEST()
[all …]
/external/cldr/tools/java/org/unicode/cldr/test/
DExampleGenerator.java163 private XPathParts parts = new XPathParts(); field in ExampleGenerator
307 parts.set(xpath); in getExampleHtml()
308 if (parts.contains("dateRangePattern")) { // {0} - {1} in getExampleHtml()
310 } else if (parts.contains("timeZoneNames")) { in getExampleHtml()
312 } else if (parts.contains("localeDisplayNames")) { in getExampleHtml()
313 result = handleDisplayNames(xpath, parts, value); in getExampleHtml()
314 } else if (parts.contains("currency")) { in getExampleHtml()
316 } else if (parts.contains("dayPeriods")) { in getExampleHtml()
318 } else if (parts.contains("pattern") || parts.contains("dateFormatItem")) { in getExampleHtml()
319 if (parts.contains("calendar")) { in getExampleHtml()
[all …]
DCheckZones.java51 XPathParts parts = new XPathParts(null, null); field in CheckZones
66 parts.set(path); in handleCheck()
68 String zone = parts.getAttributeValue(3, "type"); in handleCheck()
70 if (parts.containsAttribute("from")) in handleCheck()
71 from = parts.getAttributeValue(4, "from"); in handleCheck()
75 if (parts.containsAttribute("to")) in handleCheck()
76 to = parts.getAttributeValue(4, "to"); in handleCheck()
115 public static String exampleTextForXpath(XPathParts parts, TimezoneFormatter timezoneFormatter, in exampleTextForXpath() argument
117 parts.set(path); in exampleTextForXpath()
118 if (parts.containsElement("zone")) { in exampleTextForXpath()
[all …]
/external/epid-sdk/
DSConstruct25 from parts import *
35 'parts': str(PartsExtensionVersion())})
126 'parts': 'Parts Version',
147 ipp_parts = ['ext/ipp/ippcp.parts']
148 utest_parts = ['ext/gtest/gtest.parts',
149 'epid/common-testhelper/common-testhelper.parts']
150 common_parts = ['epid/common/common.parts']
151 member_parts = ['epid/member/member.parts']
152 verifier_parts = ['epid/verifier/verifier.parts']
153 util_parts = ['example/util/util.parts']
[all …]
/external/python/setuptools/setuptools/_vendor/packaging/
Dversion.py140 parts = []
145 while parts and parts[-1] == "*final-":
146 parts.pop()
149 while parts and parts[-1] == "00000000":
150 parts.pop()
152 parts.append(part)
153 parts = tuple(parts)
155 return epoch, parts
237 parts = []
241 parts.append("{0}!".format(self._version.epoch))
[all …]
/external/python/setuptools/pkg_resources/_vendor/packaging/
Dversion.py140 parts = []
145 while parts and parts[-1] == "*final-":
146 parts.pop()
149 while parts and parts[-1] == "00000000":
150 parts.pop()
152 parts.append(part)
153 parts = tuple(parts)
155 return epoch, parts
237 parts = []
241 parts.append("{0}!".format(self._version.epoch))
[all …]
/external/apache-http/android/src/com/android/internal/http/multipart/
DMultipartEntity.java118 protected Part[] parts; field in MultipartEntity
131 public MultipartEntity(Part[] parts, HttpParams params) { in MultipartEntity() argument
132 if (parts == null) { in MultipartEntity()
138 this.parts = parts; in MultipartEntity()
142 public MultipartEntity(Part[] parts) { in MultipartEntity() argument
144 if (parts == null) { in MultipartEntity()
147 this.parts = parts; in MultipartEntity()
179 for (int i = 0; i < parts.length; i++) { in isRepeatable()
180 if (!parts[i].isRepeatable()) { in isRepeatable()
190 Part.sendParts(out, parts, getMultipartBoundary()); in writeTo()
[all …]
/external/harfbuzz_ng/test/api/
Dtest-ot-math.c543 hb_ot_math_glyph_part_t parts[20]; in test_get_glyph_assembly() local
544 unsigned partsSize = sizeof (parts) / sizeof (parts[0]); in test_get_glyph_assembly()
622 parts, in test_get_glyph_assembly()
628 g_assert_cmpint(parts[0].glyph, ==, glyph); in test_get_glyph_assembly()
629 g_assert_cmpint(parts[0].start_connector_length, ==, 800); in test_get_glyph_assembly()
630 g_assert_cmpint(parts[0].end_connector_length, ==, 384); in test_get_glyph_assembly()
631 g_assert_cmpint(parts[0].full_advance, ==, 2000); in test_get_glyph_assembly()
632 g_assert(!(parts[0].flags & HB_MATH_GLYPH_PART_FLAG_EXTENDER)); in test_get_glyph_assembly()
634 g_assert_cmpint(parts[1].glyph, ==, glyph); in test_get_glyph_assembly()
635 g_assert_cmpint(parts[1].start_connector_length, ==, 524); in test_get_glyph_assembly()
[all …]

12345678910>>...67