/external/tensorflow/tensorflow/tools/docs/ |
D | pretty_docs.py | 63 parts = ['# %s\n\n' % page_info.full_name] 65 parts.append(_build_aliases(page_info.aliases)) 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)) 77 parts.append(_build_compatibility(page_info.doc.compatibility)) 79 return ''.join(parts) [all …]
|
/external/grpc-grpc/test/core/slice/ |
D | slice_string_helpers_test.cc | 64 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/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/ |
D | ConfigurationV25.java | 75 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/recipe_modules/builder_name_schema/ |
D | builder_name_schema.py | 19 # Character which separates parts of a builder name. 77 def MakeBuilderName(**parts): argument 78 for v in parts.itervalues(): 80 raise ValueError('Parts cannot contain "%s"' % BUILDER_NAME_SEP) 84 def process(depth, parts): argument 88 role = parts.get(role_key) 90 raise ValueError('Invalid parts; missing key %s' % role_key) 93 raise ValueError('Invalid parts; unknown role %s' % role) 95 del parts[role_key] 98 value = parts.get(key) [all …]
|
/external/skia/infra/bots/recipe_modules/builder_name_schema/ |
D | builder_name_schema.py | 19 # Character which separates parts of a builder name. 75 def MakeBuilderName(**parts): argument 76 for v in parts.itervalues(): 78 raise ValueError('Parts cannot contain "%s"' % BUILDER_NAME_SEP) 82 def process(depth, parts): argument 86 role = parts.get(role_key) 88 raise ValueError('Invalid parts; missing key %s' % role_key) 91 raise ValueError('Invalid parts; unknown role %s' % role) 93 del parts[role_key] 96 value = parts.get(key) [all …]
|
/external/libbrillo/brillo/strings/ |
D | string_utils_unittest.cc | 17 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/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/ |
D | perfetto_proto_classes.py | 32 parts = [] 35 writer(parts.append, self.trusted_packet_sequence_id) 40 parts += [tag, length, data] 45 parts += [tag, length, data] 48 writer(parts.append, self.incremental_state_cleared) 53 parts += [tag, length, data] 58 parts += [tag, length, data] 60 return b"".join(parts) 69 parts = [] 74 parts += [tag, length, data] [all …]
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | LogicalGrouping.java | 97 XPathParts parts = null; in getPaths() local 100 … parts = XPathParts.getInstance(path); // can't always be frozen, some addPath do setAttribute in getPaths() 101 pathType = PathType.getPathTypeFromParts(parts); in getPaths() 123 parts = XPathParts.getInstance(path); in getPaths() 133 pathType.addPaths(set, cldrFile, path, parts); in getPaths() 144 pathType.addPaths(set, cldrFile, path, parts); in getPaths() 167 XPathParts parts = XPathParts.getInstance(path); in isOptional() local 169 if (parts.containsElement("relative")) { in isOptional() 170 String fieldType = parts.findAttributeValue("field", "type"); in isOptional() 171 String relativeType = parts.findAttributeValue("relative", "type"); in isOptional() [all …]
|
/external/skqp/infra/bots/ |
D | gen_tasks.go | 108 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/tool/ |
D | ExtractIsoCurrencyData.java | 45 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(" ", " "); 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/llvm/unittests/ADT/ |
D | StringRefTest.cpp | 151 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/skia/infra/bots/gen_tasks_logic/ |
D | gen_tasks_logic.go | 209 InternalHardwareLabel func(parts map[string]string) *int `json:"-"` 229 // from parts of task names. 230 SwarmDimensions func(parts map[string]string) []string `json:"-"` 435 func (b *builder) internalHardwareLabel(parts map[string]string) *int { 437 return b.cfg.InternalHardwareLabel(parts) 466 func (b *builder) deriveCompileTaskName(jobName string, parts map[string]string) string { 467 if parts["role"] == "Test" || parts["role"] == "Perf" { 468 task_os := parts["os"] 470 if val := parts["extra_config"]; val != "" { 499 } else if parts["compiler"] == "GCC" { [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/utils/ |
D | generate_language_headers.py | 84 parts = [] 86 parts.extend(["{}{}".format(self.comment_prefix(), f) for f in grammar.copyright]) 87 parts.append('') 91 parts.append('#ifndef {}'.format(guard)) 92 parts.append('#define {}'.format(guard)) 93 parts.append('') 95 parts.append(self.cpp_guard_preamble()) 98 parts.append(self.const_definition(grammar.name, 'Version', grammar.version)) 101 parts.append(self.const_definition(grammar.name, 'Revision', grammar.revision)) 103 parts.append('') [all …]
|
/external/angle/third_party/spirv-tools/src/utils/ |
D | generate_language_headers.py | 84 parts = [] 86 parts.extend(["{}{}".format(self.comment_prefix(), f) for f in grammar.copyright]) 87 parts.append('') 91 parts.append('#ifndef {}'.format(guard)) 92 parts.append('#define {}'.format(guard)) 93 parts.append('') 95 parts.append(self.cpp_guard_preamble()) 98 parts.append(self.const_definition(grammar.name, 'Version', grammar.version)) 101 parts.append(self.const_definition(grammar.name, 'Revision', grammar.revision)) 103 parts.append('') [all …]
|
/external/deqp-deps/SPIRV-Tools/utils/ |
D | generate_language_headers.py | 84 parts = [] 86 parts.extend(["{}{}".format(self.comment_prefix(), f) for f in grammar.copyright]) 87 parts.append('') 91 parts.append('#ifndef {}'.format(guard)) 92 parts.append('#define {}'.format(guard)) 93 parts.append('') 95 parts.append(self.cpp_guard_preamble()) 98 parts.append(self.const_definition(grammar.name, 'Version', grammar.version)) 101 parts.append(self.const_definition(grammar.name, 'Revision', grammar.revision)) 103 parts.append('') [all …]
|
/external/guava/guava/src/com/google/common/base/ |
D | Joiner.java | 88 * Appends the string representation of each of {@code parts}, using the previously configured 92 public <A extends Appendable> A appendTo(A appendable, Iterable<?> parts) throws IOException { in appendTo() argument 93 return appendTo(appendable, parts.iterator()); in appendTo() 97 * Appends the string representation of each of {@code parts}, using the previously configured 103 public <A extends Appendable> A appendTo(A appendable, Iterator<?> parts) throws IOException { in appendTo() argument 105 if (parts.hasNext()) { in appendTo() 106 appendable.append(toString(parts.next())); in appendTo() 107 while (parts.hasNext()) { in appendTo() 109 appendable.append(toString(parts.next())); in appendTo() 116 * Appends the string representation of each of {@code parts}, using the previously configured [all …]
|
/external/guava/android/guava/src/com/google/common/base/ |
D | Joiner.java | 88 * Appends the string representation of each of {@code parts}, using the previously configured 92 public <A extends Appendable> A appendTo(A appendable, Iterable<?> parts) throws IOException { in appendTo() argument 93 return appendTo(appendable, parts.iterator()); in appendTo() 97 * Appends the string representation of each of {@code parts}, using the previously configured 103 public <A extends Appendable> A appendTo(A appendable, Iterator<?> parts) throws IOException { in appendTo() argument 105 if (parts.hasNext()) { in appendTo() 106 appendable.append(toString(parts.next())); in appendTo() 107 while (parts.hasNext()) { in appendTo() 109 appendable.append(toString(parts.next())); in appendTo() 116 * Appends the string representation of each of {@code parts}, using the previously configured [all …]
|
/external/lzma/CPP/7zip/UI/Common/ |
D | ExtractingFilePath.cpp | 178 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/apache-http/android/src/com/android/internal/http/multipart/ |
D | MultipartEntity.java | 57 * a series of parts. Each part is expected to contain a content-disposition 71 * Part[] parts = { 76 * new MultipartRequestEntity(parts, filePost.getParams()) 117 /** The MIME parts as set by the constructor */ 118 protected Part[] parts; field in MultipartEntity 127 * Creates a new multipart entity containing the given parts. 128 * @param parts The parts to include. 131 public MultipartEntity(Part[] parts, HttpParams params) { in MultipartEntity() argument 132 if (parts == null) { in MultipartEntity() 133 throw new IllegalArgumentException("parts cannot be null"); in MultipartEntity() [all …]
|
D | Part.java | 351 * Write all parts and the last boundary to the specified output stream. 354 * @param parts The parts to write. 356 * @throws IOException If an I/O error occurs while writing the parts. 358 public static void sendParts(OutputStream out, final Part[] parts) in sendParts() argument 360 sendParts(out, parts, DEFAULT_BOUNDARY_BYTES); in sendParts() 364 * Write all parts and the last boundary to the specified output stream. 367 * @param parts The parts to write. 370 * @throws IOException If an I/O error occurs while writing the parts. 374 public static void sendParts(OutputStream out, Part[] parts, byte[] partBoundary) in sendParts() argument 377 if (parts == null) { in sendParts() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | ExampleGenerator.java | 311 … * expect to call functions like parts.addRelative which throw exceptions if parts is frozen. in getExampleHtml() 313 XPathParts parts = XPathParts.getInstance(xpath); in getExampleHtml() local 314 if (parts.contains("dateRangePattern")) { // {0} - {1} in getExampleHtml() 316 } else if (parts.contains("timeZoneNames")) { in getExampleHtml() 317 result = handleTimeZoneName(parts, value); in getExampleHtml() 318 } else if (parts.contains("localeDisplayNames")) { in getExampleHtml() 319 result = handleDisplayNames(xpath, parts, value); in getExampleHtml() 320 } else if (parts.contains("currency")) { in getExampleHtml() 321 result = handleCurrency(xpath, parts, value, exType); in getExampleHtml() 322 } else if (parts.contains("dayPeriods")) { in getExampleHtml() [all …]
|
/external/angle/third_party/spirv-headers/src/tools/buildHeaders/bin/ |
D | generate_language_headers.py | 123 parts = [] 125 parts.extend(["{}{}".format(self.comment_prefix(), f) for f in grammar.copyright]) 126 parts.append('') 130 parts.append('#ifndef {}'.format(guard)) 131 parts.append('#define {}'.format(guard)) 132 parts.append('') 134 parts.append(self.cpp_guard_preamble()) 137 parts.append(self.const_definition(grammar.name, 'Version', grammar.version)) 140 parts.append(self.const_definition(grammar.name, 'Revision', grammar.revision)) 142 parts.append('') [all …]
|
/external/deqp-deps/SPIRV-Headers/tools/buildHeaders/bin/ |
D | generate_language_headers.py | 123 parts = [] 125 parts.extend(["{}{}".format(self.comment_prefix(), f) for f in grammar.copyright]) 126 parts.append('') 130 parts.append('#ifndef {}'.format(guard)) 131 parts.append('#define {}'.format(guard)) 132 parts.append('') 134 parts.append(self.cpp_guard_preamble()) 137 parts.append(self.const_definition(grammar.name, 'Version', grammar.version)) 140 parts.append(self.const_definition(grammar.name, 'Revision', grammar.revision)) 142 parts.append('') [all …]
|
/external/tensorflow/tensorflow/core/profiler/internal/ |
D | parse_annotation.cc | 29 std::vector<absl::string_view> parts; in SplitNameAndMetadata() local 31 parts.emplace_back(annotation); in SplitNameAndMetadata() 34 parts = absl::StrSplit(annotation, '#'); in SplitNameAndMetadata() 35 if (parts.size() > 2) { in SplitNameAndMetadata() 36 parts.resize(2); in SplitNameAndMetadata() 39 while (parts.size() < 2) { in SplitNameAndMetadata() 40 parts.emplace_back(); in SplitNameAndMetadata() 42 return parts; in SplitNameAndMetadata() 102 std::vector<absl::string_view> parts = in ParseMetadata() local 104 if (parts.size() == 2) { in ParseMetadata() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/draft/ |
D | JsonConverter.java | 54 * TODO: "parts" is always empty, so all the code using it is wasted! in main() 56 final XPathParts parts = new XPathParts(); in main() local 69 dtdType = DtdType.valueOf(parts.getElement(0)); in main() 71 rewrite(dtdType, oldParts, value, element2Attributes, parts); in main() 72 System.out.println(parts); in main() 74 int size = parts.size(); in main() 77 final String element = parts.getElement(i); in main() 78 Map<String, String> actualAttributeKeys = parts.getAttributes(i); in main() 90 current.put(element, parts.getElement(i + 1)); in main() 122 private static void rewrite(DtdType dtdType, XPathParts parts, String value, in rewrite() argument [all …]
|