Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_view_Surface.cpp175 static void nativeRelease(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeRelease() argument
176 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeRelease()
180 static jboolean nativeIsValid(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeIsValid() argument
181 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeIsValid()
185 static jboolean nativeIsConsumerRunningBehind(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeIsConsumerRunningBehind() argument
186 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeIsConsumerRunningBehind()
198 jlong nativeObject, jobject canvasObj, jobject dirtyRectObj) { in nativeLockCanvas() argument
199 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject)); in nativeLockCanvas()
253 jlong nativeObject, jobject canvasObj) { in nativeUnlockCanvasAndPost() argument
254 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject)); in nativeUnlockCanvasAndPost()
[all …]
Dandroid_hardware_HardwareBuffer.cpp135 jlong nativeObject) { in GraphicBufferWrapper_to_GraphicBuffer() argument
136 return reinterpret_cast<GraphicBufferWrapper*>(nativeObject)->buffer.get(); in GraphicBufferWrapper_to_GraphicBuffer()
140 jlong nativeObject) { in android_hardware_HardwareBuffer_getWidth() argument
141 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getWidth()
146 jobject clazz, jlong nativeObject) { in android_hardware_HardwareBuffer_getHeight() argument
147 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getHeight()
152 jobject clazz, jlong nativeObject) { in android_hardware_HardwareBuffer_getFormat() argument
153 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getFormat()
159 jobject clazz, jlong nativeObject) { in android_hardware_HardwareBuffer_getLayers() argument
160 GraphicBuffer* buffer = GraphicBufferWrapper_to_GraphicBuffer(nativeObject); in android_hardware_HardwareBuffer_getLayers()
[all …]
Dandroid_view_SurfaceControl.cpp547 static void nativeDisconnect(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeDisconnect() argument
548 SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeDisconnect()
554 static void nativeSetDefaultBufferSize(JNIEnv* env, jclass clazz, jlong nativeObject, in nativeSetDefaultBufferSize() argument
556 SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeSetDefaultBufferSize()
597 jlong nativeObject, jint zorder) { in nativeSetLayer() argument
600 SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeSetLayer()
605 jlong nativeObject, in nativeSetRelativeLayer() argument
608 auto ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeSetRelativeLayer()
615 jlong nativeObject, jfloat x, jfloat y) { in nativeSetPosition() argument
618 SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeSetPosition()
[all …]
Dandroid_hardware_OverlayProperties.cpp62 jlong nativeObject, in android_hardware_OverlayProperties_isCombinationSupported() argument
65 gui::OverlayProperties* properties = reinterpret_cast<gui::OverlayProperties*>(nativeObject); in android_hardware_OverlayProperties_isCombinationSupported()
85 jlong nativeObject) { in android_hardware_OverlayProperties_supportMixedColorSpaces() argument
86 gui::OverlayProperties* properties = reinterpret_cast<gui::OverlayProperties*>(nativeObject); in android_hardware_OverlayProperties_supportMixedColorSpaces()
106 jlong nativeObject) { in android_hardware_OverlayProperties_getLutProperties() argument
108 reinterpret_cast<gui::OverlayProperties*>(nativeObject); in android_hardware_OverlayProperties_getLutProperties()
139 static void android_hardware_OverlayProperties_write(JNIEnv* env, jclass, jlong nativeObject, in android_hardware_OverlayProperties_write() argument
147 reinterpret_cast<gui::OverlayProperties*>(nativeObject); in android_hardware_OverlayProperties_write()
Dandroid_graphics_GraphicBuffer.cpp236 jlong nativeObject = env->GetLongField(obj, gGraphicBufferClassInfo.mNativeObject); in android_graphics_GraphicBuffer_getNativeGraphicsBuffer() local
237 GraphicBufferWrapper* wrapper = (GraphicBufferWrapper*) nativeObject; in android_graphics_GraphicBuffer_getNativeGraphicsBuffer()
Dandroid_window_ScreenCapture.cpp251 static void nativeWriteListenerToParcel(JNIEnv* env, jclass clazz, jlong nativeObject, in nativeWriteListenerToParcel() argument
259 reinterpret_cast<ScreenCaptureListenerWrapper*>(nativeObject); in nativeWriteListenerToParcel()
/frameworks/base/core/java/android/hardware/
DHardwareBuffer.java240 long nativeObject = nCreateHardwareBuffer(width, height, format, layers, usage); in create() local
241 if (nativeObject == 0) { in create()
246 return new HardwareBuffer(nativeObject); in create()
287 long nativeObject = nCreateFromGraphicBuffer(graphicBuffer); in createFromGraphicBuffer() local
288 return new HardwareBuffer(nativeObject); in createFromGraphicBuffer()
307 private HardwareBuffer(long nativeObject) { in HardwareBuffer() argument
308 mNativeObject = nativeObject; in HardwareBuffer()
309 long bufferSize = nEstimateSize(nativeObject); in HardwareBuffer()
450 long nativeObject = nReadHardwareBufferFromParcel(in);
451 if (nativeObject != 0) {
[all …]
DOverlayProperties.java56 private OverlayProperties(long nativeObject) { in OverlayProperties() argument
57 if (nativeObject != 0) { in OverlayProperties()
58 mCloser = sRegistry.registerNativeAllocation(this, nativeObject); in OverlayProperties()
60 mNativeObject = nativeObject; in OverlayProperties()
157 private static native boolean nSupportMixedColorSpaces(long nativeObject); in nSupportMixedColorSpaces() argument
159 long nativeObject, int dataspace, int format); in nIsCombinationSupported() argument
160 private static native void nWriteOverlayPropertiesToParcel(long nativeObject, Parcel dest); in nWriteOverlayPropertiesToParcel() argument
162 private static native LutProperties[] nGetLutProperties(long nativeObject); in nGetLutProperties() argument
/frameworks/base/graphics/java/android/graphics/
DGraphicBuffer.java82 long nativeObject = nCreateGraphicBuffer(width, height, format, usage); in create() local
83 if (nativeObject != 0) { in create()
84 return new GraphicBuffer(width, height, format, usage, nativeObject); in create()
93 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { in GraphicBuffer() argument
98 mNativeObject = nativeObject; in GraphicBuffer()
287 long nativeObject = nReadGraphicBufferFromParcel(in);
288 if (nativeObject != 0) {
289 return new GraphicBuffer(width, height, format, usage, nativeObject);
300 private static native void nDestroyGraphicBuffer(long nativeObject); in nDestroyGraphicBuffer() argument
301 private static native void nWriteGraphicBufferToParcel(long nativeObject, Parcel dest); in nWriteGraphicBufferToParcel() argument
[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()
178 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint degrees) { in android_media_MediaMuxer_setOrientationHint() argument
179 sp<MediaMuxer> muxer(reinterpret_cast<MediaMuxer *>(nativeObject)); in android_media_MediaMuxer_setOrientationHint()
196 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint latitude, jint longitude) { in android_media_MediaMuxer_setLocation() argument
197 MediaMuxer* muxer = reinterpret_cast<MediaMuxer *>(nativeObject); in android_media_MediaMuxer_setLocation()
208 jlong nativeObject) { in android_media_MediaMuxer_start() argument
209 sp<MediaMuxer> muxer(reinterpret_cast<MediaMuxer *>(nativeObject)); in android_media_MediaMuxer_start()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DLongArrayMultiStateCounter.java251 private static native void native_setEnabled(long nativeObject, boolean enabled, in native_setEnabled() argument
256 private static native void native_setState(long nativeObject, int state, long timestampMs); in native_setState() argument
265 private static native void native_setValues(long nativeObject, int state, long[] values); in native_setValues() argument
269 private static native void native_updateValues(long nativeObject, long[] values, in native_updateValues() argument
274 private static native void native_incrementValues(long nativeObject, long[] values, in native_incrementValues() argument
279 private static native void native_addCounts(long nativeObject, long[] counts); in native_addCounts() argument
283 private static native void native_reset(long nativeObject); in native_reset() argument
288 private static native boolean native_getCounts(long nativeObject, long[] counts, int state); in native_getCounts() argument
292 private static native String native_toString(long nativeObject); in native_toString() argument
296 private static native void native_writeToParcel(long nativeObject, Parcel dest, int flags); in native_writeToParcel() argument
[all …]
DLongMultiStateCounter.java225 private static native void native_setEnabled(long nativeObject, boolean enabled, in native_setEnabled() argument
230 private static native void native_setState(long nativeObject, int state, long timestampMs); in native_setState() argument
234 private static native long native_updateValue(long nativeObject, long value, long timestampMs); in native_updateValue() argument
238 private static native void native_incrementValue(long nativeObject, long increment, in native_incrementValue() argument
243 private static native void native_addCount(long nativeObject, long count); in native_addCount() argument
247 private static native void native_reset(long nativeObject); in native_reset() argument
251 private static native long native_getCount(long nativeObject, int state); in native_getCount() argument
255 private static native String native_toString(long nativeObject); in native_toString() argument
259 private static native void native_writeToParcel(long nativeObject, Parcel dest, int flags); in native_writeToParcel() argument
267 private static native int native_getStateCount(long nativeObject); in native_getStateCount() argument
/frameworks/base/core/java/android/window/
DInputTransferToken.java57 private static native void nativeWriteToParcel(long nativeObject, Parcel out); in nativeWriteToParcel() argument
59 private static native IBinder nativeGetBinderToken(long nativeObject); in nativeGetBinderToken() argument
60 private static native long nativeGetBinderTokenRef(long nativeObject); in nativeGetBinderTokenRef() argument
73 private InputTransferToken(long nativeObject) { in InputTransferToken() argument
74 mNativeObject = nativeObject; in InputTransferToken()
75 sRegistry.registerNativeAllocation(this, nativeObject); in InputTransferToken()
DScreenCapture.java57 private static native void nativeWriteListenerToParcel(long nativeObject, Parcel out); in nativeWriteListenerToParcel() argument
/frameworks/base/core/java/android/view/
DSurfaceControl.java116 private static native long nativeCopyFromSurfaceControl(long nativeObject); in nativeCopyFromSurfaceControl() argument
117 private static native void nativeWriteToParcel(long nativeObject, Parcel out); in nativeWriteToParcel() argument
119 private static native void nativeDisconnect(long nativeObject); in nativeDisconnect() argument
120 …private static native void nativeUpdateDefaultBufferSize(long nativeObject, int width, int height); in nativeUpdateDefaultBufferSize() argument
135 private static native void nativeSetLayer(long transactionObj, long nativeObject, int zorder); in nativeSetLayer() argument
136 private static native void nativeSetRelativeLayer(long transactionObj, long nativeObject, in nativeSetRelativeLayer() argument
138 private static native void nativeSetPosition(long transactionObj, long nativeObject, in nativeSetPosition() argument
140 private static native void nativeSetScale(long transactionObj, long nativeObject, in nativeSetScale() argument
143 long nativeObject, Region region); in nativeSetTransparentRegionHint() argument
144 private static native void nativeSetAlpha(long transactionObj, long nativeObject, float alpha); in nativeSetAlpha() argument
[all …]
DSurface.java79 private static native long nativeLockCanvas(long nativeObject, Canvas canvas, Rect dirty) in nativeLockCanvas() argument
81 private static native void nativeUnlockCanvasAndPost(long nativeObject, Canvas canvas); in nativeUnlockCanvasAndPost() argument
84 private static native void nativeRelease(long nativeObject); in nativeRelease() argument
85 private static native boolean nativeIsValid(long nativeObject); in nativeIsValid() argument
86 private static native boolean nativeIsConsumerRunningBehind(long nativeObject); in nativeIsConsumerRunningBehind() argument
87 private static native long nativeReadFromParcel(long nativeObject, Parcel source); in nativeReadFromParcel() argument
88 private static native void nativeWriteToParcel(long nativeObject, Parcel dest); in nativeWriteToParcel() argument
90 private static native void nativeAllocateBuffers(long nativeObject); in nativeAllocateBuffers() argument
92 private static native int nativeGetWidth(long nativeObject); in nativeGetWidth() argument
93 private static native int nativeGetHeight(long nativeObject); in nativeGetHeight() argument
[all …]
/frameworks/base/media/java/android/media/
DMediaMuxer.java297 private static native void nativeRelease(long nativeObject); in nativeRelease() argument
298 private static native void nativeStart(long nativeObject); in nativeStart() argument
299 private static native void nativeStop(long nativeObject); in nativeStop() argument
301 long nativeObject, @NonNull String[] keys, @NonNull Object[] values); in nativeAddTrack() argument
303 long nativeObject, int degrees); in nativeSetOrientationHint() argument
304 private static native void nativeSetLocation(long nativeObject, int latitude, int longitude); in nativeSetLocation() argument
306 long nativeObject, int trackIndex, @NonNull ByteBuffer byteBuf, in nativeWriteSampleData() argument
/frameworks/base/libs/hwui/jni/
DGainmap.cpp231 static void Gainmap_writeToParcel(JNIEnv* env, jobject, jlong nativeObject, jobject parcel) { in Gainmap_writeToParcel() argument
238 SkGainmapInfo info = fromJava(nativeObject)->info; in Gainmap_writeToParcel()
271 static void Gainmap_readFromParcel(JNIEnv* env, jobject, jlong nativeObject, jobject parcel) { in Gainmap_readFromParcel() argument
289 fromJava(nativeObject)->info = info; in Gainmap_readFromParcel()