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

1234567891011>>

/frameworks/base/tools/aapt2/util/
H A DBigBuffer.cpp31 void* out_buffer = block.buffer.get() + block.size;
42 // Zero-allocate the block's buffer.
43 block.buffer = std::unique_ptr<uint8_t[]>(new uint8_t[actual_size]());
44 CHECK(block.buffer);
51 return blocks_.back().buffer.get();
58 void* out_buffer = block.buffer.get() + block.size;
67 // Zero-allocate the block's buffer.
69 block.buffer = std::unique_ptr<uint8_t[]>(new uint8_t[block_size_]());
70 CHECK(block.buffer);
76 return blocks_.back().buffer
[all...]
/frameworks/native/services/sensorservice/tests/
H A Dsensorservicetest.cpp33 ASensorEvent buffer[8]; local
37 while ((n = q->read(buffer, 8)) > 0) {
41 t = float(buffer[i].timestamp - oldTimeStamp) / s2ns(1);
43 t = float(buffer[i].timestamp - sStartTime) / s2ns(1);
45 oldTimeStamp = buffer[i].timestamp;
47 if (buffer[i].type == Sensor::TYPE_ACCELEROMETER) {
49 buffer[i].timestamp,
50 buffer[i].data[0], buffer[i].data[1], buffer[
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbRequest.cpp81 jbyteArray buffer, jint length, jboolean out)
89 if (buffer && length) {
90 request->buffer = malloc(length);
91 if (!request->buffer)
93 memset(request->buffer, 0, length);
95 // copy data from Java buffer to native buffer
96 env->GetByteArrayRegion(buffer, 0, length, (jbyte *)request->buffer);
99 request->buffer
80 android_hardware_UsbRequest_queue_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length, jboolean out) argument
119 android_hardware_UsbRequest_dequeue_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length, jboolean out) argument
138 android_hardware_UsbRequest_queue_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length, jboolean out) argument
170 android_hardware_UsbRequest_queue(JNIEnv *env, jobject thiz, jobject buffer, jint offset, jint length) argument
[all...]
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/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioGain.cpp104 char buffer[SIZE]; local
107 snprintf(buffer, SIZE, "%*sGain %d:\n", spaces, "", index+1);
108 result.append(buffer);
109 snprintf(buffer, SIZE, "%*s- mode: %08x\n", spaces, "", mGain.mode);
110 result.append(buffer);
111 snprintf(buffer, SIZE, "%*s- channel_mask: %08x\n", spaces, "", mGain.channel_mask);
112 result.append(buffer);
113 snprintf(buffer, SIZE, "%*s- min_value: %d mB\n", spaces, "", mGain.min_value);
114 result.append(buffer);
115 snprintf(buffer, SIZ
[all...]
/frameworks/base/core/tests/coretests/src/android/net/
H A DLocalSocketTest.java74 byte[] buffer = new byte[16];
77 countRead = ls.getInputStream().read(buffer, 1, 15);
80 assertEquals(2, buffer[1]);
81 assertEquals(3, buffer[2]);
82 assertEquals(4, buffer[3]);
83 assertEquals(5, buffer[4]);
87 ls.getInputStream().read(buffer, 1, 16);
94 ls.getOutputStream().write(buffer, 1, 16);
101 ls.getOutputStream().write(buffer, -1, 15);
108 ls.getOutputStream().write(buffer,
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DKernelWakelockReaderTest.java77 byte[] buffer = new ProcFileBuilder().getBytes();
78 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true,
85 byte[] buffer = new ProcFileBuilder()
88 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true,
100 byte[] buffer = new ProcFileBuilder()
104 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true,
113 byte[] buffer
[all...]
/frameworks/av/media/libaaudio/src/utility/
H A DFixedBlockReader.cpp36 int32_t FixedBlockReader::readFromStorage(uint8_t *buffer, int32_t numBytes) { argument
42 memcpy(buffer, mStorage + mPosition, bytesToRead);
47 int32_t FixedBlockReader::processVariableBlock(uint8_t *buffer, int32_t numBytes) { argument
53 int32_t bytesRead = readFromStorage(buffer, bytesLeft);
54 buffer += bytesRead;
58 result = mFixedBlockProcessor.onProcessFixedBlock(buffer, mSize);
59 buffer += mSize;
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableRggbChannelVector.java41 public void marshal(RggbChannelVector value, ByteBuffer buffer) { argument
43 buffer.putFloat(value.getComponent(i));
48 public RggbChannelVector unmarshal(ByteBuffer buffer) { argument
49 float red = buffer.getFloat();
50 float gEven = buffer.getFloat();
51 float gOdd = buffer.getFloat();
52 float blue = buffer.getFloat();
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/java/android/net/
H A DConnectivityMetricsEvent.java81 StringBuilder buffer = new StringBuilder("ConnectivityMetricsEvent(");
82 buffer.append(String.format("%tT.%tL", timestamp, timestamp));
84 buffer.append(", ").append("netId=").append(netId);
87 buffer.append(", ").append(ifname);
90 buffer.append(", ").append(NetworkCapabilities.transportNameOf(t));
92 buffer.append("): ").append(data.toString());
93 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
82 RenderBufferEntry(RenderBuffer* buffer) argument
[all...]
H A DFrameMetricsObserver.h26 virtual void notify(const int64_t* buffer);
/frameworks/native/libs/sensor/
H A DSensor.cpp473 status_t Sensor::flatten(void* buffer, size_t size) const { argument
478 flattenString8(buffer, size, mName);
479 flattenString8(buffer, size, mVendor);
480 FlattenableUtils::write(buffer, size, mVersion);
481 FlattenableUtils::write(buffer, size, mHandle);
482 FlattenableUtils::write(buffer, size, mType);
483 FlattenableUtils::write(buffer, size, mMinValue);
484 FlattenableUtils::write(buffer, size, mMaxValue);
485 FlattenableUtils::write(buffer, size, mResolution);
486 FlattenableUtils::write(buffer, siz
511 unflatten(void const* buffer, size_t size) argument
560 flattenString8(void*& buffer, size_t& size, const String8& string8) argument
568 unflattenString8(void const*& buffer, size_t& size, String8& outputString8) argument
[all...]
/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, const void* data, argument
94 if (!*buffer) {
95 glGenBuffers(1, buffer);
97 bindMeshBuffer(*buffer);
101 void MeshState::updateMeshBufferSubData(GLuint buffer, GLintpt argument
107 deleteMeshBuffer(GLuint buffer) argument
164 bindIndicesBuffer(const GLuint buffer) argument
[all...]
/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/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/base/core/jni/android/graphics/
H A DGraphicBuffer.h27 jobject createJavaGraphicBuffer(JNIEnv* env, const sp<GraphicBuffer>& buffer);
/frameworks/base/media/java/android/media/
H A DMedia2DataSource.java40 * {@code buffer}, and return the number of bytes written.
47 * @param buffer the buffer to read the data into.
48 * @param offset the offset within buffer to read the data into.
53 public abstract int readAt(long position, byte[] buffer, int offset, int size) argument
H A DMediaDataSource.java37 * Implementations should fill {@code buffer} with up to {@code size}
38 * bytes of data, and return the number of valid bytes in the buffer.
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...]

Completed in 463 milliseconds

1234567891011>>