/frameworks/base/core/jni/ |
H A D | android_net_LocalSocketImpl.cpp | 511 * Reads data from a socket into buf, processing any ancillary data 524 unsigned char *buf = (unsigned char *)buffer; local 532 iv.iov_base = buf; 576 void *buf, size_t len) 580 unsigned char *buffer = (unsigned char *)buf; 671 unsigned char buf; local 673 err = socket_read_all(env, object, fd, &buf, 1); 685 return (jint)buf; 575 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument
|
H A D | android_net_TrafficStats.cpp | 65 char buf[80]; local 72 int len = read(fd, buf, sizeof(buf) - 1); 80 buf[len] = '\0'; 81 return atoll(buf);
|
/frameworks/base/libs/androidfw/ |
H A D | Asset.cpp | 69 char buf[64]; local 70 sprintf(buf, ": %dK\n", (int)size); 71 res.append(buf); 436 ssize_t _FileAsset::read(void* buf, size_t count) argument 465 memcpy(buf, (char*)mMap->getDataPtr() + mOffset, count); 469 //printf("buf read\n"); 470 memcpy(buf, (char*)mBuf + mOffset, count); 488 actual = fread(buf, 1, count, mFp); 573 unsigned char* buf; local 582 buf 659 unsigned char* buf = new unsigned char[mLength]; local 760 read(void* buf, size_t count) argument 848 unsigned char* buf = NULL; local [all...] |
/frameworks/base/services/jni/ |
H A D | com_android_server_BatteryService.cpp | 136 static int readFromFile(const char* path, char* buf, size_t size) argument 146 ssize_t count = read(fd, buf, size); 148 while (count > 0 && buf[count-1] == '\n') 150 buf[count] = '\0'; 152 buf[0] = '\0'; 162 char buf[SIZE]; local 165 if (readFromFile(path, buf, SIZE) > 0) { 166 if (buf[0] != '0') { 176 char buf[SIZE]; local 179 if (readFromFile(path, buf, SIZ 188 char buf[SIZE]; local 211 char buf[SIZE]; local 248 char buf[20]; local [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
H A D | TestWebServer.java | 329 byte[] buf; field in class:TestWebServer.Worker 356 buf = new byte[BUF_SIZE]; 426 buf[i] = 0; 450 buf[read] = (byte)data; 455 if (buf[read++]==(byte)'\n') { 477 byte[] buf = new byte[length]; 481 count = is.read(buf, read, length-read); 510 if (buf[0] == (byte)'G' && 511 buf[1] == (byte)'E' && 512 buf[ [all...] |
/frameworks/base/tools/aapt/ |
H A D | XMLNode.cpp | 552 char buf[16384]; local 573 len = read(fd, buf, sizeof(buf)); 574 done = len < (ssize_t)sizeof(buf); 580 if (XML_Parse(parser, buf, len, done) == XML_STATUS_ERROR) {
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.c | 118 char *buf = (char *) malloc(size + 1); local 119 if (buf == NULL) { 123 int retval = klogctl(KLOG_READ_ALL, buf, size); 126 free(buf); 129 buf[retval] = '\0'; 130 printf("%s\n\n", buf); 131 free(buf); 250 char buf[PROPERTY_KEY_MAX + PROPERTY_VALUE_MAX + 10]; local 251 snprintf(buf, sizeof(buf), "[ [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | CpuConsumer_test.cpp | 159 void checkPixel(const CpuConsumer::LockedBuffer &buf, argument 162 switch(buf.format) { 165 uint16_t *bPtr = (uint16_t*)buf.data; 166 bPtr += y * buf.stride + x; 183 ADD_FAILURE() << "Unknown format for check:" << buf.format; 190 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride); 195 void fillBayerRawBuffer(uint8_t* buf, int w, int h, int stride) { argument 196 ALOGVV("fillBayerRawBuffer: %p with %d x %d, stride %d", buf, w, h ,stride); 201 uint16_t *bPtr1 = ((uint16_t*)buf) + stride*y; 220 void checkBayerRawBuffer(const CpuConsumer::LockedBuffer &buf) { argument [all...] |
/frameworks/native/libs/utils/ |
H A D | String8.cpp | 63 SharedBuffer* buf = SharedBuffer::alloc(1); local 64 char* str = (char*)buf->data(); 66 gEmptyStringBuf = buf; 82 SharedBuffer* buf = SharedBuffer::alloc(len+1); local 83 ALOG_ASSERT(buf, "Unable to allocate shared buffer"); 84 if (buf) { 85 char* str = (char*)buf->data(); 105 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); local 106 ALOG_ASSERT(buf, "Unable to allocate shared buffer"); 107 if (!buf) { 127 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); local 318 char* buf = lockBuffer(oldLength + n); local 332 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) local 347 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) local 365 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) local 404 char* buf = lockBuffer(len); local 428 char* buf = lockBuffer(len); local 469 char* buf = lockBuffer(len); local 485 const char*const buf = mString; local 510 const char* buf = str; local 600 char* buf = lockBuffer(len+1+newlen); local 623 char * buf = lockBuffer(len); local [all...] |
H A D | Threads.cpp | 75 char buf[PROPERTY_VALUE_MAX]; local 76 int len = property_get("debug.sys.noschedgroups", buf, ""); 79 if (sscanf(buf, "%d", &temp) == 1) {
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_context.cpp | 257 ElementArrayBuffer::ElementArrayBuffer(GLvoid *buf, GLsizeiptr size) { argument 261 if (buf != NULL) { 262 memcpy(mBuf, buf, size);
|
/frameworks/native/opengl/tests/gl2_copyTexImage/ |
H A D | gl2_copyTexImage.cpp | 87 char* buf = (char*) malloc(infoLen); local 88 if (buf) { 89 glGetShaderInfoLog(shader, infoLen, NULL, buf); 91 shaderType, buf); 92 free(buf); 126 char* buf = (char*) malloc(bufLength); local 127 if (buf) { 128 glGetProgramInfoLog(program, bufLength, NULL, buf); 129 fprintf(stderr, "Could not link program:\n%s\n", buf); 130 free(buf); [all...] |
/frameworks/native/opengl/tests/gl2_yuvtex/ |
H A D | gl2_yuvtex.cpp | 94 char* buf = (char*) malloc(infoLen); local 95 if (buf) { 96 glGetShaderInfoLog(shader, infoLen, NULL, buf); 98 shaderType, buf); 99 free(buf); 103 char* buf = (char*) malloc(0x1000); local 104 if (buf) { 105 glGetShaderInfoLog(shader, 0x1000, NULL, buf); 107 shaderType, buf); 108 free(buf); 142 char* buf = (char*) malloc(bufLength); local 203 char* buf = NULL; local [all...] |
/frameworks/native/opengl/tools/glgen/stubs/jsr239/ |
H A D | GLCHeader.cpp | 171 void* buf = _env->GetDirectBufferAddress(buffer); local 172 if (buf) { 175 buf = ((char*) buf) + (position << elementSizeShift); 181 buf = getPointer(_env, buffer, &array, &remaining, &offset); 183 releasePointer(_env, array, buf, 0); 185 buf = buf + offset; 191 return buf;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | CatService.java | 356 ByteArrayOutputStream buf = new ByteArrayOutputStream(); 368 buf.write(tag); 369 buf.write(0x03); // length 370 buf.write(cmdDet.commandNumber); 371 buf.write(cmdDet.typeOfCommand); 372 buf.write(cmdDet.commandQualifier); 382 buf.write(tag); 383 buf.write(0x02); // length 384 buf.write(DEV_ID_TERMINAL); // source device id 385 buf 415 encodeOptionalTags(CommandDetails cmdDet, ResultCode resultCode, Input cmdInput, ByteArrayOutputStream buf) argument 444 getInKeyResponse(ByteArrayOutputStream buf, Input cmdInput) argument 453 getPliResponse(ByteArrayOutputStream buf) argument [all...] |
/frameworks/rs/driver/ |
H A D | rsdBcc.cpp | 183 unsigned char buf[1024 * 8]; local 200 if (mtls->fep.yStrideOut < sizeof(buf)) { 201 p.out = buf; 205 memcpy(mtls->fep.ptrOut + (mtls->fep.yStrideOut * p.y), buf, mtls->fep.yStrideOut);
|
H A D | rsdShader.cpp | 254 char* buf = (char*) malloc(infoLen); local 255 if (buf) { 256 RSD_CALL_GL(glGetShaderInfoLog, mCurrentState->mShaderID, infoLen, NULL, buf); 257 rsc->setError(RS_ERROR_FATAL_PROGRAM_LINK, buf); 258 free(buf);
|
/frameworks/rs/ |
H A D | rsType.cpp | 146 char buf[1024]; local 154 snprintf(buf, sizeof(buf), "%s element: ", prefix); 155 mElement->dumpLOGV(buf);
|
/frameworks/support/renderscript/v8/rs_support/ |
H A D | rsType.cpp | 146 char buf[1024]; local 154 snprintf(buf, sizeof(buf), "%s element: ", prefix); 155 mElement->dumpLOGV(buf);
|
/frameworks/base/media/libdrm/mobile1/src/xml/ |
H A D | xml_tinyparser.c | 339 uint8_t buf[XML_MAX_PROPERTY_LEN + 2]; local 340 uint8_t *nodeStr = buf; 712 XML_TREE *xml_tree_fillnode(uint8_t **buf, int32_t tagLen) argument 717 uint8_t *buffer = *buf; 755 *buf = buffer; 759 XML_TREE *XML_makeTree(uint8_t **buf) argument 763 uint8_t *buffer = *buf; 773 *buf = buffer; 797 *buf = pBuf;
|
/frameworks/av/drm/common/ |
H A D | IDrmManagerService.cpp | 667 int uniqueId, const DrmBuffer& buf, const String8& mimeType) { 673 if (buf.data != NULL && buf.length > 0) { 674 data.writeInt32(buf.length); 675 data.write(buf.data, buf.length); 1372 DrmBuffer buf((bufferSize > 0) ? (char *)data.readInplace(bufferSize) : NULL, 1376 DecryptHandle* handle = openDecryptSession(uniqueId, buf, mimeType); 666 openDecryptSession( int uniqueId, const DrmBuffer& buf, const String8& mimeType) argument
|
/frameworks/av/drm/drmserver/ |
H A D | DrmManager.cpp | 488 int uniqueId, const DrmBuffer& buf, const String8& mimeType) { 500 result = rDrmEngine.openDecryptSession(uniqueId, handle, buf, mimeType); 487 openDecryptSession( int uniqueId, const DrmBuffer& buf, const String8& mimeType) argument
|
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClientImpl.cpp | 276 int uniqueId, const DrmBuffer& buf, const String8& mimeType) { 277 return getDrmManagerService()->openDecryptSession(uniqueId, buf, mimeType); 275 openDecryptSession( int uniqueId, const DrmBuffer& buf, const String8& mimeType) argument
|
/frameworks/av/libvideoeditor/lvpp/ |
H A D | NativeWindowRenderer.cpp | 269 char* buf = (char*) malloc(infoLen); local 270 if (buf) { 271 glGetProgramInfoLog(program, infoLen, NULL, buf); 272 ALOGE("Program link log:\n%s\n", buf); 273 free(buf); 299 char* buf = (char*) malloc(infoLen); local 300 if (buf) { 301 glGetShaderInfoLog(shader, infoLen, NULL, buf); 302 ALOGE("Shader compile log:\n%s\n", buf); 303 free(buf); [all...] |
/frameworks/av/media/libstagefright/ |
H A D | CameraSource.cpp | 335 char buf[4]; local 336 snprintf(buf, 4, "%d", frameRate); 337 if (strstr(supportedFrameRates, buf) == NULL) {
|