Home
last modified time | relevance | path

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

123

/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()
DEngineWrapBenchmark.java89 messageBuffer = bufferType.newBuffer(messageSize); in EngineWrapBenchmark()
98 preEncryptedBuffer = bufferType.newBuffer(clientEngine.getSession().getPacketBufferSize()); in EngineWrapBenchmark()
/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/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()
DCollationIterator.java58 long[] newBuffer = new long[capacity]; in ensureAppendCapacity() local
59 System.arraycopy(buffer, 0, newBuffer, 0, length); in ensureAppendCapacity()
60 buffer = newBuffer; in ensureAppendCapacity()
137 newBuffer.setLength(0); in setFirstSkipped()
138 newBuffer.appendCodePoint(c); in setFirstSkipped()
142 newBuffer.appendCodePoint(c); in skip()
145 void recordMatch() { skipLengthAtMatch = newBuffer.length(); } in recordMatch()
152 oldBuffer.delete(0, pos).insert(0, newBuffer, 0, skipLengthAtMatch); in replaceMatch()
164 private final StringBuilder newBuffer = new StringBuilder(); field in CollationIterator.SkippedState
/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()
DCollationIterator.java56 long[] newBuffer = new long[capacity]; in ensureAppendCapacity() local
57 System.arraycopy(buffer, 0, newBuffer, 0, length); in ensureAppendCapacity()
58 buffer = newBuffer; in ensureAppendCapacity()
135 newBuffer.setLength(0); in setFirstSkipped()
136 newBuffer.appendCodePoint(c); in setFirstSkipped()
140 newBuffer.appendCodePoint(c); in skip()
143 void recordMatch() { skipLengthAtMatch = newBuffer.length(); } in recordMatch()
150 oldBuffer.delete(0, pos).insert(0, newBuffer, 0, skipLengthAtMatch); in replaceMatch()
162 private final StringBuilder newBuffer = new StringBuilder(); field in CollationIterator.SkippedState
/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/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/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/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/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/angle/src/libANGLE/
DResourceManager_unittest.cpp60 BufferID newBuffer = mBufferManager->createBuffer(); in TEST_F() local
61 EXPECT_NE(1u, newBuffer.value); in TEST_F()
/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()
/external/swiftshader/src/OpenGL/libGLESv2/
DBuffer.h71 void set(Buffer *newBuffer, int newOffset = 0, int newSize = 0)
73 buffer = newBuffer;
/external/webrtc/webrtc/modules/video_coding/codecs/i420/
Di420.cc62 uint8_t* newBuffer = new uint8_t[newSize]; in InitEncode() local
63 if (newBuffer == NULL) { in InitEncode()
67 _encodedImage._buffer = newBuffer; in InitEncode()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/channels/
DArrayChannel.kt137 val newBuffer = arrayOfNulls<Any?>(newSize) in ensureCapacity() constant
139 newBuffer[i] = buffer[(head + i) % buffer.size] in ensureCapacity()
141 buffer = newBuffer in ensureCapacity()
/external/skia/src/sksl/
DSkSLString.cpp60 auto newBuffer = std::unique_ptr<char[]>(new char[size + 1]); in vappendf() local
61 VSNPRINTF(newBuffer.get(), size + 1, fmt, reuse); in vappendf()
62 this->append(newBuffer.get(), size); in vappendf()

123