/external/chromium/base/ |
D | string_number_conversions_unittest.cc | 63 std::string output; in TEST() member 72 EXPECT_EQ(cases[i].output, Uint64ToString(cases[i].input)); in TEST() 78 int output; in TEST() member 109 int output = 0; in TEST() local 110 EXPECT_EQ(cases[i].success, StringToInt(cases[i].input, &output)); in TEST() 111 EXPECT_EQ(cases[i].output, output); in TEST() 112 output = 0; in TEST() 115 &output)); in TEST() 116 EXPECT_EQ(cases[i].output, output); in TEST() 117 output = 0; in TEST() [all …]
|
D | utf_string_conversions.cc | 27 DEST_STRING* output) { in ConvertUnicode() argument 34 WriteUnicodeCharacter(code_point, output); in ConvertUnicode() 36 WriteUnicodeCharacter(0xFFFD, output); in ConvertUnicode() 48 bool WideToUTF8(const wchar_t* src, size_t src_len, std::string* output) { in WideToUTF8() argument 49 PrepareForUTF8Output(src, src_len, output); in WideToUTF8() 50 return ConvertUnicode(src, src_len, output); in WideToUTF8() 61 bool UTF8ToWide(const char* src, size_t src_len, std::wstring* output) { in UTF8ToWide() argument 62 PrepareForUTF16Or32Output(src, src_len, output); in UTF8ToWide() 63 return ConvertUnicode(src, src_len, output); in UTF8ToWide() 77 bool WideToUTF16(const wchar_t* src, size_t src_len, string16* output) { in WideToUTF16() argument [all …]
|
D | string_util_unittest.cc | 24 const wchar_t* output; member 42 const char* output; member 60 std::string* output) { in Truncated() argument 62 TruncateUTF8ToByteSize(input, byte_size, output); in Truncated() 63 return prev != output->length(); in Truncated() 69 std::string output; in TEST() local 72 EXPECT_FALSE(Truncated("", 0, &output)); in TEST() 73 EXPECT_EQ(output, ""); in TEST() 74 EXPECT_TRUE(Truncated("\xe1\x80\xbf", 0, &output)); in TEST() 75 EXPECT_EQ(output, ""); in TEST() [all …]
|
D | string_number_conversions.cc | 178 value_type* output) { in Invoke() argument 187 if (!Negative::Invoke(begin + 1, end, output)) { in Invoke() 194 if (!Positive::Invoke(begin, end, output)) { in Invoke() 212 typename traits::value_type* output) { in Invoke() argument 213 *output = 0; in Invoke() 234 if (!Sign::CheckBounds(output, new_digit)) { in Invoke() 237 *output *= traits::kBase; in Invoke() 240 Sign::Increment(new_digit, output); in Invoke() 248 static bool CheckBounds(value_type* output, uint8 new_digit) { in CheckBounds() argument 249 if (*output > static_cast<value_type>(traits::max() / traits::kBase) || in CheckBounds() [all …]
|
/external/chromium/testing/gmock/test/ |
D | gmock_output_test.py | 65 def RemoveReportHeaderAndFooter(output): argument 68 output = re.sub(r'.*gtest_main.*\n', '', output) 69 output = re.sub(r'\[.*\d+ tests.*\n', '', output) 70 output = re.sub(r'\[.* test environment .*\n', '', output) 71 output = re.sub(r'\[=+\] \d+ tests .* ran.*', '', output) 72 output = re.sub(r'.* FAILED TESTS\n', '', output) 73 return output 76 def RemoveLocations(output): argument 89 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\:', 'FILE:#:', output) 92 def NormalizeErrorMarker(output): argument [all …]
|
/external/chromium/chrome/common/ |
D | jstemplate_builder.cc | 21 std::string output(html_template.data(), html_template.size()); in GetTemplateHtml() local 22 AppendJsonHtml(json, &output); in GetTemplateHtml() 23 AppendJsTemplateSourceHtml(&output); in GetTemplateHtml() 24 AppendJsTemplateProcessHtml(template_id, &output); in GetTemplateHtml() 25 return output; in GetTemplateHtml() 30 std::string output(html_template.data(), html_template.size()); in GetI18nTemplateHtml() local 31 AppendJsonHtml(json, &output); in GetI18nTemplateHtml() 32 AppendI18nTemplateSourceHtml(&output); in GetI18nTemplateHtml() 33 AppendI18nTemplateProcessHtml(&output); in GetI18nTemplateHtml() 34 return output; in GetI18nTemplateHtml() [all …]
|
D | common_param_traits_unittest.cc | 34 GURL output; in TEST() local 36 EXPECT_TRUE(IPC::ParamTraits<GURL>::Read(&msg, &iter, &output)); in TEST() 40 EXPECT_EQ(input.possibly_invalid_spec(), output.possibly_invalid_spec()); in TEST() 41 EXPECT_EQ(input.is_valid(), output.is_valid()); in TEST() 42 EXPECT_EQ(input.scheme(), output.scheme()); in TEST() 43 EXPECT_EQ(input.username(), output.username()); in TEST() 44 EXPECT_EQ(input.password(), output.password()); in TEST() 45 EXPECT_EQ(input.host(), output.host()); in TEST() 46 EXPECT_EQ(input.port(), output.port()); in TEST() 47 EXPECT_EQ(input.path(), output.path()); in TEST() [all …]
|
/external/javassist/src/main/javassist/bytecode/ |
D | ClassFileWriter.java | 76 private ByteStream output; field in ClassFileWriter 89 output = new ByteStream(512); in ClassFileWriter() 90 output.writeInt(0xCAFEBABE); // magic in ClassFileWriter() 91 output.writeShort(minor); in ClassFileWriter() 92 output.writeShort(major); in ClassFileWriter() 93 constPool = new ConstPoolWriter(output); in ClassFileWriter() 130 output.writeShort(accessFlags); in end() 131 output.writeShort(thisClass); in end() 132 output.writeShort(superClass); in end() 134 output.writeShort(0); in end() [all …]
|
/external/protobuf/src/google/protobuf/compiler/ |
D | zip_writer.cc | 121 io::CodedOutputStream output(raw_output_); in Write() local 122 output.WriteLittleEndian32(0x04034b50); // magic in Write() 123 WriteShort(&output, 10); // version needed to extract in Write() 124 WriteShort(&output, 0); // flags in Write() 125 WriteShort(&output, 0); // compression method: stored in Write() 126 WriteShort(&output, 0); // last modified time in Write() 127 WriteShort(&output, 0); // last modified date in Write() 128 output.WriteLittleEndian32(info.crc32); // crc-32 in Write() 129 output.WriteLittleEndian32(info.size); // compressed size in Write() 130 output.WriteLittleEndian32(info.size); // uncompressed size in Write() [all …]
|
/external/protobuf/src/google/protobuf/ |
D | wire_format_lite.cc | 210 io::CodedOutputStream* output) { in WriteInt32() argument 211 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteInt32() 212 WriteInt32NoTag(value, output); in WriteInt32() 215 io::CodedOutputStream* output) { in WriteInt64() argument 216 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteInt64() 217 WriteInt64NoTag(value, output); in WriteInt64() 220 io::CodedOutputStream* output) { in WriteUInt32() argument 221 WriteTag(field_number, WIRETYPE_VARINT, output); in WriteUInt32() 222 WriteUInt32NoTag(value, output); in WriteUInt32() 225 io::CodedOutputStream* output) { in WriteUInt64() argument [all …]
|
D | wire_format_lite.h | 234 #define output io::CodedOutputStream* output macro 309 static inline void WriteTag(field_number, WireType type, output) INL; 312 static inline void WriteInt32NoTag (int32 value, output) INL; 313 static inline void WriteInt64NoTag (int64 value, output) INL; 314 static inline void WriteUInt32NoTag (uint32 value, output) INL; 315 static inline void WriteUInt64NoTag (uint64 value, output) INL; 316 static inline void WriteSInt32NoTag (int32 value, output) INL; 317 static inline void WriteSInt64NoTag (int64 value, output) INL; 318 static inline void WriteFixed32NoTag (uint32 value, output) INL; 319 static inline void WriteFixed64NoTag (uint64 value, output) INL; [all …]
|
/external/webkit/Source/WebCore/webaudio/ |
D | AudioNodeInput.cpp | 48 void AudioNodeInput::connect(AudioNodeOutput* output) in connect() argument 52 ASSERT(output && node()); in connect() 53 if (!output || !node()) in connect() 57 if (m_outputs.contains(output)) in connect() 60 output->addInput(this); in connect() 61 m_outputs.add(output); in connect() 68 void AudioNodeInput::disconnect(AudioNodeOutput* output) in disconnect() argument 72 ASSERT(output && node()); in disconnect() 73 if (!output || !node()) in disconnect() 77 if (m_outputs.contains(output)) { in disconnect() [all …]
|
/external/chromium/googleurl/src/ |
D | url_canon_etc.cc | 111 CanonOutput* output, in DoScheme() argument 115 *out_scheme = url_parse::Component(output->length(), 0); in DoScheme() 116 output->push_back(':'); in DoScheme() 121 out_scheme->begin = output->length(); in DoScheme() 144 output->push_back(replacement); in DoScheme() 150 output->push_back('%'); in DoScheme() 157 AppendUTF8EscapedChar(spec, &i, end, output); in DoScheme() 163 out_scheme->len = output->length() - out_scheme->begin; in DoScheme() 164 output->push_back(':'); in DoScheme() 177 CanonOutput* output, in DoUserInfo() argument [all …]
|
D | url_canon_host.cc | 140 CanonOutputT<OUTCHAR>* output, in DoSimpleHost() argument 155 AppendEscapedChar('%', output); in DoSimpleHost() 166 AppendEscapedChar(source, output); in DoSimpleHost() 170 AppendEscapedChar(source, output); in DoSimpleHost() 175 output->push_back(replacement); in DoSimpleHost() 181 output->push_back(static_cast<OUTCHAR>(source)); in DoSimpleHost() 190 bool DoIDNHost(const char16* src, int src_len, CanonOutput* output) { in DoIDNHost() argument 203 AppendInvalidNarrowString(src, 0, src_len, output); in DoIDNHost() 212 output, &has_non_ascii); in DoIDNHost() 221 bool has_non_ascii, bool has_escaped, CanonOutput* output) { in DoComplexHost() argument [all …]
|
D | url_canon_internal.h | 97 CanonOutput* output); 100 CanonOutput* output); 150 CanonOutputT<OUTCHAR>* output) { in AppendEscapedChar() argument 151 output->push_back('%'); in AppendEscapedChar() 152 output->push_back(kHexCharLookup[ch >> 4]); in AppendEscapedChar() 153 output->push_back(kHexCharLookup[ch & 0xf]); in AppendEscapedChar() 181 inline void DoAppendUTF8(unsigned char_value, Output* output) { in DoAppendUTF8() argument 183 Appender(static_cast<unsigned char>(char_value), output); in DoAppendUTF8() 187 output); in DoAppendUTF8() 189 output); in DoAppendUTF8() [all …]
|
D | url_canon_internal_file.h | 54 CanonOutput* output) { in FileDoDriveSpec() argument 68 output->push_back(spec[after_slashes] - 'a' + 'A'); in FileDoDriveSpec() 70 output->push_back(static_cast<char>(spec[after_slashes])); in FileDoDriveSpec() 73 output->push_back(':'); in FileDoDriveSpec() 74 output->push_back('/'); in FileDoDriveSpec() 82 CanonOutput* output) { in FileDoPath() argument 99 spec, sub_path, output, &fake_output_path); in FileDoPath() 106 CanonOutput* output, in DoCanonicalizeFileURL() argument 115 new_parsed->scheme.begin = output->length(); in DoCanonicalizeFileURL() 116 output->push_back('f'); in DoCanonicalizeFileURL() [all …]
|
D | url_canon_fileurl.cc | 50 CanonOutput* output) { in FileDoDriveSpec() argument 61 output->push_back('/'); in FileDoDriveSpec() 68 output->push_back(spec[after_slashes] - 'a' + 'A'); in FileDoDriveSpec() 70 output->push_back(static_cast<char>(spec[after_slashes])); in FileDoDriveSpec() 73 output->push_back(':'); in FileDoDriveSpec() 82 CanonOutput* output, in DoFileCanonicalizePath() argument 85 out_path->begin = output->length(); in DoFileCanonicalizePath() 88 after_drive = FileDoDriveSpec(spec, path.begin, path.end(), output); in DoFileCanonicalizePath() 103 success = CanonicalizePath(spec, sub_path, output, &fake_output_path); in DoFileCanonicalizePath() 106 output->push_back('/'); in DoFileCanonicalizePath() [all …]
|
D | url_canon_path.cc | 174 CanonOutput* output) { in BackUpToPreviousSlash() argument 175 DCHECK(output->length() > 0); in BackUpToPreviousSlash() 177 int i = output->length() - 1; in BackUpToPreviousSlash() 178 DCHECK(output->at(i) == '/'); in BackUpToPreviousSlash() 184 while (output->at(i) != '/' && i > path_begin_in_output) in BackUpToPreviousSlash() 188 output->set_length(i + 1); in BackUpToPreviousSlash() 208 CanonOutput* output) { in DoPartialPath() argument 220 success &= AppendUTF8EscapedChar(spec, &i, end, output); in DoPartialPath() 238 DCHECK(output->length() > path_begin_in_output); in DoPartialPath() 239 if (output->length() > path_begin_in_output && in DoPartialPath() [all …]
|
/external/protobuf/gtest/test/ |
D | gtest_output_test.py | 105 def RemoveStackTraceDetails(output): argument 110 'Stack trace: (omitted)\n\n', output) 113 def RemoveStackTraces(output): argument 117 return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output) 120 def RemoveTime(output): argument 123 return re.sub(r'\(\d+ ms', '(? ms', output) 126 def RemoveTestCounts(output): argument 129 output = re.sub(r'\d+ tests, listed below', 130 '? tests, listed below', output) 131 output = re.sub(r'\d+ FAILED TESTS', [all …]
|
/external/libxml2/ |
D | debugXML.c | 42 FILE *output; /* the output file */ member 64 ctxt->output = stdout; in xmlCtxtDumpInitCtxt() 142 if ((ctxt->output != NULL) && (ctxt->depth > 0)) { in xmlCtxtDumpSpaces() 144 fprintf(ctxt->output, "%s", &ctxt->shift[100 - 2 * ctxt->depth]); in xmlCtxtDumpSpaces() 146 fprintf(ctxt->output, "%s", ctxt->shift); in xmlCtxtDumpSpaces() 428 fprintf(ctxt->output, "(NULL)"); in xmlCtxtDumpString() 435 fputc(' ', ctxt->output); in xmlCtxtDumpString() 437 fprintf(ctxt->output, "#%X", str[i]); in xmlCtxtDumpString() 439 fputc(str[i], ctxt->output); in xmlCtxtDumpString() 440 fprintf(ctxt->output, "..."); in xmlCtxtDumpString() [all …]
|
/external/gtest/test/ |
D | gtest_output_test.py | 89 def RemoveLocations(output): argument 102 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', output) 105 def RemoveStackTraces(output): argument 110 'Stack trace: (omitted)\n\n', output) 113 def RemoveTime(output): argument 116 return re.sub(r'\(\d+ ms', '(? ms', output) 119 def RemoveTestCounts(output): argument 122 output = re.sub(r'\d+ tests from \d+ test cases', 123 '? tests from ? test cases', output) 124 return re.sub(r'\d+ tests\.', '? tests.', output) [all …]
|
/external/webkit/Tools/Scripts/webkitpy/thirdparty/simplejson/ |
D | _speedups.c | 9 ascii_escape_char(Py_UNICODE c, char *output, Py_ssize_t chars); 28 ascii_escape_char(Py_UNICODE c, char *output, Py_ssize_t chars) { in ascii_escape_char() argument 30 output[chars++] = '\\'; in ascii_escape_char() 32 case '/': output[chars++] = (char)c; break; in ascii_escape_char() 33 case '\\': output[chars++] = (char)c; break; in ascii_escape_char() 34 case '"': output[chars++] = (char)c; break; in ascii_escape_char() 35 case '\b': output[chars++] = 'b'; break; in ascii_escape_char() 36 case '\f': output[chars++] = 'f'; break; in ascii_escape_char() 37 case '\n': output[chars++] = 'n'; break; in ascii_escape_char() 38 case '\r': output[chars++] = 'r'; break; in ascii_escape_char() [all …]
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | MessageDigest2Test.java | 99 DataOutputStream output = new DataOutputStream(out); in testSerializationSHA_DATA_2() local 103 output in testSerializationSHA_DATA_2() 105 output.writeInt(0); // class modifiers in testSerializationSHA_DATA_2() 106 output.writeUTF("java.io.Serializable"); // interfaces in testSerializationSHA_DATA_2() 109 output.writeUTF("sub_toBeNotSerialized"); // name in testSerializationSHA_DATA_2() 110 output.writeInt(9); // modifiers in testSerializationSHA_DATA_2() 111 output.writeUTF("Ljava/lang/String;"); // signature in testSerializationSHA_DATA_2() 113 output.writeUTF("sub_toBeNotSerialized2"); // name in testSerializationSHA_DATA_2() 114 output.writeInt(9); // modifiers in testSerializationSHA_DATA_2() 115 output.writeUTF("Ljava/lang/String;"); // signature in testSerializationSHA_DATA_2() [all …]
|
/external/chromium/testing/gtest/test/ |
D | gtest_output_test.py | 104 def RemoveStackTraceDetails(output): argument 109 'Stack trace: (omitted)\n\n', output) 112 def RemoveStackTraces(output): argument 116 return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output) 119 def RemoveTime(output): argument 122 return re.sub(r'\(\d+ ms', '(? ms', output) 153 def RemoveTestCounts(output): argument 156 output = re.sub(r'\d+ tests?, listed below', 157 '? tests, listed below', output) 158 output = re.sub(r'\d+ FAILED TESTS', [all …]
|
/external/protobuf/src/google/protobuf/io/ |
D | zero_copy_stream_unittest.cc | 96 bool WriteToOutput(ZeroCopyOutputStream* output, const void* data, int size); 100 void WriteString(ZeroCopyOutputStream* output, const string& str); 107 int WriteStuff(ZeroCopyOutputStream* output); 113 int WriteStuffLarge(ZeroCopyOutputStream* output); 130 bool IoTest::WriteToOutput(ZeroCopyOutputStream* output, in WriteToOutput() argument 139 if (!output->Next(&out, &out_size)) { in WriteToOutput() 146 output->BackUp(out_size - in_size); in WriteToOutput() 193 void IoTest::WriteString(ZeroCopyOutputStream* output, const string& str) { in WriteString() argument 194 EXPECT_TRUE(WriteToOutput(output, str.c_str(), str.size())); in WriteString() 204 int IoTest::WriteStuff(ZeroCopyOutputStream* output) { in WriteStuff() argument [all …]
|