Searched refs:buffer (Results 151 - 175 of 922) sorted by relevance

1234567891011>>

/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3StreamInterface.h118 * a valid filled buffer), which determines if a stream can still have
136 * buffer pre-allocation, and transitions to the PREPARING state.
139 * valid buffer has already been returned to this stream.
149 * Continue stream buffer preparation by allocating the next
150 * buffer for this stream. May only be called in the PREPARED state.
159 * buffer pre-allocation.
162 * valid buffer has already been returned to this stream.
195 * Fill in the camera3_stream_buffer with the next valid buffer for this
203 virtual status_t getBuffer(camera3_stream_buffer *buffer) = 0;
206 * Return a buffer t
[all...]
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java219 byte[] buffer = new byte[1];
220 int result = read(buffer, 0, 1);
221 return result == -1 ? -1 : buffer[0] & 0xff;
225 public int read(byte[] buffer, int offset, int count) throws IOException { argument
229 int res = super.read(buffer, offset, count);
234 return super.read(buffer, offset, count);
238 public int read(byte[] buffer) throws IOException { argument
239 return read(buffer, 0, buffer.length);
300 public void write(byte[] buffer, in argument
313 write(byte[] buffer) argument
[all...]
H A DStringBlock.java170 SpannableString buffer = new SpannableString(str);
179 buffer.setSpan(new StyleSpan(Typeface.BOLD),
183 buffer.setSpan(new StyleSpan(Typeface.ITALIC),
187 buffer.setSpan(new UnderlineSpan(),
191 buffer.setSpan(new TypefaceSpan("monospace"),
195 buffer.setSpan(new RelativeSizeSpan(1.25f),
199 buffer.setSpan(new RelativeSizeSpan(0.8f),
203 buffer.setSpan(new SubscriptSpan(),
207 buffer.setSpan(new SuperscriptSpan(),
211 buffer
359 addParagraphSpan(Spannable buffer, Object what, int start, int end) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableBlackLevelPattern.java41 public void marshal(BlackLevelPattern value, ByteBuffer buffer) { argument
44 buffer.putInt(value.getOffsetForIndex(j, i));
50 public BlackLevelPattern unmarshal(ByteBuffer buffer) { argument
53 channelOffsets[i] = buffer.getInt();
H A DMarshalQueryableBoolean.java38 public void marshal(Boolean value, ByteBuffer buffer) { argument
40 buffer.put((byte)(unboxValue ? 1 : 0));
44 public Boolean unmarshal(ByteBuffer buffer) { argument
45 return buffer.get() != 0;
H A DMarshalQueryableColorSpaceTransform.java45 public void marshal(ColorSpaceTransform value, ByteBuffer buffer) { argument
50 buffer.putInt(transformAsArray[i]);
55 public ColorSpaceTransform unmarshal(ByteBuffer buffer) { argument
59 transformAsArray[i] = buffer.getInt();
H A DMarshalQueryableNativeByteToInteger.java41 public void marshal(Integer value, ByteBuffer buffer) { argument
42 buffer.put((byte)(int)value); // truncate down to byte
46 public Integer unmarshal(ByteBuffer buffer) { argument
48 return buffer.get() & UINT8_MASK;
H A DMarshalQueryableParcelable.java72 public void marshal(T value, ByteBuffer buffer) { argument
98 buffer.put(parcelContents);
102 public T unmarshal(ByteBuffer buffer) { argument
104 Log.v(TAG, "unmarshal, buffer remaining " + buffer.remaining());
110 * Read out the entire byte buffer as an array, then copy it into the parcel.
112 * Once we unparcel the entire object, advance the byte buffer by only how many
122 buffer.mark();
126 int maxLength = buffer.remaining();
129 buffer
[all...]
/frameworks/base/core/java/android/speech/
H A DRecognitionListener.java51 * @param buffer a buffer containing a sequence of big-endian 16-bit integers representing a
54 void onBufferReceived(byte[] buffer); argument
/frameworks/base/libs/hwui/renderstate/
H A DPixelBufferState.h27 bool bind(GLuint buffer);
/frameworks/base/media/tests/audiotests/
H A Dshared_mem_test.h16 void Generate(short *buffer, long bufferSz, long amplitude, unsigned long &phi, long dPhi);
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DUsbAccessoryBulkTransport.java55 protected int ioRead(byte[] buffer, int offset, int count) throws IOException { argument
59 return mConnection.bulkTransfer(mBulkInEndpoint, buffer, offset, count, -1);
63 protected void ioWrite(byte[] buffer, int offset, int count) throws IOException { argument
68 buffer, offset, count, TIMEOUT_MILLIS);
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
H A DUsbAccessoryStreamTransport.java56 protected int ioRead(byte[] buffer, int offset, int count) throws IOException { argument
60 return mInputStream.read(buffer, offset, count);
64 protected void ioWrite(byte[] buffer, int offset, int count) throws IOException { argument
68 mOutputStream.write(buffer, offset, count);
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
H A DModuleClassLoader.java51 ByteArrayOutputStream buffer = new ByteArrayOutputStream();
55 buffer.write(data, 0, nRead);
57 buffer.flush();
58 data = buffer.toByteArray();
/frameworks/compile/libbcc/include/bcinfo/Wrap/
H A Dfile_wrapper_output.h34 // Writes the specified number of bytes in the buffer to
36 virtual bool Write(const uint8_t* buffer, size_t buffer_size);
H A Dwrapper_input.h34 // Tries to read the requested number of bytes into the buffer. Returns the
36 virtual size_t Read(uint8_t* buffer, size_t wanted) = 0;
H A Dwrapper_output.h38 // Writes the specified number of bytes in the buffer to
40 virtual bool Write(const uint8_t* buffer, size_t buffer_size);
/frameworks/native/cmds/bugreport/
H A Dbugreport.cpp66 char buffer[65536]; local
67 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer)));
83 buffer + bytes_read - bytes_to_send,
/frameworks/native/libs/ui/
H A DFrameStats.cpp34 status_t FrameStats::flatten(void* buffer, size_t size) const { argument
39 nsecs_t* timestamps = reinterpret_cast<nsecs_t*>(buffer);
57 status_t FrameStats::unflatten(void const* buffer, size_t size) { argument
64 nsecs_t const* timestamps = reinterpret_cast<nsecs_t const*>(buffer);
H A DGraphicBufferAllocator.cpp60 char buffer[SIZE]; local
61 snprintf(buffer, SIZE, "Allocated buffers:\n");
62 result.append(buffer);
67 snprintf(buffer, SIZE, "%10p: %7.2f KiB | %4u (%4u) x %4u | %8X | 0x%08x\n",
71 snprintf(buffer, SIZE, "%10p: unknown | %4u (%4u) x %4u | %8X | 0x%08x\n",
75 result.append(buffer);
78 snprintf(buffer, SIZE, "Total allocated (estimate): %.2f KB\n", total/1024.0f);
79 result.append(buffer);
81 mAllocDev->dump(mAllocDev, buffer, SIZE);
82 result.append(buffer);
[all...]
/frameworks/base/media/java/android/media/midi/
H A DMidiOutputPort.java54 byte[] buffer = new byte[MidiPortImpl.MAX_PACKET_SIZE];
59 int count = mInputStream.read(buffer);
65 int packetType = MidiPortImpl.getPacketType(buffer, count);
68 int offset = MidiPortImpl.getDataOffset(buffer, count);
69 int size = MidiPortImpl.getDataSize(buffer, count);
70 long timestamp = MidiPortImpl.getPacketTimestamp(buffer, count);
73 mDispatcher.send(buffer, offset, size, timestamp);
/frameworks/av/media/libstagefright/
H A DVBRISeeker.cpp87 uint8_t *buffer = new uint8_t[totalEntrySize]; local
89 n = source->readAt(pos + sizeof(vbriHeader), buffer, totalEntrySize);
91 delete[] buffer;
92 buffer = NULL;
111 case 1: numBytes = buffer[i]; break;
112 case 2: numBytes = U16_AT(buffer + 2 * i); break;
113 case 3: numBytes = U24_AT(buffer + 3 * i); break;
117 numBytes = U32_AT(buffer + 4 * i); break;
129 delete[] buffer;
130 buffer
[all...]
H A DCameraSourceTimeLapse.cpp171 void CameraSourceTimeLapse::signalBufferReturned(MediaBuffer* buffer) { argument
174 if (mQuickStop && (buffer == mLastReadBufferCopy)) {
175 buffer->setObserver(NULL);
176 buffer->release();
178 return CameraSource::signalBufferReturned(buffer);
207 MediaBuffer **buffer, const ReadOptions *options) {
210 mLastReadStatus = CameraSource::read(buffer, options);
213 // Make a copy of the buffer in that case.
215 if (mQuickStop && *buffer) {
216 fillLastReadBufferCopy(**buffer);
206 read( MediaBuffer **buffer, const ReadOptions *options) argument
318 processBufferQueueFrame(BufferItem& buffer) argument
[all...]
/frameworks/av/media/libstagefright/include/
H A DSoftOMXComponent.h74 OMX_BUFFERHEADERTYPE **buffer,
81 OMX_BUFFERHEADERTYPE **buffer,
88 OMX_BUFFERHEADERTYPE *buffer);
91 OMX_BUFFERHEADERTYPE *buffer);
94 OMX_BUFFERHEADERTYPE *buffer);
138 OMX_BUFFERHEADERTYPE **buffer,
146 OMX_BUFFERHEADERTYPE **buffer,
154 OMX_BUFFERHEADERTYPE *buffer);
158 OMX_BUFFERHEADERTYPE *buffer);
162 OMX_BUFFERHEADERTYPE *buffer);
[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);

Completed in 2818 milliseconds

1234567891011>>