Searched defs:buffer (Results 51 - 75 of 765) sorted by relevance

1234567891011>>

/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.cpp39 sp<GraphicBuffer> buffer = new GraphicBuffer(400, 200, PIXEL_FORMAT_RGBA_8888, usage); variable
42 buffer->lock(GraphicBuffer::USAGE_SW_WRITE_RARELY, ((void**)&pixels));
44 bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride() * buffer->getHeight();
52 buffer->unlock();
53 sk_sp<Bitmap> hardwareBitmap(Bitmap::createFrom(buffer));
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
H A DBluetoothPacketDecoder.java25 * This is an abstract base class that decodes a packet buffer and passes it to a
44 public void decodePacket(byte[] buffer, MidiReceiver receiver) { argument
49 int length = buffer.length;
58 byte header = buffer[0];
73 for (int i = 1; i < buffer.length; i++) {
74 byte b = buffer[i];
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/
H A DAppTransitionAnimationSpecCompat.java31 public AppTransitionAnimationSpecCompat(int taskId, Bitmap buffer, Rect rect) { argument
33 mBuffer = buffer;
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DGraphicBufferCompat.java24 * Wraps the internal graphic buffer.
30 public GraphicBufferCompat(GraphicBuffer buffer) { argument
31 mBuffer = buffer;
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpDiscoverPacket.java53 void finishPacket(ByteBuffer buffer) { argument
54 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_DISCOVER);
55 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId());
56 addCommonClientTlvs(buffer);
57 addTlv(buffer, DHCP_PARAMETER_LIST, mRequestedParams);
58 addTlvEnd(buffer);
H A DDhcpRequestPacket.java58 void finishPacket(ByteBuffer buffer) { argument
59 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_REQUEST);
60 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId());
62 addTlv(buffer, DHCP_REQUESTED_IP, mRequestedIp);
65 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier);
67 addCommonClientTlvs(buffer);
68 addTlv(buffer, DHCP_PARAMETER_LIST, mRequestedParams);
69 addTlvEnd(buffer);
/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/aapt2/format/binary/
H A DChunkWriter.h30 explicit inline ChunkWriter(BigBuffer* buffer) : buffer_(buffer) { argument
50 inline BigBuffer* buffer() { function in class:aapt::ChunkWriter
H A DTableFlattener.h50 explicit TableFlattener(const TableFlattenerOptions& options, BigBuffer* buffer) argument
51 : options_(options), buffer_(buffer) {
/frameworks/base/tools/aapt2/io/
H A DBigBufferStream.h28 inline explicit BigBufferInputStream(const BigBuffer* buffer) argument
29 : buffer_(buffer), iter_(buffer->begin()) {
58 inline explicit BigBufferOutputStream(BigBuffer* buffer) : buffer_(buffer) { argument
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dfile_wrapper_input.cpp35 size_t FileWrapperInput::Read(uint8_t* buffer, size_t wanted) { argument
36 size_t found = fread((char*) buffer, 1, wanted, _file);
H A Din_memory_wrapper_input.cpp22 InMemoryWrapperInput::InMemoryWrapperInput(const char* buffer, size_t size) : argument
23 _buffer(buffer), _pos(0), _size(size) {
29 size_t InMemoryWrapperInput::Read(uint8_t* buffer, size_t wanted) { argument
32 if (!buffer) {
40 buffer[found++] = _buffer[_pos++];
/frameworks/minikin/tests/perftests/
H A DGraphemeBreak.cpp37 uint16_t buffer[12]; local
38 ParseUnicode(buffer, 12, ASCII_TEST_STR, &result_size, nullptr);
42 GraphemeBreak::isGraphemeBreak(nullptr, buffer, 0, result_size, testIndex);
52 uint16_t buffer[12]; local
53 ParseUnicode(buffer, 12, EMOJI_TEST_STR, &result_size, nullptr);
57 GraphemeBreak::isGraphemeBreak(nullptr, buffer, 0, result_size, testIndex);
67 uint16_t buffer[12]; local
68 ParseUnicode(buffer, 12, FLAGS_TEST_STR, &result_size, nullptr);
72 GraphemeBreak::isGraphemeBreak(nullptr, buffer, 0, result_size, testIndex);
/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 DHdrCapabilities.cpp38 status_t HdrCapabilities::flatten(void* buffer, size_t size) const { argument
44 int32_t* const buf = static_cast<int32_t*>(buffer);
55 status_t HdrCapabilities::unflatten(void const* buffer, size_t size) { argument
66 int32_t const * const buf = static_cast<int32_t const *>(buffer);
69 // check the buffer is large enough
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
H A Dion_buffer.h26 // Returns check this IonBuffer holds a valid Gralloc buffer.
63 // buffer. Returns 0 on success or a negative errno code otherwise. If
72 sp<GraphicBuffer>& buffer() { return buffer_; } function in class:android::dvr::IonBuffer
73 const sp<GraphicBuffer>& buffer() const { return buffer_; } function in class:android::dvr::IonBuffer
/frameworks/native/libs/vr/libvrflinger/
H A Dacquired_buffer.h21 // this constructor; the constructor does not attempt to ACQUIRE the buffer
23 AcquiredBuffer(const std::shared_ptr<BufferConsumer>& buffer,
28 // constructor attempts to ACQUIRE the buffer. If ACQUIRING the buffer fails
31 AcquiredBuffer(const std::shared_ptr<BufferConsumer>& buffer, int* error);
47 std::shared_ptr<BufferConsumer> buffer() const { return buffer_; } function in class:android::dvr::AcquiredBuffer
59 // Returns the buffer, passing ownership to the caller. Caller is responsible
60 // for calling Release on the returned buffer.
69 // Returns the slot in the queue this buffer belongs to. Buffers that are not
/frameworks/native/opengl/tests/gralloc/
H A Dgralloc.cpp49 sp<GraphicBuffer> buffer = new GraphicBuffer(128, 256, HAL_PIXEL_FORMAT_RGBA_8888, local
53 status_t err = buffer->initCheck();
60 buffer->lock(
107 buffer->unlock();
/frameworks/native/services/surfaceflinger/
H A DLayerProtoHelper.cpp61 void LayerProtoHelper::writeToProto(const sp<GraphicBuffer>& buffer, argument
63 activeBufferProto->set_width(buffer->getWidth());
64 activeBufferProto->set_height(buffer->getHeight());
65 activeBufferProto->set_stride(buffer->getStride());
66 activeBufferProto->set_format(buffer->format);

Completed in 476 milliseconds

1234567891011>>