Home
last modified time | relevance | path

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

12

/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()
DEngineWrapBenchmark.java87 messageBuffer = bufferType.newBuffer(messageSize); in EngineWrapBenchmark()
96 preEncryptedBuffer = bufferType.newBuffer(clientEngine.getSession().getPacketBufferSize()); in EngineWrapBenchmark()
/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/conscrypt/openjdk/src/test/java/org/conscrypt/
DConscryptEngineTest.java68 ByteBuffer newBuffer(int size) { in BufferAllocator.unpooled() method
74 ByteBuffer newBuffer(int size) { in HEAP_NO_ALLOCATOR() method
80 ByteBuffer newBuffer(int size) { in DIRECT() method
85 abstract ByteBuffer newBuffer(int size); in newBuffer() method in ConscryptEngineTest.BufferType
389 bufferType.newBuffer(clientEngine.getSession().getApplicationBufferSize()); in doHandshake()
391 bufferType.newBuffer(clientEngine.getSession().getPacketBufferSize()); in doHandshake()
393 bufferType.newBuffer(serverEngine.getSession().getApplicationBufferSize()); in doHandshake()
395 bufferType.newBuffer(serverEngine.getSession().getPacketBufferSize()); in doHandshake()
446 bufferType.newBuffer(engine.getSession().getPacketBufferSize()); in wrap()
459 final ByteBuffer decryptedBuffer = bufferType.newBuffer(decryptedBufferSize); in unwrap()
[all …]
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DConscryptEngineTest.java75 ByteBuffer newBuffer(int size) { in BufferAllocator.unpooled() method
81 ByteBuffer newBuffer(int size) { in HEAP_NO_ALLOCATOR() method
87 ByteBuffer newBuffer(int size) { in DIRECT() method
92 abstract ByteBuffer newBuffer(int size); in newBuffer() method in ConscryptEngineTest.BufferType
396 bufferType.newBuffer(clientEngine.getSession().getApplicationBufferSize()); in doHandshake()
398 bufferType.newBuffer(clientEngine.getSession().getPacketBufferSize()); in doHandshake()
400 bufferType.newBuffer(serverEngine.getSession().getApplicationBufferSize()); in doHandshake()
402 bufferType.newBuffer(serverEngine.getSession().getPacketBufferSize()); in doHandshake()
453 bufferType.newBuffer(engine.getSession().getPacketBufferSize()); in wrap()
466 final ByteBuffer decryptedBuffer = bufferType.newBuffer(decryptedBufferSize); in unwrap()
[all …]
/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/icu/android_icu4j/src/main/java/android/icu/impl/coll/
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()
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()
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/
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()
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()
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/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/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/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLSignatureRawECDSA.java106 byte[] newBuffer = new byte[bytes_written]; in engineSign()
107 System.arraycopy(outputBuffer, 0, newBuffer, 0, bytes_written); in engineSign()
108 outputBuffer = newBuffer; in engineSign()
/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/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/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/skia/src/sksl/
DSkSLString.cpp62 auto newBuffer = std::unique_ptr<char[]>(new char[size + 1]); in vappendf() local
63 VSNPRINTF(newBuffer.get(), size + 1, fmt, reuse); in vappendf()
64 this->append(newBuffer.get(), size); in vappendf()
/external/webrtc/webrtc/modules/video_coding/
Dencoded_frame.cc214 uint8_t* newBuffer = new uint8_t[minimumSize]; in VerifyAndAllocate() local
217 memcpy(newBuffer, _buffer, _size); in VerifyAndAllocate()
220 _buffer = newBuffer; in VerifyAndAllocate()

12