/frameworks/base/core/jni/ |
H A D | android_database_CursorWindow.cpp | 261 char buf[32]; local 262 snprintf(buf, sizeof(buf), "%" PRId64, value); 263 return env->NewStringUTF(buf); 266 char buf[32]; local 267 snprintf(buf, sizeof(buf), "%g", value); 268 return env->NewStringUTF(buf); 350 char buf[32]; local 351 snprintf(buf, sizeo 355 char buf[32]; local [all...] |
/frameworks/base/libs/androidfw/ |
H A D | Asset.cpp | 113 char buf[64]; local 114 snprintf(buf, sizeof(buf), ": %dK\n", (int)size); 115 res.append(buf); 487 ssize_t _FileAsset::read(void* buf, size_t count) argument 516 memcpy(buf, (char*)mMap->getDataPtr() + mOffset, count); 520 //printf("buf read\n"); 521 memcpy(buf, (char*)mBuf + mOffset, count); 539 actual = fread(buf, 1, count, mFp); 624 unsigned char* buf; local 710 unsigned char* buf = new unsigned char[mLength]; local 812 read(void* buf, size_t count) argument 900 unsigned char* buf = NULL; local [all...] |
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaPipeline.cpp | 172 SkDynamicMemoryWStream buf; variable 173 return SkEncodeImage(&buf, pixmap, SkEncodedImageFormat::kPNG, 100) 174 ? buf.detachAsData().release()
|
/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 | 588 char buf[16384]; local 609 len = read(fd, buf, sizeof(buf)); 610 done = len < (ssize_t)sizeof(buf); 616 if (XML_Parse(parser, buf, len, done) == XML_STATUS_ERROR) {
|
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
H A D | StaticLayout_Delegate.java | 56 /*package*/ static long nLoadHyphenator(ByteBuffer buf, int offset, int minPrefix, argument 58 return Hyphenator_Delegate.loadHyphenator(buf, offset, minPrefix, minSuffix);
|
/frameworks/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 341 int32_t* buf = static_cast<int32_t*>(buffer); 342 buf[0] = 'GBFR'; 343 buf[1] = width; 344 buf[2] = height; 345 buf[3] = stride; 346 buf[4] = format; 347 buf[5] = static_cast<int32_t>(layerCount); 348 buf[6] = usage; 349 buf[7] = static_cast<int32_t>(mId >> 32); 350 buf[ 378 int const* buf = static_cast<int const*>(buffer); local [all...] |
/frameworks/native/libs/vr/libbufferhubqueue/ |
H A D | buffer_hub_queue_client.cpp | 255 int BufferHubQueue::AddBuffer(const std::shared_ptr<BufferHubBuffer>& buf, argument 274 const int ret = epoll_fd_.Control(EPOLL_CTL_ADD, buf->event_fd(), &event); 281 buffers_[slot] = buf; 287 auto& buf = buffers_[slot]; local 288 if (buf == nullptr) { 293 const int ret = epoll_fd_.Control(EPOLL_CTL_DEL, buf->event_fd(), nullptr); 307 void BufferHubQueue::Enqueue(const std::shared_ptr<BufferHubBuffer>& buf, argument 319 buffer_info.buffer = buf; 333 std::shared_ptr<BufferHubBuffer> buf; 341 std::swap(buffer_info.buffer, buf); 432 AddBuffer(const std::shared_ptr<BufferProducer>& buf, size_t slot) argument 474 OnBufferReady(const std::shared_ptr<BufferHubBuffer>& buf, LocalHandle* release_fence) argument 554 AddBuffer(const std::shared_ptr<BufferConsumer>& buf, size_t slot) argument 609 OnBufferReady(const std::shared_ptr<BufferHubBuffer>& buf, LocalHandle* acquire_fence) argument [all...] |
H A D | buffer_hub_queue_producer.cpp | 33 sp<GraphicBuffer>* buf) { 65 *buf = graphic_buffer; 88 for (const auto& buf : buffers_) { 89 if (buf.mBufferState.isDequeued()) { 32 requestBuffer(int slot, sp<GraphicBuffer>* buf) argument
|
/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/gles11/ |
H A D | common.cpp | 222 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local 223 if (buf) { 226 buf += position << elementSizeShift; 231 return (void*) buf;
|
/frameworks/native/opengl/tools/glgen/stubs/jsr239/ |
H A D | GLCHeader.cpp | 177 void* buf = _env->GetDirectBufferAddress(buffer); local 178 if (buf) { 181 buf = ((char*) buf) + (position << elementSizeShift); 187 buf = getPointer(_env, buffer, &array, &remaining, &offset); 189 releasePointer(_env, array, buf, 0); 191 buf = (char*)buf + offset; 197 return buf;
|
/frameworks/native/services/sensorservice/ |
H A D | SensorEventConnection.cpp | 559 unsigned char buf[sizeof(sensors_event_t)]; local 560 ssize_t numBytesRead = ::recv(fd, buf, sizeof(buf), MSG_DONTWAIT); 571 memcpy(&sensor_event, buf, sizeof(sensors_event_t)); 586 memcpy(&numAcks, buf, numBytesRead);
|
/frameworks/native/services/surfaceflinger/ |
H A D | MonitoredProducer.cpp | 58 status_t MonitoredProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { argument 59 return mProducer->requestBuffer(slot, buf);
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicBlur.cpp | 294 float4 *buf = &stackbuf[0]; local 323 buf = (float4 *) ((((intptr_t)cp->mScratch[info->lid]) + 15) & ~0xf); 325 float4 *fout = (float4 *)buf; 341 OneHU4(info, out, x1, buf, cp->mFp, cp->mIradius); 348 rsdIntrinsicBlurHFU4_K(out, buf - cp->mIradius, cp->mFp, 356 OneHU4(info, out, x1, buf, cp->mFp, cp->mIradius); 365 float buf[4 * 2048]; local 391 float *fout = (float *)buf; 408 OneHU1(info, out, x1, buf, cp->mFp, cp->mIradius); 418 // rsdIntrinsicBlurHFU1_K() processes each four float values in |buf| a [all...] |
/frameworks/rs/driver/ |
H A D | rsdShader.cpp | 258 char* buf = (char*) malloc(infoLen); local 259 if (buf) { 260 RSD_CALL_GL(glGetShaderInfoLog, mCurrentState->mShaderID, infoLen, nullptr, buf); 261 rsc->setError(RS_ERROR_FATAL_PROGRAM_LINK, buf); 262 free(buf);
|
/frameworks/av/drm/common/ |
H A D | IDrmManagerService.cpp | 660 int uniqueId, const DrmBuffer& buf, const String8& mimeType) { 666 if (buf.data != NULL && buf.length > 0) { 667 data.writeInt32(buf.length); 668 data.write(buf.data, buf.length); 1372 DrmBuffer buf((bufferSize > 0) ? (char *)data.readInplace(bufferSize) : NULL, 1376 DecryptHandle* handle = openDecryptSession(uniqueId, buf, mimeType); 659 openDecryptSession( int uniqueId, const DrmBuffer& buf, const String8& mimeType) argument
|
/frameworks/av/drm/drmserver/ |
H A D | DrmManager.cpp | 458 int uniqueId, const DrmBuffer& buf, const String8& mimeType) { 470 result = rDrmEngine.openDecryptSession(uniqueId, handle, buf, mimeType); 457 openDecryptSession( int uniqueId, const DrmBuffer& buf, const String8& mimeType) argument
|
H A D | DrmManagerService.cpp | 286 int uniqueId, const DrmBuffer& buf, const String8& mimeType) { 289 return mDrmManager->openDecryptSession(uniqueId, buf, mimeType); 285 openDecryptSession( int uniqueId, const DrmBuffer& buf, const String8& mimeType) argument
|
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClientImpl.cpp | 278 int uniqueId, const DrmBuffer& buf, const String8& mimeType) { 279 return getDrmManagerService()->openDecryptSession(uniqueId, buf, mimeType); 277 openDecryptSession( int uniqueId, const DrmBuffer& buf, const String8& mimeType) argument
|
/frameworks/av/media/libaudioprocessing/ |
H A D | AudioResamplerDyn.cpp | 226 TC* buf = NULL; local 231 (void)posix_memalign(reinterpret_cast<void**>(&buf), 32, (c.mL+1)*c.mHalfNumCoefs*sizeof(TC)); 238 firKaiserGen(buf, c.mL, c.mHalfNumCoefs, stopBandAtten, fcr, atten); 239 c.mFirCoefs = buf; 243 mCoefBuffer = buf; 253 testFir(buf, c.mL, c.mHalfNumCoefs, fp, fs, /*passSteps*/ 1000, /*stopSteps*/ 100000,
|
/frameworks/av/media/libeffects/visualizer/ |
H A D | EffectVisualizer.cpp | 381 uint8_t *buf = pContext->mCaptureBuf; local 391 buf[captIdx] = ((uint8_t)smp)^0x80;
|
/frameworks/av/media/libstagefright/ |
H A D | MP3Extractor.cpp | 98 uint8_t buf[kMaxReadBytes]; local 103 uint8_t *tmp = buf; 116 memcpy(buf, tmp, remainingBytes); 125 buf + remainingBytes, 133 tmp = buf;
|
/frameworks/av/media/libstagefright/codecs/avcdec/ |
H A D | SoftAVCDec.cpp | 96 static void ivd_aligned_free(void *ctxt, void *buf) { argument 98 free(buf);
|