/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | voAMRWBEnc.c | 198 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 D | SoftAVCEnc.cpp | 1456 uint8_t *buf = NULL; local 1460 buf = bufHdr->pBuffer + bufHdr->nOffset; 1462 if (s_encode_op.s_inp_buf.apv_bufs[0] == buf) {
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ANetworkSession.cpp | 274 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 D | WifiDisplaySource.cpp | 1581 char buf[128]; local 1582 strftime(buf, sizeof(buf), "%a, %d %b %Y %H:%M:%S %z", now2); 1585 response->append(buf);
|
/frameworks/av/services/camera/libcameraservice/device1/ |
H A D | CameraHardwareInterface.cpp | 200 buffer_handle_t& buf = anb->handle; local 201 auto it = mBufferIdMap.find(buf); 204 mBufferIdMap[buf] = bufId; 230 hidl_handle buf = nullptr; local 234 buf = (pair.first) ? anb->handle : nullptr; 239 _hidl_cb(s, bufferId, buf, stride); 432 status_t CameraHardwareInterface::setPreviewWindow(const sp<ANativeWindow>& buf) argument 434 ALOGV("%s(%s) buf %p", __FUNCTION__, mName.string(), buf.get()); 436 mPreviewWindow = buf; [all...] |
/frameworks/base/core/java/android/util/apk/ |
H A D | ApkSignatureSchemeV2Verifier.java | 832 private static byte[] readLengthPrefixedByteArray(ByteBuffer buf) throws IOException { argument 833 int len = buf.getInt(); 836 } else if (len > buf.remaining()) { 838 + ", available: " + buf.remaining()); 841 buf.get(result); 1053 ByteBuffer buf = new DirectByteBuffer( 1061 buf.position(0); 1062 md.update(buf); 1086 public ByteBufferDataSource(ByteBuffer buf) { argument 1087 // Defensive copy, to avoid changes to mBuf being visible in buf [all...] |
/frameworks/base/libs/androidfw/ |
H A D | BackupHelpers.cpp | 223 char* buf = (char*)malloc(bufsize); local 235 free(buf); 245 free(buf); 251 while ((amt = read(fd, buf, bufsize)) != 0 && bytesLeft > 0) { 256 err = dataStream->WriteEntityData(buf, amt); 258 free(buf); 266 memset(buf, 0, bufsize); 270 err = dataStream->WriteEntityData(buf, amt); 272 free(buf); 281 free(buf); 316 char* buf = (char*)malloc(bufsize); local 444 calc_tar_checksum(char* buf, size_t buf_size) argument 460 write_pax_header_entry(char* buf, size_t buf_size, const char* key, const char* value) argument 553 char* buf = (char *)calloc(1,BUFSIZE); local 748 void* buf = m_buf; local [all...] |
/frameworks/base/libs/common_time/ |
H A D | common_time_server.cpp | 612 uint8_t buf[256]; local 617 mSocket, buf, sizeof(buf), 0, 627 if (pkt.deserializePacket(buf, recvBytes, mSyncGroupID) < 0) { 631 hexDumpToString(buf, static_cast<size_t>(recvBytes), hex, sizeof(hex)); 784 uint8_t buf[256]; local 785 ssize_t bufSz = pkt.serializePacket(buf, sizeof(buf)); 790 mSocket, buf, bufSz, 0, 910 uint8_t buf[25 local 1072 uint8_t buf[256]; local 1119 uint8_t buf[256]; local 1157 uint8_t buf[256]; local 1389 sockaddrToString(const sockaddr_storage& addr, bool addrValid, char* buf, size_t bufLen) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_mtp_MtpDatabase.cpp | 793 char buf[1024]; local 795 entry->tag, entry->format, entry->size, exif_entry_get_value(entry, buf, sizeof(buf)));
|
/frameworks/base/media/jni/soundpool/ |
H A D | SoundPool.cpp | 570 uint8_t *buf = AMediaCodec_getInputBuffer(codec, bufidx, &bufsize); local 571 if (buf == nullptr) { 575 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); 607 uint8_t *buf = AMediaCodec_getOutputBuffer(codec, status, NULL /* out_size */); local 608 if (buf == nullptr) { 616 memcpy(writePos, buf + info.offset, dataSize);
|
/frameworks/native/cmds/atrace/ |
H A D | atrace.cpp | 567 char buf[PROPERTY_VALUE_MAX]; local 568 snprintf(buf, sizeof(buf), "%#" PRIx64, tags); 569 if (property_set(k_traceTagsProperty, buf) < 0) { 578 char buf[PROPERTY_KEY_MAX]; local 580 snprintf(buf, sizeof(buf), k_traceAppsPropertyTemplate, i); 581 if (property_set(buf, "") < 0) { 582 fprintf(stderr, "failed to clear system property: %s\n", buf); 595 char buf[PROPERTY_KEY_MA local 647 std::string buf; local [all...] |
/frameworks/native/cmds/installd/ |
H A D | utils.cpp | 580 char buf[8192]; local 582 while ((size = read(fsfd, buf, sizeof(buf))) > 0) { 583 write(fdfd, buf, size); 643 struct stat buf; local 644 memset(&buf, 0, sizeof(buf)); 645 if (stat(path.c_str(), &buf) != 0) { 649 *inode = buf.st_ino;
|
/frameworks/native/libs/binder/ |
H A D | IPCThreadState.cpp | 227 const int32_t buf = *cmd++; local 228 out << ": buffer=" << (void*)(long)buf;
|
/frameworks/native/libs/binder/tests/ |
H A D | binderLibTest.cpp | 612 uint8_t buf[1] = { 0 }; local 635 ret = read(pipefd[0], buf, sizeof(buf)); 636 EXPECT_EQ(sizeof(buf), (size_t)ret); 637 EXPECT_EQ(write_value, buf[0]); 641 ret = read(pipefd[0], buf, sizeof(buf)); 779 uint8_t buf[1] = { 0 }; local 898 const void *buf; local 909 buf [all...] |
/frameworks/native/libs/gui/ |
H A D | BufferQueueProducer.cpp | 63 status_t BufferQueueProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { argument 89 *buf = mSlots[slot].mGraphicBuffer; 559 BQ_LOGV("dequeueBuffer: returning slot=%d/%" PRIu64 " buf=%p flags=%#x",
|
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...] |
/frameworks/native/libs/gui/bufferqueue/1.0/ |
H A D | H2BGraphicBufferProducer.cpp | 967 status_t H2BGraphicBufferProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { argument 968 *buf = new GraphicBuffer(); 972 [&fnStatus, &buf] (Status status, AnwBuffer const& buffer) { 974 if (!convertTo(buf->get(), buffer)) {
|
/frameworks/native/libs/gui/tests/ |
H A D | Surface_test.cpp | 135 ANativeWindowBuffer* buf = 0; local 137 status_t err = native_window_dequeue_buffer_and_wait(anw.get(), &buf); 144 &buf)); 147 ASSERT_EQ(NO_ERROR, anw->cancelBuffer(anw.get(), buf, -1)); 152 &buf)); 153 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf, -1));
|
/frameworks/native/opengl/libagl/ |
H A D | primitives.cpp | 864 vertex_t* buf = buffer; local 915 c->arrays.clipEye(c, buf, t, p, s); 916 *output++ = buf++; 926 c->arrays.clipEye(c, buf, t, s, p); 927 *output++ = buf++; 980 c->arrays.clipVertex(c, buf, t, p, s); 981 *output++ = buf++; 991 c->arrays.clipVertex(c, buf, t, s, p); 992 *output++ = buf++;
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcTestLib.cpp | 604 void hwcTestSetPixel(GraphicBuffer *gBuf, unsigned char *buf, argument 628 *(buf + yPlaneOffset + y * yPlaneStride + x) = pixel & 0xff; 629 *(buf + uPlaneOffset + (y / 2) * uPlaneStride + (x / 2)) 631 *(buf + vPlaneOffset + (y / 2) * vPlaneStride + (x / 2)) 648 memmove(buf + ((gBuf->getStride() * attrib->bytes) * y) 655 unsigned char* buf = NULL; local 661 err = gBuf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); 669 hwcTestSetPixel(gBuf, buf, x, y, (x < gBuf->getWidth()) 693 unsigned char* buf = NULL; local 698 err = gBuf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); [all...] |
/frameworks/rs/ |
H A D | rsContext.cpp | 202 char buf[PROP_VALUE_MAX]; local 203 property_get(str, buf, "0"); 204 return atoi(buf);
|
/frameworks/av/media/libeffects/preprocessing/ |
H A D | PreProcessing.cpp | 1260 int16_t *buf; local 1262 buf = (int16_t *)realloc(session->inBuf, 1264 if (buf == NULL) { 1270 session->inBuf = buf; 1339 int16_t *buf; local 1341 buf = (int16_t *)realloc(session->outBuf, 1343 if (buf == NULL) { 1349 session->outBuf = buf; 1802 int16_t *buf; local 1804 buf [all...] |
/frameworks/av/media/libstagefright/ |
H A D | OggExtractor.cpp | 915 ogg_buffer buf; local 916 buf.data = (uint8_t *)data; 917 buf.size = size; 918 buf.refcount = 1; 919 buf.ptr.owner = NULL; 922 ref.buffer = &buf; 1001 ogg_buffer buf; local 1002 buf.data = commentData; 1003 buf.size = commentSize; 1004 buf 1090 ogg_buffer buf; local [all...] |
/frameworks/av/media/libstagefright/omx/ |
H A D | OMXNodeInstance.cpp | 157 sp<ABuffer> buf = new ABuffer(header->pBuffer, header->nAllocLen); local 161 buf->setRange(header->nOffset, header->nFilledLen); 163 buf->setRange(0, 0); 166 return buf;
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | MyHandler.h | 252 static void addRR(const sp<ABuffer> &buf) { argument 253 uint8_t *ptr = buf->data() + buf->size(); 263 buf->setRange(0, buf->size() + 8); 386 sp<ABuffer> buf = new ABuffer(65536); local 387 buf->setRange(0, 0); 388 addRR(buf); 389 addSDES(rtpSocket, buf); 394 rtpSocket, buf [all...] |