Searched refs:buf (Results 226 - 250 of 465) sorted by relevance

1234567891011>>

/frameworks/base/cmds/bootanimation/
H A Daudioplay.cpp330 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 DReporter.h58 status_t write(uint8_t const* buf, size_t size);
H A DSection.cpp43 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 DStaticLayoutDirectionsTest.java117 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 DLinearAllocator.cpp96 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 Dutil.cpp243 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 DWordBreaker.cpp63 * 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 Ddumpsys.cpp248 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 DNullableOStream.h57 S& buf() const { function in class:android::lshal::NullableOStream
/frameworks/native/include/android/
H A Dasset_manager.h127 int AAsset_read(AAsset* asset, void* buf, size_t count);
/frameworks/native/libs/gui/
H A DCpuConsumer.cpp235 int buf = mAcquiredBuffers[lockedIdx].mSlot;
240 mSlots[buf].mGraphicBuffer,
248 mSlots[buf].mGraphicBuffer)) {
250 buf, mAcquiredBuffers[lockedIdx].mGraphicBuffer,
H A DGLConsumer.cpp292 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 DIGraphicBufferProducer.cpp78 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 DSurfaceFlingerConsumer.h49 virtual bool reject(const sp<GraphicBuffer>& buf,
/frameworks/opt/net/wifi/libwifi_system/
H A Dsupplicant_manager.cpp50 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 Dandroid_net_LocalSocketImpl.cpp177 * 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 Dservice_manager.c35 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 DrsdShaderCache.cpp163 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 DDatabaseGeneralTest.java336 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 DExifOutputStream.java484 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 DAutomaticBrightnessController.java718 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 DTextUtils.java554 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 DrsAllocation.cpp199 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 DFrameRenderTracker.cpp51 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 DAmrInputStream.java124 ByteBuffer buf = mCodec.getInputBuffer(index);
125 buf.put(mBuf, 0, numRead);

Completed in 552 milliseconds

1234567891011>>