/external/libselinux/src/ |
fgetfilecon.c | 24 char *newbuf; local 31 newbuf = realloc(buf, size); 32 if (!newbuf) 35 buf = newbuf;
|
getfilecon.c | 24 char *newbuf; local 31 newbuf = realloc(buf, size); 32 if (!newbuf) 35 buf = newbuf;
|
getpeercon.c | 28 char *newbuf; local 30 newbuf = realloc(buf, size); 31 if (!newbuf) 34 buf = newbuf;
|
lgetfilecon.c | 24 char *newbuf; local 31 newbuf = realloc(buf, size); 32 if (!newbuf) 35 buf = newbuf;
|
/external/emma/core/java12/com/vladium/util/ |
ByteArrayOStream.java | 58 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; 61 for (int i = 0; i < pos; ++ i) newbuf [i] = mbuf [i]; 63 System.arraycopy (mbuf, 0, newbuf, 0, pos); 65 m_buf = mbuf = newbuf; 82 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; 85 for (int i = 0; i < pos; ++ i) newbuf [i] = mbuf [i]; 87 System.arraycopy (mbuf, 0, newbuf, 0, pos); 89 m_buf = mbuf = newbuf; 107 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; 110 for (int i = 0; i < pos; ++ i) newbuf [i] = mbuf [i] [all...] |
/dalvik/vm/jdwp/ |
ExpandBuf.cpp | 43 ExpandBuf* newBuf; 45 newBuf = (ExpandBuf*) malloc(sizeof(*newBuf)); 46 newBuf->storage = (u1*) malloc(kInitialStorage); 47 newBuf->curLen = 0; 48 newBuf->maxLen = kInitialStorage; 50 return newBuf;
|
/external/chromium_org/third_party/mesa/src/src/glx/apple/ |
apple_xgl_api_stereo.c | 92 GLenum newbuf[n + 2]; local 105 newbuf[outi++] = bufs[i]; 110 newbuf[outi++] = GL_BACK_LEFT; 111 newbuf[outi++] = GL_BACK_RIGHT; 115 newbuf[outi++] = GL_FRONT_LEFT; 116 newbuf[outi++] = GL_FRONT_RIGHT; 119 __ogl_framework_api->DrawBuffersARB(outi, newbuf);
|
/external/mesa3d/src/glx/apple/ |
apple_xgl_api_stereo.c | 92 GLenum newbuf[n + 2]; local 105 newbuf[outi++] = bufs[i]; 110 newbuf[outi++] = GL_BACK_LEFT; 111 newbuf[outi++] = GL_BACK_RIGHT; 115 newbuf[outi++] = GL_FRONT_LEFT; 116 newbuf[outi++] = GL_FRONT_RIGHT; 119 __ogl_framework_api->DrawBuffersARB(outi, newbuf);
|
/frameworks/base/core/java/com/android/internal/util/ |
BitwiseOutputStream.java | 65 byte[] newBuf = new byte[len]; 66 System.arraycopy(mBuf, 0, newBuf, 0, len); 67 return newBuf; 77 byte[] newBuf = new byte[(mPos + bits) >>> 2]; 78 System.arraycopy(mBuf, 0, newBuf, 0, mEnd >>> 3); 79 mBuf = newBuf; 80 mEnd = newBuf.length << 3;
|
/external/dhcpcd/compat/ |
getline.c | 45 char *newbuf, *p; local 60 newbuf = realloc(*buf, newlen); 61 if (newbuf == NULL) 63 *buf = newbuf;
|
/frameworks/volley/src/com/android/volley/toolbox/ |
PoolingByteArrayOutputStream.java | 76 byte[] newbuf = mPool.getBuf((count + i) * 2); 77 System.arraycopy(buf, 0, newbuf, 0, count); 79 buf = newbuf;
|
/external/chromium_org/courgette/third_party/ |
bsdiff_create.cc | 154 matchlen(const unsigned char *old,int oldsize,const unsigned char *newbuf,int newsize) 159 if(old[i]!=newbuf[i]) break; 166 const unsigned char *newbuf,int newsize,int st,int en,int *pos) 171 x=matchlen(old+I[st],oldsize-I[st],newbuf,newsize); 172 y=matchlen(old+I[en],oldsize-I[en],newbuf,newsize); 184 if(memcmp(old+I[x],newbuf,std::min(oldsize-I[x],newsize))<0) { 185 return search(I,old,oldsize,newbuf,newsize,x,en,pos); 187 return search(I,old,oldsize,newbuf,newsize,st,x,pos); 244 const uint8* newbuf = new_stream->Buffer(); local 258 // a triple for the part of |newbuf| surrounding a 'seed' match nea [all...] |
/libcore/luni/src/main/java/java/io/ |
ByteArrayOutputStream.java | 91 byte[] newbuf = new byte[(count + i) * 2]; 92 System.arraycopy(buf, 0, newbuf, 0, count); 93 buf = newbuf; 156 char[] newBuf = new char[size()]; 157 for (int i = 0; i < newBuf.length; i++) { 158 newBuf[i] = (char) (((hibyte & 0xff) << 8) | (buf[i] & 0xff)); 160 return new String(newBuf);
|
/art/runtime/jdwp/ |
jdwp_expand_buf.cc | 49 ExpandBuf* newBuf = new ExpandBuf; 50 newBuf->storage = reinterpret_cast<uint8_t*>(malloc(kInitialStorage)); 51 newBuf->curLen = 0; 52 newBuf->maxLen = kInitialStorage; 53 return newBuf;
|
/external/jmonkeyengine/engine/src/tools/jme3tools/converters/model/ |
FloatToFixed.java | 70 Buffer newBuf = VertexBuffer.createBuffer(posFmt, positions.getNumComponents(), 72 Transform t = convertPositions(fb, bbox, newBuf); 80 newBuf); 100 Buffer newBuf = VertexBuffer.createBuffer(tcFmt, 103 convertTexCoords2D(fb, newBuf); 109 newBuf); 131 Buffer newBuf = VertexBuffer.createBuffer(targetFmt, vb.getNumComponents(), src.size()); 134 newVb.setupData(vb.getUsage(), vb.getNumComponents(), targetFmt, newBuf);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
NuPlayerDecoder.cpp | 172 sp<ABuffer> oldBuf, newBuf; 173 if (mFormat->findBuffer("csd-0", &oldBuf) && targetFormat->findBuffer("csd-0", &newBuf)) { 174 if (oldBuf->size() != newBuf->size()) { 177 return !memcmp(oldBuf->data(), newBuf->data(), oldBuf->size());
|
/external/qemu/distrib/sdl-1.2.15/src/audio/macrom/ |
SDL_romaudio.c | 334 void sndDoubleBackProc (SndChannelPtr chan, SndDoubleBufferPtr newbuf) 336 SDL_AudioDevice *audio = (SDL_AudioDevice *)newbuf->dbUserInfo[0]; 342 memset (newbuf->dbSoundData, 0, audio->spec.size); 343 newbuf->dbNumFrames = audio->spec.samples; 354 SDL_memcpy(newbuf->dbSoundData, audio->convert.buf, 358 (Uint8 *)newbuf->dbSoundData, audio->spec.size); 361 newbuf->dbFlags |= dbBufferReady;
|
/external/e2fsprogs/util/ |
subst.c | 273 char oldbuf[2048], newbuf[2048], *oldcp, *newcp; local 287 newcp = fgets(newbuf, sizeof(newbuf), new_f); 292 if (!oldcp || !newcp || strcmp(oldbuf, newbuf)) {
|
/external/javassist/src/main/javassist/bytecode/ |
ByteStream.java | 188 byte[] newBuf = new byte[newLen > newCount ? newLen : newCount]; 189 System.arraycopy(buf, 0, newBuf, 0, count); 190 buf = newBuf;
|
/external/javassist/src/main/javassist/tools/web/ |
Viewer.java | 196 byte[] newbuf = new byte[buf.length * 2]; 197 System.arraycopy(buf, 0, newbuf, 0, size); 198 buf = newbuf;
|
/external/mdnsresponder/mDNSShared/ |
dnssd_clientlib.c | 220 unsigned char *newbuf; local 223 newbuf = malloc((size_t)newlen); 224 if (!newbuf) return(kDNSServiceErr_NoMemory); 225 memcpy(newbuf, txtRec->buffer, txtRec->datalen); 227 txtRec->buffer = newbuf;
|
/external/ipsec-tools/src/libipsec/ |
ipsec_dump_policy.c | 102 char *newbuf; local 257 newbuf = (char *)realloc(buf, buflen); 258 if (newbuf == NULL) { 263 buf = newbuf;
|
/external/qemu/distrib/sdl-1.2.15/src/audio/mint/ |
SDL_mintaudio_gsxb.c | 419 Uint8 *newbuf; local 428 newbuf = SDL_MintAudio_audiobuf[SDL_MintAudio_numbuf]; 429 Setbuffer(0, newbuf, newbuf + SDL_MintAudio_audiosize);
|
/external/chromium/third_party/libevent/ |
buffer.c | 279 void *newbuf; local 289 if ((newbuf = realloc(buf->buffer, length)) == NULL) 292 buf->orig_buffer = buf->buffer = newbuf;
|
/external/chromium_org/third_party/libevent/ |
buffer.c | 279 void *newbuf; local 289 if ((newbuf = realloc(buf->buffer, length)) == NULL) 292 buf->orig_buffer = buf->buffer = newbuf;
|