Searched defs:buffer (Results 276 - 300 of 524) sorted by path

<<11121314151617181920>>

/frameworks/base/core/jni/
H A Dandroid_opengl_GLES10.cpp103 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
110 position = _env->GetIntField(buffer, positionID);
111 limit = _env->GetIntField(buffer, limitID);
112 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID);
115 getBasePointerID, buffer);
122 getBaseArrayID, buffer);
124 getBaseArrayOffsetID, buffer);
247 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument
248 char* buf = (char*) _env->GetDirectBufferAddress(buffer);
250 jint position = _env->GetIntField(buffer, positionI
[all...]
H A Dandroid_opengl_GLES10Ext.cpp103 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
110 position = _env->GetIntField(buffer, positionID);
111 limit = _env->GetIntField(buffer, limitID);
112 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID);
115 getBasePointerID, buffer);
122 getBaseArrayID, buffer);
124 getBaseArrayOffsetID, buffer);
247 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument
248 char* buf = (char*) _env->GetDirectBufferAddress(buffer);
250 jint position = _env->GetIntField(buffer, positionI
[all...]
H A Dandroid_opengl_GLES11.cpp103 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
110 position = _env->GetIntField(buffer, positionID);
111 limit = _env->GetIntField(buffer, limitID);
112 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID);
115 getBasePointerID, buffer);
122 getBaseArrayID, buffer);
124 getBaseArrayOffsetID, buffer);
247 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument
248 char* buf = (char*) _env->GetDirectBufferAddress(buffer);
250 jint position = _env->GetIntField(buffer, positionI
447 android_glBindBuffer__II(JNIEnv *_env, jobject _this, jint target, jint buffer) argument
2389 android_glIsBuffer__I(JNIEnv *_env, jobject _this, jint buffer) argument
[all...]
H A Dandroid_opengl_GLES11Ext.cpp103 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
110 position = _env->GetIntField(buffer, positionID);
111 limit = _env->GetIntField(buffer, limitID);
112 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID);
115 getBasePointerID, buffer);
122 getBaseArrayID, buffer);
124 getBaseArrayOffsetID, buffer);
247 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument
248 char* buf = (char*) _env->GetDirectBufferAddress(buffer);
250 jint position = _env->GetIntField(buffer, positionI
[all...]
H A Dandroid_opengl_GLES20.cpp103 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
110 position = _env->GetIntField(buffer, positionID);
111 limit = _env->GetIntField(buffer, limitID);
112 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID);
115 getBasePointerID, buffer);
122 getBaseArrayID, buffer);
124 getBaseArrayOffsetID, buffer);
247 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument
248 char* buf = (char*) _env->GetDirectBufferAddress(buffer);
250 jint position = _env->GetIntField(buffer, positionI
499 android_glBindBuffer__II(JNIEnv *_env, jobject _this, jint target, jint buffer) argument
3985 android_glIsBuffer__I(JNIEnv *_env, jobject _this, jint buffer) argument
[all...]
H A Dandroid_opengl_GLES30.cpp103 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
110 position = _env->GetIntField(buffer, positionID);
111 limit = _env->GetIntField(buffer, limitID);
112 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID);
115 getBasePointerID, buffer);
122 getBaseArrayID, buffer);
124 getBaseArrayOffsetID, buffer);
247 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument
248 char* buf = (char*) _env->GetDirectBufferAddress(buffer);
250 jint position = _env->GetIntField(buffer, positionI
1822 android_glBindBufferRange__IIIII(JNIEnv *_env, jobject _this, jint target, jint index, jint buffer, jint offset, jint size) argument
1835 android_glBindBufferBase__III(JNIEnv *_env, jobject _this, jint target, jint index, jint buffer) argument
2979 android_glClearBufferiv__II_3II(JNIEnv *_env, jobject _this, jint buffer, jint drawbuffer, jintArray value_ref, jint offset) argument
3023 android_glClearBufferiv__IILjava_nio_IntBuffer_2(JNIEnv *_env, jobject _this, jint buffer, jint drawbuffer, jobject value_buf) argument
3047 android_glClearBufferuiv__II_3II(JNIEnv *_env, jobject _this, jint buffer, jint drawbuffer, jintArray value_ref, jint offset) argument
3091 android_glClearBufferuiv__IILjava_nio_IntBuffer_2(JNIEnv *_env, jobject _this, jint buffer, jint drawbuffer, jobject value_buf) argument
3115 android_glClearBufferfv__II_3FI(JNIEnv *_env, jobject _this, jint buffer, jint drawbuffer, jfloatArray value_ref, jint offset) argument
3159 android_glClearBufferfv__IILjava_nio_FloatBuffer_2(JNIEnv *_env, jobject _this, jint buffer, jint drawbuffer, jobject value_buf) argument
3183 android_glClearBufferfi__IIFI(JNIEnv *_env, jobject _this, jint buffer, jint drawbuffer, jfloat depth, jint stencil) argument
[all...]
H A Dandroid_opengl_GLES31.cpp101 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
108 position = _env->GetIntField(buffer, positionID);
109 limit = _env->GetIntField(buffer, limitID);
110 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID);
113 getBasePointerID, buffer);
120 getBaseArrayID, buffer);
122 getBaseArrayOffsetID, buffer);
245 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument
246 char* buf = (char*) _env->GetDirectBufferAddress(buffer);
248 jint position = _env->GetIntField(buffer, positionI
3118 android_glBindVertexBuffer__IIJI(JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) argument
[all...]
H A Dandroid_opengl_GLES31Ext.cpp102 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
109 position = _env->GetIntField(buffer, positionID);
110 limit = _env->GetIntField(buffer, limitID);
111 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID);
114 getBasePointerID, buffer);
121 getBaseArrayID, buffer);
123 getBaseArrayOffsetID, buffer);
246 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument
247 char* buf = (char*) _env->GetDirectBufferAddress(buffer);
249 jint position = _env->GetIntField(buffer, positionI
1422 android_glTexBufferEXT__III(JNIEnv *_env, jobject _this, jint target, jint internalformat, jint buffer) argument
1433 android_glTexBufferRangeEXT__IIIII(JNIEnv *_env, jobject _this, jint target, jint internalformat, jint buffer, jint offset, jint size) argument
[all...]
H A Dandroid_os_Debug.cpp613 char buffer[1024]; local
628 int len = read(fd, buffer, sizeof(buffer)-1);
635 buffer[len] = 0;
671 char* p = buffer;
698 len = read(fd, buffer, sizeof(buffer)-1);
701 buffer[len] = 0;
702 mem[MEMINFO_ZRAM_TOTAL] = atoll(buffer)/1024;
H A Dandroid_os_MemoryFile.cpp74 jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset,
84 env->SetByteArrayRegion(buffer, destOffset, count, (const jbyte *)address + srcOffset);
93 jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset,
103 env->GetByteArrayRegion(buffer, srcOffset, count, (jbyte *)address + destOffset);
73 android_os_MemoryFile_read(JNIEnv* env, jobject clazz, jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument
92 android_os_MemoryFile_write(JNIEnv* env, jobject clazz, jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument
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...]
H A Dandroid_util_Process.cpp446 char buffer[256]; local
447 const int len = read(fd, buffer, sizeof(buffer)-1);
454 buffer[len] = 0;
459 char* p = buffer;
556 char* buffer = (char*)malloc(BUFFER_SIZE); local
557 int len = read(fd, buffer, BUFFER_SIZE-1);
564 buffer[len] = 0;
568 char* p = buffer;
601 free(buffer);
705 android_os_Process_parseProcLineArray(JNIEnv* env, jobject clazz, char* buffer, jint startIndex, jint endIndex, jintArray format, jobjectArray outStrings, jlongArray outLongs, jfloatArray outFloats) argument
824 android_os_Process_parseProcLine(JNIEnv* env, jobject clazz, jbyteArray buffer, jint startIndex, jint endIndex, jintArray format, jobjectArray outStrings, jlongArray outLongs, jfloatArray outFloats) argument
864 char buffer[256]; local
[all...]
H A Dandroid_view_GraphicBuffer.cpp91 GraphicBufferWrapper(const sp<GraphicBuffer>& buffer): buffer(buffer) { argument
94 sp<GraphicBuffer> buffer; member in class:android::GraphicBufferWrapper
114 sp<GraphicBuffer> buffer(alloc->createGraphicBuffer(width, height, format, usage, &error));
115 if (buffer == NULL) {
122 GraphicBufferWrapper* wrapper = new GraphicBufferWrapper(buffer);
159 sp<GraphicBuffer> buffer(wrapper->buffer);
168 rect.set(Rect(buffer
241 sp<GraphicBuffer> buffer = new GraphicBuffer(); local
[all...]
H A Dandroid_view_TextureView.cpp74 static inline SkImageInfo convertPixelFormat(const ANativeWindow_Buffer& buffer) { argument
76 info.fWidth = buffer.width;
77 info.fHeight = buffer.height;
78 switch (buffer.format) {
143 ANativeWindow_Buffer buffer; local
156 int32_t status = native_window_lock(window.get(), &buffer, &rect);
159 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format);
162 bitmap.setInfo(convertPixelFormat(buffer), bytesCount);
164 if (buffer
[all...]
H A Dandroid_view_ThreadedRenderer.cpp212 sp<GraphicBuffer> buffer = graphicBufferForJavaObject(env, graphicBuffer); local
222 proxy->setTextureAtlas(buffer, map, len);
431 ScopedByteArrayRO buffer(env, jdata);
432 if (buffer.get()) {
433 JankTracker::dumpBuffer(buffer.get(), buffer.size(), fd);
H A Dcom_android_internal_net_NetworkStatsFactory.cpp126 char buffer[384]; local
127 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
130 char* pos = buffer;
134 //ALOGI("Index #%d: %s", idx, buffer);
141 ALOGE("inconsistent idx=%d after lastIdx=%d: %s", idx, lastIdx, buffer);
159 ALOGE("bad iface: %s", buffer);
175 //ALOGI("skipping due to iface: %s", buffer);
199 //ALOGI("skipping due to tag: %s", buffer);
212 //ALOGI("skipping due to uid: %s", buffer);
[all...]
H A Dcom_google_android_gles_jni_GLImpl.cpp121 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument
128 position = _env->GetIntField(buffer, positionID);
129 limit = _env->GetIntField(buffer, limitID);
130 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID);
133 getBasePointerID, buffer);
140 getBaseArrayID, buffer);
145 getBaseArrayOffsetID, buffer);
172 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument
173 if (!buffer) {
176 void* buf = _env->GetDirectBufferAddress(buffer);
4086 android_glBindBuffer__II(JNIEnv *_env, jobject _this, jint target, jint buffer) argument
6068 android_glIsBuffer__I(JNIEnv *_env, jobject _this, jint buffer) argument
[all...]
/frameworks/base/drm/java/android/drm/
H A DDrmOutputStream.java93 public void write(byte[] buffer, int offset, int count) throws IOException { argument
94 Arrays.checkOffsetAndCount(buffer.length, offset, count);
97 if (count == buffer.length) {
98 exactBuffer = buffer;
101 System.arraycopy(buffer, offset, exactBuffer, 0, count);
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java48 * Backing buffer for the Bitmap.
108 Bitmap(long nativeBitmap, byte[] buffer, int width, int height, int density, argument
119 mBuffer = buffer;
129 int nativeAllocationByteCount = (buffer == null ? getByteCount() : 0);
210 * pixel buffer is remapped to the new config, just that the allocation is
465 * <p>Copy the bitmap's pixels into the specified buffer (allocated by the
466 * caller). An exception is thrown if the buffer is not large enough to
470 * <p>The content of the bitmap is copied into the buffer as-is. This means
472 * (see {@link #isPremultiplied()}, the values in the buffer will also be
474 * <p>After this method returns, the current position of the buffer i
[all...]
/frameworks/base/include/androidfw/
H A DCursorWindow.h42 * This class stores a set of rows from a database in a buffer. The begining of the
75 } buffer; member in union:android::CursorWindow::FieldSlot::__anon933
130 *outSizeIncludingNull = fieldSlot->data.buffer.size;
131 return static_cast<char*>(offsetToPtr(fieldSlot->data.buffer.offset));
135 *outSize = fieldSlot->data.buffer.size;
136 return offsetToPtr(fieldSlot->data.buffer.offset);
/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp265 // Pad out the space we promised in the buffer. We can't corrupt the buffer,
474 void send_tarfile_chunk(BackupDataWriter* writer, const char* buffer, size_t size) { argument
477 if (size != 0) writer->WriteEntityData(buffer, size);
541 // !!! TODO: use mmap when possible to avoid churning the buffer cache
557 ALOGE("Out of mem allocating transfer buffer");
H A DZipFileRO.cpp176 * Copy the entry's filename to the buffer.
178 int ZipFileRO::getEntryFileName(ZipEntryRO entry, char* buffer, size_t bufLen) argument
189 memcpy(buffer, zipEntry->name.name, requiredSize - 1);
190 buffer[requiredSize - 1] = '\0';
221 * Uncompress an entry, in its entirety, into the provided output buffer.
226 bool ZipFileRO::uncompressEntry(ZipEntryRO entry, void* buffer, size_t size) const argument
230 (uint8_t*) 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 DAssetAtlas.cpp32 void AssetAtlas::init(sp<GraphicBuffer> buffer, int64_t* map, int count) { argument
39 mImage = new Image(buffer);
44 mTexture->width = buffer->getWidth();
45 mTexture->height = buffer->getHeight();
H A DDeferredLayerUpdater.cpp97 sp<GraphicBuffer> buffer = mSurfaceTexture->getCurrentBuffer(); local
98 if (buffer != nullptr) {
99 // force filtration if buffer size != layer size
100 forceFilter = mWidth != static_cast<int>(buffer->getWidth())
101 || mHeight != static_cast<int>(buffer->getHeight());

Completed in 1819 milliseconds

<<11121314151617181920>>