Searched defs:buffer (Results 1 - 25 of 408) sorted by relevance

1234567891011>>

/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dwrapper_output.cpp19 bool WrapperOutput::Write(const uint8_t* buffer, size_t buffer_size) { argument
22 if (!Write(buffer[i])) return false;
H A Dfile_wrapper_output.cpp38 bool FileWrapperOutput::Write(const uint8_t* buffer, size_t buffer_size) { argument
39 if (!buffer) {
44 return buffer_size == fwrite(buffer, 1, buffer_size, _file);
/frameworks/wilhelm/src/
H A Dinterfaces.c131 void MPH_to_MPH_string(unsigned MPH, char buffer[40]) argument
136 strcpy(buffer, "MPH");
137 strcpy(&buffer[3], infix);
138 strcat(buffer, "_");
139 strcat(buffer, interface_names[MPH]);
/frameworks/wilhelm/tools/hashgen/
H A Dinterfaces.c131 void MPH_to_MPH_string(unsigned MPH, char buffer[40]) argument
136 strcpy(buffer, "MPH");
137 strcpy(&buffer[3], infix);
138 strcat(buffer, "_");
139 strcat(buffer, interface_names[MPH]);
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/compile/libbcc/lib/Support/
H A Dsha1.h10 unsigned char buffer[64]; member in struct:__anon1247
/frameworks/native/cmds/bugreport/
H A Dbugreport.c25 char buffer[65536]; local
48 int length = read(s, buffer, sizeof(buffer));
51 fwrite(buffer, 1, length, stdout);
/frameworks/av/include/private/media/
H A DAudioEffectShared.h29 // Size of buffer used to exchange parameters between application and mediaserver processes.
40 uint8_t* buffer; // start of parameter buffer member in struct:android::effect_param_cblk_t
/frameworks/base/media/java/android/media/
H A DDataSource.java31 * @param buffer the buffer to read the data into
35 public int readAt(long offset, byte[] buffer, int size); argument
/frameworks/base/media/tests/omxjpegdecoder/
H A DSkOmxPixelRef.cpp24 SkOmxPixelRef::SkOmxPixelRef(SkColorTable* ctable, MediaBuffer* buffer, argument
26 mBuffer = buffer;
28 mSize = buffer->size();
/frameworks/av/cmds/stagefright/
H A Daudioloop.cpp85 MediaBuffer *buffer; local
86 while (decoder->read(&buffer) == OK) {
87 // do something with buffer
92 buffer->release();
93 buffer = NULL;
/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/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 DPipe.cpp43 ssize_t Pipe::write(const void *buffer, size_t count) argument
55 memcpy((char *) mBuffer + (rear << mBitShift), buffer, written << mBitShift);
61 memcpy(mBuffer, (char *) buffer + (written << mBitShift), count << mBitShift);
/frameworks/av/media/libstagefright/
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 *options) argument
[all...]
H A DMediaBufferGroup.cpp33 for (MediaBuffer *buffer = mFirstBuffer; buffer != NULL;
34 buffer = next) {
35 next = buffer->nextBuffer();
37 CHECK_EQ(buffer->refcount(), 0);
39 buffer->setObserver(NULL);
40 buffer->release();
44 void MediaBufferGroup::add_buffer(MediaBuffer *buffer) { argument
47 buffer->setObserver(this);
50 mLastBuffer->setNextBuffer(buffer);
[all...]
/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/av/media/mediaserver/
H A Dmain_mediaserver.cpp68 char buffer[32]; local
90 snprintf(buffer, sizeof(buffer), "unknown (%d)", info.si_code);
91 code = buffer;
/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/hardware/camera2/impl/
H A DMetadataMarshalClass.java24 * Marshal the specified object instance (value) into a byte buffer.
26 * @param value the value of type T that we wish to write into the byte buffer
27 * @param buffer the byte buffer into which the marshalled object will be written
31 * @param sizeOnly if this is true, don't write to the byte buffer. calculate the size only.
32 * @return the size that needs to be written to the byte buffer
34 int marshal(T value, ByteBuffer buffer, int nativeType, boolean sizeOnly); argument
37 * Unmarshal a new object instance from the byte buffer.
38 * @param buffer the byte buffer, fro
44 unmarshal(ByteBuffer buffer, int nativeType) argument
[all...]
H A DMetadataMarshalRect.java26 public int marshal(Rect value, ByteBuffer buffer, int nativeType, boolean sizeOnly) { argument
31 buffer.putInt(value.left);
32 buffer.putInt(value.top);
33 buffer.putInt(value.width());
34 buffer.putInt(value.height());
40 public Rect unmarshal(ByteBuffer buffer, int nativeType) { argument
42 int left = buffer.getInt();
43 int top = buffer.getInt();
44 int width = buffer.getInt();
45 int height = buffer
[all...]
H A DMetadataMarshalSize.java27 public int marshal(Size value, ByteBuffer buffer, int nativeType, boolean sizeOnly) { argument
32 buffer.putInt(value.getWidth());
33 buffer.putInt(value.getHeight());
39 public Size unmarshal(ByteBuffer buffer, int nativeType) { argument
40 int width = buffer.getInt();
41 int height = buffer.getInt();
H A DMetadataMarshalString.java26 public int marshal(String value, ByteBuffer buffer, int nativeType, boolean sizeOnly) { argument
30 buffer.put(arr);
31 buffer.put((byte)0); // metadata strings are NULL-terminated
38 public String unmarshal(ByteBuffer buffer, int nativeType) { argument
40 buffer.mark(); // save the current position
44 while (buffer.hasRemaining()) {
45 if (buffer.get() == (byte)0) {
56 buffer.reset(); // go back to the previously marked position
59 buffer.get(strBytes, /*dstOffset*/0, stringLength + 1); // including null character

Completed in 809 milliseconds

1234567891011>>