/frameworks/av/services/audioflinger/ |
H A D | SpdifStreamOut.h | 51 * Write audio buffer to driver. Returns number of bytes written, or a 58 * bytes that currently fit in the driver/hardware buffer and then return 61 * driver/hardware buffer. 63 virtual ssize_t write(const void* buffer, size_t bytes); 101 virtual ssize_t writeOutput(const void* buffer, size_t bytes) argument 103 return mSpdifStreamOut->writeDataBurst(buffer, bytes); 115 ssize_t writeInternal(const void* buffer, size_t bytes);
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3DummyStream.h | 57 virtual status_t detachBuffer(sp<GraphicBuffer>* buffer, int* fenceFd); 80 const camera3_stream_buffer &buffer, 102 virtual status_t getBufferLocked(camera3_stream_buffer *buffer, 105 const camera3_stream_buffer &buffer,
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetFileDescriptor.java | 219 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 D | StringBlock.java | 170 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 D | MarshalQueryableBlackLevelPattern.java | 41 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 D | MarshalQueryableBoolean.java | 38 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 D | MarshalQueryableColorSpaceTransform.java | 45 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 D | MarshalQueryableNativeByteToInteger.java | 41 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;
|
/frameworks/base/core/java/android/speech/ |
H A D | RecognitionListener.java | 51 * @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 D | MeshState.h | 65 * Binds the specified VBO if needed. If buffer == 0, binds default simple textured quad. 67 void bindMeshBuffer(GLuint buffer); 74 void genOrUpdateMeshBuffer(GLuint* buffer, GLsizeiptr size, const void* data, GLenum usage); 75 void updateMeshBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data); 106 void bindIndicesBuffer(const GLuint buffer); 130 // Global index buffer
|
H A D | PixelBufferState.h | 27 bool bind(GLuint buffer);
|
/frameworks/base/media/tests/audiotests/ |
H A D | shared_mem_test.h | 16 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 D | UsbAccessoryBulkTransport.java | 55 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 D | UsbAccessoryStreamTransport.java | 56 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/compile/libbcc/bcinfo/include/bcinfo/Wrap/ |
H A D | file_wrapper_output.h | 34 // Writes the specified number of bytes in the buffer to 36 virtual bool Write(const uint8_t* buffer, size_t buffer_size);
|
H A D | wrapper_input.h | 34 // 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 D | wrapper_output.h | 38 // 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 D | bugreport.cpp | 66 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/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/cmds/lshal/ |
H A D | PipeRelay.cpp | 45 char buffer[1024]; local 46 ssize_t n = read(mFd, buffer, sizeof(buffer)); 52 mOutStream.write(buffer, n);
|
/frameworks/native/libs/ui/ |
H A D | FrameStats.cpp | 34 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 D | HdrCapabilities.cpp | 39 status_t HdrCapabilities::flatten(void* buffer, size_t size) const { argument 45 int32_t* const buf = static_cast<int32_t*>(buffer); 56 status_t HdrCapabilities::unflatten(void const* buffer, size_t size) { argument 67 int32_t const * const buf = static_cast<int32_t const *>(buffer); 70 // check the buffer is large enough
|
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/ |
H A D | native_buffer.h | 28 explicit NativeBuffer(const std::shared_ptr<IonBuffer>& buffer) argument 29 : BASE(), buffer_(buffer), fence_(kEmptyFence) { 30 ANativeWindowBuffer::width = buffer->width(); 31 ANativeWindowBuffer::height = buffer->height(); 32 ANativeWindowBuffer::stride = buffer->stride(); 33 ANativeWindowBuffer::format = buffer->format(); 34 ANativeWindowBuffer::usage = buffer->usage(); 40 std::shared_ptr<IonBuffer> buffer() { return buffer_; } function in class:android::dvr::NativeBuffer 63 NativeBufferProducer(const std::shared_ptr<BufferProducer>& buffer, argument 66 buffer_(buffer), 77 NativeBufferProducer(const std::shared_ptr<BufferProducer>& buffer) argument 88 std::shared_ptr<BufferProducer> buffer() const { return buffer_; } function in class:android::dvr::NativeBufferProducer 131 NativeBufferConsumer(const std::shared_ptr<BufferConsumer>& buffer) argument 143 std::shared_ptr<BufferConsumer> buffer() const { return buffer_; } function in class:android::dvr::NativeBufferConsumer [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposerBufferCache.h | 31 // With HIDLized hwcomposer HAL, the HAL can maintain a buffer cache for each 32 // HWC display and layer. When updating a display target or a layer buffer, 33 // we have the option to send the buffer handle over or to request the HAL to 38 // To be able to find out whether a buffer is already in the HAL's cache, we 44 // Given a buffer queue slot and buffer, return the HWC cache slot and 45 // buffer to be sent to HWC. 47 // outBuffer is set to buffer when buffer is not in the HWC cache; 49 void getHwcBuffer(int slot, const sp<GraphicBuffer>& buffer, [all...] |
/frameworks/base/media/java/android/media/midi/ |
H A D | MidiOutputPort.java | 55 byte[] buffer = new byte[MidiPortImpl.MAX_PACKET_SIZE]; 60 int count = mInputStream.read(buffer); 66 int packetType = MidiPortImpl.getPacketType(buffer, count); 69 int offset = MidiPortImpl.getDataOffset(buffer, count); 70 int size = MidiPortImpl.getDataSize(buffer, count); 71 long timestamp = MidiPortImpl.getPacketTimestamp(buffer, count); 74 mDispatcher.send(buffer, offset, size, timestamp);
|