/frameworks/webview/chromium/plat_support/ |
H A D | graphic_buffer_impl.cpp | 38 GraphicBufferImpl* buffer = new GraphicBufferImpl( local 40 if (buffer->InitCheck() != NO_ERROR) { 41 delete buffer; 44 return reinterpret_cast<intptr_t>(buffer); 49 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local 50 delete buffer; 55 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local 56 return buffer->Map(mode, vaddr); 61 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local 62 return buffer 67 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local 73 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); local [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
H A D | HSConnectionCapabilityElementTest.java | 43 * Helper function for writing a ProtocolPortTuple into a buffer. 45 * @param buffer The buffer to write to 48 private void appendProtocolPortTuple(ByteBuffer buffer, ProtocolPortTuple tuple) { argument 49 buffer.put((byte) tuple.getProtocol()); 50 buffer.putShort((short) tuple.getPort()); 51 buffer.put((byte) tuple.getStatus()); 55 * Helper function for generating a buffer with test data. 57 * @param tuples Tuples to put in the buffer 61 ByteBuffer buffer [all...] |
/frameworks/native/libs/gui/ |
H A D | BufferItem.cpp | 117 static void writeAligned(void*& buffer, size_t& size, T value) { argument 118 size -= FlattenableUtils::align<alignof(T)>(buffer); 119 FlattenableUtils::write(buffer, size, value); 123 void*& buffer, size_t& size, int*& fds, size_t& count) const { 131 uint32_t& flags = *static_cast<uint32_t*>(buffer); 134 FlattenableUtils::advance(buffer, size, sizeof(uint32_t)); 138 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count); 140 size -= FlattenableUtils::align<4>(buffer); 144 status_t err = mFence->flatten(buffer, size, fds, count); 146 size -= FlattenableUtils::align<4>(buffer); 122 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument 180 readAligned(const void*& buffer, size_t& size, T& value) argument 185 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableRect.java | 41 public void marshal(Rect value, ByteBuffer buffer) { argument 42 buffer.putInt(value.left); 43 buffer.putInt(value.top); 44 buffer.putInt(value.width()); 45 buffer.putInt(value.height()); 49 public Rect unmarshal(ByteBuffer buffer) { argument 50 int left = buffer.getInt(); 51 int top = buffer.getInt(); 52 int width = buffer.getInt(); 53 int height = buffer [all...] |
H A D | MarshalQueryableStreamConfiguration.java | 45 public void marshal(StreamConfiguration value, ByteBuffer buffer) { argument 46 buffer.putInt(value.getFormat()); 47 buffer.putInt(value.getWidth()); 48 buffer.putInt(value.getHeight()); 49 buffer.putInt(value.isInput() ? 1 : 0); 53 public StreamConfiguration unmarshal(ByteBuffer buffer) { argument 54 int format = buffer.getInt(); 55 int width = buffer.getInt(); 56 int height = buffer.getInt(); 57 boolean input = buffer [all...] |
H A D | MarshalQueryableStreamConfigurationDuration.java | 54 public void marshal(StreamConfigurationDuration value, ByteBuffer buffer) { argument 55 buffer.putLong(value.getFormat() & MASK_UNSIGNED_INT); // unsigned int -> long 56 buffer.putLong(value.getWidth()); 57 buffer.putLong(value.getHeight()); 58 buffer.putLong(value.getDuration()); 62 public StreamConfigurationDuration unmarshal(ByteBuffer buffer) { argument 63 int format = (int)buffer.getLong(); 64 int width = (int)buffer.getLong(); 65 int height = (int)buffer.getLong(); 66 long durationNs = buffer [all...] |
H A D | MarshalQueryableHighSpeedVideoConfiguration.java | 47 public void marshal(HighSpeedVideoConfiguration value, ByteBuffer buffer) { argument 48 buffer.putInt(value.getWidth()); 49 buffer.putInt(value.getHeight()); 50 buffer.putInt(value.getFpsMin()); 51 buffer.putInt(value.getFpsMax()); 52 buffer.putInt(value.getBatchSizeMax()); 56 public HighSpeedVideoConfiguration unmarshal(ByteBuffer buffer) { argument 57 int width = buffer.getInt(); 58 int height = buffer.getInt(); 59 int fpsMin = buffer [all...] |
H A D | MarshalQueryableMeteringRectangle.java | 42 public void marshal(MeteringRectangle value, ByteBuffer buffer) { argument 49 buffer.putInt(xMin); 50 buffer.putInt(yMin); 51 buffer.putInt(xMax); 52 buffer.putInt(yMax); 53 buffer.putInt(weight); 57 public MeteringRectangle unmarshal(ByteBuffer buffer) { argument 58 int xMin = buffer.getInt(); 59 int yMin = buffer.getInt(); 60 int xMax = buffer [all...] |
/frameworks/av/media/libnbaio/ |
H A D | Pipe.cpp | 28 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);
|
/frameworks/base/media/java/android/media/midi/ |
H A D | MidiPortImpl.java | 62 * dest is buffer to pack into 97 public static int getPacketType(byte[] buffer, int bufferLength) { argument 98 return buffer[0]; 103 * returns the offset of the MIDI message in packed buffer 105 public static int getDataOffset(byte[] buffer, int bufferLength) { argument 112 * returns size of MIDI data in packed buffer 114 public static int getDataSize(byte[] buffer, int bufferLength) { argument 115 // message length is total buffer length minus size of the timestamp 121 * unpacks timestamp from packed buffer 123 public static long getPacketTimestamp(byte[] buffer, in argument [all...] |
/frameworks/base/services/net/java/android/net/dhcp/ |
H A D | DhcpDiscoverPacket.java | 53 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 D | DhcpInformPacket.java | 55 void finishPacket(ByteBuffer buffer) { argument 56 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_INFORM); 57 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); 58 addCommonClientTlvs(buffer); 59 addTlv(buffer, DHCP_PARAMETER_LIST, mRequestedParams); 60 addTlvEnd(buffer);
|
H A D | DhcpAckPacket.java | 70 void finishPacket(ByteBuffer buffer) { argument 71 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_ACK); 72 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); 73 addTlv(buffer, DHCP_LEASE_TIME, mLeaseTime); 77 addTlv(buffer, DHCP_RENEWAL_TIME, 81 addTlv(buffer, DHCP_SUBNET_MASK, mSubnetMask); 82 addTlv(buffer, DHCP_ROUTER, mGateways); 83 addTlv(buffer, DHCP_DOMAIN_NAME, mDomainName); 84 addTlv(buffer, DHCP_BROADCAST_ADDRESS, mBroadcastAddress); 85 addTlv(buffer, DHCP_DNS_SERVE [all...] |
H A D | DhcpOfferPacket.java | 72 void finishPacket(ByteBuffer buffer) { argument 73 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_OFFER); 74 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); 75 addTlv(buffer, DHCP_LEASE_TIME, mLeaseTime); 79 addTlv(buffer, DHCP_RENEWAL_TIME, 83 addTlv(buffer, DHCP_SUBNET_MASK, mSubnetMask); 84 addTlv(buffer, DHCP_ROUTER, mGateways); 85 addTlv(buffer, DHCP_DOMAIN_NAME, mDomainName); 86 addTlv(buffer, DHCP_BROADCAST_ADDRESS, mBroadcastAddress); 87 addTlv(buffer, DHCP_DNS_SERVE [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MediaAdapter.cpp | 68 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/compile/libbcc/bcinfo/Wrap/ |
H A D | file_wrapper_output.cpp | 38 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/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/ |
H A D | PacketDecoder.java | 22 * This is an abstract base class that decodes a packet buffer and passes it to a 29 * @param buffer the packet to decode 32 abstract public void decodePacket(byte[] buffer, MidiReceiver receiver); argument
|
H A D | PacketEncoder.java | 22 * This is an abstract base class that encodes MIDI data into a packet buffer. 31 * @param buffer the packet buffer to write 32 * @param count the number of bytes in the packet buffer to write 34 public void writePacket(byte[] buffer, int count); argument
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposerBufferCache.cpp | 29 const sp<GraphicBuffer>& buffer, 43 if (mBuffers[slot] == buffer) { 44 // already cached in HWC, skip sending the buffer 47 *outBuffer = buffer; 50 mBuffers[slot] = buffer; 28 getHwcBuffer(int slot, const sp<GraphicBuffer>& buffer, uint32_t* outSlot, sp<GraphicBuffer>* outBuffer) argument
|
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | AssetTest.java | 37 byte[] buffer = new byte[10]; 41 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { 45 + " but found " + ((char) buffer[i]), 46 buffer[i], expectedString.charAt(curIndex)); 51 readCount = is.read(buffer, 0, buffer.length); 52 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount, 55 readCount = is.read(buffer, buffer [all...] |
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
H A D | BufferPool.java | 59 public void release(ByteBuffer buffer) { argument 61 buffer.clear(); 62 mBuffers[mAvailable++] = buffer; 67 public ByteBuffer grow(ByteBuffer buffer, int needed) { argument 68 int capacity = buffer.capacity(); 70 final ByteBuffer oldBuffer = buffer; 72 buffer = ByteBuffer.allocate(capacity); 74 buffer.put(oldBuffer); 76 return buffer; 86 + " is larger than maximum buffer siz [all...] |
H A D | Transport.java | 46 // The output buffer. Set to null when the transport is closed. 49 // The input buffer pool. 231 protected abstract int ioRead(byte[] buffer, int offset, int count) argument 233 protected abstract void ioWrite(byte[] buffer, int offset, int count) argument 253 final ByteBuffer buffer = (ByteBuffer)msg.obj; 255 final int limit = buffer.limit(); 256 while (buffer.position() < limit) { 257 final int service = buffer.getShort() & 0xffff; 258 final int what = buffer.getShort() & 0xffff; 259 final int contentSize = buffer [all...] |
/frameworks/minikin/tests/perftests/ |
H A D | GraphemeBreak.cpp | 36 uint16_t buffer[12]; local 37 ParseUnicode(buffer, 12, ASCII_TEST_STR, &result_size, nullptr); 41 GraphemeBreak::isGraphemeBreak(nullptr, buffer, 0, result_size, testIndex); 51 uint16_t buffer[12]; local 52 ParseUnicode(buffer, 12, EMOJI_TEST_STR, &result_size, nullptr); 56 GraphemeBreak::isGraphemeBreak(nullptr, buffer, 0, result_size, testIndex); 66 uint16_t buffer[12]; local 67 ParseUnicode(buffer, 12, FLAGS_TEST_STR, &result_size, nullptr); 71 GraphemeBreak::isGraphemeBreak(nullptr, buffer, 0, result_size, testIndex);
|
/frameworks/base/core/java/android/text/method/ |
H A D | LinkMovementMethod.java | 30 * A movement method that traverses links in the text buffer and scrolls if necessary. 44 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, argument 51 event.getRepeatCount() == 0 && action(CLICK, widget, buffer)) { 57 return super.handleMovementKey(widget, buffer, keyCode, movementMetaState, event); 61 protected boolean up(TextView widget, Spannable buffer) { argument 62 if (action(UP, widget, buffer)) { 66 return super.up(widget, buffer); 70 protected boolean down(TextView widget, Spannable buffer) { argument 71 if (action(DOWN, widget, buffer)) { 75 return super.down(widget, buffer); 79 left(TextView widget, Spannable buffer) argument 88 right(TextView widget, Spannable buffer) argument 96 action(int what, TextView widget, Spannable buffer) argument 194 onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | MockSyntheticPasswordManager.java | 47 ByteBuffer buffer = ByteBuffer.allocate(blob.length); 48 buffer.put(blob, 0, blob.length); 49 buffer.flip(); 51 len = buffer.getInt(); 53 buffer.get(data); 54 len = buffer.getInt(); 56 buffer.get(appId); 57 long sid = buffer.getLong(); 69 ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES + data.length + Integer.BYTES 71 buffer [all...] |