Home
last modified time | relevance | path

Searched refs:newBuffer (Results 1 – 25 of 65) sorted by relevance

123

/external/webrtc/sdk/android/src/java/org/webrtc/
DNV21Buffer.java59 JavaI420Buffer newBuffer = JavaI420Buffer.allocate(scaleWidth, scaleHeight); in cropAndScale() local
61 height, newBuffer.getDataY(), newBuffer.getStrideY(), newBuffer.getDataU(), in cropAndScale()
62 newBuffer.getStrideU(), newBuffer.getDataV(), newBuffer.getStrideV()); in cropAndScale()
63 return newBuffer; in cropAndScale()
DNV12Buffer.java62 JavaI420Buffer newBuffer = JavaI420Buffer.allocate(scaleWidth, scaleHeight); in cropAndScale() local
64 height, stride, sliceHeight, newBuffer.getDataY(), newBuffer.getStrideY(), in cropAndScale()
65 newBuffer.getDataU(), newBuffer.getStrideU(), newBuffer.getDataV(), newBuffer.getStrideV()); in cropAndScale()
66 return newBuffer; in cropAndScale()
/external/okio/okio/src/jvmTest/kotlin/okio/
DBufferFactory.kt24 override fun newBuffer(): Buffer { in newBuffer() method in okio.BufferFactory
30 override fun newBuffer(): Buffer { in newBuffer() method in okio.BufferFactory
37 override fun newBuffer(): Buffer { in newBuffer() method in okio.BufferFactory
44 override fun newBuffer(): Buffer { in newBuffer() method in okio.BufferFactory
55 override fun newBuffer(): Buffer { in newBuffer() method in okio.BufferFactory
65 abstract fun newBuffer(): Buffer method in okio.BufferFactory
DBufferCursorKotlinTest.kt45 val buffer = deepCopy(bufferFactory.newBuffer()) in <lambda>()
58 val buffer = deepCopy(bufferFactory.newBuffer()) in <lambda>()
71 val buffer = deepCopy(bufferFactory.newBuffer()) in <lambda>()
84 val buffer = bufferFactory.newBuffer() in <lambda>()
115 val buffer1 = bufferFactory.newBuffer() in <lambda>()
122 val buffer2 = bufferFactory.newBuffer() in <lambda>()
/external/okio/okio/src/jvmTest/java/okio/
DBufferCursorTest.java76 Buffer buffer = bufferFactory.newBuffer(); in accessSegmentBySegment()
87 Buffer buffer = bufferFactory.newBuffer(); in seekToNegativeOneSeeksBeforeFirstSegment()
101 Buffer buffer = bufferFactory.newBuffer(); in accessByteByByte()
113 Buffer buffer = bufferFactory.newBuffer(); in accessByteByByteReverse()
125 Buffer buffer = bufferFactory.newBuffer(); in accessByteByByteAlwaysResettingToZero()
138 Buffer buffer = bufferFactory.newBuffer(); in segmentBySegmentNavigation()
158 Buffer buffer = bufferFactory.newBuffer(); in seekWithinSegment()
174 Buffer buffer = bufferFactory.newBuffer(); in acquireAndRelease()
194 Buffer buffer = bufferFactory.newBuffer(); in doubleAcquire()
212 Buffer buffer = bufferFactory.newBuffer(); in releaseAfterRelease()
[all …]
/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/
DBufferType.java28 ByteBuffer newBuffer(int size) { in newBuffer() method
34 ByteBuffer newBuffer(int size) { in newBuffer() method
39 abstract ByteBuffer newBuffer(int size); in newBuffer() method in BufferType
42 return newBuffer(engine.getSession().getApplicationBufferSize()); in newApplicationBuffer()
46 return newBuffer(engine.getSession().getPacketBufferSize()); in newPacketBuffer()
/external/conscrypt/repackaged/benchmark-base/src/main/java/com/android/org/conscrypt/
DBufferType.java30 ByteBuffer newBuffer(int size) { in newBuffer() method
36 ByteBuffer newBuffer(int size) { in newBuffer() method
41 abstract ByteBuffer newBuffer(int size); in newBuffer() method in BufferType
44 return newBuffer(engine.getSession().getApplicationBufferSize()); in newApplicationBuffer()
48 return newBuffer(engine.getSession().getPacketBufferSize()); in newPacketBuffer()
/external/lzma/CPP/Common/
DMyBuffer.h80 T *newBuffer = NULL; in ChangeSize_KeepData() local
83 newBuffer = new T[newSize]; in ChangeSize_KeepData()
87 memcpy(newBuffer, _items, MyMin(keepSize, newSize) * sizeof(T)); in ChangeSize_KeepData()
90 _items = newBuffer; in ChangeSize_KeepData()
229 T *newBuffer = NULL; in SetSize() local
232 MY_ARRAY_NEW(newBuffer, T, size) in SetSize()
236 _items = newBuffer; in SetSize()
DDynamicBuffer.h28 T *newBuffer = new T[newCap]; in Grow() local
30 memcpy(newBuffer, _items, _pos * sizeof(T)); in Grow()
32 _items = newBuffer; in Grow()
/external/webrtc/sdk/android/api/org/webrtc/
DJavaI420Buffer.java187 JavaI420Buffer newBuffer = JavaI420Buffer.allocate(scaleWidth, scaleHeight); in cropAndScaleI420() local
190 cropHeight, newBuffer.getDataY(), newBuffer.getStrideY(), newBuffer.getDataU(), in cropAndScaleI420()
191 newBuffer.getStrideU(), newBuffer.getDataV(), newBuffer.getStrideV(), scaleWidth, in cropAndScaleI420()
193 return newBuffer; in cropAndScaleI420()
/external/skia/src/gpu/
DGrStagingBufferManager.cpp32 sk_sp<GrGpuBuffer> newBuffer = resourceProvider->createBuffer( in allocateStagingBufferSlice() local
34 if (!newBuffer) { in allocateStagingBufferSlice()
37 void* mapPtr = newBuffer->map(); in allocateStagingBufferSlice()
41 fBuffers.emplace_back(std::move(newBuffer), mapPtr); in allocateStagingBufferSlice()
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DUVector64.java45 long[] newBuffer = new long[newCapacity]; in ensureAppendCapacity() local
46 System.arraycopy(buffer, 0, newBuffer, 0, length); in ensureAppendCapacity()
47 buffer = newBuffer; in ensureAppendCapacity()
DUVector32.java45 int[] newBuffer = new int[newCapacity]; in ensureAppendCapacity() local
46 System.arraycopy(buffer, 0, newBuffer, 0, length); in ensureAppendCapacity()
47 buffer = newBuffer; in ensureAppendCapacity()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DUVector32.java41 int[] newBuffer = new int[newCapacity]; in ensureAppendCapacity() local
42 System.arraycopy(buffer, 0, newBuffer, 0, length); in ensureAppendCapacity()
43 buffer = newBuffer; in ensureAppendCapacity()
DUVector64.java41 long[] newBuffer = new long[newCapacity]; in ensureAppendCapacity() local
42 System.arraycopy(buffer, 0, newBuffer, 0, length); in ensureAppendCapacity()
43 buffer = newBuffer; in ensureAppendCapacity()
/external/adhd/scripts/mic_testing/frontend/
Dsource.js213 var newBuffer = this.audioContext.createBuffer(buffer.numberOfChannels,
215 copyBuffer(appendTone, newBuffer, 0);
216 copyBuffer(buffer, newBuffer, appendTone.length);
217 copyBuffer(appendTone, newBuffer, appendTone.length + buffer.length);
218 this.buffer = newBuffer;
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DConscryptEngineTest.java66 ByteBuffer newBuffer(int size) { in BufferAllocator.unpooled() method
72 ByteBuffer newBuffer(int size) { in HEAP_NO_ALLOCATOR() method
78 ByteBuffer newBuffer(int size) { in DIRECT() method
83 abstract ByteBuffer newBuffer(int size); in newBuffer() method in ConscryptEngineTest.BufferType
163 ByteBuffer drain = bufferType.newBuffer( in closingOutboundAfterHandshakeShouldOnlyCloseOutbound()
430 bufferType.newBuffer(clientEngine.getSession().getApplicationBufferSize()); in doHandshake()
432 bufferType.newBuffer(clientEngine.getSession().getPacketBufferSize()); in doHandshake()
434 bufferType.newBuffer(serverEngine.getSession().getApplicationBufferSize()); in doHandshake()
436 bufferType.newBuffer(serverEngine.getSession().getPacketBufferSize()); in doHandshake()
487 bufferType.newBuffer(engine.getSession().getPacketBufferSize()); in wrap()
[all …]
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DConscryptEngineTest.java73 ByteBuffer newBuffer(int size) { in BufferAllocator.unpooled() method
79 ByteBuffer newBuffer(int size) { in HEAP_NO_ALLOCATOR() method
85 ByteBuffer newBuffer(int size) { in DIRECT() method
90 abstract ByteBuffer newBuffer(int size); in newBuffer() method in ConscryptEngineTest.BufferType
171 bufferType.newBuffer(Math.max(clientEngine.getSession().getPacketBufferSize(), in closingOutboundAfterHandshakeShouldOnlyCloseOutbound()
439 bufferType.newBuffer(clientEngine.getSession().getApplicationBufferSize()); in doHandshake()
441 bufferType.newBuffer(clientEngine.getSession().getPacketBufferSize()); in doHandshake()
443 bufferType.newBuffer(serverEngine.getSession().getApplicationBufferSize()); in doHandshake()
445 bufferType.newBuffer(serverEngine.getSession().getPacketBufferSize()); in doHandshake()
496 bufferType.newBuffer(engine.getSession().getPacketBufferSize()); in wrap()
[all …]
/external/icu/icu4c/source/i18n/
Ducoleitr.cpp94 RCEI *newBuffer = NEW_ARRAY(RCEI, bufferSize + BUFFER_GROW); in put() local
95 if (newBuffer == NULL) { in put()
100 ARRAY_COPY(newBuffer, buffer, bufferSize); in put()
106 buffer = newBuffer; in put()
156 PCEI *newBuffer = NEW_ARRAY(PCEI, bufferSize + BUFFER_GROW); in put() local
157 if (newBuffer == NULL) { in put()
162 ARRAY_COPY(newBuffer, buffer, bufferSize); in put()
168 buffer = newBuffer; in put()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DCompositeReadableBuffer.java141 CompositeReadableBuffer newBuffer = new CompositeReadableBuffer(); in readBytes() local
145 newBuffer.addBuffer(buffer.readBytes(length)); in readBytes()
148 newBuffer.addBuffer(buffers.poll()); in readBytes()
152 return newBuffer; in readBytes()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLSignatureRawECDSA.java104 byte[] newBuffer = new byte[bytes_written]; in engineSign()
105 System.arraycopy(outputBuffer, 0, newBuffer, 0, bytes_written); in engineSign()
106 outputBuffer = newBuffer; in engineSign()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLSignatureRawECDSA.java102 byte[] newBuffer = new byte[bytes_written]; in engineSign()
103 System.arraycopy(outputBuffer, 0, newBuffer, 0, bytes_written); in engineSign()
104 outputBuffer = newBuffer; in engineSign()
/external/angle/src/libANGLE/
DResourceManager_unittest.cpp60 BufferID newBuffer = mBufferManager->createBuffer(); in TEST_F() local
61 EXPECT_NE(1u, newBuffer.value); in TEST_F()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DReadableBufferTestBase.java111 ReadableBuffer newBuffer = buffer.readBytes(2); in partialReadToReadableBufferShouldSucceed() local
112 assertEquals(2, newBuffer.readableBytes()); in partialReadToReadableBufferShouldSucceed()
115 newBuffer.readBytes(array, 0, 2); in partialReadToReadableBufferShouldSucceed()
/external/icu/icu4c/source/common/
Dustr_wcs.cpp44 char *newBuffer=(char *)uprv_malloc(reqCapacity*size); in u_growAnyBufferFromStatic() local
45 if(newBuffer!=NULL) { in u_growAnyBufferFromStatic()
47 uprv_memcpy(newBuffer, *pBuffer, (size_t)length*size); in u_growAnyBufferFromStatic()
59 *pBuffer=newBuffer; in u_growAnyBufferFromStatic()
60 return (UBool)(newBuffer!=NULL); in u_growAnyBufferFromStatic()

123