/frameworks/base/core/jni/ |
android_hardware_SensorManager.cpp | 141 ASensorEvent buffer[16]; local 142 while ((n = q->read(buffer, 16)) > 0) { 145 env->SetFloatArrayRegion(mScratch, 0, 16, buffer[i].data); 149 buffer[i].sensor, 151 buffer[i].vector.status, 152 buffer[i].timestamp);
|
android_net_LocalSocketImpl.cpp | 542 void *buffer, size_t len) 548 unsigned char *buf = (unsigned char *)buffer; 549 // Enough buffer for a pile of fd's. We throw an exception if 550 // this buffer is too small. 595 * Writes all the data in the specified buffer to the specified socket. 604 unsigned char *buffer = (unsigned char *)buf; local 654 iv.iov_base = buffer; 669 buffer += ret; 713 jbyteArray buffer, jint off, jint len, jobject fileDescriptor) 719 if (fileDescriptor == NULL || buffer == NULL) [all...] |
/frameworks/native/opengl/tools/glgen/specs/egl/ |
EGL14.spec | 18 EGLSurface eglCreatePbufferFromClientBuffer ( EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list ) 20 EGLBoolean eglBindTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer ) 21 EGLBoolean eglReleaseTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer )
|
/frameworks/wilhelm/tests/sandbox/ |
intbufq.c | 17 /* interactive buffer queue test program */ 175 frame_t *buffer; local 189 buffer = sine; 193 buffer = square; 197 buffer = half; 213 buffer = sawtooth; 217 result = (*playerBufferqueue)->Enqueue(playerBufferqueue, buffer, size);
|
playbq.c | 17 // Play an audio file using buffer queue 45 unsigned which; // which buffer to use next 82 // This callback is called each time a buffer finishes playing 88 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which]; local 89 ssize_t count = pipeReader->read(buffer, framesPerBuffer, (int64_t) -1); 92 memset(buffer, 0, framesPerBuffer * sfinfo.channels * sizeof(short)); 99 swab(buffer, buffer, nbytes); 102 squeeze(buffer, (unsigned char *) buffer, nbytes) 429 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which]; local [all...] |
playbq.cpp | 17 // Play an audio file using buffer queue 45 unsigned which; // which buffer to use next 82 // This callback is called each time a buffer finishes playing 88 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which]; local 89 ssize_t count = pipeReader->read(buffer, framesPerBuffer, (int64_t) -1); 92 memset(buffer, 0, framesPerBuffer * sfinfo.channels * sizeof(short)); 99 swab(buffer, buffer, nbytes); 102 squeeze(buffer, (unsigned char *) buffer, nbytes) 429 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which]; local [all...] |
/libcore/luni/src/main/java/java/util/zip/ |
ZipInputStream.java | 58 * byte[] buffer = new byte[1024]; 60 * while ((count = zis.read(buffer)) != -1) { 61 * baos.write(buffer, 0, count); 263 // equal to the number of bytes. It's fine if this buffer is too long. 289 * Reads up to the specified number of uncompressed bytes into the buffer 295 public int read(byte[] buffer, int offset, int byteCount) throws IOException { 297 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 320 System.arraycopy(buf, lastRead, buffer, offset, toRead); 323 crc.update(buffer, offset, toRead); 334 read = inf.inflate(buffer, offset, byteCount) [all...] |
/packages/apps/Gallery2/src/com/android/photos/data/ |
MediaCacheUtils.java | 149 byte[] buffer = mBufferPool.acquire(); 150 if (buffer == null) { 151 buffer = new byte[BUFFER_SIZE]; 156 while ((bytesRead = in.read(buffer)) >= 0) { 157 out.write(buffer, 0, bytesRead); 164 mBufferPool.release(buffer);
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
BinaryDictOffdeviceUtils.java | 73 final byte[] buffer = new byte[1000]; 76 for (int readBytes = in.read(buffer); readBytes >= 0; readBytes = in.read(buffer)) 77 output.write(buffer, 0, readBytes); 189 final ByteBuffer buffer = inStream.getChannel().map( local 197 new BinaryDictInputOutput.ByteBufferWrapper(buffer), null);
|
/system/core/run-as/ |
package.c | 47 /* Copy 'srclen' string bytes from 'src' into buffer 'dst' of size 'dstlen' 48 * This function always zero-terminate the destination buffer unless 73 * Returns buffer address, or NULL on error 426 char* buffer; local 437 buffer = map_file(PACKAGES_LIST_FILE, &buffer_len); 438 if (buffer == NULL) 441 p = buffer; 442 buffer_end = buffer + buffer_len; 540 unmap_file(buffer, buffer_len);
|
/external/skia/src/core/ |
SkPaint.cpp | [all...] |
/hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/component/video/enc/ |
Exynos_OMX_Venc.c | 105 pData->buffer.multiPlaneBuffer.dataBuffer[0] = pInputCodecBuffer->pVirAddr[0]; 106 pData->buffer.multiPlaneBuffer.dataBuffer[1] = pInputCodecBuffer->pVirAddr[1]; 107 pData->buffer.multiPlaneBuffer.fd[0] = pInputCodecBuffer->fd[0]; 108 pData->buffer.multiPlaneBuffer.fd[1] = pInputCodecBuffer->fd[1]; 130 pData->buffer.singlePlaneBuffer.dataBuffer = pSrcBuf; 205 pDstBuf[0] = srcInputData->buffer.multiPlaneBuffer.dataBuffer[0]; 206 pDstBuf[1] = srcInputData->buffer.multiPlaneBuffer.dataBuffer[1]; 207 pDstBuf[2] = srcInputData->buffer.multiPlaneBuffer.dataBuffer[2]; 232 pDstFd[i] = (void *)srcInputData->buffer.multiPlaneBuffer.fd[i]; 246 /* Just copied to MFC input buffer */ [all...] |
/external/icu4c/test/cintltst/ |
ncnvtst.c | 1014 char buffer[MAX_LENGTH]; local 1104 UChar buffer[MAX_LENGTH]; local 1797 UChar buffer[2]; local [all...] |
/external/chromium/base/ |
process_util_win.cc | 383 char buffer[kBufferSize]; local 387 BOOL success = ReadFile(out_read, buffer, kBufferSize, &bytes_read, NULL); 390 output->append(buffer, bytes_read); 677 PSAPI_WORKING_SET_INFORMATION* buffer = NULL; local 683 // if we can't expand the buffer, don't leak the previous 687 realloc(buffer, buffer_size)); 689 free(buffer); 692 buffer = new_buffer; 695 if (QueryWorkingSet(process_, buffer, buffer_size)) 699 free(buffer); [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
schanneladapter.cc | 215 //DescribeBuffers(LS_VERBOSE, "Input Buffer ", sb_in.desc()); 243 // DescribeBuffers(LS_VERBOSE, "Input Buffer ", sbd_in); 245 // DescribeBuffers(LS_VERBOSE, "Output Buffer ", sbd_out); 264 SecBuffer& buffer = sbd_in->pBuffers[i]; local 265 if (buffer.BufferType == SECBUFFER_EXTRA) { 266 extra += buffer.cbBuffer; 272 SecBuffer& buffer = sbd_out->pBuffers[i]; local 273 if (buffer.BufferType == SECBUFFER_EXTRA) { 274 extra += buffer.cbBuffer; 275 } else if (buffer.BufferType == SECBUFFER_TOKEN) 432 char buffer[4096]; local [all...] |
/external/openssh/ |
authfd.c | 57 #include "buffer.h" 127 ssh_request_reply(AuthenticationConnection *auth, Buffer *request, Buffer *reply) 132 /* Get the length of the message, and format it in the buffer. */ 157 /* Read the rest of the response in to the buffer. */ 235 Buffer msg; 258 Buffer request; 371 Buffer buffer; local 382 buffer_init(&buffer); [all...] |
/external/protobuf/src/google/protobuf/io/ |
coded_stream.cc | 38 // will not cross the end of the buffer, since we can avoid a lot 81 // The limit position is in the current buffer. We must adjust 82 // the buffer size accordingly. 160 // Just skipping within the current buffer. Easy. 166 // We hit a limit inside this buffer. Advance to the limit and fail. 199 bool CodedInputStream::ReadRaw(void* buffer, int size) { 202 // Reading past end of buffer. Copy what we have, then refresh. 203 memcpy(buffer, buffer_, current_buffer_size); 204 buffer = reinterpret_cast<uint8*>(buffer) + current_buffer_size [all...] |
/external/qemu/hw/ |
bt-hid.c | 97 uint8_t buffer[1024]; member in struct:bt_hid_device_s::__anon13583 132 p.data = s->dataout.buffer; 155 p.data = s->datain.buffer; 156 p.len = sizeof(s->datain.buffer); 275 s->datain.buffer, MIN(rlen, s->datain.len)); 279 s->dataout.buffer, MIN(rlen, s->dataout.len)); 283 s->feature.buffer, MIN(rlen, s->feature.len)); 298 memcpy(s->dataout.buffer, data + 1, s->dataout.len); 301 memcpy(s->feature.buffer, data + 1, s->feature.len); 361 memcpy(s->dataout.buffer + s->dataout.len, data + 1, len - 1) [all...] |
/external/opencv/cxcore/src/ |
cxsvd.cpp | 236 double* buffer ) 252 e = buffer; 257 temp = buffer + nm; 631 float* buffer ) 647 e = buffer; 653 temp = buffer + nm; 1027 double* x, int ldx, double* buffer ) 1099 memset( buffer, 0, nb*sizeof(buffer[0])); 1100 icvMatrAXPY_64f( m, nb, b, ldb, uT, buffer, 0 ) 1214 uchar* buffer = 0; local 1454 uchar* buffer = 0; local [all...] |
/hardware/qcom/media/mm-video/vidc/vdec/src/ |
omx_vdec_copper.cpp | 128 OMX_BUFFERHEADERTYPE *buffer; local 612 2. Buffer done callback event 2791 OMX_U8 *buffer = NULL; local 5500 OMX_BUFFERHEADERTYPE *buffer = bufferAdd; local [all...] |
/external/icu4c/test/iotest/ |
iotest.cpp | 43 char buffer[4000]; local 44 message.extract(0, message.length(), buffer, sizeof(buffer)); 45 buffer[3999] = 0; /* NULL terminate */ 46 log_err(buffer); 50 char buffer[4000]; local 51 message.extract(0, message.length(), buffer, sizeof(buffer)); 52 buffer[3999] = 0; /* NULL terminate */ 53 log_info(buffer); 57 char buffer[4000]; local [all...] |
/external/skia/src/effects/gradients/ |
SkGradientShader.cpp | 133 SkGradientShaderBase::SkGradientShaderBase(SkFlattenableReadBuffer& buffer) : 134 INHERITED(buffer) { 137 fMapper = buffer.readFlattenableT<SkUnitMapper>(); 143 int colorCount = fColorCount = buffer.getArrayCount(); 150 buffer.readColorArray(fOrigColors); 152 fTileMode = (TileMode)buffer.readUInt(); 159 recs[i].fPos = buffer.readInt(); 160 recs[i].fScale = buffer.readUInt(); 163 buffer.readMatrix(&fPtsToUnit); 187 void SkGradientShaderBase::flatten(SkFlattenableWriteBuffer& buffer) const [all...] |
/external/smack/src/org/jivesoftware/smack/util/ |
Base64.java | 387 // Create buffer with zero-padding if there are only one or two
1229 private byte[] buffer; \/\/ Small buffer holding converted data field in class:Base64.InputStream 1465 private byte[] buffer; field in class:Base64.OutputStream [all...] |
/external/tremolo/Tremolo/ |
bitwiseARM.s | 97 LDMIA r11,{r6,r12,r14} @ r6 = buffer 100 LDR r6,[r6] @ r6 = buffer->data 103 ADD r6,r6,r12 @ r6 = buffer->data+begin 105 LDRB r12,[r6],#1 @ r12= *buffer 143 LDMIA r11,{r6,r7,r14} @ r6 = buffer 146 LDR r6,[r6] @ r6 = buffer->data 149 ADD r6,r6,r7 @ r6 = buffer->data+begin 188 LDMIA r14,{r3,r10,r12} @ r3 = buffer 191 LDR r3,[r3] @ r3 = buffer->data 217 LDMIA r1,{r2,r3,r12} @ r2 = b->head->buffer [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsBackupAgent.java | 486 byte[] buffer = new byte[nBytes]; 487 in.readFully(buffer, 0, nBytes); 488 restoreSettings(buffer, nBytes, Settings.System.CONTENT_URI, movedToGlobal); 493 if (nBytes > buffer.length) buffer = new byte[nBytes]; 494 in.readFully(buffer, 0, nBytes); 495 restoreSettings(buffer, nBytes, Settings.Secure.CONTENT_URI, movedToGlobal); 501 if (nBytes > buffer.length) buffer = new byte[nBytes]; 502 in.readFully(buffer, 0, nBytes) [all...] |