/external/lzma/CPP/Common/ |
Buffer.h | 31 T *newBuffer;
34 newBuffer = new T[newCapacity];
36 memmove(newBuffer, _items, MyMin(_capacity, newCapacity) * sizeof(T));
39 newBuffer = 0;
41 _items = newBuffer;
|
/libcore/benchmarks/src/benchmarks/regression/ |
ByteBufferBenchmark.java | 47 public static ByteBuffer newBuffer(MyByteOrder byteOrder, boolean aligned, MyBufferType bufferType) throws IOException { 81 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 91 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 102 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 112 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 122 CharBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType).asCharBuffer(); 133 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 143 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 153 DoubleBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType).asDoubleBuffer(); 164 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType) [all...] |
ByteBufferScalarVersusVectorBenchmark.java | 35 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); 36 ByteBuffer dst = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType);
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
ArrayBufferBuilder.cpp | 67 RefPtr<ArrayBuffer> newBuffer = ArrayBuffer::create(newBufferSize, 1); 68 if (!newBuffer) 71 memcpy(newBuffer->data(), m_buffer->data(), m_bytesUsed); 72 m_buffer = newBuffer;
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
textfile.cpp | 167 char* newbuffer = (char*) uprv_malloc(mincapacity); local 168 if (newbuffer == 0) { 172 uprv_strncpy(newbuffer, buffer, capacity); 175 buffer = newbuffer;
|
/external/icu4c/test/intltest/ |
textfile.cpp | 168 char* newbuffer = (char*) uprv_malloc(mincapacity); local 169 if (newbuffer == 0) { 173 uprv_strncpy(newbuffer, buffer, capacity); 176 buffer = newbuffer;
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/ |
FluidSimHeightMap.java | 167 float[] newBuffer;
176 newBuffer = tempBuffer[curBuf];
185 neighborsValue += newBuffer[ind - 1];
189 neighborsValue += newBuffer[ind + 1];
193 neighborsValue += newBuffer[ind - size];
197 neighborsValue += newBuffer[ind + size];
203 oldBuffer[ind] = coefA * newBuffer[ind] + coefB
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/ |
SimpleCharStream.java | 53 char[] newbuffer = new char[bufsize + 2048]; local 61 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 62 System.arraycopy(buffer, 0, newbuffer, 64 buffer = newbuffer; 78 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 79 buffer = newbuffer;
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/ |
SimpleCharStream.java | 53 char[] newbuffer = new char[bufsize + 2048]; local 61 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 62 System.arraycopy(buffer, 0, newbuffer, 64 buffer = newbuffer; 78 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 79 buffer = newbuffer;
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/ |
SimpleCharStream.java | 53 char[] newbuffer = new char[bufsize + 2048]; local 61 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 62 System.arraycopy(buffer, 0, newbuffer, 64 buffer = newbuffer; 78 System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); 79 buffer = newbuffer;
|
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/ |
BufferStorage11.cpp | 245 ID3D11Buffer *newBuffer = NULL; 247 result = device->CreateBuffer(&bufferDesc, NULL, &newBuffer); 261 context->CopySubresourceRegion(newBuffer, 0, 0, 0, 0, mBuffer, 0, &srcBox); 264 mBuffer = newBuffer;
|
/frameworks/av/cmds/stagefright/ |
muxer.cpp | 143 sp<ABuffer> newBuffer = new ABuffer(bufferSize); 155 err = extractor->readSampleData(newBuffer); 187 err = muxer->writeSampleData(newBuffer, 197 newBuffer.clear();
|
/frameworks/av/media/libstagefright/ |
CameraSourceTimeLapse.cpp | 180 MediaBuffer **newBuffer) { 186 (*newBuffer) = new MediaBuffer(sourceSize); 187 memcpy((*newBuffer)->data(), sourcePointer, sourceSize); 189 (*newBuffer)->meta_data()->setInt64(kKeyTime, frameTime);
|
SkipCutBuffer.cpp | 109 char * newbuffer = new char[newcapacity]; local 110 memcpy(newbuffer, mCutBuffer, mCapacity); 113 mCutBuffer = newbuffer;
|
/external/apache-http/src/org/apache/http/util/ |
ByteArrayBuffer.java | 57 byte newbuffer[] = new byte[Math.max(this.buffer.length << 1, newlen)]; 58 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); 59 this.buffer = newbuffer;
|
CharArrayBuffer.java | 59 char newbuffer[] = new char[Math.max(this.buffer.length << 1, newlen)]; local 60 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); 61 this.buffer = newbuffer;
|
/external/clang/lib/Sema/ |
TypeLocBuilder.cpp | 49 char *NewBuffer = new char[NewCapacity]; 51 memcpy(&NewBuffer[NewIndex], 58 Buffer = NewBuffer;
|
/external/chromium_org/third_party/icu/source/common/ |
ustr_wcs.c | 39 void *newBuffer=uprv_malloc(reqCapacity*size); 40 if(newBuffer!=NULL) { 42 uprv_memcpy(newBuffer, *pBuffer, length*size); 54 *pBuffer=newBuffer; 55 return (UBool)(newBuffer!=NULL);
|
/external/icu4c/common/ |
ustr_wcs.cpp | 42 char *newBuffer=(char *)uprv_malloc(reqCapacity*size); 43 if(newBuffer!=NULL) { 45 uprv_memcpy(newBuffer, *pBuffer, length*size); 57 *pBuffer=newBuffer; 58 return (UBool)(newBuffer!=NULL);
|
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/ |
VideoEditorAudioDecoder.cpp | 200 MediaBuffer* newBuffer = new MediaBuffer((size_t)pAccessUnit->m_size); 201 memcpy((void *)((M4OSA_Int8*)newBuffer->data() + newBuffer->range_offset()), 203 newBuffer->meta_data()->setInt64(kKeyTime, (pAccessUnit->m_CTS * 1000LL)); 204 return newBuffer; 222 MediaBuffer* newBuffer = readBufferFromReader(pDecContext); 223 if (!newBuffer) { 228 mBuffers.push(newBuffer); 245 MediaBuffer* newBuffer = readBufferFromReader(pDecContext); 246 if (!newBuffer) { [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
ucoleitr.cpp | 92 RCEI *newBuffer = NEW_ARRAY(RCEI, bufferSize + BUFFER_GROW); 94 ARRAY_COPY(newBuffer, buffer, bufferSize); 100 buffer = newBuffer; 170 PCEI *newBuffer = NEW_ARRAY(PCEI, bufferSize + BUFFER_GROW); 172 ARRAY_COPY(newBuffer, buffer, bufferSize); 178 buffer = newBuffer;
|
/external/icu4c/i18n/ |
ucoleitr.cpp | 92 RCEI *newBuffer = NEW_ARRAY(RCEI, bufferSize + BUFFER_GROW); 94 ARRAY_COPY(newBuffer, buffer, bufferSize); 100 buffer = newBuffer; 170 PCEI *newBuffer = NEW_ARRAY(PCEI, bufferSize + BUFFER_GROW); 172 ARRAY_COPY(newBuffer, buffer, bufferSize); 178 buffer = newBuffer;
|
/external/eigen/Eigen/src/SparseCore/ |
AmbiVector.h | 92 Scalar* newBuffer = new Scalar[allocSize]; 93 memcpy(newBuffer, m_buffer, copyElements * sizeof(ListEl)); 95 m_buffer = newBuffer;
|
/external/llvm/unittests/ExecutionEngine/MCJIT/ |
MCJITObjectCacheTest.cpp | 78 MemoryBuffer *NewBuffer = MemoryBuffer::getMemBufferCopy(Buf->getBuffer()); 79 AllocatedBuffers.push_back(NewBuffer); 80 return NewBuffer;
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
ATSParser.cpp | 586 sp<ABuffer> newBuffer = new ABuffer(neededSize); 587 memcpy(newBuffer->data(), mBuffer->data(), mBuffer->size()); 588 newBuffer->setRange(0, mBuffer->size()); 589 mBuffer = newBuffer; [all...] |