/external/cronet/net/tools/huffman_trie/trie/ |
D | trie_bit_buffer_unittest.cc | 41 BitWriter writer2; in TEST() local 42 buffer.WriteToBitWriter(&writer2); in TEST() 43 EXPECT_EQ(11U, writer2.position()); in TEST() 45 writer2.Flush(); in TEST() 48 EXPECT_THAT(writer2.bytes(), testing::ElementsAre(0x55, 0x40)); in TEST() 74 BitWriter writer2; in TEST() local 75 buffer.WriteToBitWriter(&writer2); in TEST() 76 EXPECT_EQ(10U, writer2.position()); in TEST() 78 writer2.Flush(); in TEST() 81 EXPECT_THAT(writer2.bytes(), testing::ElementsAre(0x4A, 0x80)); in TEST()
|
/external/cronet/net/ntlm/ |
D | ntlm_buffer_writer_unittest.cc | 59 NtlmBufferWriter writer2(1); in TEST() local 60 ASSERT_EQ(1u, writer2.GetLength()); in TEST() 61 ASSERT_EQ(1u, writer2.GetBuffer().size()); in TEST() 62 ASSERT_EQ(0u, writer2.GetCursor()); in TEST() 63 ASSERT_NE(nullptr, GetBufferPtr(writer2)); in TEST() 65 ASSERT_TRUE(writer2.CanWrite(0)); in TEST() 66 ASSERT_TRUE(writer2.WriteBytes(b)); in TEST() 68 ASSERT_EQ(1u, writer2.GetLength()); in TEST() 69 ASSERT_EQ(1u, writer2.GetBuffer().size()); in TEST() 70 ASSERT_EQ(0u, writer2.GetCursor()); in TEST() [all …]
|
/external/apache-velocity-engine/velocity-engine-core/src/test/java/org/apache/velocity/test/ |
D | ContextSafetyTestCase.java | 117 Writer writer2 = new BufferedWriter(new OutputStreamWriter(fos2)); in testContextSafety() local 133 template.merge(context, writer2); in testContextSafety() 134 writer2.flush(); in testContextSafety() 135 writer2.close(); in testContextSafety()
|
D | InlineScopeVMTestCase.java | 110 Writer writer2 = new BufferedWriter(new OutputStreamWriter(fos2)); in testInlineScopeVM() local 122 template2.merge(context, writer2); in testInlineScopeVM() 123 writer2.flush(); in testInlineScopeVM() 124 writer2.close(); in testInlineScopeVM()
|
D | MultipleFileResourcePathTestCase.java | 120 Writer writer2 = new BufferedWriter(new OutputStreamWriter(fos2)); in testMultipleFileResources() local 132 template2.merge(context, writer2); in testMultipleFileResources() 133 writer2.flush(); in testMultipleFileResources() 134 writer2.close(); in testMultipleFileResources()
|
D | MultiLoaderTestCase.java | 187 Writer writer2 = new BufferedWriter(new OutputStreamWriter(fos2)); in testMultiLoader() local 200 template2.merge(context, writer2); in testMultiLoader() 201 writer2.flush(); in testMultiLoader() 202 writer2.close(); in testMultiLoader()
|
D | IncludeEventHandlingTestCase.java | 147 Writer writer2 = new BufferedWriter(new OutputStreamWriter(fos2)); in testIncludeEventHandling() local 177 template2.merge(context, writer2); in testIncludeEventHandling() 178 writer2.flush(); in testIncludeEventHandling() 179 writer2.close(); in testIncludeEventHandling()
|
/external/guava/android/guava-tests/test/com/google/common/io/ |
D | CharStreamsTest.java | 202 StringWriter writer2 = new StringWriter(); in testCopy_toWriter_fromReader() local 203 copied = CharStreams.copy(new StringReader(I18N), writer2); in testCopy_toWriter_fromReader() 204 assertEquals(I18N, writer2.toString()); in testCopy_toWriter_fromReader() 214 StringWriter writer2 = new StringWriter(); in testCopy_toWriter_fromReadable() local 215 copied = CharStreams.copy(wrapAsGenericReadable(new StringReader(I18N)), writer2); in testCopy_toWriter_fromReadable() 216 assertEquals(I18N, writer2.toString()); in testCopy_toWriter_fromReadable()
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | CharStreamsTest.java | 202 StringWriter writer2 = new StringWriter(); in testCopy_toWriter_fromReader() local 203 copied = CharStreams.copy(new StringReader(I18N), writer2); in testCopy_toWriter_fromReader() 204 assertEquals(I18N, writer2.toString()); in testCopy_toWriter_fromReader() 214 StringWriter writer2 = new StringWriter(); in testCopy_toWriter_fromReadable() local 215 copied = CharStreams.copy(wrapAsGenericReadable(new StringReader(I18N)), writer2); in testCopy_toWriter_fromReadable() 216 assertEquals(I18N, writer2.toString()); in testCopy_toWriter_fromReadable()
|
/external/perfetto/src/tracing/core/ |
D | shared_memory_arbiter_impl_unittest.cc | 260 std::unique_ptr<TraceWriter> writer2 = arbiter_->CreateTraceWriter(2); in TEST_P() local 261 EXPECT_TRUE(writer2); in TEST_P() 262 EXPECT_EQ(writer2->writer_id(), 0); in TEST_P() 443 std::unique_ptr<TraceWriter> writer2 = in TestStartupTracing() local 455 auto packet = writer2->NewTracePacket(); in TestStartupTracing() 459 writer2->Flush([&flush_completed] { flush_completed = true; }); in TestStartupTracing() 501 std::unique_ptr<TraceWriter> writer2 = in TestAbortStartupTracingForReservation() local 539 UnregisterTraceWriter(writer2->writer_id())) in TestAbortStartupTracingForReservation() 541 writer2.reset(); in TestAbortStartupTracingForReservation()
|
D | tracing_service_impl_unittest.cc | 780 auto writer2 = producer->CreateTraceWriter("ds_2"); in TEST_F() local 796 writer2->Flush(); in TEST_F() 2842 auto writer2 = producer2->CreateTraceWriter("ds_2A"); in TEST_F() local 2843 producer2->WaitForFlush(writer2.get()); in TEST_F() 3628 auto writer2 = producer->CreateTraceWriter("data_source"); in TEST_F() local 3637 writer2->NewTracePacket()->set_for_testing()->set_str(payload_512); in TEST_F() 3638 writer2->Flush(); in TEST_F() 3640 writer2->NewTracePacket()->set_for_testing()->set_str(payload_2k); in TEST_F() 3641 writer2->Flush(); in TEST_F() 3643 writer2->NewTracePacket()->set_for_testing()->set_str(payload_2k); in TEST_F() [all …]
|
/external/zucchini/ |
D | rel32_utils_unittest.cc | 220 auto writer2 = in TEST() local 223 writer2->PutNext({0x0008U, 0x0008U}); in TEST() 226 writer2->PutNext({0x0008U, 0x0010U}); in TEST() 482 auto writer2 = std::make_unique< in TEST() local 485 writer2->PutNext({0x0010U, 0x0000U}); in TEST() 490 writer2->PutNext({0x0018U, 0x001CU}); in TEST()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/ |
D | 3-1.c | 191 pthread_t writer1, reader, writer2; in main() local 269 if (pthread_create(&writer2, NULL, fn_wr_2, (void *)(long)priority) != in main() 362 if (pthread_join(writer2, NULL) != 0) { in main()
|
/external/cronet/net/third_party/quiche/src/quiche/quic/core/ |
D | quic_data_writer_test.cc | 303 QuicDataWriter writer2(ABSL_ARRAYSIZE(buffer), buffer); in TEST_P() local 304 EXPECT_TRUE(writer2.WriteUInt8(connection_id.length())); in TEST_P() 305 EXPECT_TRUE(writer2.WriteConnectionId(connection_id)); in TEST_P() 307 "Write length then ConnectionId", buffer, writer2.length(), in TEST_P() 552 QuicDataWriter writer2(8, buffer64, GetParam().endianness); in TEST_P() local 553 writer2.WriteUInt64(in_memory64); in TEST_P() 751 QuicDataWriter writer2(20, buffer2, quiche::NETWORK_BYTE_ORDER); in TEST_P() local 752 EXPECT_TRUE(writer2.WriteVarInt62(100)); in TEST_P()
|
D | quic_stream_send_buffer_test.cc | 94 QuicDataWriter writer2(4000, buf, quiche::HOST_BYTE_ORDER); in TEST_F() local 97 ASSERT_TRUE(send_buffer_.WriteStreamData(1000, 1024, &writer2)); in TEST_F() 99 ASSERT_TRUE(send_buffer_.WriteStreamData(2500, 1024, &writer2)); in TEST_F()
|
/external/jackson-databind/src/test/java/perf/ |
D | ObjectWriterTestBase.java | 31 final ObjectWriter writer2 = writer0.forType(inputClass2); in test() local 59 writer = writer2; in test()
|
/external/cronet/net/third_party/quiche/src/quiche/quic/masque/ |
D | masque_encapsulated_client.cc | 62 quiche::QuicheDataWriter writer2(writer_.capacity(), writer_.data()); in WriteChecksumAtOffset() local 63 return writer2.Seek(offset) && writer2.WriteUInt16(accumulator_); in WriteChecksumAtOffset()
|
/external/webrtc/test/pc/e2e/analyzer/video/ |
D | analyzing_video_sinks_helper_test.cc | 136 test::VideoFrameWriter* writer2 = in TEST() local 139 helper.CloseAndRemoveVideoWriters({writer1, writer2}); in TEST()
|
/external/tensorflow/tensorflow/python/summary/writer/ |
D | writer_test.py | 567 writer2 = writer.FileWriter(session=sess, logdir=logdir) 568 writer2.add_summary(self._createTaggedSummary("two"), 2) 569 writer2.flush() 619 writer2 = summary_ops_v2.create_file_writer(logdir=logdir) 620 with summary_ops_v2.always_record_summaries(), writer2.as_default(): 622 sess.run(writer2.init()) 624 sess.run(writer2.flush())
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ |
D | TestJDKSerialization.java | 135 ObjectWriter writer2 = jdkDeserialize(bytes); in testObjectWriter() local 136 assertEquals(EXP_JSON, writer2.writeValueAsString(p)); in testObjectWriter()
|
/external/gson/gson/src/test/java/com/google/gson/stream/ |
D | JsonWriterTest.java | 37 JsonWriter writer2 = new JsonWriter(string2); in testTopLevelValueTypes() local 38 writer2.nullValue(); in testTopLevelValueTypes() 39 writer2.close(); in testTopLevelValueTypes()
|
/external/python/cpython2/Lib/bsddb/test/ |
D | test_associate.py | 422 t2 = Thread(target = self.writer2, 438 def writer2(self, d): member in ThreadedAssociateTestCase
|
/external/cronet/net/third_party/quiche/src/quiche/common/ |
D | quiche_data_writer_test.cc | 223 QuicheDataWriter writer2(8, buffer64, GetParam().endianness); in TEST_P() local 224 writer2.WriteUInt64(in_memory64); in TEST_P()
|
/external/tensorflow/tensorflow/python/kernel_tests/summary_ops/ |
D | summary_ops_test.py | 870 writer2 = summary_ops.create_file_writer_v2(logdir) 871 with writer2.as_default(): 881 with writer2.as_default():
|