Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_view_Surface.cpp174 static void nativeRelease(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeRelease() argument
175 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeRelease()
179 static jboolean nativeIsValid(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeIsValid() argument
180 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeIsValid()
184 static jboolean nativeIsConsumerRunningBehind(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeIsConsumerRunningBehind() argument
185 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeIsConsumerRunningBehind()
197 jlong nativeObject, jobject canvasObj, jobject dirtyRectObj) { in nativeLockCanvas() argument
198 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject)); in nativeLockCanvas()
252 jlong nativeObject, jobject canvasObj) { in nativeUnlockCanvasAndPost() argument
253 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.cpp526 static void nativeDisconnect(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeDisconnect() argument
527 SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeDisconnect()
533 static void nativeSetDefaultBufferSize(JNIEnv* env, jclass clazz, jlong nativeObject, in nativeSetDefaultBufferSize() argument
535 SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeSetDefaultBufferSize()
576 jlong nativeObject, jint zorder) { in nativeSetLayer() argument
579 SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeSetLayer()
584 jlong nativeObject, in nativeSetRelativeLayer() argument
587 auto ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeSetRelativeLayer()
594 jlong nativeObject, jfloat x, jfloat y) { in nativeSetPosition() argument
597 SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); in nativeSetPosition()
[all …]
Dandroid_hardware_OverlayProperties.cpp55 jlong nativeObject, in android_hardware_OverlayProperties_isCombinationSupported() argument
58 gui::OverlayProperties* properties = reinterpret_cast<gui::OverlayProperties*>(nativeObject); in android_hardware_OverlayProperties_isCombinationSupported()
78 jlong nativeObject) { in android_hardware_OverlayProperties_supportMixedColorSpaces() argument
79 gui::OverlayProperties* properties = reinterpret_cast<gui::OverlayProperties*>(nativeObject); in android_hardware_OverlayProperties_supportMixedColorSpaces()
102 static void android_hardware_OverlayProperties_write(JNIEnv* env, jclass, jlong nativeObject, in android_hardware_OverlayProperties_write() argument
110 reinterpret_cast<gui::OverlayProperties*>(nativeObject); in android_hardware_OverlayProperties_write()
Dandroid_graphics_GraphicBuffer.cpp235 jlong nativeObject = env->GetLongField(obj, gGraphicBufferClassInfo.mNativeObject); in android_graphics_GraphicBuffer_getNativeGraphicsBuffer() local
236 GraphicBufferWrapper* wrapper = (GraphicBufferWrapper*) nativeObject; in android_graphics_GraphicBuffer_getNativeGraphicsBuffer()
Dandroid_window_ScreenCapture.cpp240 static void nativeWriteListenerToParcel(JNIEnv* env, jclass clazz, jlong nativeObject, in nativeWriteListenerToParcel() argument
248 reinterpret_cast<ScreenCaptureListenerWrapper*>(nativeObject); in nativeWriteListenerToParcel()
/frameworks/base/core/java/android/hardware/
DHardwareBuffer.java229 long nativeObject = nCreateHardwareBuffer(width, height, format, layers, usage); in create() local
230 if (nativeObject == 0) { in create()
235 return new HardwareBuffer(nativeObject); in create()
276 long nativeObject = nCreateFromGraphicBuffer(graphicBuffer); in createFromGraphicBuffer() local
277 return new HardwareBuffer(nativeObject); in createFromGraphicBuffer()
285 private HardwareBuffer(long nativeObject) { in HardwareBuffer() argument
286 mNativeObject = nativeObject; in HardwareBuffer()
287 long bufferSize = nEstimateSize(nativeObject); in HardwareBuffer()
431 long nativeObject = nReadHardwareBufferFromParcel(in);
432 if (nativeObject != 0) {
[all …]
DOverlayProperties.java53 private OverlayProperties(long nativeObject) { in OverlayProperties() argument
54 if (nativeObject != 0) { in OverlayProperties()
55 mCloser = sRegistry.registerNativeAllocation(this, nativeObject); in OverlayProperties()
57 mNativeObject = nativeObject; in OverlayProperties()
138 private static native boolean nSupportMixedColorSpaces(long nativeObject); in nSupportMixedColorSpaces() argument
140 long nativeObject, int dataspace, int format); in nIsCombinationSupported() argument
141 private static native void nWriteOverlayPropertiesToParcel(long nativeObject, Parcel dest); in nWriteOverlayPropertiesToParcel() argument
/frameworks/base/graphics/java/android/graphics/
DGraphicBuffer.java81 long nativeObject = nCreateGraphicBuffer(width, height, format, usage); in create() local
82 if (nativeObject != 0) { in create()
83 return new GraphicBuffer(width, height, format, usage, nativeObject); in create()
92 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { in GraphicBuffer() argument
97 mNativeObject = nativeObject; in GraphicBuffer()
286 long nativeObject = nReadGraphicBufferFromParcel(in);
287 if (nativeObject != 0) {
288 return new GraphicBuffer(width, height, format, usage, nativeObject);
299 private static native void nDestroyGraphicBuffer(long nativeObject); in nDestroyGraphicBuffer() argument
300 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/
DLongMultiStateCounter.java219 private static native void native_setEnabled(long nativeObject, boolean enabled, in native_setEnabled() argument
223 private static native void native_setState(long nativeObject, int state, long timestampMs); in native_setState() argument
226 private static native long native_updateValue(long nativeObject, long value, long timestampMs); in native_updateValue() argument
229 private static native void native_incrementValue(long nativeObject, long increment, in native_incrementValue() argument
233 private static native void native_addCount(long nativeObject, long count); in native_addCount() argument
236 private static native void native_reset(long nativeObject); in native_reset() argument
239 private static native long native_getCount(long nativeObject, int state); in native_getCount() argument
242 private static native String native_toString(long nativeObject); in native_toString() argument
245 private static native void native_writeToParcel(long nativeObject, Parcel dest, int flags); in native_writeToParcel() argument
251 private static native int native_getStateCount(long nativeObject); in native_getStateCount() argument
DLongArrayMultiStateCounter.java149 private static native void native_setValues(long nativeObject, long[] array); in native_setValues() argument
152 private static native void native_getValues(long nativeObject, long[] array); in native_getValues() argument
155 private static native boolean native_combineValues(long nativeObject, long[] array, in native_combineValues() argument
383 private static native void native_setEnabled(long nativeObject, boolean enabled, in native_setEnabled() argument
387 private static native void native_setState(long nativeObject, int state, long timestampMs); in native_setState() argument
394 private static native void native_setValues(long nativeObject, int state, in native_setValues() argument
398 private static native void native_updateValues(long nativeObject, in native_updateValues() argument
402 private static native void native_incrementValues(long nativeObject, in native_incrementValues() argument
406 private static native void native_addCounts(long nativeObject, in native_addCounts() argument
410 private static native void native_reset(long nativeObject); in native_reset() argument
[all …]
/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.java56 private static native void nativeWriteListenerToParcel(long nativeObject, Parcel out); in nativeWriteListenerToParcel() argument
/frameworks/base/core/java/android/view/
DSurface.java77 private static native long nativeLockCanvas(long nativeObject, Canvas canvas, Rect dirty) in nativeLockCanvas() argument
79 private static native void nativeUnlockCanvasAndPost(long nativeObject, Canvas canvas); in nativeUnlockCanvasAndPost() argument
82 private static native void nativeRelease(long nativeObject); in nativeRelease() argument
83 private static native boolean nativeIsValid(long nativeObject); in nativeIsValid() argument
84 private static native boolean nativeIsConsumerRunningBehind(long nativeObject); in nativeIsConsumerRunningBehind() argument
85 private static native long nativeReadFromParcel(long nativeObject, Parcel source); in nativeReadFromParcel() argument
86 private static native void nativeWriteToParcel(long nativeObject, Parcel dest); in nativeWriteToParcel() argument
88 private static native void nativeAllocateBuffers(long nativeObject); in nativeAllocateBuffers() argument
90 private static native int nativeGetWidth(long nativeObject); in nativeGetWidth() argument
91 private static native int nativeGetHeight(long nativeObject); in nativeGetHeight() argument
[all …]
DSurfaceControl.java111 private static native long nativeCopyFromSurfaceControl(long nativeObject); in nativeCopyFromSurfaceControl() argument
112 private static native void nativeWriteToParcel(long nativeObject, Parcel out); in nativeWriteToParcel() argument
114 private static native void nativeDisconnect(long nativeObject); in nativeDisconnect() argument
115 …private static native void nativeUpdateDefaultBufferSize(long nativeObject, int width, int height); in nativeUpdateDefaultBufferSize() argument
130 private static native void nativeSetLayer(long transactionObj, long nativeObject, int zorder); in nativeSetLayer() argument
131 private static native void nativeSetRelativeLayer(long transactionObj, long nativeObject, in nativeSetRelativeLayer() argument
133 private static native void nativeSetPosition(long transactionObj, long nativeObject, in nativeSetPosition() argument
135 private static native void nativeSetScale(long transactionObj, long nativeObject, in nativeSetScale() argument
138 long nativeObject, Region region); in nativeSetTransparentRegionHint() argument
139 private static native void nativeSetAlpha(long transactionObj, long nativeObject, float alpha); in nativeSetAlpha() argument
[all …]
/frameworks/base/media/java/android/media/
DMediaMuxer.java291 private static native void nativeRelease(long nativeObject); in nativeRelease() argument
292 private static native void nativeStart(long nativeObject); in nativeStart() argument
293 private static native void nativeStop(long nativeObject); in nativeStop() argument
295 long nativeObject, @NonNull String[] keys, @NonNull Object[] values); in nativeAddTrack() argument
297 long nativeObject, int degrees); in nativeSetOrientationHint() argument
298 private static native void nativeSetLocation(long nativeObject, int latitude, int longitude); in nativeSetLocation() argument
300 long nativeObject, int trackIndex, @NonNull ByteBuffer byteBuf, in nativeWriteSampleData() argument
/frameworks/base/libs/hwui/jni/
DGainmap.cpp176 static void Gainmap_writeToParcel(JNIEnv* env, jobject, jlong nativeObject, jobject parcel) { in Gainmap_writeToParcel() argument
183 SkGainmapInfo info = fromJava(nativeObject)->info; in Gainmap_writeToParcel()
216 static void Gainmap_readFromParcel(JNIEnv* env, jobject, jlong nativeObject, jobject parcel) { in Gainmap_readFromParcel() argument
234 fromJava(nativeObject)->info = info; in Gainmap_readFromParcel()