/frameworks/base/services/java/com/android/server/pm/ |
H A D | Installer.java | 39 byte buf[] = new byte[1024]; field in class:Installer 116 if (!readBytes(buf, 2)) 118 len = (((int) buf[0]) & 0xff) | ((((int) buf[1]) & 0xff) << 8); 124 if (!readBytes(buf, len)) 135 buf[0] = (byte) (len & 0xff); 136 buf[1] = (byte) ((len >> 8) & 0xff); 138 mOut.write(buf, 0, 2); 169 String s = new String(buf, 0, buflen);
|
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 50 void clearBuffer(Buffer* buf, uint32_t pixel) { argument 51 android_memset32(buf->pixels, pixel, buf->s * buf->h * 4); 54 void drawTwoPixels(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { argument 55 if (y>0 && y<ssize_t(buf->h)) { 56 uint32_t* bits = buf->pixels + y * buf->s; 57 if (x>=0 && x<buf->w) { 61 if ((x+W)>=0 && (x+W)<buf 67 drawHLine(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) argument 84 drawRect(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w, size_t h) argument 105 drawCircle(Buffer* buf, uint32_t pixel, size_t x0, size_t y0, size_t radius, bool filled = false) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | ZipEntry.h | 116 static inline unsigned short getShortLE(const unsigned char* buf) { argument 117 return buf[0] | (buf[1] << 8); 119 static inline unsigned long getLongLE(const unsigned char* buf) { argument 120 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); 122 static inline void putShortLE(unsigned char* buf, short val) { argument 123 buf[ 126 putLongLE(unsigned char* buf, long val) argument [all...] |
/frameworks/native/include/utils/ |
H A D | Trace.h | 102 char buf[1024]; local 103 snprintf(buf, 1024, "C|%d|%s|%d", getpid(), name, value); 104 write(sTraceFD, buf, strlen(buf)); 110 char buf[1024]; local 111 size_t len = snprintf(buf, 1024, "B|%d|%s", getpid(), name); 112 write(sTraceFD, buf, len); 118 char buf = 'E'; local 119 write(sTraceFD, &buf, 1);
|
/frameworks/native/libs/binder/ |
H A D | ProcessState.cpp | 290 char buf[16]; local 291 snprintf(buf, sizeof(buf), "Binder_%X", s); 292 ALOGV("Spawning new pooled thread, name=%s\n", buf); 294 t->run(buf);
|
/frameworks/native/libs/gui/ |
H A D | ISurfaceTexture.cpp | 54 virtual status_t requestBuffer(int bufferIdx, sp<GraphicBuffer>* buf) { argument 64 *buf = new GraphicBuffer(); 65 reply.read(**buf); 84 virtual status_t dequeueBuffer(int *buf, sp<Fence>& fence, argument 96 *buf = reply.readInt32(); 107 virtual status_t queueBuffer(int buf, argument 111 data.writeInt32(buf); 122 virtual void cancelBuffer(int buf, sp<Fence> fence) { argument 126 data.writeInt32(buf); 218 int buf; local 232 int buf = data.readInt32(); local 243 int buf = data.readInt32(); local [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureClient_test.cpp | 182 ANativeWindowBuffer* buf; local 183 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); 184 EXPECT_EQ(1, buf->width); 185 EXPECT_EQ(1, buf->height); 186 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); 187 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); 191 ANativeWindowBuffer* buf; local 193 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); 194 EXPECT_EQ(16, buf->width); 195 EXPECT_EQ(8, buf 201 ANativeWindowBuffer* buf; local 211 ANativeWindowBuffer* buf; local 221 ANativeWindowBuffer* buf; local 237 ANativeWindowBuffer* buf; local 254 ANativeWindowBuffer* buf; local 264 ANativeWindowBuffer* buf[2]; local 284 ANativeWindowBuffer* buf[2]; local 309 android_native_buffer_t* buf[3]; local 332 android_native_buffer_t* buf[3]; local 353 android_native_buffer_t* buf[3]; local 374 android_native_buffer_t* buf[3]; local 399 android_native_buffer_t* buf[3]; local 420 android_native_buffer_t* buf[3]; local 451 android_native_buffer_t* buf; local 499 android_native_buffer_t* buf[3]; local 522 android_native_buffer_t* buf[3]; local 552 android_native_buffer_t* buf[3]; local 583 android_native_buffer_t* buf[3]; local [all...] |
/frameworks/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 200 int* buf = static_cast<int*>(buffer); local 201 buf[0] = 'GBFR'; 202 buf[1] = width; 203 buf[2] = height; 204 buf[3] = stride; 205 buf[4] = format; 206 buf[5] = usage; 207 buf[6] = 0; 208 buf[7] = 0; 211 buf[ 226 int const* buf = static_cast<int const*>(buffer); local [all...] |
/frameworks/native/libs/utils/ |
H A D | Debug.cpp | 171 void printHexData(int32_t indent, const void *buf, size_t length, argument 185 unsigned char *pos = (unsigned char *)buf; 201 char buf[64]; local 202 sprintf(buf, "(bad length: %zu)", length); 203 func(cookie, buf);
|
H A D | String16.cpp | 46 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)); local 47 char16_t* str = (char16_t*)buf->data(); 49 gEmptyStringBuf = buf; 75 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1)); local 76 if (buf) { 78 char16_t* u16str = (char16_t*)buf->data(); 83 //printHexData(1, str, buf->size(), 16, 1); 114 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); local 115 ALOG_ASSERT(buf, "Unable to allocate shared buffer"); 116 if (buf) { 128 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); local 196 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) local 219 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) local 240 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) local 275 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) local 344 SharedBuffer* buf = SharedBuffer::bufferFromData(mString)->edit(); local 365 SharedBuffer* buf = SharedBuffer::bufferFromData(mString)->edit(); local 392 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) local 401 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) local [all...] |
/frameworks/native/opengl/libs/EGL/ |
H A D | egl_cache.cpp | 203 static uint32_t crc32c(const uint8_t* buf, size_t len) { argument 207 r ^= buf[i]; 249 uint8_t* buf = new uint8_t [fileSize]; local 250 if (!buf) { 258 status_t err = mBlobCache->flatten(buf + headerSize, cacheSize, NULL, 263 delete [] buf; 270 memcpy(buf, cacheFileMagic, 4); 271 uint32_t* crc = reinterpret_cast<uint32_t*>(buf + 4); 272 *crc = crc32c(buf + headerSize, cacheSize); 274 if (write(fd, buf, fileSiz 317 uint8_t* buf = reinterpret_cast<uint8_t*>(mmap(NULL, fileSize, local [all...] |
/frameworks/native/opengl/tests/gl2_basic/ |
H A D | gl2_basic.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/gl_perf/ |
H A D | fill_common.cpp | 44 char* buf = (char*) malloc(infoLen); local 45 if (buf) { 46 glGetShaderInfoLog(shader, infoLen, NULL, buf); 47 ALOGE("Could not compile shader %d:\n%s\n", shaderType, buf); 48 free(buf); 94 char* buf = (char*) malloc(bufLength); local 95 if (buf) { 96 glGetProgramInfoLog(program, bufLength, NULL, buf); 97 ALOGE("Could not link program:\n%s\n", buf); 98 free(buf); [all...] |
/frameworks/native/opengl/tests/gl_yuvtex/ |
H A D | gl_yuvtex.cpp | 98 char* buf = NULL; local 99 status_t err = yuvTexBuffer->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); 109 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = intensity; 111 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = intensity; 113 buf[yuvTexOffsetV + (y * yuvTexStrideV) + x] = intensity; 115 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 0] = 116 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 1] = 117 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 0] = 118 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 1] = intensity;
|
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glGetActiveAttrib.cpp | 194 char* buf = (char*) malloc(len); local 196 if (buf == NULL) { 241 (char *)buf 253 result = _env->NewStringUTF(buf); 255 if (buf) { 256 free(buf); 290 char* buf = (char*) malloc(len); local 292 if (buf == NULL) { 314 (char *)buf 323 result = _env->NewStringUTF(buf); [all...] |
H A D | glGetActiveUniform.cpp | 196 char* buf = (char*) malloc(len); local 198 if (buf == NULL) { 244 (char *)buf 257 result = _env->NewStringUTF(buf); 259 if (buf) { 260 free(buf); 290 char* buf = (char*) malloc(len); local 292 if (buf == NULL) { 315 (char *)buf 324 result = _env->NewStringUTF(buf); [all...] |
/frameworks/rs/driver/ |
H A D | rsdIntrinsicBlur.cpp | 164 float buf[4 * 2048]; local 177 float4 *fout = (float4 *)buf; 192 OneH(p, out, x1, (float4 *)buf, cp->fp, cp->iradius); 198 rsdIntrinsicBlurHF_K(out, ((float4 *)buf) - cp->iradius, cp->fp, cp->iradius * 2 + 1, x1, x2 - cp->iradius); 204 OneH(p, out, x1, (float4 *)buf, cp->fp, cp->iradius);
|
/frameworks/support/renderscript/v8/rs_support/driver/ |
H A D | rsdIntrinsicBlur.cpp | 164 float buf[4 * 2048]; local 173 float4 *fout = (float4 *)buf; 188 OneH(p, out, x1, (float4 *)buf, cp->fp, cp->iradius); 194 rsdIntrinsicBlurHF_K(out, ((float4 *)buf) - cp->iradius, cp->fp, cp->iradius * 2 + 1, x1, x2 - cp->iradius); 200 OneH(p, out, x1, (float4 *)buf, cp->fp, cp->iradius);
|
/frameworks/base/media/libdrm/mobile1/src/objmng/ |
H A D | drm_rights_manager.c | 578 uint8_t dbuf[3 * DRM_ONE_AES_BLOCK_LEN], buf[DRM_ONE_AES_BLOCK_LEN]; local 623 AES_decrypt((uint8_t *)b2, buf, key); 628 buf[i] ^= b1[i]; 634 buf[i] ^= b3[i]; 639 b3[i] = buf[i]; 655 memcpy(pTarget, buf, (size_t)wlen);
|
/frameworks/base/native/android/ |
H A D | asset_manager.cpp | 171 int AAsset_read(AAsset* asset, void* buf, size_t count) argument 173 return asset->mAsset->read(buf, (size_t)count);
|
/frameworks/av/drm/drmserver/ |
H A D | DrmManagerService.cpp | 223 int uniqueId, const DrmBuffer& buf, const String8& mimeType) { 226 return mDrmManager->openDecryptSession(uniqueId, buf, mimeType); 222 openDecryptSession( int uniqueId, const DrmBuffer& buf, const String8& mimeType) argument
|
/frameworks/av/media/libeffects/visualizer/ |
H A D | EffectVisualizer.cpp | 320 uint8_t *buf = pContext->mCaptureBuf; local 330 buf[captIdx] = ((uint8_t)smp)^0x80;
|
/frameworks/av/media/libstagefright/wifi-display/sink/ |
H A D | WifiDisplaySink.cpp | 630 char buf[128]; local 631 strftime(buf, sizeof(buf), "%a, %d %b %Y %H:%M:%S %z", now2); 634 response->append(buf);
|
/frameworks/base/cmds/installd/ |
H A D | installd.c | 157 char *buf = _buf; local 161 r = read(s, buf + n, count - n); 178 const char *buf = _buf; local 182 r = write(s, buf + n, count - n); 530 char buf[BUFFER_MAX]; local 580 if (readx(s, buf, count)) { 584 buf[count] = 0; 585 if (execute(s, buf)) break;
|
/frameworks/base/core/jni/ |
H A D | android_database_CursorWindow.cpp | 227 char buf[32]; local 228 snprintf(buf, sizeof(buf), "%lld", value); 229 return env->NewStringUTF(buf); 232 char buf[32]; local 233 snprintf(buf, sizeof(buf), "%g", value); 234 return env->NewStringUTF(buf); 316 char buf[32]; local 317 snprintf(buf, sizeo 321 char buf[32]; local [all...] |