/external/chromium_org/components/content_settings/core/common/ |
D | content_settings_pattern.cc | 108 static bool Canonicalize(PatternParts* parts); 111 static bool Validate(const PatternParts& parts); 113 static bool LegacyValidate(const PatternParts& parts); 201 PatternParts parts(parts_); in Build() local 202 if (!Canonicalize(&parts)) in Build() 205 ContentSettingsPattern(parts, true)) { in Build() 213 bool ContentSettingsPattern::Builder::Canonicalize(PatternParts* parts) { in Canonicalize() argument 215 const std::string scheme(base::StringToLowerASCII(parts->scheme)); in Canonicalize() 216 parts->scheme = scheme; in Canonicalize() 218 if (parts->scheme == std::string(url::kFileScheme) && in Canonicalize() [all …]
|
D | content_settings_pattern_parser.cc | 181 const ContentSettingsPattern::PatternParts& parts) { in ToString() argument 184 if (parts.is_scheme_wildcard && in ToString() 185 parts.has_domain_wildcard && in ToString() 186 parts.host.empty() && in ToString() 187 parts.is_port_wildcard) in ToString() 191 if (!parts.is_scheme_wildcard) in ToString() 192 str += parts.scheme + url::kStandardSchemeSeparator; in ToString() 194 if (parts.scheme == url::kFileScheme) { in ToString() 195 if (parts.is_path_wildcard) in ToString() 198 return str + parts.path; in ToString() [all …]
|
/external/chromium_org/google_apis/drive/ |
D | time_util.cc | 27 std::vector<base::StringPiece> parts; in ParseTimezone() local 28 int num_of_token = Tokenize(timezone, ":", &parts); in ParseTimezone() 31 if (!base::StringToInt(parts[0], &hour)) in ParseTimezone() 35 if (num_of_token > 1 && !base::StringToInt(parts[1], &minute)) in ParseTimezone() 55 std::vector<base::StringPiece> parts; in GetTimeFromString() local 56 if (Tokenize(raw_value, "T", &parts) != 2) in GetTimeFromString() 58 date = parts[0]; in GetTimeFromString() 59 time_and_tz = parts[1]; in GetTimeFromString() 64 std::vector<base::StringPiece> parts; in GetTimeFromString() local 71 } else if (Tokenize(time_and_tz, "+", &parts) == 2) { in GetTimeFromString() [all …]
|
/external/guava/guava/src/com/google/common/base/ |
D | Joiner.java | 99 appendTo(A appendable, I parts) throws IOException { in appendTo() argument 100 return appendTo(appendable, (Iterator<?>) parts); in appendTo() 107 public <A extends Appendable> A appendTo(A appendable, Iterable<?> parts) throws IOException { in appendTo() argument 108 return appendTo(appendable, parts.iterator()); in appendTo() 118 public <A extends Appendable> A appendTo(A appendable, Iterator<?> parts) throws IOException { in appendTo() argument 120 if (parts.hasNext()) { in appendTo() 121 appendable.append(toString(parts.next())); in appendTo() 122 while (parts.hasNext()) { in appendTo() 124 appendable.append(toString(parts.next())); in appendTo() 134 public final <A extends Appendable> A appendTo(A appendable, Object[] parts) throws IOException { in appendTo() argument [all …]
|
/external/chromium_org/components/metrics/serialization/ |
D | metric_sample.cc | 121 std::vector<std::string> parts; in ParseHistogram() local 122 base::SplitString(serialized_histogram, ' ', &parts); in ParseHistogram() 124 if (parts.size() != 5) in ParseHistogram() 127 if (parts[0].empty() || !base::StringToInt(parts[1], &sample) || in ParseHistogram() 128 !base::StringToInt(parts[2], &min) || in ParseHistogram() 129 !base::StringToInt(parts[3], &max) || in ParseHistogram() 130 !base::StringToInt(parts[4], &bucket_count)) { in ParseHistogram() 134 return HistogramSample(parts[0], sample, min, max, bucket_count); in ParseHistogram() 148 std::vector<std::string> parts; in ParseSparseHistogram() local 149 base::SplitString(serialized_histogram, ' ', &parts); in ParseSparseHistogram() [all …]
|
/external/chromium_org/ui/gfx/animation/ |
D | multi_animation_unittest.cc | 14 MultiAnimation::Parts parts; in TEST() local 15 parts.push_back(MultiAnimation::Part(100, Tween::LINEAR)); in TEST() 16 parts.push_back(MultiAnimation::Part(100, Tween::EASE_OUT)); in TEST() 18 MultiAnimation animation(parts, MultiAnimation::GetDefaultTimerInterval()); in TEST() 42 MultiAnimation::Parts parts; in TEST() local 43 parts.push_back(MultiAnimation::Part(200, Tween::LINEAR)); in TEST() 44 parts[0].start_time_ms = 100; in TEST() 45 parts[0].end_time_ms = 400; in TEST() 47 MultiAnimation animation(parts, MultiAnimation::GetDefaultTimerInterval()); in TEST() 64 MultiAnimation::Parts parts; in TEST() local [all …]
|
D | multi_animation.cc | 15 static int TotalTime(const MultiAnimation::Parts& parts) { in TotalTime() argument 17 for (size_t i = 0; i < parts.size(); ++i) { in TotalTime() 18 DCHECK(parts[i].end_time_ms - parts[i].start_time_ms >= parts[i].time_ms); in TotalTime() 19 time_ms += parts[i].time_ms; in TotalTime() 24 MultiAnimation::MultiAnimation(const Parts& parts, in MultiAnimation() argument 27 parts_(parts), in MultiAnimation() 28 cycle_time_ms_(TotalTime(parts)), in MultiAnimation()
|
/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/chromium_org/components/url_fixer/ |
D | url_fixer.cc | 59 url::Parsed* parts) { in UTF8PartsToUTF16Parts() argument 61 *parts = parts_utf8; in UTF8PartsToUTF16Parts() 65 parts->scheme = UTF8ComponentToUTF16Component(text_utf8, parts_utf8.scheme); in UTF8PartsToUTF16Parts() 66 parts->username = in UTF8PartsToUTF16Parts() 68 parts->password = in UTF8PartsToUTF16Parts() 70 parts->host = UTF8ComponentToUTF16Component(text_utf8, parts_utf8.host); in UTF8PartsToUTF16Parts() 71 parts->port = UTF8ComponentToUTF16Component(text_utf8, parts_utf8.port); in UTF8PartsToUTF16Parts() 72 parts->path = UTF8ComponentToUTF16Component(text_utf8, parts_utf8.path); in UTF8PartsToUTF16Parts() 73 parts->query = UTF8ComponentToUTF16Component(text_utf8, parts_utf8.query); in UTF8PartsToUTF16Parts() 74 parts->ref = UTF8ComponentToUTF16Component(text_utf8, parts_utf8.ref); in UTF8PartsToUTF16Parts() [all …]
|
/external/qemu/qom/ |
D | container.c | 31 gchar **parts; in container_get() local 34 parts = g_strsplit(path, "/", 0); in container_get() 35 assert(parts != NULL && parts[0] != NULL && !parts[0][0]); in container_get() 38 for (i = 1; parts[i] != NULL; i++, obj = child) { in container_get() 39 child = object_resolve_path_component(obj, parts[i]); in container_get() 42 object_property_add_child(obj, parts[i], child, NULL); in container_get() 46 g_strfreev(parts); in container_get()
|
/external/chromium_org/components/omnibox/ |
D | autocomplete_input.cc | 136 url::Parsed* parts, in Parse() argument 154 if (!parts) in Parse() 155 parts = &local_parts; in Parse() 156 const base::string16 parsed_scheme(url_fixer::SegmentURL(text, parts)); in Parse() 185 if (parts->scheme.is_nonempty() && in Parse() 227 *parts = http_parts; in Parse() 252 if (!parts->host.is_nonempty()) in Parse() 257 DCHECK_NE(url::PORT_INVALID, url::ParsePort(text.c_str(), parts->port)); in Parse() 261 const base::string16 host(text.substr(parts->host.begin, parts->host.len)); in Parse() 318 return (parts->scheme.is_nonempty() || in Parse() [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/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/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/qemu/distrib/sdl-1.2.15/src/video/ |
D | math_private.h | 56 } parts; member 68 } parts; member 79 (ix0) = ew_u.parts.msw; \ 80 (ix1) = ew_u.parts.lsw; \ 89 (i) = gh_u.parts.msw; \ 98 (i) = gl_u.parts.lsw; \ 106 iw_u.parts.msw = (ix0); \ 107 iw_u.parts.lsw = (ix1); \ 117 sh_u.parts.msw = (v); \ 127 sl_u.parts.lsw = (v); \
|
/external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/ |
D | LookupKey.java | 323 String[] parts = keyString.split(SLASH_DELIM); in Builder() local 325 if (!parts[0].equals(KeyType.DATA.name().toLowerCase()) && in Builder() 326 !parts[0].equals(KeyType.EXAMPLES.name().toLowerCase())) { in Builder() 327 throw new RuntimeException("Wrong key type: " + parts[0]); in Builder() 329 if (parts.length > HIERARCHY.length + 1) { in Builder() 333 if (parts[0].equals("data")) { in Builder() 337 if (parts.length > 1) { in Builder() 338 String substr = Util.trimToNull(parts[1]); in Builder() 353 if (parts.length > 2) { in Builder() 354 for (int i = 2; i < parts.length; ++i) { in Builder() [all …]
|
/external/guava/guava/src/com/google/common/net/ |
D | InternetDomainName.java | 123 private final ImmutableList<String> parts; field in InternetDomainName 152 this.parts = ImmutableList.copyOf(DOT_SPLITTER.split(name)); in InternetDomainName() 153 checkArgument(parts.size() <= MAX_PARTS, "Domain has too many parts: '%s'", name); in InternetDomainName() 154 checkArgument(validateSyntax(parts), "Not a valid domain name: '%s'", name); in InternetDomainName() 166 final int partsSize = parts.size(); in findPublicSuffix() 169 String ancestorName = DOT_JOINER.join(parts.subList(i, partsSize)); in findPublicSuffix() 234 private static boolean validateSyntax(List<String> parts) { in validateSyntax() argument 235 final int lastIndex = parts.size() - 1; in validateSyntax() 239 if (!validatePart(parts.get(lastIndex), true)) { in validateSyntax() 244 String part = parts.get(i); in validateSyntax() [all …]
|
/external/oprofile/libpp/ |
D | parse_filename.cpp | 34 parts_type parts = separate_token(event_spec, '.'); in parse_event_spec() local 36 if (parts.size() != nr_parts) { in parse_event_spec() 41 if (parts[i].empty()) { in parse_event_spec() 49 result.event = parts[i++]; in parse_event_spec() 50 result.count = parts[i++]; in parse_event_spec() 51 result.unitmask = parts[i++]; in parse_event_spec() 52 result.tgid = parts[i++]; in parse_event_spec() 53 result.tid = parts[i++]; in parse_event_spec() 54 result.cpu = parts[i++]; in parse_event_spec() 94 vector<string> parts = separate_token(str, '.'); in parse_anon() local [all …]
|
/external/protobuf/src/google/protobuf/compiler/ |
D | code_generator.cc | 56 vector<string> parts; in ParseGeneratorParameter() local 57 SplitStringUsing(text, ",", &parts); in ParseGeneratorParameter() 59 for (int i = 0; i < parts.size(); i++) { in ParseGeneratorParameter() 60 string::size_type equals_pos = parts[i].find_first_of('='); in ParseGeneratorParameter() 63 value.first = parts[i]; in ParseGeneratorParameter() 66 value.first = parts[i].substr(0, equals_pos); in ParseGeneratorParameter() 67 value.second = parts[i].substr(equals_pos + 1); in ParseGeneratorParameter()
|
/external/chromium_org/net/base/ |
D | host_mapping_rules.cc | 71 std::vector<std::string> parts; in AddRuleFromString() local 72 base::SplitString(trimmed, ' ', &parts); in AddRuleFromString() 75 if (parts.size() == 2 && LowerCaseEqualsASCII(parts[0], "exclude")) { in AddRuleFromString() 77 rule.hostname_pattern = base::StringToLowerASCII(parts[1]); in AddRuleFromString() 83 if (parts.size() == 3 && LowerCaseEqualsASCII(parts[0], "map")) { in AddRuleFromString() 85 rule.hostname_pattern = base::StringToLowerASCII(parts[1]); in AddRuleFromString() 87 if (!ParseHostAndPort(parts[2], &rule.replacement_hostname, in AddRuleFromString()
|
/external/chromium_org/chrome/third_party/chromevox/third_party/closure-library/closure/goog/i18n/ |
D | messageformat.js | 569 var parts = this.extractParts_(pattern); 570 for (var i = 0; i < parts.length; i++) { 572 if (goog.i18n.MessageFormat.Element_.STRING == parts[i].type) { 574 block.value = parts[i].value; 575 } else if (goog.i18n.MessageFormat.Element_.BLOCK == parts[i].type) { 576 var blockType = this.parseBlockType_(parts[i].value); 581 block.value = this.parseSelectBlock_(parts[i].value); 585 block.value = this.parsePluralBlock_(parts[i].value); 589 block.value = this.parseOrdinalBlock_(parts[i].value); 593 block.value = parts[i].value; [all …]
|
/external/chromium_org/tools/perf/page_sets/tough_canvas_cases/canvas2d_balls_common/ |
D | parse_url.js | 8 var parts = url.split("?"); 9 if (parts.length == 0) 13 var arglist = parts[1]; 17 var parts = args[i].split("="); 18 if (parts[0] == argname) 20 value = parts[1];
|
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/ |
D | code_generator.cc | 61 vector<string> parts; in ParseGeneratorParameter() local 62 SplitStringUsing(text, ",", &parts); in ParseGeneratorParameter() 64 for (int i = 0; i < parts.size(); i++) { in ParseGeneratorParameter() 65 string::size_type equals_pos = parts[i].find_first_of('='); in ParseGeneratorParameter() 68 value.first = parts[i]; in ParseGeneratorParameter() 71 value.first = parts[i].substr(0, equals_pos); in ParseGeneratorParameter() 72 value.second = parts[i].substr(equals_pos + 1); in ParseGeneratorParameter()
|
/external/chromium_org/google_apis/gaia/ |
D | gaia_auth_util.cc | 24 std::vector<std::string> parts; in CanonicalizeEmailImpl() local 26 base::SplitString(email_address, at, &parts); in CanonicalizeEmailImpl() 27 if (parts.size() != 2U) { in CanonicalizeEmailImpl() 28 NOTREACHED() << "expecting exactly one @, but got " << parts.size()-1 << in CanonicalizeEmailImpl() 31 if (change_googlemail_to_gmail && parts[1] == kGooglemailDomain) in CanonicalizeEmailImpl() 32 parts[1] = kGmailDomain; in CanonicalizeEmailImpl() 34 if (parts[1] == kGmailDomain) // only strip '.' for gmail accounts. in CanonicalizeEmailImpl() 35 base::RemoveChars(parts[0], ".", &parts[0]); in CanonicalizeEmailImpl() 38 std::string new_email = base::StringToLowerASCII(JoinString(parts, at)); in CanonicalizeEmailImpl()
|