Searched defs:buf (Results 176 - 200 of 270) sorted by relevance

1234567891011

/frameworks/av/media/libstagefright/webm/
H A DWebmElement.cpp85 int WebmElement::serializePayloadSize(uint8_t *buf) { argument
86 return serializeCodedUnsigned(encodeUnsigned(mSize), buf);
89 uint64_t WebmElement::serializeInto(uint8_t *buf) { argument
90 uint8_t *cur = buf;
97 return cur - buf;
101 uint8_t buf[8]; local
103 return sizeOf(mId) + serializePayloadSize(buf) + mSize;
108 uint8_t *buf = new uint8_t[size]; local
109 serializeInto(buf);
110 return buf;
114 uint8_t buf[8]; local
141 serializePayload(uint8_t *buf) argument
155 serializePayload(uint8_t *buf) argument
175 serializePayload(uint8_t *buf) argument
185 serializePayload(uint8_t *buf) argument
206 serializePayload(uint8_t *buf) argument
207 serializeCodedUnsigned(encodeUnsigned(mTrackNum), buf); local
222 serializePayloadSize(uint8_t *buf) argument
226 serializePayload(uint8_t *buf) argument
241 serializePayloadSize(uint8_t *buf) argument
248 serializePayload(uint8_t *buf) argument
307 AudioTrackEntry( int chans, double rate, const sp<ABuffer> &buf, int bps, uint64_t uid, bool lacing, const char *lang) argument
369 sp<ABuffer> buf = new ABuffer((void *)data, size); // note: buf does not own data local
[all...]
H A DWebmWriter.cpp41 size_t XiphLaceEnc(uint8_t *buf, size_t size) { argument
44 buf[i] = 0xff;
46 buf[i++] = size;
/frameworks/av/services/audioflinger/
H A DAudioResamplerDyn.cpp216 TC* buf = NULL; local
221 (void)posix_memalign(reinterpret_cast<void**>(&buf), 32, (c.mL+1)*c.mHalfNumCoefs*sizeof(TC));
228 firKaiserGen(buf, c.mL, c.mHalfNumCoefs, stopBandAtten, fcr, atten);
229 c.mFirCoefs = buf;
233 mCoefBuffer = buf;
243 testFir(buf, c.mL, c.mHalfNumCoefs, fp, fs, /*passSteps*/ 1000, /*stopSteps*/ 100000,
/frameworks/base/core/java/android/os/
H A DParcelFileDescriptor.java258 final byte[] buf = new byte[MAX_STATUS];
259 status = readCommStatus(fd, buf);
735 final byte[] buf = getOrCreateStatusBuffer();
738 Memory.pokeInt(buf, writePtr, status, ByteOrder.BIG_ENDIAN);
743 final int len = Math.min(rawMsg.length, buf.length - writePtr);
744 System.arraycopy(rawMsg, 0, buf, writePtr, len);
749 Os.write(mCommFd, buf, 0, writePtr);
764 private static Status readCommStatus(FileDescriptor comm, byte[] buf) { argument
767 final int n = Os.read(comm, buf, 0, buf
[all...]
/frameworks/base/core/jni/
H A Dandroid_opengl_GLES10Ext.cpp248 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local
249 if (buf) {
252 buf += position << elementSizeShift;
257 return (void*) buf;
H A Dcom_android_internal_os_Zygote.cpp408 char buf[16]; // MAX_TASK_COMM_LEN=16 is hard-coded into bionic local
409 strlcpy(buf, s, sizeof(buf)-1);
410 errno = pthread_setname_np(pthread_self(), buf);
412 ALOGW("Unable to set the name of current thread to '%s': %s", buf, strerror(errno));
/frameworks/base/libs/input/
H A DPointerController.cpp477 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; local
478 while ((n = mDisplayEventReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) {
480 if (buf[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) {
481 timestamp = buf[i].header.timestamp;
/frameworks/base/packages/MtpDocumentsProvider/jni/
H A Dcom_android_mtp_AppFuse.cpp365 void* buf) {
384 memcpy(buf, bytes.get(), read_size);
361 get_object_bytes( int inode, uint64_t offset, uint32_t size, void* buf) argument
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifTag.java332 byte[] buf = value.getBytes(US_ASCII);
333 byte[] finalBuf = buf;
334 if (buf.length > 0) {
335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays
336 .copyOf(buf, buf.length + 1);
836 protected void getBytes(byte[] buf) { argument
837 getBytes(buf,
850 getBytes(byte[] buf, int offset, int length) argument
[all...]
/frameworks/base/tools/aapt/
H A DZipFile.cpp207 unsigned char* buf = NULL; local
223 buf = new unsigned char[EndOfCentralDir::kMaxEOCDSearch];
224 if (buf == NULL) {
245 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) {
253 if (buf[i] == 0x50 &&
254 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature)
256 ALOGV("+++ Found EOCD at buf+%d\n", i);
267 result = mEOCD.readBuf(buf + i, readAmount - i);
341 delete[] buf;
1141 bool ZipFile::uncompress(const ZipEntry* pEntry, void* buf) cons
1153 void* buf = malloc(unlen); local
1217 readBuf(const unsigned char* buf, int len) argument
1261 unsigned char buf[kEOCDLen]; local
[all...]
/frameworks/compile/slang/
H A Dslang_rs_reflection_cpp.cpp431 unsigned char buf[16]; local
435 while ((read_length = fread(buf, 1, sizeof(buf), pfin)) > 0) {
439 snprintf(buf2, sizeof(buf2), "0x%02x,", buf[i]);
/frameworks/native/libs/gui/
H A DBufferQueueProducer.cpp58 status_t BufferQueueProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { argument
84 *buf = mSlots[slot].mGraphicBuffer;
544 BQ_LOGV("dequeueBuffer: returning slot=%d/%" PRIu64 " buf=%p flags=%#x",
H A DIGraphicBufferProducer.cpp71 virtual status_t requestBuffer(int bufferIdx, sp<GraphicBuffer>* buf) { argument
81 *buf = new GraphicBuffer();
82 result = reply.read(**buf);
84 (*buf).clear();
120 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, uint32_t width, argument
132 *buf = reply.readInt32();
198 virtual status_t queueBuffer(int buf, argument
202 data.writeInt32(buf);
213 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { argument
216 data.writeInt32(buf);
487 int buf = 0; local
536 int buf = data.readInt32(); local
548 int buf = data.readInt32(); local
[all...]
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp165 void checkPixel(const CpuConsumer::LockedBuffer &buf, argument
168 switch(buf.format) {
171 uint16_t *bPtr = (uint16_t*)buf.data;
172 bPtr += y * buf.stride + x;
190 uint8_t *bPtr = (uint8_t*)buf.data;
191 bPtr += y * buf.stride + x;
198 uint16_t *bPtr = ((uint16_t*)buf.data) + y * buf.stride + x;
205 uint8_t *bPtr = (uint8_t*)buf.data;
206 bPtr += (y * buf
225 fillGreyscaleBuffer(T* buf, int w, int h, int stride, int bpp) argument
254 fillRgba8888Buffer(uint8_t* buf, int w, int h, int stride) argument
281 fillBayerRawBuffer(uint8_t* buf, int w, int h, int stride) argument
307 checkGreyscaleBuffer(const CpuConsumer::LockedBuffer &buf) argument
346 checkRgba8888Buffer(const CpuConsumer::LockedBuffer &buf) argument
389 checkBayerRawBuffer(const CpuConsumer::LockedBuffer &buf) argument
430 checkAnyBuffer(const CpuConsumer::LockedBuffer &buf, int format) argument
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer_hwc1.cpp631 const sp<Fence>& acquireFence, const sp<GraphicBuffer>& buf) {
649 // ALOGD("fbPost: handle=%p, fence=%d", buf->handle, acquireFenceFd);
650 disp.fbTargetHandle = buf->handle;
891 const sp<GraphicBuffer>& buf) {
898 disp.outbufHandle = buf->handle;
630 setFramebufferTarget(int32_t id, const sp<Fence>& acquireFence, const sp<GraphicBuffer>& buf) argument
H A DVirtualDisplaySurface.cpp416 const sp<GraphicBuffer>& buf = mProducerBuffers[mOutputProducerSlot]; local
417 if ((usage & ~buf->getUsage()) != 0 ||
418 (format != 0 && format != buf->getPixelFormat()) ||
426 buf->getPixelFormat(), buf->getUsage());
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DCatService.java542 ByteArrayOutputStream buf = new ByteArrayOutputStream();
554 buf.write(tag);
555 buf.write(0x03); // length
556 buf.write(cmdDet.commandNumber);
557 buf.write(cmdDet.typeOfCommand);
558 buf.write(cmdDet.commandQualifier);
568 buf.write(tag);
569 buf.write(0x02); // length
570 buf.write(DEV_ID_TERMINAL); // source device id
571 buf
604 encodeOptionalTags(CommandDetails cmdDet, ResultCode resultCode, Input cmdInput, ByteArrayOutputStream buf) argument
633 getInKeyResponse(ByteArrayOutputStream buf, Input cmdInput) argument
642 getPliResponse(ByteArrayOutputStream buf) argument
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduComposer.java185 * Copy buf to mMessage.
187 protected void arraycopy(byte[] buf, int pos, int length) { argument
188 mMessage.write(buf, pos, length);
/frameworks/rs/cpu_ref/
H A DrsCpuExecutable.cpp173 char buf[len + 1]; local
179 buf[i] = 'a' + r;
182 buf[i] = 'A' + (r - 26);
185 buf[i] = '0' + (r - 52);
188 buf[len] = '\0';
189 return String8(buf);
H A DrsCpuScript.cpp65 char buf[PROPERTY_VALUE_MAX];
68 property_get("debug.rs.precision", buf, "");
69 if (buf[0] != '\0') {
74 property_get("debug.rs.forcerecompile", buf, "0");
75 if ((::strcmp(buf, "1") == 0) || (::strcmp(buf, "true") == 0)) {
184 char buf[PROPERTY_VALUE_MAX]; local
185 property_get("ro.debuggable", buf, "");
186 return (buf[0] == '1');
196 char buf[25 local
[all...]
/frameworks/av/media/libstagefright/
H A DCameraSource.cpp368 char buf[4]; local
369 snprintf(buf, 4, "%d", frameRate);
370 if (strstr(supportedFrameRates, buf) == NULL) {
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A DvoAMRWBEnc.c198 Word16 buf[L_FRAME]; /* VAD buffer */ local
361 Copy(new_speech, buf, L_FRAME);
364 Scale_sig_opt(buf, L_FRAME, 1 - Q_new);
366 Scale_sig(buf, L_FRAME, 1 - Q_new);
369 vad_flag = wb_vad(st->vadSt, buf); /* Voice Activity Detection */
/frameworks/av/media/libstagefright/codecs/avcenc/
H A DSoftAVCEnc.cpp1451 uint8_t *buf = NULL; local
1455 buf = bufHdr->pBuffer + bufHdr->nOffset;
1457 if (s_encode_op.s_inp_buf.apv_bufs[0] == buf) {
/frameworks/av/media/libstagefright/foundation/
H A DANetworkSession.cpp274 sp<ABuffer> buf = new ABuffer(kMaxUDPSize); local
282 mSocket, buf->data(), buf->capacity(), 0,
292 buf->setRange(0, n);
295 buf->meta()->setInt64("arrivalTimeUs", nowUs);
313 notify->setBuffer("data", buf);
/frameworks/av/media/libstagefright/wifi-display/source/
H A DWifiDisplaySource.cpp1583 char buf[128]; local
1584 strftime(buf, sizeof(buf), "%a, %d %b %Y %H:%M:%S %z", now2);
1587 response->append(buf);

Completed in 545 milliseconds

1234567891011