Searched refs:buffer (Results 51 - 75 of 1380) sorted by relevance

1234567891011>>

/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/services/surfaceflinger/DisplayHardware/
H A DHWComposerBufferCache.cpp29 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/java/android/text/method/
H A DLinkMovementMethod.java32 * A movement method that traverses links in the text buffer and scrolls if necessary.
48 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, argument
55 event.getRepeatCount() == 0 && action(CLICK, widget, buffer)) {
61 return super.handleMovementKey(widget, buffer, keyCode, movementMetaState, event);
65 protected boolean up(TextView widget, Spannable buffer) { argument
66 if (action(UP, widget, buffer)) {
70 return super.up(widget, buffer);
74 protected boolean down(TextView widget, Spannable buffer) { argument
75 if (action(DOWN, widget, buffer)) {
79 return super.down(widget, buffer);
83 left(TextView widget, Spannable buffer) argument
92 right(TextView widget, Spannable buffer) argument
100 action(int what, TextView widget, Spannable buffer) argument
204 onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) argument
[all...]
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DTransport.java46 // 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/av/media/libmediaextractor/
H A DMediaBufferGroup.cpp77 MediaBuffer *buffer = new MediaBuffer(mem); local
78 buffer->getSharedControl()->clear();
79 add_buffer(buffer);
86 MediaBuffer *buffer = new MediaBuffer(buffer_size); local
87 if (buffer->data() == nullptr) {
88 delete buffer; // don't call release, it's not properly formed
92 add_buffer(buffer);
97 for (MediaBufferBase *buffer : mInternal->mBuffers) {
98 if (buffer->refcount() != 0) {
99 const int localRefcount = buffer
122 add_buffer(MediaBufferBase *buffer) argument
160 MediaBufferBase *buffer = nullptr; local
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DMockSyntheticPasswordManager.java52 ByteBuffer buffer = ByteBuffer.allocate(blob.length);
53 buffer.put(blob, 0, blob.length);
54 buffer.flip();
56 len = buffer.getInt();
58 buffer.get(data);
59 len = buffer.getInt();
61 buffer.get(appId);
62 long sid = buffer.getLong();
74 ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES + data.length + Integer.BYTES
76 buffer
[all...]
/frameworks/av/media/libstagefright/
H A DMediaAdapter.cpp75 void MediaAdapter::signalBufferReturned(MediaBufferBase *buffer) { argument
77 CHECK(buffer != NULL);
78 buffer->setObserver(0);
79 buffer->release();
80 ALOGV("buffer returned %p", buffer);
85 MediaBufferBase **buffer, const ReadOptions * /* options */) {
105 *buffer = mCurrentMediaBuffer;
111 status_t MediaAdapter::pushBuffer(MediaBuffer *buffer) { argument
112 if (buffer
84 read( MediaBufferBase **buffer, const ReadOptions * ) argument
[all...]
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpAckPacket.java70 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 DDhcpOfferPacket.java72 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...]
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/media/jni/
H A Dandroid_media_Utils.cpp360 sp<ABuffer> buffer; local
361 CHECK(msg->findBuffer(key, &buffer));
364 env, buffer->data(), buffer->size());
526 sp<ABuffer> buffer = new ABuffer(limit - position); local
531 memcpy(buffer->data(),
533 buffer->size());
546 buffer->size(),
547 (jbyte *)buffer->data());
552 msg->setBuffer(key.c_str(), buffer);
612 Image_getJpegSize(LockedImage* buffer, bool usingRGBAOverride) argument
647 getLockedImageInfo(LockedImage* buffer, int idx, int32_t containerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) argument
856 lockImageFromBuffer(sp<GraphicBuffer> buffer, uint32_t inUsage, const Rect& rect, int fenceFd, LockedImage* outputImage) argument
932 getBufferWidth(BufferItem* buffer) argument
943 getBufferHeight(BufferItem* buffer) argument
[all...]
/frameworks/av/include/media/
H A DAudioBufferProvider.h44 // buffer != NULL
45 // buffer->raw unused
46 // buffer->frameCount maximum number of desired frames
49 // buffer->raw non-NULL pointer to buffer->frameCount contiguous available frames
50 // buffer->frameCount number of contiguous available frames at buffer->raw,
51 // 0 < buffer->frameCount <= entry value
54 // buffer->raw NULL
55 // buffer
[all...]
/frameworks/av/media/libaaudio/src/utility/
H A DFixedBlockReader.h39 int32_t readFromStorage(uint8_t *buffer, int32_t numBytes);
44 int32_t processVariableBlock(uint8_t *buffer, int32_t numBytes) override;
H A DFixedBlockWriter.cpp27 int32_t FixedBlockWriter::writeToStorage(uint8_t *buffer, int32_t numBytes) { argument
33 memcpy(mStorage + mPosition, buffer, bytesToStore);
38 int32_t FixedBlockWriter::processVariableBlock(uint8_t *buffer, int32_t numBytes) { argument
44 int32_t bytesWritten = writeToStorage(buffer, bytesLeft);
45 buffer += bytesWritten;
56 result = mFixedBlockProcessor.onProcessFixedBlock(buffer, mSize);
57 buffer += mSize;
63 writeToStorage(buffer, bytesLeft);
H A DFixedBlockWriter.h35 int32_t writeToStorage(uint8_t *buffer, int32_t numBytes);
40 int32_t processVariableBlock(uint8_t *buffer, int32_t numBytes) override;
/frameworks/av/media/libaudioclient/include/media/
H A DAudioBufferProvider.h44 // buffer != NULL
45 // buffer->raw unused
46 // buffer->frameCount maximum number of desired frames
49 // buffer->raw non-NULL pointer to buffer->frameCount contiguous available frames
50 // buffer->frameCount number of contiguous available frames at buffer->raw,
51 // 0 < buffer->frameCount <= entry value
54 // buffer->raw NULL
55 // buffer
[all...]
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
H A DAoapInterface.java96 byte buffer[] = new byte[2];
99 AoapInterface.ACCESSORY_GET_PROTOCOL, 0, 0, buffer, 2, 10000);
103 return (buffer[1] << 8) | buffer[0];
107 byte[] buffer = (string + "\0").getBytes();
111 buffer, buffer.length, 10000);
112 if (len != buffer.length) {
/frameworks/ml/nn/common/operations/
H A DHashtableLookup.cpp51 pointer = bsearch(lookup_->buffer + sizeof(int) * i, key_->buffer,
55 (reinterpret_cast<uint8_t*>(pointer) - key_->buffer) / sizeof(float);
59 memset(output_->buffer + i * row_bytes, 0, row_bytes);
60 hits_->buffer[i] = 0;
62 memcpy(output_->buffer + i * row_bytes, value_->buffer + idx * row_bytes,
64 hits_->buffer[i] = 1;
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglBindVertexBuffer.cpp1 /* void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride ) */
4 (JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) {
11 (GLuint)buffer,
3 android_glBindVertexBuffer__IIJI(JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) argument
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
H A DIPAddressTypeAvailabilityElementTest.java43 * Verify that ProtocolException will be thrown when parsing an empty buffer.
53 * Verify that ProtocolException will be thrown when parsing an buffer containing excess
60 ByteBuffer buffer = ByteBuffer.allocate(
62 buffer.put((byte) getIPAvailability());
63 buffer.put((byte) 0); // Excess data.
64 buffer.position(0);
70 * a buffer containing the test data.
76 ByteBuffer buffer = ByteBuffer.allocate(
78 buffer.put((byte) getIPAvailability());
79 buffer
[all...]
H A DNAIRealmDataTest.java35 * Verify that BufferUnderflowException will be thrown when parsing from an empty buffer.
45 * Verify that ProtocolException will be thrown when parsing a truncated buffer
52 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES);
53 buffer.limit(buffer.remaining() - 1);
54 NAIRealmData.parse(buffer);
58 * Verify that an expected NAIRealmData will be returned when parsing a buffer contained
65 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES);
66 assertEquals(NAIRealmDataTestUtil.TEST_REALM_DATA, NAIRealmData.parse(buffer));
70 * Verify that the expected NAIRealmData will be returned when parsing a buffer containe
[all...]
/frameworks/base/test-base/src/junit/framework/
H A DTestFailure.java41 StringBuffer buffer= new StringBuffer();
42 buffer.append(fFailedTest+": "+fThrownException.getMessage());
43 return buffer.toString();
49 StringBuffer buffer= stringWriter.getBuffer();
50 return buffer.toString();
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DByteBufferReaderTest.java37 * Verify that BufferUnderflowException will be thrown when reading an integer from a buffer
45 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN);
46 ByteBufferReader.readInteger(buffer, buffer.order(), 2);
59 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN);
60 ByteBufferReader.readInteger(buffer, buffer.order(), length);
73 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN);
74 ByteBufferReader.readInteger(buffer, buffer
[all...]
/frameworks/base/core/java/android/net/
H A DSntpClient.java109 byte[] buffer = new byte[NTP_PACKET_SIZE];
110 DatagramPacket request = new DatagramPacket(buffer, buffer.length, address, port);
115 buffer[0] = NTP_MODE_CLIENT | (NTP_VERSION << 3);
120 writeTimeStamp(buffer, TRANSMIT_TIME_OFFSET, requestTime);
125 DatagramPacket response = new DatagramPacket(buffer, buffer.length);
131 final byte leap = (byte) ((buffer[0] >> 6) & 0x3);
132 final byte mode = (byte) (buffer[0] & 0x7);
133 final int stratum = (int) (buffer[
231 read32(byte[] buffer, int offset) argument
250 readTimeStamp(byte[] buffer, int offset) argument
264 writeTimeStamp(byte[] buffer, int offset, long time) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_os_UEventObserver.cpp44 static bool isMatch(const char* buffer, size_t length) { argument
50 // Consider all zero-delimited fields of the buffer.
51 const char* field = buffer;
52 const char* end = buffer + length + 1;
65 char buffer[1024]; local
68 int length = uevent_next_event(buffer, sizeof(buffer) - 1);
72 buffer[length] = '\0';
74 ALOGV("Received uevent message: %s", buffer);
76 if (isMatch(buffer, lengt
[all...]

Completed in 222 milliseconds

1234567891011>>