Home
last modified time | relevance | path

Searched refs:nativeObject (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
DGraphicBuffer.java79 long nativeObject = nCreateGraphicBuffer(width, height, format, usage); in create() local
80 if (nativeObject != 0) { in create()
81 return new GraphicBuffer(width, height, format, usage, nativeObject); in create()
90 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { in GraphicBuffer() argument
95 mNativeObject = nativeObject; in GraphicBuffer()
105 long nativeObject = nWrapGraphicBuffer(unwrappedNativeObject); in createFromExisting() local
106 if (nativeObject != 0) { in createFromExisting()
107 return new GraphicBuffer(width, height, format, usage, nativeObject); in createFromExisting()
289 long nativeObject = nReadGraphicBufferFromParcel(in);
290 if (nativeObject != 0) {
[all …]
/frameworks/base/core/jni/
Dandroid_view_Surface.cpp187 static void nativeRelease(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeRelease() argument
188 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeRelease()
192 static jboolean nativeIsValid(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeIsValid() argument
193 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeIsValid()
197 static jboolean nativeIsConsumerRunningBehind(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeIsConsumerRunningBehind() argument
198 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeIsConsumerRunningBehind()
225 jlong nativeObject, jobject canvasObj, jobject dirtyRectObj) { in nativeLockCanvas() argument
226 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject)); in nativeLockCanvas()
297 jlong nativeObject, jobject canvasObj) { in nativeUnlockCanvasAndPost() argument
298 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject)); in nativeUnlockCanvasAndPost()
[all …]
Dandroid_hardware_HardwareBuffer.cpp134 jlong nativeObject) { in GraphicBufferWrapper_to_GraphicBuffer() argument
135 return reinterpret_cast<GraphicBufferWrapper*>(nativeObject)->buffer.get(); in GraphicBufferWrapper_to_GraphicBuffer()
139 jlong nativeObject) { in android_hardware_HardwareBuffer_getWidth() argument
140 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getWidth()
145 jobject clazz, jlong nativeObject) { in android_hardware_HardwareBuffer_getHeight() argument
146 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getHeight()
151 jobject clazz, jlong nativeObject) { in android_hardware_HardwareBuffer_getFormat() argument
152 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getFormat()
158 jobject clazz, jlong nativeObject) { in android_hardware_HardwareBuffer_getLayers() argument
159 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getLayers()
[all …]
Dandroid_view_SurfaceControl.cpp214 static void nativeRelease(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeRelease() argument
215 sp<SurfaceControl> ctrl(reinterpret_cast<SurfaceControl *>(nativeObject)); in nativeRelease()
220 static void nativeDisconnect(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeDisconnect() argument
221 SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeDisconnect()
348 jlong nativeObject, jint zorder) { in nativeSetLayer() argument
351 SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeSetLayer()
356 jlong nativeObject, in nativeSetRelativeLayer() argument
359 auto ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeSetRelativeLayer()
369 jlong nativeObject, jfloat x, jfloat y) { in nativeSetPosition() argument
372 SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeSetPosition()
[all …]
/frameworks/base/core/java/android/hardware/
DHardwareBuffer.java178 long nativeObject = nCreateHardwareBuffer(width, height, format, layers, usage); in create() local
179 if (nativeObject == 0) { in create()
184 return new HardwareBuffer(nativeObject); in create()
228 long nativeObject = nCreateFromGraphicBuffer(graphicBuffer); in createFromGraphicBuffer() local
229 return new HardwareBuffer(nativeObject); in createFromGraphicBuffer()
237 private HardwareBuffer(long nativeObject) { in HardwareBuffer() argument
238 mNativeObject = nativeObject; in HardwareBuffer()
382 long nativeObject = nReadHardwareBufferFromParcel(in);
383 if (nativeObject != 0) {
384 return new HardwareBuffer(nativeObject);
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaMuxer.cpp47 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jobjectArray keys, in android_media_MediaMuxer_addTrack() argument
49 sp<MediaMuxer> muxer(reinterpret_cast<MediaMuxer *>(nativeObject)); in android_media_MediaMuxer_addTrack()
77 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint trackIndex, in android_media_MediaMuxer_writeSampleData() argument
79 sp<MediaMuxer> muxer(reinterpret_cast<MediaMuxer *>(nativeObject)); in android_media_MediaMuxer_writeSampleData()
174 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint degrees) { in android_media_MediaMuxer_setOrientationHint() argument
175 sp<MediaMuxer> muxer(reinterpret_cast<MediaMuxer *>(nativeObject)); in android_media_MediaMuxer_setOrientationHint()
192 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint latitude, jint longitude) { in android_media_MediaMuxer_setLocation() argument
193 MediaMuxer* muxer = reinterpret_cast<MediaMuxer *>(nativeObject); in android_media_MediaMuxer_setLocation()
204 jlong nativeObject) { in android_media_MediaMuxer_start() argument
205 sp<MediaMuxer> muxer(reinterpret_cast<MediaMuxer *>(nativeObject)); in android_media_MediaMuxer_start()
[all …]
/frameworks/base/core/java/android/view/
DSurface.java65 private static native long nativeLockCanvas(long nativeObject, Canvas canvas, Rect dirty) in nativeLockCanvas() argument
67 private static native void nativeUnlockCanvasAndPost(long nativeObject, Canvas canvas); in nativeUnlockCanvasAndPost() argument
70 private static native void nativeRelease(long nativeObject); in nativeRelease() argument
71 private static native boolean nativeIsValid(long nativeObject); in nativeIsValid() argument
72 private static native boolean nativeIsConsumerRunningBehind(long nativeObject); in nativeIsConsumerRunningBehind() argument
73 private static native long nativeReadFromParcel(long nativeObject, Parcel source); in nativeReadFromParcel() argument
74 private static native void nativeWriteToParcel(long nativeObject, Parcel dest); in nativeWriteToParcel() argument
76 private static native void nativeAllocateBuffers(long nativeObject); in nativeAllocateBuffers() argument
78 private static native int nativeGetWidth(long nativeObject); in nativeGetWidth() argument
79 private static native int nativeGetHeight(long nativeObject); in nativeGetHeight() argument
[all …]
DSurfaceControl.java84 private static native long nativeCopyFromSurfaceControl(long nativeObject); in nativeCopyFromSurfaceControl() argument
85 private static native void nativeWriteToParcel(long nativeObject, Parcel out); in nativeWriteToParcel() argument
86 private static native void nativeRelease(long nativeObject); in nativeRelease() argument
87 private static native void nativeDisconnect(long nativeObject); in nativeDisconnect() argument
103 private static native void nativeSetLayer(long transactionObj, long nativeObject, int zorder); in nativeSetLayer() argument
104 private static native void nativeSetRelativeLayer(long transactionObj, long nativeObject, in nativeSetRelativeLayer() argument
106 private static native void nativeSetPosition(long transactionObj, long nativeObject, in nativeSetPosition() argument
109 long nativeObject); in nativeSetGeometryAppliesWithResize() argument
110 private static native void nativeSetSize(long transactionObj, long nativeObject, int w, int h); in nativeSetSize() argument
112 long nativeObject, Region region); in nativeSetTransparentRegionHint() argument
[all …]
/frameworks/base/media/java/android/media/
DMediaMuxer.java293 private static native void nativeRelease(long nativeObject); in nativeRelease() argument
294 private static native void nativeStart(long nativeObject); in nativeStart() argument
295 private static native void nativeStop(long nativeObject); in nativeStop() argument
297 long nativeObject, @NonNull String[] keys, @NonNull Object[] values); in nativeAddTrack() argument
299 long nativeObject, int degrees); in nativeSetOrientationHint() argument
300 private static native void nativeSetLocation(long nativeObject, int latitude, int longitude); in nativeSetLocation() argument
302 long nativeObject, int trackIndex, @NonNull ByteBuffer byteBuf, in nativeWriteSampleData() argument
/frameworks/layoutlib/bridge/src/android/graphics/drawable/
DVectorDrawable_Delegate.java982 VNativeObject nativeObject = (VNativeObject) child; in dispose()
983 if (nativeObject.mNativePtr != 0) { in dispose()
984 sPathManager.removeJavaReferenceFor(nativeObject.mNativePtr); in dispose()
985 nativeObject.mNativePtr = 0; in dispose()
987 nativeObject.dispose(); in dispose()
1291 VNativeObject nativeObject = sPathManager.getDelegate(mRootGroupPtr); in finalize() local
1293 assert nativeObject != null; in finalize()
1294 nativeObject.dispose(); in finalize()
/frameworks/base/core/jni/android/graphics/
DGraphicBuffer.cpp271 jlong nativeObject = env->GetLongField(obj, gGraphicBufferClassInfo.mNativeObject); in graphicBufferForJavaObject() local
272 GraphicBufferWrapper* wrapper = (GraphicBufferWrapper*) nativeObject; in graphicBufferForJavaObject()