/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioProfile.cpp | 188 char buffer[SIZE]; local 191 snprintf(buffer, SIZE, "%s%s%s\n", mIsDynamicFormat ? "[dynamic format]" : "", 194 result.append(buffer); 196 snprintf(buffer, SIZE, "%*s- name: %s\n", spaces, "", mName.string()); 197 result.append(buffer); 201 snprintf(buffer, SIZE, "%*s- format: %s\n", spaces, "", formatLiteral.c_str()); 202 result.append(buffer); 205 snprintf(buffer, SIZE, "%*s- sampling rates:", spaces, ""); 206 result.append(buffer); 208 snprintf(buffer, SIZ [all...] |
H A D | StreamDescriptor.cpp | 85 char buffer[SIZE]; local 88 snprintf(buffer, SIZE, "%s %02d %02d ", 90 result.append(buffer); 92 snprintf(buffer, SIZE, "%04x : %02d, ", 95 result.append(buffer); 210 char buffer[SIZE]; local 212 snprintf(buffer, SIZE, "\nStreams dump:\n"); 213 write(fd, buffer, strlen(buffer)); 214 snprintf(buffer, SIZ [all...] |
H A D | AudioOutputDescriptor.cpp | 189 char buffer[SIZE]; local 192 snprintf(buffer, SIZE, " ID: %d\n", mId); 193 result.append(buffer); 194 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate); 195 result.append(buffer); 196 snprintf(buffer, SIZE, " Format: %08x\n", mFormat); 197 result.append(buffer); 198 snprintf(buffer, SIZE, " Channels: %08x\n", mChannelMask); 199 result.append(buffer); 200 snprintf(buffer, SIZ 243 char buffer[SIZE]; local 400 char buffer[SIZE]; local 538 char buffer[SIZE]; local 583 char buffer[SIZE]; local [all...] |
/frameworks/base/core/java/android/os/ |
H A D | MemoryFile.java | 50 private static native int native_read(FileDescriptor fd, long address, byte[] buffer, argument 52 private static native void native_write(FileDescriptor fd, long address, byte[] buffer, argument 191 * @param buffer byte array to read bytes into. 193 * @param destOffset offset into the byte array buffer to read into. 198 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument 203 if (destOffset < 0 || destOffset > buffer.length || count < 0 204 || count > buffer.length - destOffset 209 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); 216 * @param buffer byte array to write bytes from. 217 * @param srcOffset offset into the byte array buffer t 222 writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument 303 read(byte buffer[], int offset, int count) argument 336 write(byte buffer[], int offset, int count) argument [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3Stream.cpp | 205 // Reset prepared state, since buffer config has changed, and existing 273 ALOGE("%s: Stream %d: Can't prepare stream if max buffer count (%d) is < 0", 339 ALOGE("%s: Stream %d: Can't prepare buffer if stream is not in PREPARING " 344 // Get next buffer - this may allocate, and take a while for large buffers 347 ALOGE("%s: Stream %d: Unable to allocate buffer %zu during preparation", 419 // Free buffers by disconnecting and then reconnecting to the buffer queue 454 status_t Camera3Stream::getBuffer(camera3_stream_buffer *buffer) { argument 466 // Wait for new buffer returned back if we are running into the limit. 473 ALOGE("%s: wait for output buffer return timed out after %lldms (max_buffers %d)", 481 res = getBufferLocked(buffer); 492 isOutstandingBuffer(const camera3_stream_buffer &buffer) argument 505 removeOutstandingBuffer(const camera3_stream_buffer &buffer) argument 518 returnBuffer(const camera3_stream_buffer &buffer, nsecs_t timestamp) argument 550 getInputBuffer(camera3_stream_buffer *buffer) argument 587 returnInputBuffer(const camera3_stream_buffer &buffer) argument 614 fireBufferListenersLocked( const camera3_stream_buffer& buffer, bool acquired, bool output) argument [all...] |
H A D | Camera3IOStreamBase.cpp | 60 " buffer signal time is %" PRId64, 146 void Camera3IOStreamBase::handoutBufferLocked(camera3_stream_buffer &buffer, argument 158 buffer.stream = this; 159 buffer.buffer = handle; 160 buffer.acquire_fence = acquireFence; 161 buffer.release_fence = releaseFence; 162 buffer.status = status; 216 const camera3_stream_buffer &buffer, 234 res = returnBufferCheckedLocked(buffer, timestam 215 returnAnyBufferLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output) argument [all...] |
H A D | Camera3InputStream.cpp | 46 camera3_stream_buffer *buffer) { 71 ALOGE("%s: Stream %d: Can't acquire next output buffer: %s (%d)", 84 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, 92 const camera3_stream_buffer &buffer, 107 // Find the buffer we are returning 115 if (anb != NULL && &(anb->handle) == buffer.buffer) { 124 ALOGE("%s: Stream %d: Can't return buffer that wasn't sent to HAL", 129 if (buffer.status == CAMERA3_BUFFER_STATUS_ERROR) { 130 if (buffer 45 getInputBufferLocked( camera3_stream_buffer *buffer) argument 91 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument 159 returnInputBufferLocked( const camera3_stream_buffer &buffer) argument [all...] |
H A D | Camera3ZslStream.cpp | 54 * Try to find the best candidate for a ZSL buffer. 104 * and we get an 'empty' result only if the ring buffer 131 status_t Camera3ZslStream::getInputBufferLocked(camera3_stream_buffer *buffer) { argument 163 ALOGE("%s: Stream %d: No input buffer was queued", 179 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, 188 const camera3_stream_buffer &buffer, 196 return Camera3OutputStream::returnBufferCheckedLocked(buffer, 208 // Find the buffer we are returning 217 if (anb != NULL && &(anb->handle) == buffer.buffer) { 187 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument 259 returnInputBufferLocked( const camera3_stream_buffer &buffer) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | Utils.cpp | 82 static status_t copyNALUToABuffer(sp<ABuffer> *buffer, const uint8_t *ptr, size_t length) { argument 83 if (((*buffer)->size() + 4 + length) > ((*buffer)->capacity() - (*buffer)->offset())) { 84 sp<ABuffer> tmpBuffer = new (std::nothrow) ABuffer((*buffer)->size() + 4 + length + 1024); 88 memcpy(tmpBuffer->data(), (*buffer)->data(), (*buffer)->size()); 89 tmpBuffer->setRange(0, (*buffer)->size()); 90 (*buffer) = tmpBuffer; 93 memcpy((*buffer) 779 sp<ABuffer> buffer = new (std::nothrow) ABuffer(1024); local 868 sp<ABuffer> buffer = new (std::nothrow) ABuffer(1024); local 936 sp<ABuffer> buffer = new (std::nothrow) ABuffer(codec_specific_data_size); local 976 sp<ABuffer> buffer = new (std::nothrow) ABuffer(size); local 1000 sp<ABuffer> buffer = new (std::nothrow) ABuffer(size); local 1038 sp<ABuffer> buffer = new (std::nothrow) ABuffer(size); local 1053 sp<ABuffer> buffer = new (std::nothrow) ABuffer(size); local 1737 char buffer[SIZE]; local [all...] |
H A D | SurfaceMediaSource.cpp | 102 char buffer[1024]; local 103 dump(result, "", buffer, 1024); 109 char* buffer, 114 result.append(buffer); 158 ALOGE("Failed to find the advertised buffer count"); 255 void SurfaceMediaSource::passMetadataBuffer_l(MediaBuffer **buffer, argument 257 *buffer = new MediaBuffer(sizeof(VideoNativeMetadata)); 258 VideoNativeMetadata *data = (VideoNativeMetadata *)(*buffer)->data(); 260 ALOGE("Cannot allocate memory for metadata buffer!"); 267 bufferHandle, (*buffer) 106 dump( String8& result, const char* , char* buffer, size_t ) const argument 270 read( MediaBuffer **buffer, const ReadOptions * ) argument 375 getMediaBufferHandle(MediaBuffer *buffer) argument 383 signalBufferReturned(MediaBuffer *buffer) argument [all...] |
H A D | MidiExtractor.cpp | 48 MediaBuffer **buffer, const ReadOptions *options = NULL); 120 MediaBuffer *buffer; local 130 buffer = mEngine->readBuffer(); 131 *outBuffer = buffer; 133 return buffer != NULL ? (status_t) OK : (status_t) ERROR_END_OF_STREAM; 209 ALOGV("using %d byte buffer", bufsize); 232 MediaBuffer *buffer; local 233 status_t err = mGroup->acquire_buffer(&buffer); 235 ALOGE("readBuffer: no buffer"); 241 buffer [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | sf2.cpp | 348 sp<ABuffer> buffer = new ABuffer(1024); local 349 buffer->setRange(0, 0); 360 memcpy(buffer->data() + buffer->size(), "\x00\x00\x00\x01", 4); 361 memcpy(buffer->data() + buffer->size() + 4, ptr, length); 362 buffer->setRange(0, buffer->size() + 4 + length); 368 buffer->meta()->setInt32("csd", true); 369 mCSD.push(buffer); 409 sp<ABuffer> buffer = new ABuffer(codec_specific_data_size); local 417 sp<ABuffer> buffer = new ABuffer(size); local 555 sp<ABuffer> buffer; local [all...] |
/frameworks/av/media/mtp/ |
H A D | MtpProperty.cpp | 222 MtpStringBuffer buffer(string); 223 mDefaultValue.str = strdup(buffer); 232 MtpStringBuffer buffer(string); 233 mCurrentValue.str = strdup(buffer); 339 MtpString buffer; local 347 buffer = " default value: "; 348 print(mDefaultValue, buffer); 349 ALOGI("%s", (const char *)buffer); 351 buffer = " current value: "; 352 print(mCurrentValue, buffer); 386 print(MtpPropertyValue& value, MtpString& buffer) argument [all...] |
/frameworks/base/core/java/android/util/apk/ |
H A D | ZipUtils.java | 61 // end of the buffer for the EOCD record signature. Whenever we find a signature, we check 63 // exactly the remaining bytes in the buffer. The search is bounded because the maximum 104 // end of the buffer for the EOCD record signature. Whenever we find a signature, we check 106 // exactly the remaining bytes in the buffer. The search is bounded because the maximum 128 // No EoCD record found in the buffer 140 * buffer or {@code -1} if the record is not present. 152 // end of the buffer for the EOCD record signature. Whenever we find a signature, we check 154 // exactly the remaining bytes in the buffer. The search is bounded because the maximum 242 private static void assertByteOrderLittleEndian(ByteBuffer buffer) { argument 243 if (buffer 248 getUnsignedInt16(ByteBuffer buffer, int offset) argument 252 getUnsignedInt32(ByteBuffer buffer, int offset) argument 256 setUnsignedInt32(ByteBuffer buffer, int offset, long value) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | AudioTrackShared.cpp | 111 status_t ClientProxy::obtainBuffer(Buffer* buffer, const struct timespec *requested, argument 114 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0); 203 // The calculation for avail can go negative if the buffer size 204 // is suddenly dropped below the amount already in the buffer. 223 if (part1 > buffer->mFrameCount) { 224 part1 = buffer->mFrameCount; 226 buffer->mFrameCount = part1; 227 buffer->mRaw = part1 > 0 ? 229 buffer 337 releaseBuffer(Buffer* buffer) argument 625 obtainBuffer(Buffer* buffer, bool ackFlush) argument 736 releaseBuffer(Buffer* buffer) argument 979 obtainBuffer(Buffer* buffer, bool ackFlush) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | MemoryFileTest.java | 75 byte[] buffer = new byte[testString.length]; 79 file.readBytes(buffer, 2000, 0, testString.length); 80 compareBuffers(testString, buffer, testString.length); 83 buffer = new byte[testString.length]; 90 is.read(buffer); 91 compareBuffers(testString, buffer, testString.length); 94 buffer = new byte[testString.length]; 96 is.read(buffer); 97 compareBuffers(testString, buffer, testString.length); 129 byte[] buffer [all...] |
/frameworks/compile/mclinker/lib/Target/ |
H A D | ELFAttribute.cpp | 142 char* buffer = reinterpret_cast<char*>(pRegion.begin()); local 143 buffer[0] = FormatVersion; 152 total_size += (*subsec_it)->emit(buffer + total_size); 304 char* buffer = pBuf; local 312 subsection_length_hole = buffer; 313 buffer += 4; 317 ::memcpy(buffer, vendor_name.c_str(), vendor_name.length()); 318 buffer += vendor_name.length(); 321 *buffer++ = '\0'; 324 *buffer [all...] |
/frameworks/multidex/library/test/src/android/support/multidex/ |
H A D | ZipUtilTest.java | 83 ByteBuffer buffer = ByteBuffer.wrap(dirData); 85 while (buffer.hasRemaining()) { 86 buffer = buffer.slice(); 87 buffer.order(ByteOrder.LITTLE_ENDIAN); 88 ZipEntry entry = ZipEntryReader.readEntry(buffer); 115 byte[] buffer = new byte[0x2000]; 122 int read = in.read(buffer); 124 out.write(buffer, 0, read); 125 read = in.read(buffer); [all...] |
/frameworks/native/libs/gui/ |
H A D | BufferQueueCore.cpp | 139 const sp<GraphicBuffer>& buffer(mSlots[s].mGraphicBuffer); 140 // A dequeued buffer might be null if it's still being allocated 141 if (buffer.get()) { 145 buffer.get(), mSlots[s].mBufferState.string(), 146 buffer->handle, buffer->width, buffer->height, 147 buffer->stride, buffer->format); 150 buffer [all...] |
/frameworks/base/core/java/android/nfc/ |
H A D | NdefMessage.java | 96 ByteBuffer buffer = ByteBuffer.wrap(data); 98 mRecords = NdefRecord.parse(buffer, false); 100 if (buffer.remaining() > 0) { 194 ByteBuffer buffer = ByteBuffer.allocate(length); 199 mRecords[i].writeToByteBuffer(buffer, mb, me); 202 return buffer.array();
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | SynthesisPlaybackQueueItem.java | 93 byte[] buffer = null; 97 // (a) there is a buffer available to tread. In which case 101 while ((buffer = take()) != null) { 102 mAudioTrack.write(buffer); 176 void put(byte[] buffer) throws InterruptedException { argument 186 // Don't bother queueing the buffer if we've stopped. The playback thread 194 mDataBufferList.add(new ListEntry(buffer)); 195 mUnconsumedBytes += buffer.length;
|
/frameworks/native/services/surfaceflinger/EventLog/ |
H A D | EventLog.cpp | 36 EventLog::TagBuffer buffer(LOGTAG_SF_FRAME_DUR); 37 buffer.startList(1 + numDurations); 38 buffer.writeString8(window); 40 buffer.writeInt32(durations[i]); 42 buffer.endList(); 43 buffer.log(); 64 // purge the buffer
|
/frameworks/base/media/jni/ |
H A D | android_media_ImageReader.cpp | 89 void returnBufferItem(BufferItem* buffer); 134 BufferItem* buffer = new BufferItem; local 135 mBuffers.push_back(buffer); 170 BufferItem* buffer = *it; local 172 return buffer; 175 void JNIImageReaderContext::returnBufferItem(BufferItem* buffer) { argument 176 mBuffers.push_back(buffer); 192 // Delete buffer items. 270 const BufferItem* buffer) 272 env->SetLongField(thiz, gSurfaceImageClassInfo.mNativeBuffer, reinterpret_cast<jlong>(buffer)); 269 Image_setBufferItem(JNIEnv* env, jobject thiz, const BufferItem* buffer) argument 426 BufferItem* buffer = Image_getBufferItem(env, image); local 467 BufferItem* buffer = Image_getBufferItem(env, image); local 490 BufferItem* buffer = ctx->getBufferItem(); local 593 BufferItem* buffer = Image_getBufferItem(env, image); local 630 BufferItem* buffer = Image_getBufferItem(env, thiz); local 659 Image_getLockedImageInfo(JNIEnv* env, LockedImage* buffer, int idx, int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) argument 729 BufferItem* buffer = Image_getBufferItem(env, thiz); local 735 BufferItem* buffer = Image_getBufferItem(env, thiz); local 745 BufferItem* buffer = Image_getBufferItem(env, thiz); local [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AMPEG4ElementaryAssembler.cpp | 229 sp<ABuffer> buffer = *queue->begin(); local 233 mNextExpectedSeqNo = (uint32_t)buffer->int32Data(); 234 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) { 241 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime)); 249 mPackets.push_back(buffer); 251 // hexdump(buffer->data(), buffer->size()); 252 if (buffer->size() < 2) { 256 unsigned AU_headers_length = U16_AT(buffer->data()); // in bits 258 if (buffer [all...] |
/frameworks/native/include/gui/ |
H A D | Surface.h | 83 /* Attaches a sideband buffer stream to the Surface's IGraphicBufferProducer. 128 * thread to queue a buffer. 149 ANativeWindowBuffer* buffer, int fenceFd); 151 ANativeWindowBuffer** buffer, int* fenceFd); 155 ANativeWindowBuffer* buffer, int fenceFd); 159 ANativeWindowBuffer* buffer); 161 ANativeWindowBuffer** buffer); 163 ANativeWindowBuffer* buffer); 165 ANativeWindowBuffer* buffer); 190 virtual int dequeueBuffer(ANativeWindowBuffer** buffer, in 235 sp<GraphicBuffer> buffer; member in struct:android::Surface::BufferSlot [all...] |