/external/libweave/src/ |
D | string_utils_unittest.cc | 17 std::vector<std::string> parts; in TEST() local 19 parts = Split("", ",", false, false); in TEST() 20 EXPECT_EQ(1u, parts.size()); in TEST() 21 EXPECT_EQ("", parts[0]); in TEST() 23 parts = Split("", ",", false, true); in TEST() 24 EXPECT_EQ(0u, parts.size()); in TEST() 26 parts = Split("abc", ",", false, false); in TEST() 27 EXPECT_EQ(1u, parts.size()); in TEST() 28 EXPECT_EQ("abc", parts[0]); in TEST() 30 parts = Split(",a,bc , d, ,e, ", ",", true, true); in TEST() [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/libgdx/tests/gdx-tests-android/assets/data/g3d/ |
D | invaders.g3dj | 787 "parts": [ 1061 "parts": [ 1116 "parts": [ 1128 "parts": [ 1139 "parts": [ 1149 "parts": [ 1159 "parts": [ 1169 "parts": [ 1179 "parts": [ 1189 "parts": [ [all …]
|
/external/chromium-trace/catapult/third_party/Paste/paste/util/ |
D | import_string.py | 40 parts = s.split('.') 41 module = import_module(parts[0]) 42 name = parts[0] 43 parts = parts[1:] 45 while parts: 46 name += '.' + parts[0] 49 parts = parts[1:] 54 while parts: 56 obj = getattr(module, parts[0]) 59 …"Cannot find %s in module %r (stopped importing modules with error %s)" % (parts[0], module, last_… [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/guava/guava/src/com/google/common/base/ |
D | Joiner.java | 95 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/autotest/client/tools/ |
D | scan_results.py | 22 parts = line.split("\t") 25 if (line.startswith("START") and len(parts) >= 5 and 26 parts[3].startswith("timestamp")): 27 start_time = float(parts[3].split("=")[1]) 32 elif (line.startswith("END") and len(parts) >= 5 and 33 parts[3].startswith("timestamp")): 34 end_time = float(parts[3].split("=")[1]) 37 test_name = parts[2] 38 test_status = parts[0].split()[1] 46 elif (len(parts) >= 6 and parts[3].startswith("timestamp") and [all …]
|
D | html_report.py | 1549 parts = line.split() 1550 if len(parts) < 4: 1553 if parts[0] == 'START': 1554 pair = parts[3].split('=') 1556 results_data[parts[1]] = [stime, [], None] 1558 parent_test = re.findall(r".*/", parts[1])[0][:-1] 1559 results_data[parent_test][1].append(parts[1]) 1561 results_data[""][1].append(parts[1]) 1563 elif (parts[0] == 'END'): 1567 if len(parts) > 7: [all …]
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/builderTemplate/publishingFiles/staticDropFiles/ |
D | buildNotes.php | 4 $parts = explode("/", getcwd()); variable 5 $parts2 = explode("-", $parts[count($parts) - 1]); 14 $parts = explode(",", $aLine); variable 15 $dropNames[trim($parts[0])] = trim($parts[1]); 43 $parts = explode("_", $anEntry); variable 44 $baseName = $parts[1]; 45 $parts = explode(".", $baseName); variable 46 $component = $parts[0];
|
D | consoleLogs.php | 4 $parts = explode("/", getcwd()); variable 5 $parts2 = explode("-", $parts[count($parts) - 1]); 14 $parts = explode(",", $aLine); variable 15 $dropNames[trim($parts[0])] = trim($parts[1]);
|
/external/apache-http/android/src/com/android/internal/http/multipart/ |
D | MultipartEntity.java | 118 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 …]
|
D | Part.java | 358 public static void sendParts(OutputStream out, final Part[] parts) in sendParts() argument 360 sendParts(out, parts, DEFAULT_BOUNDARY_BYTES); in sendParts() 374 public static void sendParts(OutputStream out, Part[] parts, byte[] partBoundary) in sendParts() argument 377 if (parts == null) { in sendParts() 383 for (int i = 0; i < parts.length; i++) { in sendParts() 385 parts[i].setPartBoundary(partBoundary); in sendParts() 386 parts[i].send(out); in sendParts() 402 public static long getLengthOfParts(Part[] parts) in getLengthOfParts() argument 404 return getLengthOfParts(parts, DEFAULT_BOUNDARY_BYTES); in getLengthOfParts() 418 public static long getLengthOfParts(Part[] parts, byte[] partBoundary) throws IOException { in getLengthOfParts() argument [all …]
|
/external/jarjar/src/main/com/tonicsystems/jarjar/ |
D | RulesFileParser.java | 50 String[] parts = line.split("\\s+"); in parse() local 51 if (parts.length < 2) in parse() 52 error(c, parts); in parse() 53 String type = parts[0]; in parse() 56 if (parts.length < 3) in parse() 57 error(c, parts); in parse() 59 rule.setResult(parts[2]); in parse() 66 error(c, parts); in parse() 68 element.setPattern(parts[1]); in parse() 78 private static void error(int line, String[] parts) { in error() argument [all …]
|
/external/opencv3/modules/core/src/opencl/runtime/generator/ |
D | parser_cl.py | 30 parts = line.split(); variable 43 parts = getTokens(line) variable 50 while (i < len(parts)): 51 if parts[i].startswith('CL_'): 52 modifiers.append(parts[i]) 56 while (i < len(parts)): 57 if not parts[i].startswith('CL_'): 58 ret.append(parts[i]) 62 while (i < len(parts)): 63 calling.append(parts[i]) [all …]
|
D | parser_clamdblas.py | 24 parts = line.split(); variable 31 while (i < len(parts)): 32 if parts[i].startswith('CL_'): 33 modifiers.append(parts[i]) 37 while (i < len(parts)): 38 if not parts[i].startswith('CL_'): 39 ret.append(parts[i]) 43 while (i < len(parts)): 44 calling.append(parts[i]) 66 parts = getTokens(line) variable [all …]
|
D | parser_clamdfft.py | 37 parts = getTokens(line) variable 46 if parts[i] == "CLAMDFFTAPI": 47 modifiers.append(parts[i]) 51 while (i < len(parts)): 52 if not parts[i] == '(': 53 ret.append(parts[i]) 64 name = parts[i]; i += 1; 68 params = getParameters(i, parts)
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/builderTemplate/publishingFiles/dropSiteRootFiles/ |
D | index.php | 66 $parts = explode("-", $anEntry); variable 67 if (count($parts) == 3) { 69 $buckets[$parts[0]][] = $anEntry; 71 $timePart = $parts[2]; 81 if ($timeStamp > $latestTimeStamp[$parts[0]]) { 82 $latestTimeStamp[$parts[0]] = $timeStamp; 83 $latestFile[$parts[0]] = $anEntry; 100 $parts = explode("-", $fileName); variable 106 echo "<td><a href=\"drops/$fileName/index.html\">$parts[1]</a></td>"; 132 $parts = explode("-", $innerValue); variable [all …]
|
/external/autotest/client/deps/fakegudev/src/ |
D | fakesyscalls.c | 147 gchar **parts; in setup_redirection_map() local 158 parts = g_regex_split (key_value_delimiter, buf, 0); in setup_redirection_map() 161 if (g_strv_length (parts) != 2) { in setup_redirection_map() 164 g_strfreev (parts); in setup_redirection_map() 167 if (strlen (parts[0]) == 0 || parts[0][0] != '/' || in setup_redirection_map() 168 strlen (parts[1]) == 0 || parts[1][0] != '/') { in setup_redirection_map() 172 g_strfreev (parts); in setup_redirection_map() 177 parts[0], parts[1]); in setup_redirection_map() 179 g_strdup (parts[0]), g_strdup (parts[1])); in setup_redirection_map() 180 g_strfreev (parts); in setup_redirection_map()
|
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/ |
D | securecookie.py | 70 parts = value.split('|') 71 if len(parts) != 3: 74 signature = self._get_signature(name, parts[0], parts[1]) 76 if not security.compare_hashes(parts[2], signature): 81 if int(parts[1]) < self._get_timestamp() - max_age: 86 return self._decode(parts[0]) 88 logging.warning('Cookie value failed to be decoded: %r', parts[0]) 100 def _get_signature(self, *parts): argument 103 signature.update('|'.join(parts))
|
/external/guava/guava/src/com/google/common/net/ |
D | InternetDomainName.java | 123 private final ImmutableList<String> parts; field in InternetDomainName 153 this.parts = ImmutableList.copyOf(DOT_SPLITTER.split(name)); in InternetDomainName() 154 checkArgument(parts.size() <= MAX_PARTS, in InternetDomainName() 156 checkArgument(validateSyntax(parts), "Not a valid domain name: '%s'", name); in InternetDomainName() 168 final int partsSize = parts.size(); in findPublicSuffix() 171 String ancestorName = DOT_JOINER.join(parts.subList(i, partsSize)); in findPublicSuffix() 222 private static boolean validateSyntax(List<String> parts) { in validateSyntax() argument 223 final int lastIndex = parts.size() - 1; in validateSyntax() 227 if (!validatePart(parts.get(lastIndex), true)) { in validateSyntax() 232 String part = parts.get(i); in validateSyntax() [all …]
|
/external/libgdx/extensions/gdx-bullet/src/com/badlogic/gdx/physics/bullet/ |
D | Bullet.java | 71 public Array<MeshPart> parts = new Array<MeshPart>(); field in Bullet.ShapePart 89 if (node.parts.size > 0) { in getShapeParts() 100 part.parts.clear(); in getShapeParts() 104 for (int i = 0, n = node.parts.size; i < n; i++) in getShapeParts() 105 part.parts.add(node.parts.get(i).meshPart); in getShapeParts() 150 public static btCollisionShape obtainStaticShape (final Array<ShapePart> parts) { in obtainStaticShape() argument 151 if (parts.size == 0) return null; in obtainStaticShape() 152 if (parts.size == 1 && Arrays.equals(parts.get(0).transform.val, idt.val)) in obtainStaticShape() 153 return btBvhTriangleMeshShape.obtain(parts.get(0).parts); in obtainStaticShape() 156 for (int i = 0, n = parts.size; i < n; i++) { in obtainStaticShape() [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/s3/ |
D | website.py | 78 parts = ['<?xml version="1.0" encoding="UTF-8"?>', 81 parts.append(tag('IndexDocument', tag('Suffix', self.suffix))) 83 parts.append(tag('ErrorDocument', tag('Key', self.error_key))) 85 parts.append(self.redirect_all_requests_to.to_xml()) 87 parts.append(self.routing_rules.to_xml()) 88 parts.append('</WebsiteConfiguration>') 89 return ''.join(parts) 109 parts = [] 113 parts.append(tag(xml_key, content)) 114 return ''.join(parts) [all …]
|
/external/lzma/CPP/7zip/UI/Common/ |
D | ExtractingFilePath.cpp | 137 UString MakePathNameFromParts(const UStringVector &parts) in MakePathNameFromParts() argument 140 FOR_VECTOR (i, parts) in MakePathNameFromParts() 144 result += parts[i]; in MakePathNameFromParts() 151 void Correct_IfEmptyLastPart(UStringVector &parts) in Correct_IfEmptyLastPart() argument 153 if (parts.IsEmpty()) in Correct_IfEmptyLastPart() 154 parts.Add(k_EmptyReplaceName); in Correct_IfEmptyLastPart() 157 UString &s = parts.Back(); in Correct_IfEmptyLastPart() 177 UStringVector parts; in GetCorrectFullFsPath() local 178 SplitPathToParts(path, parts); in GetCorrectFullFsPath() 179 FOR_VECTOR (i, parts) in GetCorrectFullFsPath() [all …]
|
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/ |
D | reversename.py | 40 parts = list(dns.ipv6.inet_aton(text).encode('hex_codec')) 43 parts = ['%d' % ord(byte) for byte in dns.ipv4.inet_aton(text)] 45 parts.reverse() 46 return dns.name.from_text('.'.join(parts), origin=origin) 65 parts = [] 69 parts.append(''.join(labels[i:i+4])) 71 text = ':'.join(parts)
|
/external/protobuf/src/google/protobuf/compiler/javamicro/ |
D | javamicro_generator.cc | 116 vector<string> parts; in Generate() local 117 SplitStringUsing(options[i].second, "|", &parts); in Generate() 118 if (parts.size() != 2) { in Generate() 123 params.set_java_package(parts[0], parts[1]); in Generate() 125 vector<string> parts; in Generate() local 126 SplitStringUsing(options[i].second, "|", &parts); in Generate() 127 if (parts.size() != 2) { in Generate() 133 params.set_java_outer_classname(parts[0], parts[1]); in Generate()
|