Searched defs:buffer (Results 26 - 50 of 680) sorted by relevance

1234567891011>>

/frameworks/native/libs/gui/tests/
H A DSurfaceTextureGLToGL_test.cpp43 // 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/wilhelm/tools/hashgen/
H A Dfrag3.c4 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 Drecord.cpp55 // that the buffer size mSize it set correctly above.
80 MediaBuffer **buffer, const MediaSource::ReadOptions *options) {
87 status_t err = mGroup.acquire_buffer(buffer);
93 memset((*buffer)->data(), x, mSize);
94 (*buffer)->set_range(0, mSize);
95 (*buffer)->meta_data()->clear();
96 (*buffer)->meta_data()->setInt64(
100 // printf("DummySource::read - returning buffer\n");
101 // ALOGI("DummySource::read - returning buffer");
238 MediaBuffer *buffer;
330 MediaBuffer *buffer; local
[all...]
/frameworks/av/drm/common/
H A DReadWriteUtils.cpp57 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 DClearKeyFetcher.cpp50 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 Dmain_audioserver.cpp74 char buffer[32]; local
96 snprintf(buffer, sizeof(buffer), "unknown (%d)", info.si_code);
97 code = buffer;
/frameworks/av/media/libaaudio/src/utility/
H A DFixedBlockReader.cpp36 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 DFixedBlockWriter.cpp27 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/libmedia/
H A DMidiIoWrapper.cpp27 static int readAt(void *handle, void *buffer, int pos, int size) { argument
28 return ((android::MidiIoWrapper*)handle)->readAt(buffer, pos, size);
69 int MidiIoWrapper::readAt(void *buffer, int offset, int size) {
70 ALOGV("readAt(%p, %d, %d)", buffer, offset, size);
73 return mDataSource->readAt(offset, buffer, size);
83 return read(mFd, buffer, size);
/frameworks/av/media/libnbaio/
H A DLibsndfileSink.cpp37 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 DLibsndfileSource.cpp46 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 DMonoPipeReader.cpp46 ssize_t MonoPipeReader::read(void *buffer, size_t count) argument
49 ssize_t actual = mFifoReader.read(buffer, count);
H A DPipe.cpp28 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 DPipeReader.cpp62 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 DDataURISource.cpp37 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 DMediaAdapter.cpp68 void MediaAdapter::signalBufferReturned(MediaBuffer *buffer) { argument
70 CHECK(buffer != NULL);
71 buffer->setObserver(0);
72 buffer->release();
73 ALOGV("buffer returned %p", buffer);
78 MediaBuffer **buffer, const ReadOptions * /* options */) {
98 *buffer = mCurrentMediaBuffer;
100 (*buffer)->setObserver(this);
105 status_t MediaAdapter::pushBuffer(MediaBuffer *buffer) { argument
77 read( MediaBuffer **buffer, const ReadOptions * ) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG2TSAssembler.cpp76 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);
/frameworks/av/media/libstagefright/tests/
H A DDummyRecorder.cpp78 MediaBuffer *buffer; local
80 while (mStarted && (err = mSource->read(&buffer)) == OK){
81 // if not getting a valid buffer from source, then exit
82 if (buffer == NULL) {
85 buffer->release();
86 buffer = NULL;
/frameworks/base/core/java/android/content/pm/
H A DLimitedLengthInputStream.java68 public int read(byte[] buffer, int offset, int byteCount) throws IOException { argument
73 final int arrayLength = buffer.length;
84 final int numRead = super.read(buffer, offset, byteCount);
91 public int read(byte[] buffer) throws IOException { argument
92 return read(buffer, 0, buffer.length);
H A DMacAuthenticatedInputStream.java71 public int read(byte[] buffer, int offset, int count) throws IOException { argument
72 int numRead = super.read(buffer, offset, count);
74 mMac.update(buffer, offset, numRead);
/frameworks/base/core/java/android/util/
H A DLogPrinter.java48 * Same as above, but buffer is one of the LOG_ID_ constants from android.util.Log.
50 public LogPrinter(int priority, String tag, int buffer) { argument
53 mBuffer = buffer;
/frameworks/base/core/java/android/view/
H A DAppTransitionAnimationSpec.java18 public final GraphicBuffer buffer; field in class:AppTransitionAnimationSpec
21 public AppTransitionAnimationSpec(int taskId, GraphicBuffer buffer, Rect rect) { argument
24 this.buffer = buffer;
30 buffer = in.readParcelable(null);
42 dest.writeParcelable(buffer, 0);
58 return "{taskId: " + taskId + ", buffer: " + buffer + ", rect: " + rect + "}";
/frameworks/base/core/java/com/android/internal/util/
H A DSizedInputStream.java49 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { argument
56 final int n = mWrapped.read(buffer, byteOffset, byteCount);
/frameworks/base/libs/hwui/
H A DImage.cpp25 Image::Image(sp<GraphicBuffer> buffer) { argument
28 EGLClientBuffer clientBuffer = (EGLClientBuffer) buffer->getNativeBuffer();
/frameworks/base/libs/hwui/tests/common/scenes/
H A DHwBitmapInCompositeShader.cpp42 sp<GraphicBuffer> buffer = new GraphicBuffer(400, 200, PIXEL_FORMAT_RGBA_8888, usage); variable
45 buffer->lock(GraphicBuffer::USAGE_SW_WRITE_RARELY, ((void**)&pixels));
46 size_t size = bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride()
47 * buffer->getHeight();
55 buffer->unlock();
56 sk_sp<Bitmap> hardwareBitmap(Bitmap::createFrom(buffer));

Completed in 250 milliseconds

1234567891011>>