Home
last modified time | relevance | path

Searched refs:copyTo (Results 1 – 25 of 140) sorted by relevance

123456

/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/
DTensorTest.java94 tensor.copyTo(parsedOutputs); in testCopyTo()
103 tensor.copyTo(null); in testCopyToNull()
114 tensor.copyTo(parsedOutput); in testCopyToByteBuffer()
128 tensor.copyTo(parsedOutput); in testCopyToLargerByteBuffer()
141 tensor.copyTo(parsedOutput); in testCopyToByteBufferAsFloatBuffer()
151 tensor.copyTo(parsedOutput); in testCopyToFloatBuffer()
163 tensor.copyTo(parsedOutput); in testCopyToIntBuffer()
172 tensor.copyTo(parsedOutput); in testCopyToLongBuffer()
180 tensor.copyTo(parsedOutput); in testCopyToInvalidByteBuffer()
191 tensor.copyTo(parsedOutput); in testCopyToInvalidTypedBuffer()
[all …]
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/
DTensorTest.java63 boolean[] actual = t.copyTo(new boolean[bools_.length]); in createWithByteBuffer()
82 assertArrayEquals(doubles, t.copyTo(actual), EPSILON); in createWithByteBuffer()
109 assertArrayEquals(doubles, t.copyTo(actual), EPSILON); in createFromBufferWithNonNativeByteOrder()
125 assertArrayEquals(doubles, t.copyTo(actual), EPSILON); in createWithTypedBuffer()
129 assertArrayEquals(floats, t.copyTo(actual), EPSILON_F); in createWithTypedBuffer()
133 assertArrayEquals(ints, t.copyTo(actual)); in createWithTypedBuffer()
137 assertArrayEquals(longs, t.copyTo(actual)); in createWithTypedBuffer()
355 assertArrayEquals(vector, t.copyTo(got), EPSILON); in nDimensional()
365 assertArrayEquals(matrix, t.copyTo(got)); in nDimensional()
377 assertArrayEquals(threeD, t.copyTo(got)); in nDimensional()
[all …]
DSessionTest.java41 assertArrayEquals(expected, outputs.get(0).copyTo(new int[1][1])); in runUsingOperationNames()
58 assertArrayEquals(expected, outputs.get(0).copyTo(new int[1][1])); in runUsingOperationHandles()
82 assertArrayEquals(expected, fetched.copyTo(new int[2])); in runUsingColonSeparatedNames()
95 assertArrayEquals(expected, fetched.copyTo(new int[4])); in runUsingColonSeparatedNames()
116 assertArrayEquals(expected, outputs.get(0).copyTo(new int[1][1])); in runWithMetadata()
/external/okio/okio/src/commonTest/kotlin/okio/
DBufferCommonTest.kt29 source.copyTo(target) in copyToBuffer()
39 source.copyTo(target, 2) in copyToBufferWithOffset()
49 source.copyTo(target, 0, 3) in copyToBufferWithByteCount()
59 source.copyTo(target, 1, 3) in copyToBufferWithOffsetAndByteCount()
DCommonBufferTest.kt351 @Test fun copyTo() { in copyTo() method in okio.CommonBufferTest
356 source.copyTo(target, 1, 3) in copyTo()
376 source.copyTo(target, `as`.length.toLong(), (bs.length + cs.length).toLong()) in copyToOnSegmentBoundary()
394 source.copyTo(target, `as`.length.toLong(), (bs.length + cs.length).toLong()) in copyToOffSegmentBoundary()
406 source.copyTo(source, 0, source.size) in copyToSourceAndTargetCanBeTheSame()
413 source.copyTo(target, 0L, 0L) in copyToEmptySource()
421 source.copyTo(target, 0L, 3L) in copyToEmptyTarget()
/external/okio/okio/src/jvmTest/kotlin/okio/
DBufferKotlinTest.kt41 source.copyTo(target.outputStream()) in copyToOutputStream()
51 source.copyTo(target.outputStream(), offset = 2) in copyToOutputStreamWithOffset()
61 source.copyTo(target.outputStream(), byteCount = 3) in copyToOutputStreamWithByteCount()
71 source.copyTo(target.outputStream(), offset = 1, byteCount = 3) in copyToOutputStreamWithOffsetAndByteCount()
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/op/core/
DZerosTest.java45 int[][] actual = result.expect(Integer.class).copyTo(new int[(int)shape[0]][(int)shape[1]]); in createIntZeros()
63 … float[][] actual = result.expect(Float.class).copyTo(new float[(int)shape[0]][(int)shape[1]]); in createFloatZeros()
81 … double[][] actual = result.expect(Double.class).copyTo(new double[(int)shape[0]][(int)shape[1]]); in createDoubleZeros()
99 long[][] actual = result.expect(Long.class).copyTo(new long[(int)shape[0]][(int)shape[1]]); in createLongZeros()
117 …boolean[][] actual = result.expect(Boolean.class).copyTo(new boolean[(int)shape[0]][(int)shape[1]]… in createBooleanZeros()
135 byte[][] actual = result.expect(UInt8.class).copyTo(new byte[(int)shape[0]][(int)shape[1]]); in createUInt8Zeros()
136 result.copyTo(actual); in createUInt8Zeros()
DConstantTest.java67 assertArrayEquals(ints, result.expect(Integer.class).copyTo(actual)); in createIntBuffer()
97 assertArrayEquals(floats, result.expect(Float.class).copyTo(actual), EPSILON); in createFloatBuffer()
127 assertArrayEquals(doubles, result.expect(Double.class).copyTo(actual), EPSILON); in createDoubleBuffer()
157 assertArrayEquals(longs, result.expect(Long.class).copyTo(actual)); in createLongBuffer()
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DLiteralByteStringTest.java121 stringUnderTest.copyTo(destination, sourceOffset, destinationOffset, length); in testCopyTo_ByteArrayOffsetLength()
136 stringUnderTest.copyTo(destination, stringUnderTest.size() + 1 - length, in testCopyTo_ByteArrayOffsetLengthErrors()
146 stringUnderTest.copyTo(destination, -1, destinationOffset, length); in testCopyTo_ByteArrayOffsetLengthErrors()
155 stringUnderTest.copyTo(destination, 0, -1, length); in testCopyTo_ByteArrayOffsetLengthErrors()
164 stringUnderTest.copyTo(destination, 0, 0, -1); in testCopyTo_ByteArrayOffsetLengthErrors()
173 stringUnderTest.copyTo(destination, 2 * stringUnderTest.size(), 0, length); in testCopyTo_ByteArrayOffsetLengthErrors()
182 stringUnderTest.copyTo(destination, 0, 2 * destination.length, length); in testCopyTo_ByteArrayOffsetLengthErrors()
192 stringUnderTest.copyTo(myBuffer); in testCopyTo_ByteBuffer()
/external/guava/android/guava-tests/test/com/google/common/io/
DCharSourceTest.java93 assertEquals(STRING.length(), source.copyTo(builder)); in testCopyTo_appendable()
104 assertEquals(STRING.length(), source.copyTo(sink)); in testCopyTo_charSink()
175 source.copyTo(writer); in testCopyToAppendable_doesNotCloseIfWriter()
183 okSource.copyTo(new TestCharSink(option)); in testClosesOnErrors_copyingToCharSinkThatThrows()
198 failSource.copyTo(new TestCharSink()); in testClosesOnErrors_whenReadThrows()
208 okSource.copyTo(new TestWriter(WRITE_THROWS)); in testClosesOnErrors_copyingToWriterThatThrows()
328 in.copyTo(out); in runFailureTest()
337 in.copyTo(out); in runSuppressionFailureTest()
DByteSourceTest.java104 assertEquals(bytes.length, source.copyTo(out)); in testCopyTo_outputStream()
115 assertEquals(bytes.length, source.copyTo(sink)); in testCopyTo_byteSink()
314 source.copyTo(out); in testCopyToStream_doesNotCloseThatStream()
322 okSource.copyTo(new TestByteSink(option)); in testClosesOnErrors_copyingToByteSinkThatThrows()
337 failSource.copyTo(new TestByteSink()); in testClosesOnErrors_whenReadThrows()
348 okSource.copyTo(out); in testClosesOnErrors_copyingToOutputStreamThatThrows()
469 in.copyTo(out); in runFailureTest()
478 in.copyTo(out); in runSuppressionFailureTest()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DNioByteStringTest.java125 testString.copyTo(destination, sourceOffset, destinationOffset, length); in testCopyTo_ByteArrayOffsetLength()
140 testString.copyTo(destination, testString.size() + 1 - length, destinationOffset, length); in testCopyTo_ByteArrayOffsetLengthErrors()
148 testString.copyTo(destination, -1, destinationOffset, length); in testCopyTo_ByteArrayOffsetLengthErrors()
156 testString.copyTo(destination, 0, -1, length); in testCopyTo_ByteArrayOffsetLengthErrors()
166 testString.copyTo(destination, 0, 0, -1); in testCopyTo_ByteArrayOffsetLengthErrors()
174 testString.copyTo(destination, 2 * testString.size(), 0, length); in testCopyTo_ByteArrayOffsetLengthErrors()
184 testString.copyTo(destination, 0, 2 * destination.length, length); in testCopyTo_ByteArrayOffsetLengthErrors()
196 testString.copyTo(myBuffer); in testCopyTo_ByteBuffer()
203 testString.copyTo(myBuffer); in testCopyTo_ByteBuffer()
210 testString.copyTo(myBuffer); in testCopyTo_ByteBuffer()
[all …]
DLiteralByteStringTest.java136 stringUnderTest.copyTo(destination, sourceOffset, destinationOffset, length); in testCopyTo_ByteArrayOffsetLength()
151 stringUnderTest.copyTo( in testCopyTo_ByteArrayOffsetLengthErrors()
160 stringUnderTest.copyTo(destination, -1, destinationOffset, length); in testCopyTo_ByteArrayOffsetLengthErrors()
170 stringUnderTest.copyTo(destination, 0, -1, length); in testCopyTo_ByteArrayOffsetLengthErrors()
180 stringUnderTest.copyTo(destination, 0, 0, -1); in testCopyTo_ByteArrayOffsetLengthErrors()
188 stringUnderTest.copyTo(destination, 2 * stringUnderTest.size(), 0, length); in testCopyTo_ByteArrayOffsetLengthErrors()
198 stringUnderTest.copyTo(destination, 0, 2 * destination.length, length); in testCopyTo_ByteArrayOffsetLengthErrors()
209 stringUnderTest.copyTo(myBuffer); in testCopyTo_ByteBuffer()
/external/guava/guava-tests/test/com/google/common/io/
DCharSourceTest.java112 assertEquals(STRING.length(), source.copyTo(builder)); in testCopyTo_appendable()
123 assertEquals(STRING.length(), source.copyTo(sink)); in testCopyTo_charSink()
205 source.copyTo(writer); in testCopyToAppendable_doesNotCloseIfWriter()
213 okSource.copyTo(new TestCharSink(option)); in testClosesOnErrors_copyingToCharSinkThatThrows()
228 failSource.copyTo(new TestCharSink()); in testClosesOnErrors_whenReadThrows()
238 okSource.copyTo(new TestWriter(WRITE_THROWS)); in testClosesOnErrors_copyingToWriterThatThrows()
358 in.copyTo(out); in runFailureTest()
367 in.copyTo(out); in runSuppressionFailureTest()
DByteSourceTest.java104 assertEquals(bytes.length, source.copyTo(out)); in testCopyTo_outputStream()
115 assertEquals(bytes.length, source.copyTo(sink)); in testCopyTo_byteSink()
314 source.copyTo(out); in testCopyToStream_doesNotCloseThatStream()
322 okSource.copyTo(new TestByteSink(option)); in testClosesOnErrors_copyingToByteSinkThatThrows()
337 failSource.copyTo(new TestByteSink()); in testClosesOnErrors_whenReadThrows()
348 okSource.copyTo(out); in testClosesOnErrors_copyingToOutputStreamThatThrows()
469 in.copyTo(out); in runFailureTest()
478 in.copyTo(out); in runSuppressionFailureTest()
/external/parameter-framework/upstream/parameter/
DAreaConfiguration.cpp63 copyTo(pMainBlackboard, _pConfigurableElement->getOffset()); in restore()
141 copyTo(&pToAreaConfiguration->_blackboard, in copyToOuter()
175 void CAreaConfiguration::copyTo(CParameterBlackboard *pToBlackboard, size_t offset) const in copyTo() function in CAreaConfiguration
/external/swiftshader/src/Vulkan/
DVkBuffer.cpp99 void Buffer::copyTo(void *dstMemory, VkDeviceSize pSize, VkDeviceSize pOffset) const in copyTo() function in vk::Buffer
106 void Buffer::copyTo(Buffer *dstBuffer, const VkBufferCopy &pRegion) const in copyTo() function in vk::Buffer
108 copyTo(dstBuffer->getOffsetPointer(pRegion.dstOffset), pRegion.size, pRegion.srcOffset); in copyTo()
DVkBuffer.hpp35 void copyTo(void *dstMemory, VkDeviceSize size, VkDeviceSize offset) const;
36 void copyTo(Buffer *dstBuffer, const VkBufferCopy &pRegion) const;
/external/downloader/src/test/java/com/google/android/downloader/
DProtoFileDownloadDestinationTest.java124 CharSource.wrap(text).asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel)); in openByteChannel_fileEmpty()
143 CharSource.wrap(text2).asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel)); in openByteChannel_fileNonEmpty()
180 CharSource.wrap("swallowed").asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel1)); in clear_fileNonEmpty()
181 CharSource.wrap("replacement").asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel2)); in clear_fileNonEmpty()
DSimpleFileDownloadDestinationTest.java124 CharSource.wrap(text).asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel)); in openByteChannel_fileEmpty()
143 CharSource.wrap(text2).asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel)); in openByteChannel_fileNonEmpty()
180 CharSource.wrap("swallowed").asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel1)); in clear_fileNonEmpty()
181 CharSource.wrap("replacement").asByteSource(UTF_8).copyTo(Channels.newOutputStream(channel2)); in clear_fileNonEmpty()
/external/okio/okio/src/jvmTest/java/okio/
DBufferTest.java220 source.copyTo(out, 10, SEGMENT_SIZE * 3); in copyToSpanningSegments()
231 buffer.copyTo(out); in copyToStream()
501 @Test public void copyTo() { in copyTo() method in BufferTest
506 source.copyTo(target, 1, 3); in copyTo()
526 source.copyTo(target, as.length(), bs.length() + cs.length()); in copyToOnSegmentBoundary()
544 source.copyTo(target, as.length(), bs.length() + cs.length()); in copyToOffSegmentBoundary()
556 source.copyTo(source, 0, source.size()); in copyToSourceAndTargetCanBeTheSame()
563 source.copyTo(target, 0L, 0L); in copyToEmptySource()
571 source.copyTo(target, 0L, 3L); in copyToEmptyTarget()
/external/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonMCShuffler.cpp79 void HexagonMCShuffler::copyTo(MCInst &MCB) { in copyTo() function in HexagonMCShuffler
97 copyTo(MCB); in reshuffleTo()
162 MCS.copyTo(MCB); in HexagonMCShuffle()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonMCShuffler.cpp79 void HexagonMCShuffler::copyTo(MCInst &MCB) { in copyTo() function in HexagonMCShuffler
97 copyTo(MCB); in reshuffleTo()
162 MCS.copyTo(MCB); in HexagonMCShuffle()
/external/okhttp/okio/okio/src/test/java/okio/
DBufferTest.java238 source.copyTo(out, 10, Segment.SIZE * 3); in copyToSpanningSegments()
249 buffer.copyTo(out); in copyToStream()
513 @Test public void copyTo() throws Exception { in copyTo() method in BufferTest
518 source.copyTo(target, 1, 3); in copyTo()
538 source.copyTo(target, as.length(), bs.length() + cs.length()); in copyToOnSegmentBoundary()
556 source.copyTo(target, as.length(), bs.length() + cs.length()); in copyToOffSegmentBoundary()
568 source.copyTo(source, 0, source.size()); in copyToSourceAndTargetCanBeTheSame()
575 source.copyTo(target, 0L, 0L); in copyToEmptySource()
583 source.copyTo(target, 0L, 3L); in copyToEmptyTarget()
/external/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonMCShuffler.cpp77 void HexagonMCShuffler::copyTo(MCInst &MCB) { in copyTo() function in HexagonMCShuffler
94 copyTo(MCB); in reshuffleTo()
182 MCS.copyTo(MCB); in HexagonMCShuffle()

123456