Searched defs:buffer (Results 376 - 400 of 765) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/java/com/android/internal/os/
H A DKernelSingleUidTimeReader.java98 final ByteBuffer buffer = ByteBuffer.wrap(data);
99 buffer.order(ByteOrder.nativeOrder());
100 cpuTimesMs = readCpuTimesFromByteBuffer(buffer);
124 private long[] readCpuTimesFromByteBuffer(ByteBuffer buffer) { argument
129 cpuTimesMs[i] = buffer.getLong() * 10;
H A DKernelUidCpuFreqTimeReader.java211 private boolean getFreqTimeForUid(IntBuffer buffer, long[] freqTime) { argument
214 freqTime[i] = (long) buffer.get() * 10; // Unit is 10ms.
225 * seen results while processing the buffer, while readAbsolute returns the absolute value read
226 * from the buffer without storing. So readImpl contains the common logic of the two, leaving
229 * @param processUid the callback function to process the uid entry in the buffer.
H A DLoggingPrintStream.java44 * A buffer that is initialized when raw bytes are first written to this
46 * Between writes this buffer is always ready to receive data; ie. the
52 * A buffer that is initialized when raw bytes are first written to this
53 * stream. Between writes this buffer is always clear; ie. the position is
83 * Searches buffer for line breaks and logs a message for each one.
102 // Log the remainder of the buffer.
118 public void write(byte[] buffer) { argument
119 write(buffer, 0, buffer.length);
134 // copy some bytes from the array to the long-lived buffer
[all...]
/frameworks/base/core/jni/android/graphics/
H A DCreateJavaOutputStreamAdaptor.cpp56 size_t read(void* buffer, size_t size) override {
62 if (NULL == buffer) {
87 return this->doRead(buffer, size, env);
93 size_t doRead(void* buffer, size_t size, JNIEnv* env) { argument
119 reinterpret_cast<jbyte*>(buffer));
125 buffer = (void*)((char*)buffer + n);
226 virtual bool write(const void* buffer, size_t size) { argument
241 reinterpret_cast<const jbyte*>(buffer));
258 buffer
[all...]
H A DGraphicBuffer.cpp95 explicit GraphicBufferWrapper(const sp<GraphicBuffer>& buffer): buffer(buffer) { argument
96 LOG_ALWAYS_FATAL_IF(buffer == nullptr, "creating a null GraphicBuffer");
99 return buffer;
104 sp<GraphicBuffer> const buffer; member in class:android::GraphicBufferWrapper
123 sp<GraphicBuffer> buffer = new GraphicBuffer( local
128 status_t error = buffer->initCheck();
134 GraphicBufferWrapper* wrapper = new GraphicBufferWrapper(buffer);
173 sp<GraphicBuffer> buffer(wrappe
258 sp<GraphicBuffer> buffer = new GraphicBuffer(); local
282 createJavaGraphicBuffer(JNIEnv* env, const sp<GraphicBuffer>& buffer) argument
[all...]
H A DHarfBuzzNGFaceSkia.cpp149 char* buffer = reinterpret_cast<char*>(malloc(tableSize)); local
150 if (!buffer)
152 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer);
154 free(buffer);
158 return hb_blob_create(const_cast<char*>(buffer), tableSize,
159 HB_MEMORY_MODE_WRITABLE, buffer, free);
/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...]
H A Dandroid_hardware_UsbDeviceConnection.cpp94 char buffer[16384]; local
98 int length = read(fd, buffer, sizeof(buffer));
105 memcpy(bytes, buffer, length);
175 jbyteArray buffer, jint start, jint length, jint timeout)
184 if (buffer) {
185 bufferBytes = (jbyte*)env->GetPrimitiveArrayCritical(buffer, NULL);
192 env->ReleasePrimitiveArrayCritical(buffer, bufferBytes, 0);
200 jint endpoint, jbyteArray buffer, jint start, jint length, jint timeout)
209 if (buffer) {
173 android_hardware_UsbDeviceConnection_control_request(JNIEnv *env, jobject thiz, jint requestType, jint request, jint value, jint index, jbyteArray buffer, jint start, jint length, jint timeout) argument
199 android_hardware_UsbDeviceConnection_bulk_request(JNIEnv *env, jobject thiz, jint endpoint, jbyteArray buffer, jint start, jint length, jint timeout) argument
[all...]
H A Dandroid_net_LocalSocketImpl.cpp184 void *buffer, size_t len)
189 unsigned char *buf = (unsigned char *)buffer;
190 // Enough buffer for a pile of fd's. We throw an exception if
191 // this buffer is too small.
234 * Writes all the data in the specified buffer to the specified socket.
243 unsigned char *buffer = (unsigned char *)buf; local
293 iv.iov_base = buffer;
308 buffer += ret;
352 jbyteArray buffer, jint off, jint len, jobject fileDescriptor)
358 if (fileDescriptor == NULL || buffer
183 socket_read_all(JNIEnv *env, jobject thisJ, int fd, void *buffer, size_t len) argument
351 socket_readba(JNIEnv *env, jobject object, jbyteArray buffer, jint off, jint len, jobject fileDescriptor) argument
418 socket_writeba(JNIEnv *env, jobject object, jbyteArray buffer, jint off, jint len, jobject fileDescriptor) argument
[all...]
H A Dcom_android_internal_net_NetworkStatsFactory.cpp106 char buffer[384]; local
107 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
110 char* pos = buffer;
114 //ALOGI("Index #%d: %s", idx, buffer);
121 ALOGE("inconsistent idx=%d after lastIdx=%d: %s", idx, lastIdx, buffer);
139 ALOGE("bad iface: %s", buffer);
155 //ALOGI("skipping due to iface: %s", buffer);
179 //ALOGI("skipping due to tag: %s", buffer);
192 //ALOGI("skipping due to uid: %s", buffer);
[all...]
/frameworks/base/libs/androidfw/
H A DZipFileRO.cpp194 * Copy the entry's filename to the buffer.
196 int ZipFileRO::getEntryFileName(ZipEntryRO entry, char* buffer, size_t bufLen) argument
207 memcpy(buffer, zipEntry->name.name, requiredSize - 1);
208 buffer[requiredSize - 1] = '\0';
239 * Uncompress an entry, in its entirety, into the provided output buffer.
244 bool ZipFileRO::uncompressEntry(ZipEntryRO entry, void* buffer, size_t size) const argument
248 (uint8_t*) buffer, size);
/frameworks/base/libs/androidfw/include/androidfw/
H A DCursorWindow.h43 * This class stores a set of rows from a database in a buffer. The begining of the
76 } buffer; member in union:android::CursorWindow::FieldSlot::__anon947
131 *outSizeIncludingNull = fieldSlot->data.buffer.size;
133 fieldSlot->data.buffer.offset, fieldSlot->data.buffer.size));
137 *outSize = fieldSlot->data.buffer.size;
138 return offsetToPtr(fieldSlot->data.buffer.offset, fieldSlot->data.buffer.size);
/frameworks/base/libs/common_time/
H A Dcommon_time_server_api.cpp283 res = snprintf(buffer, sizeof(buffer), a, b); \
284 buffer[sizeof(buffer) - 1] = 0; \
286 write(fd, buffer, res); \
295 char buffer[SIZE]; local
298 snprintf(buffer, SIZE, "Permission Denial: "
302 write(fd, buffer, strlen(buffer));
371 char buffer[SIZ local
410 char buffer[SIZE]; local
[all...]
/frameworks/base/libs/hwui/
H A DBakedOpRenderer.cpp35 OffscreenBuffer* buffer = local
37 startRepaintLayer(buffer, Rect(width, height));
38 return buffer;
105 OffscreenBuffer* buffer = local
109 mCaches.textureState().bindTexture(buffer->texture.id());
114 return buffer;
H A DFrameInfo.h72 explicit UiFrameInfoBuilder(int64_t* buffer) : mBuffer(buffer) { argument
H A DTexture.cpp139 void Texture::uploadHardwareBitmapToTexture(GraphicBuffer* buffer) { argument
146 buffer->getNativeBuffer(), 0);
170 // With OpenGL ES 2.0 we need to copy the bitmap in a temporary buffer
H A DVertexBuffer.h61 // already have allocated the buffer, re-allocate space within
104 * vertex buffer can't determine bounds more simply/efficiently
154 static void cleanup(void* buffer) { argument
155 delete[](TYPE*) buffer;
/frameworks/base/libs/hwui/hwui/
H A DBitmap.cpp200 Bitmap::Bitmap(GraphicBuffer* buffer, const SkImageInfo& info) argument
202 bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride())
205 mPixelStorage.hardware.buffer = buffer;
206 buffer->incStrong(buffer);
209 mImage = SkImage::MakeFromAHardwareBuffer(reinterpret_cast<AHardwareBuffer*>(buffer),
228 auto buffer = mPixelStorage.hardware.buffer; local
[all...]
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaVulkanPipeline.cpp164 sp<GraphicBuffer> buffer = new GraphicBuffer( local
170 status_t error = buffer->initCheck();
175 return sk_sp<Bitmap>(new Bitmap(buffer.get(), skBitmap.info()));
/frameworks/base/libs/hwui/tests/macrobench/
H A Dmain.cpp111 char buffer[BUF_SIZE]; local
113 if (snprintf(buffer, BUF_SIZE, "/dev/cpuset/%s/tasks", cpusetName) >= BUF_SIZE) {
114 fprintf(stderr, "Error, cpusetName too large to fit in buffer '%s'\n", cpusetName);
117 int fd = open(buffer, O_WRONLY | O_CLOEXEC);
124 int towrite = snprintf(buffer, BUF_SIZE, "%ld", (long)pid);
128 if (write(fd, buffer, towrite) != towrite) {
/frameworks/base/libs/hwui/tests/unit/
H A DBakedOpDispatcherTests.cpp121 OffscreenBuffer* buffer = nullptr; // no providing a buffer, should hit rect fallback case local
122 LayerOp op(Rect(10, 10), Matrix4::identity(), nullptr, &layerPaint, &buffer); local
/frameworks/base/libs/protoutil/src/
H A DEncodedBuffer.cpp134 // This prevents write pointer move too fast than allocating the buffer.
292 EncodedBuffer::iterator::iterator(const EncodedBuffer& buffer) argument
293 :mData(buffer),
294 mRp(buffer.mChunkSize)
/frameworks/base/media/jni/
H A Dandroid_media_MediaMuxer.cpp122 sp<ABuffer> buffer = new ABuffer((char *)dst + offset, size); local
124 status_t err = muxer->writeSampleData(buffer, trackIndex, timeUs, flags);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DNativeFrame.java62 * If the frame's base-type is not TYPE_OBJECT, this returns a data buffer containing the native
145 public void setData(ByteBuffer buffer, int offset, int length) { argument
147 byte[] bytes = buffer.array();
148 if ((length + offset) > buffer.limit()) {
149 throw new RuntimeException("Offset and length exceed buffer size in native setData: " +
150 (length + offset) + " bytes given, but only " + buffer.limit() +
246 private native boolean getNativeBuffer(NativeBuffer buffer); argument
H A DSerializedFrame.java116 * are responsible for synchronization and ensuring that the byte buffer is valid.
124 public DirectByteInputStream(byte[] buffer, int size) { argument
125 mBuffer = buffer;
226 public void setData(ByteBuffer buffer, int offset, int length) { argument
228 setGenericObjectValue(ByteBuffer.wrap(buffer.array(), offset, length));

Completed in 792 milliseconds

<<11121314151617181920>>