Searched refs:buffer (Results 76 - 100 of 1231) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/net/
H A DConnectivityMetricsEvent.java80 StringBuilder buffer = new StringBuilder("ConnectivityMetricsEvent(");
81 buffer.append(String.format("%tT.%tL", timestamp, timestamp));
83 buffer.append(", ").append(netId);
86 buffer.append(", ").append(ifname);
89 buffer.append(", ").append(NetworkCapabilities.transportNameOf(t));
91 buffer.append("): ").append(data.toString());
92 return buffer.toString();
/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/libs/hwui/
H A DRenderBufferCache.h35 * Returns a buffer with the exact specified dimensions. If no suitable
36 * buffer can be found, a new one is created and returned. If creating a
37 * new buffer fails, NULL is returned.
39 * When a buffer is obtained from the cache, it is removed and the total
42 * The returned buffer is always allocated and bound
45 * @param format The desired render buffer format
46 * @param width The desired width of the buffer
47 * @param height The desired height of the buffer
52 * Adds the buffer to the cache. The buffer wil
85 RenderBufferEntry(RenderBuffer* buffer) argument
[all...]
H A DFrameMetricsObserver.h26 virtual void notify(const int64_t* buffer);
/frameworks/native/libs/sensor/
H A DSensor.cpp468 status_t Sensor::flatten(void* buffer, size_t size) const { argument
473 flattenString8(buffer, size, mName);
474 flattenString8(buffer, size, mVendor);
475 FlattenableUtils::write(buffer, size, mVersion);
476 FlattenableUtils::write(buffer, size, mHandle);
477 FlattenableUtils::write(buffer, size, mType);
478 FlattenableUtils::write(buffer, size, mMinValue);
479 FlattenableUtils::write(buffer, size, mMaxValue);
480 FlattenableUtils::write(buffer, size, mResolution);
481 FlattenableUtils::write(buffer, siz
506 unflatten(void const* buffer, size_t size) argument
555 flattenString8(void*& buffer, size_t& size, const String8& string8) argument
563 unflattenString8(void const*& buffer, size_t& size, String8& outputString8) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableString.java48 public void marshal(String value, ByteBuffer buffer) { argument
51 buffer.put(arr);
52 buffer.put(NUL); // metadata strings are NUL-terminated
63 public String unmarshal(ByteBuffer buffer) { argument
64 buffer.mark(); // save the current position
68 while (buffer.hasRemaining()) {
69 if (buffer.get() == NUL) {
87 buffer.reset(); // go back to the previously marked position
90 buffer.get(strBytes, /*dstOffset*/0, stringLength + 1); // including null character
/frameworks/base/core/jni/
H A Dandroid_hardware_HardwareBuffer.cpp62 explicit GraphicBufferWrapper(const sp<GraphicBuffer>& buffer) argument
63 : buffer(buffer) {}
65 sp<GraphicBuffer> buffer; member in class:GraphicBufferWrapper
85 sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers, local
87 status_t error = buffer->initCheck();
95 GraphicBufferWrapper* wrapper = new GraphicBufferWrapper(buffer);
113 return reinterpret_cast<GraphicBufferWrapper*>(nativeObject)->buffer.get();
118 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); local
119 return static_cast<jint>(buffer
124 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); local
130 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); local
137 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); local
143 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); local
153 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); local
164 sp<GraphicBuffer> buffer = new GraphicBuffer(); local
181 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer( local
192 GraphicBuffer* buffer = AHardwareBuffer_to_GraphicBuffer(hardwareBuffer); local
[all...]
/frameworks/base/tools/aapt2/io/
H A DBigBufferInputStream.h28 inline explicit BigBufferInputStream(const BigBuffer* buffer) argument
29 : buffer_(buffer), iter_(buffer->begin()) {}
/frameworks/base/libs/hwui/renderstate/
H A DMeshState.cpp78 void MeshState::bindMeshBuffer(GLuint buffer) { argument
79 if (mCurrentBuffer != buffer) {
80 glBindBuffer(GL_ARRAY_BUFFER, buffer);
81 mCurrentBuffer = buffer;
83 // buffer has changed, so invalidate cached vertex pos/texcoord pointers
92 void MeshState::genOrUpdateMeshBuffer(GLuint* buffer, GLsizeiptr size, argument
94 if (!*buffer) {
95 glGenBuffers(1, buffer);
97 bindMeshBuffer(*buffer);
101 void MeshState::updateMeshBufferSubData(GLuint buffer, GLintpt argument
107 deleteMeshBuffer(GLuint buffer) argument
166 bindIndicesBuffer(const GLuint buffer) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DGraphicBuffer.cpp92 explicit GraphicBufferWrapper(const sp<GraphicBuffer>& buffer): buffer(buffer) { argument
95 sp<GraphicBuffer> buffer; member in class:android::GraphicBufferWrapper
112 sp<GraphicBuffer> buffer = new GraphicBuffer( local
117 status_t error = buffer->initCheck();
123 GraphicBufferWrapper* wrapper = new GraphicBufferWrapper(buffer);
162 sp<GraphicBuffer> buffer(wrapper->buffer);
171 rect.set(Rect(buffer
246 sp<GraphicBuffer> buffer = new GraphicBuffer(); local
270 createJavaGraphicBuffer(JNIEnv* env, const sp<GraphicBuffer>& buffer) argument
[all...]
H A DGraphicBuffer.h27 jobject createJavaGraphicBuffer(JNIEnv* env, const sp<GraphicBuffer>& buffer);
/frameworks/av/media/libstagefright/httplive/
H A DHTTPDownloader.cpp70 * | | `source` handle => `out` buffer | | | |
71 * | `url` file |<--------- buffer size --------->|<--- `block_size` -->| | |
72 * | |<----------- `range_length` / buffer capacity ----------->| |
136 sp<ABuffer> buffer = *out != NULL ? *out : new ABuffer(size); local
138 buffer->setRange(0, 0);
143 if (block_size > 0 && (range_length == -1 || (int64_t)(buffer->size() + block_size) < range_length)) {
144 range_length = buffer->size() + block_size;
148 size_t bufferRemaining = buffer->capacity() - buffer->size();
150 size_t bufferIncrement = buffer
230 sp<ABuffer> buffer; local
[all...]
/frameworks/base/core/java/android/text/method/
H A DBaseMovementMethod.java127 * buffer as well as those present in the key event.
132 * @param buffer The text buffer.
136 protected int getMovementMetaState(Spannable buffer, KeyEvent event) { argument
138 int metaState = MetaKeyKeyListener.getMetaState(buffer, event)
153 * @param buffer The text buffer.
160 protected boolean handleMovementKey(TextView widget, Spannable buffer, argument
165 return left(widget, buffer);
168 return leftWord(widget, buffer);
252 left(TextView widget, Spannable buffer) argument
264 right(TextView widget, Spannable buffer) argument
276 up(TextView widget, Spannable buffer) argument
288 down(TextView widget, Spannable buffer) argument
300 pageUp(TextView widget, Spannable buffer) argument
312 pageDown(TextView widget, Spannable buffer) argument
324 top(TextView widget, Spannable buffer) argument
336 bottom(TextView widget, Spannable buffer) argument
348 lineStart(TextView widget, Spannable buffer) argument
360 lineEnd(TextView widget, Spannable buffer) argument
365 leftWord(TextView widget, Spannable buffer) argument
370 rightWord(TextView widget, Spannable buffer) argument
384 home(TextView widget, Spannable buffer) argument
398 end(TextView widget, Spannable buffer) argument
466 scrollLeft(TextView widget, Spannable buffer, int amount) argument
487 scrollRight(TextView widget, Spannable buffer, int amount) argument
508 scrollUp(TextView widget, Spannable buffer, int amount) argument
535 scrollDown(TextView widget, Spannable buffer, int amount) argument
565 scrollPageUp(TextView widget, Spannable buffer) argument
585 scrollPageDown(TextView widget, Spannable buffer) argument
607 scrollTop(TextView widget, Spannable buffer) argument
625 scrollBottom(TextView widget, Spannable buffer) argument
645 scrollLineStart(TextView widget, Spannable buffer) argument
664 scrollLineEnd(TextView widget, Spannable buffer) argument
[all...]
/frameworks/av/include/media/stagefright/
H A DSkipCutBuffer.h39 // some of the data in the buffer, or it may add data to it.
40 // After this, the caller should continue processing the buffer as usual.
41 void submit(MediaBuffer *buffer);
42 void submit(const sp<ABuffer>& buffer); // same as above, but with an ABuffer
43 void submit(const sp<MediaCodecBuffer>& buffer); // same as above, but with an ABuffer
45 size_t size(); // how many bytes are currently stored in the buffer
54 void submitInternal(const sp<T>& buffer);
/frameworks/av/media/libstagefright/foundation/include/
H A DSkipCutBuffer.h39 // some of the data in the buffer, or it may add data to it.
40 // After this, the caller should continue processing the buffer as usual.
41 void submit(MediaBuffer *buffer);
42 void submit(const sp<ABuffer>& buffer); // same as above, but with an ABuffer
43 void submit(const sp<MediaCodecBuffer>& buffer); // same as above, but with an ABuffer
45 size_t size(); // how many bytes are currently stored in the buffer
54 void submitInternal(const sp<T>& buffer);
/frameworks/av/media/libstagefright/include/
H A DSkipCutBuffer.h39 // some of the data in the buffer, or it may add data to it.
40 // After this, the caller should continue processing the buffer as usual.
41 void submit(MediaBuffer *buffer);
42 void submit(const sp<ABuffer>& buffer); // same as above, but with an ABuffer
43 void submit(const sp<MediaCodecBuffer>& buffer); // same as above, but with an ABuffer
45 size_t size(); // how many bytes are currently stored in the buffer
54 void submitInternal(const sp<T>& buffer);
/frameworks/av/media/mtp/
H A DMtpUtils.h25 void formatDateTime(time_t seconds, char* buffer, int bufferLength);
/frameworks/base/media/java/android/media/
H A DMediaDataSource.java38 * {@code buffer}, and return the number of bytes written.
45 * @param buffer the buffer to read the data into.
46 * @param offset the offset within buffer to read the data into.
51 public abstract int readAt(long position, byte[] buffer, int offset, int size) argument
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpDeclinePacket.java55 void finishPacket(ByteBuffer buffer) { argument
56 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_DECLINE);
57 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId());
59 addTlvEnd(buffer);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
H A DHSFriendlyNameElementTest.java80 * parsing an empty buffer.
90 * Verify that BufferUnderflowException will be thrown when parsing a truncated buffer
99 ByteBuffer buffer = ByteBuffer.allocate(testData.length - 1);
100 buffer.put(testData, 0, testData.length - 1);
101 buffer.position(0);
102 HSFriendlyNameElement.parse(buffer);
106 * Verify that an expected HSFriendlyNameElement will be returned when parsing a buffer
114 ByteBuffer buffer = ByteBuffer.allocate(testData.length);
115 buffer.put(testData);
116 buffer
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DQuotedPrintable.java43 ByteArrayOutputStream buffer = new ByteArrayOutputStream();
58 buffer.write((char) ((u << 4) + l));
63 buffer.write(b);
66 return buffer.toByteArray();
/frameworks/base/core/java/android/bluetooth/le/
H A DBluetoothLeUtils.java45 StringBuilder buffer = new StringBuilder();
46 buffer.append('{');
48 buffer.append(array.keyAt(i)).append("=").append(Arrays.toString(array.valueAt(i)));
50 buffer.append('}');
51 return buffer.toString();
64 StringBuilder buffer = new StringBuilder();
65 buffer.append('{');
70 buffer.append(key).append("=").append(Arrays.toString(map.get(key)));
72 buffer.append(", ");
75 buffer
[all...]
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DUsbHid.java45 public void generateDescriptor(ByteBuffer buffer) { argument
46 buffer.put(new byte[] {
92 buffer.put(collection);
94 buffer.put(new byte[] {
100 public void generateReport(ByteBuffer buffer, Contact[] contacts, int contactCount) { argument
102 buffer.put((byte)mReportId);
104 buffer.put((byte)contactCount);
109 buffer.put((byte)((contact.id << 2) | 0x03));
111 buffer.put((byte)contact.x).put((byte)(contact.x >> 8));
113 buffer
[all...]
/frameworks/ex/framesequence/jni/
H A DStream.cpp42 size_t Stream::peek(void* buffer, size_t size) { argument
56 memcpy(buffer, mPeekBuffer + mPeekOffset, size);
60 size_t Stream::read(void* buffer, size_t size) { argument
65 memcpy(buffer, mPeekBuffer + mPeekOffset, bytes_read);
74 buffer = ((char*) buffer) + bytes_read;
77 bytes_read += doRead(buffer, size);
110 size_t MemoryStream::doRead(void* buffer, size_t size) { argument
112 memcpy(buffer, mBuffer, size);
118 size_t FileStream::doRead(void* buffer, size_ argument
[all...]
/frameworks/ex/framesequence/src/android/support/rastermill/
H A DFrameSequence.java44 private static native FrameSequence nativeDecodeByteBuffer(ByteBuffer buffer, int offset, int capacity); argument
74 public static FrameSequence decodeByteBuffer(ByteBuffer buffer) { argument
75 if (buffer == null) throw new IllegalArgumentException();
76 if (!buffer.isDirect()) {
77 if (buffer.hasArray()) {
78 byte[] byteArray = buffer.array();
79 return decodeByteArray(byteArray, buffer.position(), buffer.remaining());
84 return nativeDecodeByteBuffer(buffer, buffer
[all...]

Completed in 352 milliseconds

1234567891011>>