/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/webkit/Source/JavaScriptCore/wtf/url/src/ |
RawURLBuffer.h | 57 CHAR* newBuffer = new CHAR[size]; 58 memcpy(newBuffer, this->m_buffer, sizeof(CHAR) * (this->m_length < size ? this->m_length : size)); 61 this->m_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
|
/external/webkit/Source/WebCore/platform/graphics/gstreamer/ |
VideoSinkGStreamer.cpp | 175 GstBuffer *newBuffer = gst_buffer_try_new_and_alloc(GST_BUFFER_SIZE(buffer)); 178 if (G_UNLIKELY(!newBuffer)) { 184 gst_buffer_copy_metadata(newBuffer, buffer, (GstBufferCopyFlags) GST_BUFFER_COPY_ALL); 192 guint8 *destination = GST_BUFFER_DATA(newBuffer); 214 buffer = priv->buffer = newBuffer;
|
/packages/apps/Email/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/Email/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/Email/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/webkit/Source/JavaScriptCore/assembler/ |
AssemblerBuffer.h | 182 char* newBuffer = static_cast<char*>(fastMalloc(m_capacity)); 183 m_buffer = static_cast<char*>(memcpy(newBuffer, m_buffer, m_size));
|
/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 | 176 MediaBuffer **newBuffer) { 182 (*newBuffer) = new MediaBuffer(sourceSize); 183 memcpy((*newBuffer)->data(), sourcePointer, sourceSize); 185 (*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.h | 157 char *NewBuffer = new char[NewCapacity]; 159 memcpy(&NewBuffer[NewIndex], 166 Buffer = NewBuffer;
|
/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);
|
/external/webkit/Source/WebCore/websockets/ |
WebSocketChannel.cpp | 243 char* newBuffer = 0; 244 if (tryFastMalloc(newBufferSize).getValue(newBuffer)) { 246 memcpy(newBuffer, m_buffer, m_bufferSize); 247 memcpy(newBuffer + m_bufferSize, data, len); 249 m_buffer = newBuffer;
|
/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/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;
|
/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...] |
MPEG2PSExtractor.cpp | 167 sp<ABuffer> newBuffer = new ABuffer(newCapacity); 168 memcpy(newBuffer->data(), mBuffer->data(), mBuffer->size()); 169 newBuffer->setRange(0, mBuffer->size()); 170 mBuffer = newBuffer;
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/file/ |
BlenderInputStream.java | 133 byte[] newBuffer = new byte[cachedBuffer.length + (cachedBuffer.length >> 1)];
134 System.arraycopy(cachedBuffer, 0, newBuffer, 0, cachedBuffer.length);
135 cachedBuffer = newBuffer;
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
BerInputStream.java | 125 byte[] newBuffer = new byte[length + offset]; 126 System.arraycopy(buffer, 0, newBuffer, 0, offset); 127 buffer = newBuffer; 789 byte[] newBuffer = new byte[offset]; 791 System.arraycopy(buffer, 0, newBuffer, 0, offset); 793 buffer = newBuffer;
|