/frameworks/av/services/audioflinger/ |
H A D | AudioResamplerDyn.cpp | 216 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 D | ParcelFileDescriptor.java | 685 final byte[] buf = getOrCreateStatusBuffer(); 688 Memory.pokeInt(buf, writePtr, status, ByteOrder.BIG_ENDIAN); 693 final int len = Math.min(rawMsg.length, buf.length - writePtr); 694 System.arraycopy(rawMsg, 0, buf, writePtr, len); 698 Os.write(mCommFd, buf, 0, writePtr); 713 private static Status readCommStatus(FileDescriptor comm, byte[] buf) { argument 715 final int n = Os.read(comm, buf, 0, buf.length); 720 final int status = Memory.peekInt(buf, 0, ByteOrder.BIG_ENDIAN); 722 final String msg = new String(buf, [all...] |
/frameworks/base/core/jni/ |
H A D | com_android_internal_os_Zygote.cpp | 400 char buf[16]; // MAX_TASK_COMM_LEN=16 is hard-coded into bionic local 401 strlcpy(buf, s, sizeof(buf)-1); 402 errno = pthread_setname_np(pthread_self(), buf); 404 ALOGW("Unable to set the name of current thread to '%s'", buf);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifTag.java | 332 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/services/core/java/com/android/server/am/ |
H A D | ProcessList.java | 291 ByteBuffer buf = ByteBuffer.allocate(4 * (2*mOomAdj.length + 1)); 292 buf.putInt(LMK_TARGET); 294 buf.putInt((mOomMinFree[i]*1024)/PAGE_SIZE); 295 buf.putInt(mOomAdj[i]); 298 writeLmkd(buf); 605 ByteBuffer buf = ByteBuffer.allocate(4 * 4); 606 buf.putInt(LMK_PROCPRIO); 607 buf.putInt(pid); 608 buf.putInt(uid); 609 buf 645 writeLmkd(ByteBuffer buf) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | XMLNode.cpp | 580 char buf[16384]; local 601 len = read(fd, buf, sizeof(buf)); 602 done = len < (ssize_t)sizeof(buf); 608 if (XML_Parse(parser, buf, len, done) == XML_STATUS_ERROR) {
|
H A D | ZipFile.cpp | 207 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; 1144 bool ZipFile::uncompress(const ZipEntry* pEntry, void* buf) cons 1156 void* buf = malloc(unlen); local 1220 readBuf(const unsigned char* buf, int len) argument 1264 unsigned char buf[kEOCDLen]; local [all...] |
/frameworks/compile/slang/ |
H A D | slang_rs_reflection_cpp.cpp | 313 unsigned char buf[16]; local 317 while ((read_length = fread(buf, 1, sizeof(buf), pfin)) > 0) { 321 snprintf(buf2, sizeof(buf2), "0x%02x,", buf[i]);
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.c | 227 char *buf = (char *) malloc(size + 1); local 228 if (buf == NULL) { 232 int retval = klogctl(KLOG_READ_ALL, buf, size); 235 free(buf); 238 buf[retval] = '\0'; 239 printf("%s\n\n", buf); 240 free(buf); 378 char buf[PROPERTY_KEY_MAX + PROPERTY_VALUE_MAX + 10]; local 379 snprintf(buf, sizeof(buf), "[ [all...] |
/frameworks/native/cmds/installd/ |
H A D | installd.c | 191 char *buf = _buf; local 195 r = read(s, buf + n, count - n); 212 const char *buf = _buf; local 216 r = write(s, buf + n, count - n); 661 char buf[BUFFER_MAX]; local 721 if (readx(s, buf, count)) { 725 buf[count] = 0; 729 if (execute(s, buf)) break;
|
/frameworks/native/libs/gui/ |
H A D | BufferQueueProducer.cpp | 50 status_t BufferQueueProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { argument 71 *buf = mSlots[slot].mGraphicBuffer; 382 BQ_LOGV("dequeueBuffer: returning slot=%d/%" PRIu64 " buf=%p flags=%#x",
|
/frameworks/native/libs/gui/tests/ |
H A D | CpuConsumer_test.cpp | 165 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 D | HWComposer.cpp | 609 const sp<Fence>& acquireFence, const sp<GraphicBuffer>& buf) { 627 // ALOGD("fbPost: handle=%p, fence=%d", buf->handle, acquireFenceFd); 628 disp.fbTargetHandle = buf->handle; 868 const sp<GraphicBuffer>& buf) { 875 disp.outbufHandle = buf->handle; 608 setFramebufferTarget(int32_t id, const sp<Fence>& acquireFence, const sp<GraphicBuffer>& buf) argument
|
H A D | VirtualDisplaySurface.cpp | 365 const sp<GraphicBuffer>& buf = mProducerBuffers[mOutputProducerSlot]; local 366 if ((usage & ~buf->getUsage()) != 0 || 367 (format != 0 && format != (uint32_t)buf->getPixelFormat()) || 375 buf->getPixelFormat(), buf->getUsage());
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | CatService.java | 528 ByteArrayOutputStream buf = new ByteArrayOutputStream(); 540 buf.write(tag); 541 buf.write(0x03); // length 542 buf.write(cmdDet.commandNumber); 543 buf.write(cmdDet.typeOfCommand); 544 buf.write(cmdDet.commandQualifier); 554 buf.write(tag); 555 buf.write(0x02); // length 556 buf.write(DEV_ID_TERMINAL); // source device id 557 buf 590 encodeOptionalTags(CommandDetails cmdDet, ResultCode resultCode, Input cmdInput, ByteArrayOutputStream buf) argument 619 getInKeyResponse(ByteArrayOutputStream buf, Input cmdInput) argument 628 getPliResponse(ByteArrayOutputStream buf) argument [all...] |
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
H A D | PduComposer.java | 185 * 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 D | rsCpuScript.cpp | 51 char buf[len + 1]; local 57 buf[i] = 'a' + r; 60 buf[i] = 'A' + (r - 26); 63 buf[i] = '0' + (r - 52); 66 buf[len] = '\0'; 67 return std::string(buf); 199 char buf[PROPERTY_VALUE_MAX]; 202 property_get("debug.rs.precision", buf, ""); 203 if (buf[0] != '\0') { 208 property_get("debug.rs.forcerecompile", buf, " [all...] |
/frameworks/av/camera/tests/ |
H A D | ProCameraTests.cpp | 271 CpuConsumer::LockedBuffer buf; local 274 if (OK == (ret = consumer->lockNextBuffer(&buf))) { 277 ", dataPtr = " << (void*)buf.data << 278 ", timestamp = " << buf.timestamp << std::endl; 280 EXPECT_OK(consumer->unlockBuffer(buf)); 1012 CpuConsumer::LockedBuffer buf; local 1013 EXPECT_OK(consumer->lockNextBuffer(&buf)); 1016 ", dataPtr = " << (void*)buf.data << 1017 ", timestamp = " << buf.timestamp << std::endl; 1019 EXPECT_OK(consumer->unlockBuffer(buf)); 1148 CpuConsumer::LockedBuffer buf; local 1202 CpuConsumer::LockedBuffer buf; local [all...] |
/frameworks/av/media/libstagefright/ |
H A D | OggExtractor.cpp | 707 ogg_buffer buf; local 708 buf.data = (uint8_t *)data; 709 buf.size = size; 710 buf.refcount = 1; 711 buf.ptr.owner = NULL; 714 ref.buffer = &buf; 741 ogg_buffer buf; local 742 buf.data = (uint8_t *)data; 743 buf.size = size; 744 buf [all...] |
/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/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 | 1577 char buf[128]; local 1578 strftime(buf, sizeof(buf), "%a, %d %b %Y %H:%M:%S %z", now2); 1581 response->append(buf);
|
/frameworks/av/services/camera/libcameraservice/device1/ |
H A D | CameraHardwareInterface.h | 120 status_t setPreviewWindow(const sp<ANativeWindow>& buf) argument 122 ALOGV("%s(%s) buf %p", __FUNCTION__, mName.string(), buf.get()); 125 mPreviewWindow = buf; 130 buf.get() ? &mHalPreviewWindow.nw : 0);
|
/frameworks/base/core/java/android/net/dhcp/ |
H A D | DhcpPacket.java | 248 InetAddress srcIp, short destUdp, short srcUdp, ByteBuffer buf, 259 buf.clear(); 260 buf.order(ByteOrder.BIG_ENDIAN); 267 buf.put(IP_VERSION_HEADER_LEN); 268 buf.put(IP_TOS_LOWDELAY); // tos: IPTOS_LOWDELAY 269 ipLengthOffset = buf.position(); 270 buf.putShort((short)0); // length 271 buf.putShort((short)0); // id 272 buf.putShort(IP_FLAGS_OFFSET); // ip offset: don't fragment 273 buf 247 fillInPacket(int encap, InetAddress destIp, InetAddress srcIp, short destUdp, short srcUdp, ByteBuffer buf, byte requestCode, boolean broadcast) argument 373 checksum(ByteBuffer buf, int seed, int start, int end) argument 415 addTlv(ByteBuffer buf, byte type, byte value) argument 424 addTlv(ByteBuffer buf, byte type, byte[] payload) argument 435 addTlv(ByteBuffer buf, byte type, InetAddress addr) argument 444 addTlv(ByteBuffer buf, byte type, List<InetAddress> addrs) argument 458 addTlv(ByteBuffer buf, byte type, Integer value) argument 469 addTlv(ByteBuffer buf, byte type, String str) argument 483 addTlvEnd(ByteBuffer buf) argument 537 readAsciiString(ByteBuffer buf, int byteCount) argument [all...] |
/frameworks/base/core/java/android/speech/srec/ |
H A D | Recognizer.java | 287 * @param buf holds the audio samples. 293 public int putAudio(byte[] buf, int offset, int length, boolean isLast) { argument 294 return SR_RecognizerPutAudio(mRecognizer, buf, offset, length, isLast);
|