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

1234567891011>>

/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpNakPacket.java58 void finishPacket(ByteBuffer buffer) { argument
59 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_NAK);
60 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier);
61 addTlv(buffer, DHCP_MESSAGE, mMessage);
62 addTlvEnd(buffer);
/frameworks/base/services/net/java/android/net/netlink/
H A DNetlinkConstants.java62 public static String hexify(ByteBuffer buffer) { argument
63 if (buffer == null) { return "(null)"; }
65 buffer.array(), buffer.position(), buffer.remaining());
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
H A DNAIRealmElementTest.java41 * @param dataCount The number of NAI Realm Data to be added to the buffer
47 ByteBuffer buffer = ByteBuffer.allocate(dataLength + 2).order(ByteOrder.LITTLE_ENDIAN);
48 buffer.putShort((short) dataCount);
50 buffer.put(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES);
52 buffer.position(0);
53 return buffer;
58 * from an empty buffer.
69 * Verify that an expected NAIRealmElement will be returned when parsing a buffer containing
85 * Verify that an expected NAIRealmElement will be returned when parsing a buffer containing
H A DVenueNameElementTest.java80 * Verify that BufferUnderflowException will be thrown when parsing an empty buffer.
90 * Verify that BufferUnderflowException will be thrown when parsing a truncated buffer
97 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {TEST_VENUE_NAME1}));
99 buffer.limit(buffer.remaining() - 1);
100 VenueNameElement.parse(buffer);
104 * Verify that a VenueNameElement with empty name list will be returned when parsing a buffer
111 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[0]));
112 assertTrue(VenueNameElement.parse(buffer).getNames().isEmpty());
115 * Verify that an expected VenueNameElement will be returned when parsing a buffer containe
[all...]
H A DDomainNameElementTest.java71 * empty buffer.
81 * Verify that BufferUnderflowException will be thrown when parsing a truncated buffer
88 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {TEST_DOMAIN_NAME1}));
89 buffer.limit(buffer.remaining() - 1);
90 DomainNameElement.parse(buffer);
95 * buffer contained valid domain name list.
102 ByteBuffer buffer = ByteBuffer.wrap(testData);
110 assertEquals(expectedElement, DomainNameElement.parse(buffer));
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioSession.cpp141 char buffer[SIZE]; local
144 snprintf(buffer, SIZE, "%*sAudio session %d:\n", spaces, "", index+1);
145 result.append(buffer);
146 snprintf(buffer, SIZE, "%*s- session: %2d\n", spaces, "", mRecordClientInfo.session);
147 result.append(buffer);
148 snprintf(buffer, SIZE, "%*s- owner uid: %2d\n", spaces, "", mRecordClientInfo.uid);
149 result.append(buffer);
150 snprintf(buffer, SIZE, "%*s- input source: %d\n", spaces, "", mRecordClientInfo.source);
151 result.append(buffer);
152 snprintf(buffer, SIZ
284 char buffer[SIZE]; local
[all...]
/frameworks/base/libs/hwui/
H A DPathTessellator.cpp23 ALOGD("point %d at %f %f, alpha %f", i, buffer[i].x, buffer[i].y, buffer[i].alpha); \
27 ALOGD("point %d at %f %f", i, buffer[i].x, buffer[i].y); \
187 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size()); local
195 buffer[currentIndex++] = perimeter[srcAindex];
197 buffer[currentIndex++] = perimeter[srcBindex];
213 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size() * 2 + 2); local
228 Vertex::set(&buffer[currentInde
245 storeBeginEnd(const PaintInfo& paintInfo, const Vertex& center, const Vector2& normal, Vertex* buffer, int& currentIndex, bool begin) argument
273 Vertex* buffer = vertexBuffer.alloc<Vertex>(allocSize); local
348 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(perimeter.size() * 3 + 2); local
402 storeCapAA(const PaintInfo& paintInfo, const std::vector<Vertex>& vertices, AlphaVertex* buffer, bool isFirst, Vector2 normal, int offset) argument
567 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(allocSize); local
625 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(6 * perimeter.size() + 8); local
[all...]
/frameworks/av/include/media/stagefright/
H A DMediaAdapter.h43 MediaBufferBase **buffer, const ReadOptions *options = NULL);
49 virtual void signalBufferReturned(MediaBufferBase *buffer);
56 // deep copy, such that after pushBuffer return, the buffer can be re-used.
57 status_t pushBuffer(MediaBuffer *buffer);
61 // Make sure the read() wait for the incoming buffer.
63 // Make sure the pushBuffer() wait for the current buffer consumed.
H A DMediaBufferGroup.h35 // create a media buffer group with preallocated buffers
40 void add_buffer(MediaBufferBase *buffer);
44 // If nonBlocking is false, it blocks until a buffer is available and
45 // passes it to the caller in *buffer, while returning OK.
46 // The returned buffer will have a reference count of 1.
47 // If nonBlocking is true and a buffer is not immediately available,
48 // buffer is set to NULL and it returns WOULD_BLOCK.
50 // If requestedSize is > 0, the returned MediaBuffer should have buffer
53 MediaBufferBase **buffer, bool nonBlocking = false, size_t requestedSize = 0);
57 // If buffer i
[all...]
/frameworks/av/media/libaaudio/src/client/
H A DAudioStreamInternalCapture.h35 aaudio_result_t read(void *buffer,
58 aaudio_result_t processDataNow(void *buffer,
66 * @param buffer
70 aaudio_result_t readNowWithConversion(void *buffer, int32_t numFrames);
/frameworks/av/media/libmediaextractor/include/media/stagefright/
H A DMediaBufferGroup.h35 // create a media buffer group with preallocated buffers
40 void add_buffer(MediaBufferBase *buffer);
44 // If nonBlocking is false, it blocks until a buffer is available and
45 // passes it to the caller in *buffer, while returning OK.
46 // The returned buffer will have a reference count of 1.
47 // If nonBlocking is true and a buffer is not immediately available,
48 // buffer is set to NULL and it returns WOULD_BLOCK.
50 // If requestedSize is > 0, the returned MediaBuffer should have buffer
53 MediaBufferBase **buffer, bool nonBlocking = false, size_t requestedSize = 0);
57 // If buffer i
[all...]
/frameworks/av/media/libstagefright/include/media/stagefright/
H A DMediaAdapter.h43 MediaBufferBase **buffer, const ReadOptions *options = NULL);
49 virtual void signalBufferReturned(MediaBufferBase *buffer);
56 // deep copy, such that after pushBuffer return, the buffer can be re-used.
57 status_t pushBuffer(MediaBuffer *buffer);
61 // Make sure the read() wait for the incoming buffer.
63 // Make sure the pushBuffer() wait for the current buffer consumed.
H A DMediaBufferGroup.h35 // create a media buffer group with preallocated buffers
40 void add_buffer(MediaBufferBase *buffer);
44 // If nonBlocking is false, it blocks until a buffer is available and
45 // passes it to the caller in *buffer, while returning OK.
46 // The returned buffer will have a reference count of 1.
47 // If nonBlocking is true and a buffer is not immediately available,
48 // buffer is set to NULL and it returns WOULD_BLOCK.
50 // If requestedSize is > 0, the returned MediaBuffer should have buffer
53 MediaBufferBase **buffer, bool nonBlocking = false, size_t requestedSize = 0);
57 // If buffer i
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAH263Assembler.cpp75 sp<ABuffer> buffer = *queue->begin(); local
79 mNextExpectedSeqNo = (uint32_t)buffer->int32Data();
80 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) {
89 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime));
96 // hexdump(buffer->data(), buffer->size());
98 if (buffer->size() < 2) {
105 unsigned payloadHeader = U16_AT(buffer->data());
137 buffer->setRange(buffer
[all...]
H A DVideoSource.h58 MediaBuffer **buffer, const MediaSource::ReadOptions *options) {
65 status_t err = mGroup.acquire_buffer(buffer);
71 memset((*buffer)->data(), x, mSize);
72 (*buffer)->set_range(0, mSize);
73 (*buffer)->meta_data()->clear();
74 (*buffer)->meta_data()->setInt64(
78 // printf("VideoSource::read - returning buffer\n");
79 // LOG(INFO)("VideoSource::read - returning buffer");
57 read( MediaBuffer **buffer, const MediaSource::ReadOptions *options) argument
/frameworks/base/core/java/android/content/pm/
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/packages/services/Proxy/src/com/android/proxyhandler/
H A DSocketConnect.java24 final byte[] buffer = new byte[512];
28 int r = from.read(buffer);
32 to.write(buffer, 0, r);
/frameworks/ml/nn/common/operations/
H A DEmbeddingLookup.cpp40 int idx = (reinterpret_cast<int*>(lookup_->buffer))[i];
45 memcpy(output_->buffer + i * row_bytes, value_->buffer + idx * row_bytes,
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DTouchableMovementMethod.java59 public boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) { argument
61 boolean result = super.onTouchEvent(widget, buffer, event);
66 mLastEventResult = Selection.getSelectionStart(buffer) != -1;
/frameworks/av/media/libmedia/
H A DMidiIoWrapper.cpp27 static int readAt(void *handle, void *buffer, int pos, int size) { argument
28 return ((android::MidiIoWrapper*)handle)->readAt(buffer, pos, size);
71 int MidiIoWrapper::readAt(void *buffer, int offset, int size) {
72 ALOGV("readAt(%p, %d, %d)", buffer, offset, size);
75 return mDataSource->readAt(offset, buffer, size);
85 return read(mFd, buffer, size);
/frameworks/native/libs/nativewindow/include/android/
H A Dhardware_buffer.h82 * the buffer size in bytes.
130 * Buffer usage flags, specifying how the buffer will be accessed.
133 /// The buffer will never be read by the CPU.
135 /// The buffer will sometimes be read by the CPU.
137 /// The buffer will often be read by the CPU.
142 /// The buffer will never be written by the CPU.
144 /// The buffer will sometimes be written to by the CPU.
146 /// The buffer will often be written to by the CPU.
151 /// The buffer will be read from by the GPU as a texture.
154 * The buffer wil
[all...]
/frameworks/av/media/libstagefright/bqhelper/
H A DConversion.cpp159 * \brief Wrap an opaque buffer inside a `hidl_vec<uint8_t>`.
161 * \param[in] l The pointer to the beginning of the opaque buffer.
162 * \param[in] size The size of the buffer.
163 * \return A `hidl_vec<uint8_t>` that points to the buffer.
173 * \brief Create a `hidl_vec<uint8_t>` that is a copy of an opaque buffer.
175 * \param[in] l The pointer to the beginning of the opaque buffer.
176 * \param[in] size The size of the buffer.
177 * \return A `hidl_vec<uint8_t>` that is a copy of the input buffer.
273 * void*& buffer, size_t& size,
278 * void*& buffer, size_
373 unflattenFence(hidl_handle* fence, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
416 flattenFence(hidl_handle const& fence, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
461 void* buffer = static_cast<void*>(baseBuffer.get()); local
523 void* buffer = static_cast<void*>(baseBuffer.get()); local
595 flatten(HGraphicBufferProducer::FenceTimeSnapshot const& t, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
634 unflatten( HGraphicBufferProducer::FenceTimeSnapshot* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
731 unflatten(HGraphicBufferProducer::FrameEventsDelta* t, std::vector<native_handle_t*>* nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
800 flatten(HGraphicBufferProducer::FrameEventsDelta const& t, void*& buffer, size_t& size, int*& fds, size_t numFds) argument
892 unflatten( HGraphicBufferProducer::FrameEventHistoryDelta* t, std::vector<std::vector<native_handle_t*> >* nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
933 flatten( HGraphicBufferProducer::FrameEventHistoryDelta const& t, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
987 void* buffer = static_cast<void*>(baseBuffer.get()); local
1033 void* buffer = static_cast<void*>(baseBuffer.get()); local
1072 unflatten(Region* t, void const*& buffer, size_t& size) argument
1111 flatten(Region const& t, void*& buffer, size_t& size) argument
1147 void* buffer = static_cast<void*>(baseBuffer.get()); local
1177 void* buffer = static_cast<void*>(baseBuffer.get()); local
1252 flatten(HGraphicBufferProducer::QueueBufferInput const& t, native_handle_t** nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
1303 unflatten( HGraphicBufferProducer::QueueBufferInput* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
1373 void* buffer = static_cast<void*>(baseBuffer.get()); local
1419 void* buffer = static_cast<void*>(baseBuffer.get()); local
[all...]
/frameworks/av/include/media/nbaio/
H A DPipe.h34 // buffer is an optional parameter specifying the virtual address of the pipe buffer,
36 Pipe(size_t maxFrames, const NBAIO_Format& format, void *buffer = NULL);
38 // If a buffer was specified in the constructor, it is not automatically freed by destructor.
57 virtual ssize_t write(const void *buffer, size_t count);
/frameworks/av/media/libaaudio/src/utility/
H A DFixedBlockAdapter.h28 virtual int32_t onProcessFixedBlock(uint8_t *buffer, int32_t numBytes) = 0;
53 * @param buffer
57 virtual int32_t processVariableBlock(uint8_t *buffer, int32_t numBytes) = 0;
67 int32_t mSize = 0; // Size in bytes of the fixed size buffer.

Completed in 1430 milliseconds

1234567891011>>