/frameworks/compile/mclinker/lib/Support/ |
H A D | Demangle.cpp | 29 char* buffer = local 30 abi::__cxa_demangle(pName.c_str(), /*buffer=*/0, &output_leng, &status); 34 std::string result(buffer); 35 free(buffer);
|
/frameworks/native/cmds/bugreportz/ |
H A D | bugreportz.cpp | 48 char buffer[65536]; local 49 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); 63 char c = buffer[i];
|
/frameworks/native/libs/gui/ |
H A D | HdrMetadata.cpp | 32 status_t HdrMetadata::flatten(void* buffer, size_t size) const { argument 37 FlattenableUtils::write(buffer, size, validTypes); 39 FlattenableUtils::write(buffer, size, smpte2086); 42 FlattenableUtils::write(buffer, size, cta8613); 48 status_t HdrMetadata::unflatten(void const* buffer, size_t size) { argument 52 FlattenableUtils::read(buffer, size, validTypes); 57 FlattenableUtils::read(buffer, size, smpte2086); 63 FlattenableUtils::read(buffer, size, cta8613);
|
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureGLToGL_test.cpp | 43 // Start a buffer with our chosen size and transform hint moving 53 // The current buffer should either show the effects of the transform 97 // This is needed to ensure we pick up a buffer of the correct size. 195 // This test should have the only reference to buffer 0. 198 // The GLConsumer should hold one reference to buffer 1 in its 252 // element in the array will be equal meaning that buffer representing both 264 sp<GraphicBuffer> buffer; local 284 buffer = mST->getCurrentBuffer(); 290 // make un-current, all references to buffer should be gone 297 EXPECT_EQ(1, buffer 302 sp<GraphicBuffer> buffer; local [all...] |
/frameworks/native/libs/vr/libdvr/ |
H A D | dvr_internal.h | 37 // The slot nubmer of the buffer, a valid slot number must be in the range of 46 // The slot nubmer of the buffer, a valid slot number must be in the range of 55 std::shared_ptr<android::dvr::IonBuffer> buffer; member in struct:DvrBuffer
|
/frameworks/support/media/src/main/java/androidx/media/ |
H A D | Media2DataSource.java | 39 * {@code buffer}, and return the number of bytes written. 46 * @param buffer the buffer to read the data into. 47 * @param offset the offset within buffer to read the data into. 52 public abstract int readAt(long position, byte[] buffer, int offset, int size) argument
|
/frameworks/wilhelm/tools/hashgen/ |
H A D | frag3.c | 4 extern void MPH_to_MPH_string(unsigned MPH, char buffer[40]); 18 char buffer[40]; local 19 buffer[39] = 'x'; 20 MPH_to_MPH_string(MPH, buffer); 21 assert('x' == buffer[39]); 22 printf(" %s", buffer);
|
/frameworks/av/cmds/stagefright/ |
H A D | record.cpp | 56 // that the buffer size mSize it set correctly above. 81 MediaBuffer **buffer, const MediaSource::ReadOptions *options) { 88 status_t err = mGroup.acquire_buffer(buffer); 94 memset((*buffer)->data(), x, mSize); 95 (*buffer)->set_range(0, mSize); 96 (*buffer)->meta_data()->clear(); 97 (*buffer)->meta_data()->setInt64( 101 // printf("DummySource::read - returning buffer\n"); 102 // ALOGI("DummySource::read - returning buffer"); 239 MediaBuffer *buffer; 331 MediaBufferBase *buffer; local [all...] |
/frameworks/av/drm/common/ |
H A D | ReadWriteUtils.cpp | 57 int ReadWriteUtils::readBytes(const String8& filePath, char** buffer) { argument 68 *buffer = new char[length]; 69 if (length != read(fd, (void*) *buffer, length)) {
|
/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A D | ClearKeyFetcher.cpp | 50 status_t ClearKeyFetcher::ObtainKey(const sp<ABuffer>& buffer, argument 59 status_t status = container.Parse(buffer); 109 container.descriptor(i).ecm().buffer(), asset_);
|
/frameworks/av/media/audioserver/ |
H A D | main_audioserver.cpp | 79 char buffer[32]; local 101 snprintf(buffer, sizeof(buffer), "unknown (%d)", info.si_code); 102 code = buffer;
|
/frameworks/av/media/libaaudio/src/utility/ |
H A D | FixedBlockReader.cpp | 36 int32_t FixedBlockReader::readFromStorage(uint8_t *buffer, int32_t numBytes) { argument 42 memcpy(buffer, mStorage + mPosition, bytesToRead); 47 int32_t FixedBlockReader::processVariableBlock(uint8_t *buffer, int32_t numBytes) { argument 53 int32_t bytesRead = readFromStorage(buffer, bytesLeft); 54 buffer += bytesRead; 58 result = mFixedBlockProcessor.onProcessFixedBlock(buffer, mSize); 59 buffer += mSize;
|
H A D | FixedBlockWriter.cpp | 27 int32_t FixedBlockWriter::writeToStorage(uint8_t *buffer, int32_t numBytes) { argument 33 memcpy(mStorage + mPosition, buffer, bytesToStore); 38 int32_t FixedBlockWriter::processVariableBlock(uint8_t *buffer, int32_t numBytes) { argument 44 int32_t bytesWritten = writeToStorage(buffer, bytesLeft); 45 buffer += bytesWritten; 56 result = mFixedBlockProcessor.onProcessFixedBlock(buffer, mSize); 57 buffer += mSize; 63 writeToStorage(buffer, bytesLeft);
|
/frameworks/av/media/libaaudio/tests/ |
H A D | test_session_id.cpp | 32 float *buffer = new float[kNumFrames * kChannelCount]; local 54 ASSERT_EQ(kNumFrames, AAudioStream_write(aaudioStream1, buffer, kNumFrames, kNanosPerSecond)); 59 delete[] buffer; 75 float *buffer = new float[kNumFrames * kChannelCount]; local 109 buffer, kNumFrames, kNanosPerSecond)); 112 buffer, kNumFrames, kNanosPerSecond)); 138 buffer, kNumFrames, kNanosPerSecond)); 141 buffer, kNumFrames, kNanosPerSecond)); 150 delete[] buffer;
|
/frameworks/av/media/libmedia/ |
H A D | MediaCodecBuffer.cpp | 27 MediaCodecBuffer::MediaCodecBuffer(const sp<AMessage> &format, const sp<ABuffer> &buffer) argument 30 mBuffer(buffer) {
|
H A D | MidiIoWrapper.cpp | 27 static int readAt(void *handle, void *buffer, int pos, int size) { argument 28 return ((android::MidiIoWrapper*)handle)->readAt(buffer, pos, size); 71 int MidiIoWrapper::readAt(void *buffer, int offset, int size) { 72 ALOGV("readAt(%p, %d, %d)", buffer, offset, size); 75 return mDataSource->readAt(offset, buffer, size); 85 return read(mFd, buffer, size);
|
/frameworks/av/media/libnbaio/ |
H A D | LibsndfileSink.cpp | 37 ssize_t LibsndfileSink::write(const void *buffer, size_t count) argument 45 sf_count_t actual = sf_writef_short(mSndfile, (short *) buffer, (sf_count_t) count);
|
H A D | LibsndfileSource.cpp | 46 ssize_t LibsndfileSource::read(void *buffer, size_t count) argument 54 sf_count_t actual = sf_readf_short(mSndfile, (short *) buffer, (sf_count_t) count);
|
H A D | MonoPipeReader.cpp | 46 ssize_t MonoPipeReader::read(void *buffer, size_t count) argument 49 ssize_t actual = mFifoReader.read(buffer, count);
|
H A D | Pipe.cpp | 28 Pipe::Pipe(size_t maxFrames, const NBAIO_Format& format, void *buffer) : argument 30 // TODO fifo now supports non-power-of-2 buffer sizes, so could remove the roundup 32 mBuffer(buffer == NULL ? malloc(mMaxFrames * Format_frameSize(format)) : buffer), 36 mFreeBufferInDestructor(buffer == NULL) 48 ssize_t Pipe::write(const void *buffer, size_t count) argument 54 ssize_t actual = mFifoWriter.write(buffer, count);
|
H A D | PipeReader.cpp | 62 ssize_t PipeReader::read(void *buffer, size_t count) argument 65 ssize_t actual = mFifoReader.read(buffer, count, NULL /*timeout*/, &lost);
|
/frameworks/av/media/libstagefright/ |
H A D | CallbackMediaSource.cpp | 39 status_t CallbackMediaSource::read(MediaBufferBase **buffer, const ReadOptions *options) { argument 40 return mSource->read(buffer, reinterpret_cast<const ReadOptions*>(options));
|
H A D | DataURISource.cpp | 37 sp<ABuffer> buffer; local 52 buffer = decodeBase64(encoded); 54 if (buffer == NULL) { 61 buffer = new ABuffer(dataLen); 62 memcpy(buffer->data(), commaPos + 1, dataLen); 74 return new DataURISource(buffer); 77 DataURISource::DataURISource(const sp<ABuffer> &buffer) argument 78 : mBuffer(buffer) {
|
H A D | MediaAdapter.cpp | 75 void MediaAdapter::signalBufferReturned(MediaBufferBase *buffer) { argument 77 CHECK(buffer != NULL); 78 buffer->setObserver(0); 79 buffer->release(); 80 ALOGV("buffer returned %p", buffer); 85 MediaBufferBase **buffer, const ReadOptions * /* options */) { 105 *buffer = mCurrentMediaBuffer; 111 status_t MediaAdapter::pushBuffer(MediaBuffer *buffer) { argument 112 if (buffer 84 read( MediaBufferBase **buffer, const ReadOptions * ) argument [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AMPEG2TSAssembler.cpp | 76 sp<ABuffer> buffer = *queue->begin(); local 80 mNextExpectedSeqNo = (uint32_t)buffer->int32Data(); 81 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) { 87 // hexdump(buffer->data(), buffer->size()); 89 if ((buffer->size() % 188) > 0) { 99 msg->setBuffer("access-unit", buffer);
|