/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/incidentd/src/ |
H A D | Reporter.h | 58 status_t write(uint8_t const* buf, size_t size);
|
H A D | Section.cpp | 43 uint8_t buf[20]; local 44 uint8_t* p = write_length_delimited_tag_header(buf, this->id, size); 45 return requests->write(buf, p-buf);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | StaticLayoutDirectionsTest.java | 117 StringBuilder buf = new StringBuilder("\n"); 118 Formatter f = new Formatter(buf); 125 if (buf.length() > 1) { 126 fail(buf.toString());
|
/frameworks/base/libs/hwui/utils/ |
H A D | LinearAllocator.cpp | 96 void* operator new(size_t /*size*/, void* buf) { return buf; } argument 240 void* buf = malloc(pageSize); local 241 return new (buf) Page();
|
/frameworks/base/tools/bit/ |
H A D | util.cpp | 243 char* buf = (char*)malloc(size); local 244 fread(buf, 1, size, file); 246 string result(buf, size); 248 free(buf);
|
/frameworks/minikin/libs/minikin/ |
H A D | WordBreaker.cpp | 63 * Determine whether a line break at position i within the buffer buf is valid. This 67 static bool isBreakValid(const uint16_t* buf, size_t bufEnd, size_t i) { argument 70 U16_PREV(buf, 0, prev_offset, codePoint); 85 U16_NEXT(buf, next_offset, bufEnd, next_codepoint); 97 U16_PREV(buf, 0, prev_offset, codePoint);
|
/frameworks/native/cmds/dumpsys/ |
H A D | dumpsys.cpp | 248 char buf[4096]; local 249 rc = TEMP_FAILURE_RETRY(read(local_end.get(), buf, sizeof(buf))); 260 if (!WriteFully(STDOUT_FILENO, buf, rc)) {
|
/frameworks/native/cmds/lshal/ |
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 | 127 int AAsset_read(AAsset* asset, void* buf, size_t count);
|
/frameworks/native/libs/gui/ |
H A D | CpuConsumer.cpp | 235 int buf = mAcquiredBuffers[lockedIdx].mSlot; 240 mSlots[buf].mGraphicBuffer, 248 mSlots[buf].mGraphicBuffer)) { 250 buf, mAcquiredBuffers[lockedIdx].mGraphicBuffer,
|
H A D | GLConsumer.cpp | 292 int buf = mCurrentTexture; local 293 if (buf != BufferQueue::INVALID_BUFFER_SLOT) { 295 GLC_LOGV("releaseTexImage: (slot=%d, mAttached=%d)", buf, mAttached); 301 GLC_LOGE("syncForReleaseLocked failed (slot=%d), err=%d", buf, err); 309 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); 390 status_t GLConsumer::releaseBufferLocked(int buf, argument 398 buf, graphicBuffer, display, eglFence); 399 mEglSlots[buf].mEglFence = EGL_NO_SYNC_KHR; 454 GLC_LOGV("updateAndRelease: (slot=%d buf 807 sp<GraphicBuffer> buf = (mCurrentTextureImage == nullptr) ? local 818 computeTransformMatrix(float outTransform[16], const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform, bool filtering) argument [all...] |
H A D | IGraphicBufferProducer.cpp | 78 virtual status_t requestBuffer(int bufferIdx, sp<GraphicBuffer>* buf) { argument 88 *buf = new GraphicBuffer(); 89 result = reply.read(**buf); 91 (*buf).clear(); 127 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, uint32_t width, argument 145 *buf = reply.readInt32(); 237 virtual status_t queueBuffer(int buf, argument 242 data.writeInt32(buf); 259 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { argument 262 data.writeInt32(buf); 660 int buf = 0; local 714 int buf = data.readInt32(); local 725 int buf = data.readInt32(); local [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlingerConsumer.h | 49 virtual bool reject(const sp<GraphicBuffer>& buf,
|
/frameworks/opt/net/wifi/libwifi_system/ |
H A D | supplicant_manager.cpp | 50 char buf[2048]; local 100 while ((nread = TEMP_FAILURE_RETRY(read(srcfd, buf, sizeof(buf)))) != 0) { 109 TEMP_FAILURE_RETRY(write(destfd, buf, nread));
|
/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/native/cmds/servicemanager/ |
H A D | service_manager.c | 35 static char buf[128]; local 37 char *p = buf; 50 return buf; 349 static int audit_callback(void *data, __unused security_class_t cls, char *buf, size_t len) argument 358 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 | 336 CharArrayBuffer buf = new CharArrayBuffer(14); 343 c.copyStringToBuffer(numiIdx, buf); 344 assertEquals(1, buf.sizeCopied); 345 assertEquals(compareTo, new String(buf.data, 0, buf.sizeCopied)); 347 c.copyStringToBuffer(strIdx, buf); 348 assertEquals("ZoomZoomZoomZoom", new String(buf.data, 0, buf.sizeCopied)); 353 c.copyStringToBuffer(numfIdx, buf); 354 assertEquals(compareTo, new String(buf [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifOutputStream.java | 484 byte buf[] = tag.getStringByte(); 485 if (buf.length == tag.getComponentCount()) { 486 buf[buf.length - 1] = 0; 487 dataOutputStream.write(buf); 489 dataOutputStream.write(buf); 507 buf = new byte[tag.getComponentCount()]; 508 tag.getBytes(buf); 509 dataOutputStream.write(buf);
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | AutomaticBrightnessController.java | 718 StringBuffer buf = new StringBuffer(); 719 buf.append('['); 723 buf.append(", "); 725 buf.append(getLux(i)); 726 buf.append(" / "); 727 buf.append(next - getTime(i)); 728 buf.append("ms"); 730 buf.append(']'); 731 return buf.toString();
|
/frameworks/base/core/java/android/text/ |
H A D | TextUtils.java | 554 char[] buf = new char[end - start]; 556 getChars(start, end, buf, 0); 557 return new String(buf); 1185 char[] buf = mt.mChars; 1191 buf[left++] = ellipsis.charAt(0); 1194 buf[i] = ZWNBS_CHAR; 1196 String s = new String(buf, 0, len); 1211 sb.append(buf, 0, left); 1213 sb.append(buf, right, len - right); 1348 char[] buf [all...] |
/frameworks/rs/ |
H A D | rsAllocation.cpp | 199 char buf[1024]; local 200 snprintf(buf, sizeof(buf), 203 rsc->setError(RS_ERROR_BAD_VALUE, buf); 230 char buf[1024]; local 231 snprintf(buf, sizeof(buf), 234 rsc->setError(RS_ERROR_BAD_VALUE, buf); 250 char buf[1024]; local 251 snprintf(buf, sizeo 354 char buf[1024]; local [all...] |
/frameworks/av/media/libstagefright/ |
H A D | FrameRenderTracker.cpp | 51 ANativeWindowBuffer *buf, int fenceFd, int index) { 60 if (it->mGraphicBuffer->handle == buf->handle) { 50 updateInfoForDequeuedBuffer( ANativeWindowBuffer *buf, int fenceFd, int index) argument
|
/frameworks/base/media/java/android/media/ |
H A D | AmrInputStream.java | 124 ByteBuffer buf = mCodec.getInputBuffer(index); 125 buf.put(mBuf, 0, numRead);
|