/external/google-breakpad/src/processor/ |
D | synth_minidump_unittest.cc | 63 string contents; in TEST() local 64 ASSERT_TRUE(section.GetContents(&contents)); in TEST() 65 EXPECT_EQ(string("\x78\x56\x34\x12", 4), contents); in TEST() 75 string contents; in TEST() local 76 ASSERT_TRUE(section1.GetContents(&contents)); in TEST() 78 EXPECT_EQ(expected, contents); in TEST() 89 string contents; in TEST() local 90 ASSERT_TRUE(section.GetContents(&contents)); in TEST() 96 EXPECT_EQ(expected, contents); in TEST() 107 string contents; in TEST() local [all …]
|
/external/google-breakpad/src/common/ |
D | test_assembler_unittest.cc | 734 string contents; member in SectionFixture 767 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F() 768 ASSERT_EQ(sizeof(data), contents.size()); in TEST_F() 769 EXPECT_TRUE(0 == memcmp(contents.data(), (const char *) data, sizeof(data))); in TEST_F() 775 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F() 776 ASSERT_EQ(2 * sizeof(data), contents.size()); in TEST_F() 777 ASSERT_TRUE(0 == memcmp(contents.data(), (const char *) data, sizeof(data))); in TEST_F() 778 ASSERT_TRUE(0 == memcmp(contents.data() + sizeof(data), in TEST_F() 787 ASSERT_TRUE(section.GetContents(&contents)); in TEST_F() 788 ASSERT_STREQ(contents.c_str(), "howdy there"); in TEST_F() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | BenchmarkHelpers.java | 42 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument 43 return new HashSet<E>(contents); in create() 47 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument 48 return new LinkedHashSet<E>(contents); in create() 52 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument 53 return new TreeSet<E>(contents); in create() 57 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument 58 return Collections.unmodifiableSet(new HashSet<E>(contents)); in create() 62 @Override <E extends Comparable<E>> Set<E> create(Collection<E> contents) { in create() argument 63 return Collections.synchronizedSet(new HashSet<E>(contents)); in create() [all …]
|
D | FilteredCollectionsTest.java | 70 abstract C createUnfiltered(Iterable<Integer> contents); in createUnfiltered() argument 75 for (List<Integer> contents : SAMPLE_INPUTS) { in testIterationOrderPreserved() 76 C unfiltered = createUnfiltered(contents); in testIterationOrderPreserved() 95 for (List<Integer> contents : SAMPLE_INPUTS) { in testReadsThroughAdd() 96 C unfiltered = createUnfiltered(contents); in testReadsThroughAdd() 100 List<Integer> target = Lists.newArrayList(contents); in testReadsThroughAdd() 109 for (List<Integer> contents : SAMPLE_INPUTS) { in testAdd() 111 boolean expectedResult = createUnfiltered(contents).add(toAdd); in testAdd() 113 C filtered = filter(createUnfiltered(contents), EVEN); in testAdd() 125 for (List<Integer> contents : SAMPLE_INPUTS) { in testRemove() [all …]
|
/external/boringssl/src/ssl/ |
D | t1_lib.cc | 535 CBS *contents); 538 CBS *contents); 543 CBS *contents) { in forbid_parse_serverhello() argument 544 if (contents != NULL) { in forbid_parse_serverhello() 555 CBS *contents) { in ignore_parse_clienthello() argument 561 CBS *contents) { in ignore_parse_serverhello() argument 579 CBB contents, server_name_list, name; in ext_sni_add_clienthello() local 581 !CBB_add_u16_length_prefixed(out, &contents) || in ext_sni_add_clienthello() 582 !CBB_add_u16_length_prefixed(&contents, &server_name_list) || in ext_sni_add_clienthello() 595 CBS *contents) { in ext_sni_parse_serverhello() argument [all …]
|
/external/pdfium/fxbarcode/oned/ |
D | BC_OnedCode128Writer.cpp | 87 const WideStringView& contents) { in CheckContentValidity() argument 88 for (const auto& ch : contents) { in CheckContentValidity() 97 const WideStringView& contents) { in FilterContents() argument 99 for (size_t i = 0; i < contents.GetLength(); i++) { in FilterContents() 100 wchar_t ch = contents[i]; in FilterContents() 124 uint8_t* CBC_OnedCode128Writer::EncodeWithHint(const ByteString& contents, in EncodeWithHint() argument 131 return CBC_OneDimWriter::EncodeWithHint(contents, format, outWidth, outHeight, in EncodeWithHint() 135 uint8_t* CBC_OnedCode128Writer::EncodeImpl(const ByteString& contents, in EncodeImpl() argument 137 if (contents.GetLength() < 1 || contents.GetLength() > 80) in EncodeImpl() 143 checkSum = Encode128B(contents, &patterns); in EncodeImpl() [all …]
|
D | BC_OnedCode39Writer.cpp | 60 const WideStringView& contents) { in CheckContentValidity() argument 61 for (size_t i = 0; i < contents.GetLength(); i++) { in CheckContentValidity() 62 wchar_t ch = contents[i]; in CheckContentValidity() 74 const WideStringView& contents) { in FilterContents() argument 76 for (size_t i = 0; i < contents.GetLength(); i++) { in FilterContents() 77 wchar_t ch = contents[i]; in FilterContents() 78 if (ch == L'*' && (i == 0 || i == contents.GetLength() - 1)) { in FilterContents() 96 const WideStringView& contents) { in RenderTextContents() argument 98 for (size_t i = 0; i < contents.GetLength(); i++) { in RenderTextContents() 99 wchar_t ch = contents[i]; in RenderTextContents() [all …]
|
D | BC_OnedCodaBarWriter.cpp | 103 const WideStringView& contents) { in CheckContentValidity() argument 105 contents.begin(), contents.end(), in CheckContentValidity() 110 const WideStringView& contents) { in FilterContents() argument 113 for (size_t index = 0; index < contents.GetLength(); index++) { in FilterContents() 114 ch = contents[index]; in FilterContents() 126 uint8_t* CBC_OnedCodaBarWriter::EncodeWithHint(const ByteString& contents, in EncodeWithHint() argument 133 return CBC_OneDimWriter::EncodeWithHint(contents, format, outWidth, outHeight, in EncodeWithHint() 137 uint8_t* CBC_OnedCodaBarWriter::EncodeImpl(const ByteString& contents, in EncodeImpl() argument 139 ByteString data = m_chStart + contents + m_chEnd; in EncodeImpl() 196 const WideStringView& contents) { in encodedContents() argument [all …]
|
D | BC_OnedEAN8Writer.cpp | 66 bool CBC_OnedEAN8Writer::CheckContentValidity(const WideStringView& contents) { in CheckContentValidity() argument 67 return std::all_of(contents.begin(), contents.end(), std::iswdigit); in CheckContentValidity() 70 WideString CBC_OnedEAN8Writer::FilterContents(const WideStringView& contents) { in FilterContents() argument 73 for (size_t i = 0; i < contents.GetLength(); i++) { in FilterContents() 74 ch = contents[i]; in FilterContents() 86 int32_t CBC_OnedEAN8Writer::CalcChecksum(const ByteString& contents) { in CalcChecksum() argument 87 return EANCalcChecksum(contents); in CalcChecksum() 90 uint8_t* CBC_OnedEAN8Writer::EncodeWithHint(const ByteString& contents, in EncodeWithHint() argument 97 return CBC_OneDimWriter::EncodeWithHint(contents, format, outWidth, outHeight, in EncodeWithHint() 101 uint8_t* CBC_OnedEAN8Writer::EncodeImpl(const ByteString& contents, in EncodeImpl() argument [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | MinimalCollection.java | 36 public static <E> MinimalCollection<E> of(E... contents) { in of() argument 37 return new MinimalCollection<E>(Object.class, true, contents); in of() 42 Class<? super E> type, E... contents) { in ofClassAndContents() argument 43 return new MinimalCollection<E>(type, true, contents); in ofClassAndContents() 46 private final E[] contents; field in MinimalCollection 51 MinimalCollection(Class<? super E> type, boolean allowNulls, E... contents) { in MinimalCollection() argument 53 this.contents = Platform.clone(contents); in MinimalCollection() 58 for (Object element : contents) { in MinimalCollection() 67 return contents.length; in size() 78 return Arrays.asList(contents).contains(object); in contains() [all …]
|
/external/mockftpserver/tags/2.x_Before_IDEA/src/main/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntry.groovy | 53 * Construct a new instance with the specified path and file contents 55 * @param contents - the contents of the file, as a String 57 FileEntry(String path, String contents) { 59 setContents(contents) 79 * Set the contents of the file represented by this entry 80 * @param contents - the String whose bytes are used as the contents 82 void setContents(String contents) { 83 assert contents != null 84 setContentsInternal(contents.getBytes()) 88 * Set the contents of the file represented by this entry [all …]
|
/external/boringssl/src/crypto/bytestring/ |
D | bytestring_test.cc | 121 CBS data, contents; in TEST() local 129 ASSERT_TRUE(CBS_get_asn1(&data, &contents, CBS_ASN1_SEQUENCE)); in TEST() 130 EXPECT_EQ(Bytes("\x01\x02"), Bytes(CBS_data(&contents), CBS_len(&contents))); in TEST() 134 EXPECT_FALSE(CBS_get_asn1(&data, &contents, CBS_ASN1_SEQUENCE)); in TEST() 138 EXPECT_FALSE(CBS_get_asn1(&data, &contents, CBS_ASN1_SEQUENCE)); in TEST() 142 EXPECT_FALSE(CBS_get_asn1(&data, &contents, CBS_ASN1_SEQUENCE)); in TEST() 146 EXPECT_FALSE(CBS_get_asn1(&data, &contents, CBS_ASN1_SEQUENCE)); in TEST() 150 EXPECT_FALSE(CBS_get_asn1(&data, &contents, 0x31)); in TEST() 159 &data, &contents, &present, in TEST() 163 &data, &contents, &present, in TEST() [all …]
|
D | ber.c | 67 CBS contents; in cbs_find_ber() local 71 if (!CBS_get_any_ber_asn1_element(&in, &contents, &tag, &header_len)) { in cbs_find_ber() 74 if (CBS_len(&contents) == header_len && in cbs_find_ber() 76 CBS_data(&contents)[header_len-1] == 0x80) { in cbs_find_ber() 87 if (!CBS_skip(&contents, header_len) || in cbs_find_ber() 88 !cbs_find_ber(&contents, ber_found, depth + 1)) { in cbs_find_ber() 99 static char is_eoc(size_t header_len, CBS *contents) { in is_eoc() argument 100 return header_len == 2 && CBS_len(contents) == 2 && in is_eoc() 101 OPENSSL_memcmp(CBS_data(contents), "\x00\x00", 2) == 0; in is_eoc() 120 CBS contents; in cbs_convert_ber() local [all …]
|
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 96 public void setContents(byte[] contents) { in setContents() argument 99 if (contents != null) { in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument 173 this.bytes = contents; in setContentsInternal()
|
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 96 public void setContents(byte[] contents) { in setContents() argument 99 if (contents != null) { in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument 173 this.bytes = contents; in setContentsInternal()
|
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 96 public void setContents(byte[] contents) { in setContents() argument 99 if (contents != null) { in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument 173 this.bytes = contents; in setContentsInternal()
|
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 96 public void setContents(byte[] contents) { in setContents() argument 99 if (contents != null) { in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument 173 this.bytes = contents; in setContentsInternal()
|
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 96 public void setContents(byte[] contents) { in setContents() argument 99 if (contents != null) { in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument 173 this.bytes = contents; in setContentsInternal()
|
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 96 public void setContents(byte[] contents) { in setContents() argument 99 if (contents != null) { in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument 173 this.bytes = contents; in setContentsInternal()
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 96 public void setContents(byte[] contents) { in setContents() argument 99 if (contents != null) { in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument 173 this.bytes = contents; in setContentsInternal()
|
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 58 public FileEntry(String path, String contents) { in FileEntry() argument 60 setContents(contents); in FileEntry() 86 public void setContents(String contents) { in setContents() argument 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 96 public void setContents(byte[] contents) { in setContents() argument 99 if (contents != null) { in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 172 private void setContentsInternal(byte[] contents) { in setContentsInternal() argument 173 this.bytes = contents; in setContentsInternal()
|
/external/tensorflow/tensorflow/contrib/ffmpeg/ |
D | encode_audio_op.cc | 31 void Encode(OpKernelContext* context, const Tensor& contents, in Encode() argument 35 samples.reserve(contents.NumElements()); in Encode() 36 for (int32 i = 0; i < contents.NumElements(); ++i) { in Encode() 37 samples.push_back(contents.flat<float>()(i)); in Encode() 39 const int32 channel_count = contents.dim_size(1); in Encode() 68 const Tensor& contents = context->input(0); in Compute() local 73 OP_REQUIRES(context, TensorShapeUtils::IsMatrix(contents.shape()), in Compute() 76 contents.shape().DebugString())); in Compute() 78 context, contents.NumElements() <= std::numeric_limits<int32>::max(), in Compute() 81 contents.shape().DebugString())); in Compute() [all …]
|
/external/curl/src/ |
D | tool_formparse.c | 558 char *contents = NULL; in formparse() local 580 contents = strdup(input); in formparse() 581 if(!contents) { in formparse() 587 contp = strchr(contents, '='); in formparse() 589 if(contp > contents) in formparse() 590 name = contents; in formparse() 600 Curl_safefree(contents); in formparse() 607 Curl_safefree(contents); in formparse() 615 Curl_safefree(contents); in formparse() 622 Curl_safefree(contents); in formparse() [all …]
|
/external/bsdiff/ |
D | test_utils.cc | 82 bool WriteFile(const std::string& path, vector<uint8_t> contents) { in WriteFile() argument 86 size_t written = fwrite(contents.data(), 1, contents.size(), fp); in WriteFile() 87 bool result = written == contents.size() && !ferror(fp); in WriteFile() 103 vector<uint8_t> contents; in LoadFromFile() local 104 if (!ReadFile(filename, &contents)) in LoadFromFile() 106 file_size = contents.size(); in LoadFromFile() 108 TEST_AND_RETURN_FALSE(contents.size() >= kHeaderSize); in LoadFromFile() 109 magic = std::string(contents.data(), contents.data() + 8); in LoadFromFile() 110 memcpy(&ctrl_len, contents.data() + 8, sizeof(ctrl_len)); in LoadFromFile() 111 memcpy(&diff_len, contents.data() + 16, sizeof(diff_len)); in LoadFromFile() [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | io_ops_test.py | 35 for contents in cases: 36 contents = compat.as_bytes(contents) 39 temp.write(contents) 43 self.assertEqual(read.eval(), contents) 48 for contents in cases: 49 contents = compat.as_bytes(contents) 55 w = io_ops.write_file(temp.name, contents) 59 self.assertEqual(file_contents, contents) 64 for contents in cases: 65 contents = compat.as_bytes(contents) [all …]
|