/frameworks/native/libs/gui/include/gui/ |
H A D | BufferQueueConsumer.h | 159 virtual status_t releaseBuffer(int buf, uint64_t frameNumber, argument 162 return releaseBuffer(buf, frameNumber, releaseFence, display, fence);
|
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureGLToGL_test.cpp | 56 sp<GraphicBuffer> buf = mST->getCurrentBuffer(); local 58 ASSERT_EQ(texWidth, buf->getHeight()); 59 ASSERT_EQ(texHeight, buf->getWidth()); 61 ASSERT_EQ(texWidth, buf->getWidth()); 62 ASSERT_EQ(texHeight, buf->getHeight()); 74 buf = mST->getCurrentBuffer(); 76 ASSERT_EQ(texWidth, buf->getWidth()); 77 ASSERT_EQ(texHeight, buf->getHeight());
|
/frameworks/rs/ |
H A D | rsStream.cpp | 24 IStream::IStream(const uint8_t *buf, bool use64) { argument 25 mData = 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/base/core/java/android/text/ |
H A D | SpannableStringBuilder.java | 1222 char[] buf = new char[len]; 1224 getChars(0, len, buf, 0); 1225 return new String(buf); 1234 char[] buf = new char[end - start]; 1235 getChars(start, end, buf, 0); 1236 return new String(buf); 1424 char[] buf = TextUtils.obtain(end - start); 1426 getChars(start, end, buf, 0); 1427 c.drawText(buf, 0, end - start, x, y, p); 1428 TextUtils.recycle(buf); [all...] |
/frameworks/av/media/libstagefright/ |
H A D | SurfaceUtils.cpp | 223 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); 227 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 235 err = buf->unlock(); 241 err = nativeWindow->queueBuffer(nativeWindow, buf->getNativeBuffer(), -1);
|
/frameworks/base/cmds/bootanimation/ |
H A D | audioplay.cpp | 330 bool playClip(const uint8_t* buf, int size) { argument 333 if (!parseClipBuf(buf, size, &chunkFormat, &nextBuffer, &nextSize)) { 338 ALOGD("cannot play clip %p without a player", buf); 342 CHATTY("playClip on player %p: buf=%p size=%d nextSize %d", 343 bqPlayerBufferQueue, buf, size, nextSize);
|
/frameworks/base/cmds/statsd/benchmark/ |
H A D | log_event_benchmark.cpp | 60 std::copy(buffer.begin(), buffer.end(), msg->buf + kLogMsgHeaderSize);
|
/frameworks/base/cmds/statsd/src/external/ |
H A D | StatsCompanionServicePuller.cpp | 71 std::copy(it.bytes.begin(), it.bytes.end(), tmp.buf + kLogMsgHeaderSize);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | StaticLayoutDirectionsTest.java | 120 StringBuilder buf = new StringBuilder("\n"); 121 Formatter f = new Formatter(buf); 128 if (buf.length() > 1) { 129 fail(buf.toString());
|
/frameworks/base/libs/hwui/utils/ |
H A D | LinearAllocator.cpp | 93 void* operator new(size_t /*size*/, void* buf) { return buf; } argument 232 void* buf = malloc(pageSize); local 233 return new (buf) Page();
|
/frameworks/base/tools/bit/ |
H A D | util.cpp | 242 char* buf = (char*)malloc(size); local 243 if ((size_t) size != fread(buf, 1, size, file)) { 247 string result(buf, size); 249 free(buf);
|
/frameworks/minikin/libs/minikin/ |
H A D | WordBreaker.cpp | 113 * Determine whether a line break at position i within the buffer buf is valid. This 117 static bool isValidBreak(const uint16_t* buf, size_t bufEnd, int32_t i) { argument 125 U16_PREV(buf, 0, prev_offset, codePoint); 140 U16_NEXT(buf, next_offset, bufEnd, next_codepoint); 152 U16_PREV(buf, 0, prev_offset, codePoint);
|
/frameworks/native/cmds/lshal/ |
H A D | DebugCommand.cpp | 71 mLshal.out().buf(),
|
H A D | NullableOStream.h | 57 S& buf() const { function in class:android::lshal::NullableOStream
|
/frameworks/native/include/android/ |
H A D | asset_manager.h | 131 int AAsset_read(AAsset* asset, void* buf, size_t count);
|
/frameworks/native/libs/gui/ |
H A D | GLConsumer.cpp | 270 int buf = mCurrentTexture; local 271 if (buf != BufferQueue::INVALID_BUFFER_SLOT) { 273 GLC_LOGV("releaseTexImage: (slot=%d, mAttached=%d)", buf, mAttached); 279 GLC_LOGE("syncForReleaseLocked failed (slot=%d), err=%d", buf, err); 287 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); 368 status_t GLConsumer::releaseBufferLocked(int buf, argument 376 buf, graphicBuffer, display, eglFence); 377 mEglSlots[buf].mEglFence = EGL_NO_SYNC_KHR; 432 GLC_LOGV("updateAndRelease: (slot=%d buf 766 sp<GraphicBuffer> buf = (mCurrentTextureImage == nullptr) ? local 777 computeTransformMatrix(float outTransform[16], const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform, bool filtering) argument [all...] |
H A D | IGraphicBufferProducer.cpp | 82 virtual status_t requestBuffer(int bufferIdx, sp<GraphicBuffer>* buf) { argument 92 *buf = new GraphicBuffer(); 93 result = reply.read(**buf); 95 (*buf).clear(); 131 virtual status_t dequeueBuffer(int* buf, sp<Fence>* fence, uint32_t width, uint32_t height, argument 149 *buf = reply.readInt32(); 252 virtual status_t queueBuffer(int buf, argument 257 data.writeInt32(buf); 274 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { argument 277 data.writeInt32(buf); 771 int buf = 0; local 826 int buf = data.readInt32(); local 837 int buf = data.readInt32(); local [all...] |
/frameworks/base/core/jni/ |
H A D | android_net_LocalSocketImpl.cpp | 177 * Reads data from a socket into buf, processing any ancillary data 189 unsigned char *buf = (unsigned char *)buffer; local 197 iv.iov_base = buf; 239 void *buf, size_t len) 243 unsigned char *buffer = (unsigned char *)buf; 334 unsigned char buf; local 336 err = socket_read_all(env, object, fd, &buf, 1); 348 return (jint)buf; 238 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | KernelUidCpuFreqTimeReaderTest.java | 281 ByteBuffer buf = ByteBuffer.allocate(size); 282 buf.order(ByteOrder.nativeOrder()); 283 buf.putInt(times[0].length); 285 buf.putInt(uids[i]); 287 buf.putInt((int) (times[i][j] / 10)); 290 buf.flip(); 291 return buf.asReadOnlyBuffer().order(ByteOrder.nativeOrder());
|
/frameworks/ml/nn/runtime/test/ |
H A D | TestMemoryInternal.cpp | 184 uint8_t* buf = (uint8_t*)mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); local 185 ASSERT_NE(buf, nullptr); 186 *buf = 0; 190 // owns will be released before we check the value of *buf: We 204 ASSERT_EQ(*buf, (uint8_t)1); 205 ASSERT_EQ(munmap(buf, size), 0);
|
/frameworks/native/cmds/servicemanager/ |
H A D | service_manager.c | 34 static char buf[128]; local 36 char *p = buf; 49 return buf; 361 static int audit_callback(void *data, __unused security_class_t cls, char *buf, size_t len) argument 370 snprintf(buf, len, "service=%s pid=%d uid=%d", ad->name, ad->pid, ad->uid);
|
/frameworks/rs/driver/ |
H A D | rsdShaderCache.cpp | 163 char* buf = (char*) malloc(bufLength); local 164 if (buf) { 165 glGetProgramInfoLog(pgm, bufLength, nullptr, buf); 166 rsc->setError(RS_ERROR_FATAL_PROGRAM_LINK, buf); 167 free(buf);
|
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseGeneralTest.java | 365 CharArrayBuffer buf = new CharArrayBuffer(14); 372 c.copyStringToBuffer(numiIdx, buf); 373 assertEquals(1, buf.sizeCopied); 374 assertEquals(compareTo, new String(buf.data, 0, buf.sizeCopied)); 376 c.copyStringToBuffer(strIdx, buf); 377 assertEquals("ZoomZoomZoomZoom", new String(buf.data, 0, buf.sizeCopied)); 382 c.copyStringToBuffer(numfIdx, buf); 383 assertEquals(compareTo, new String(buf [all...] |
/frameworks/native/libs/binder/tests/ |
H A D | binderLibTest.cpp | 37 static ::testing::AssertionResult IsPageAligned(void *buf) { argument 38 if (((unsigned long)buf & ((unsigned long)PAGE_SIZE - 1)) == 0) 41 return ::testing::AssertionFailure() << buf << " is not page aligned"; 345 const uint8_t *buf = data.data(); local 349 EXPECT_LE((size_t)(buf - m_prev_end), (size_t)8); 351 EXPECT_TRUE(IsPageAligned((void *)buf)); 354 m_prev_end = buf + size + data.objectsCount() * sizeof(binder_size_t); 731 uint8_t buf[1] = { 0 }; local 754 ret = read(pipefd[0], buf, sizeof(buf)); 965 uint8_t buf[1] = { 0 }; local 1121 const void *buf; local [all...] |