Home
last modified time | relevance | path

Searched refs:nativePtr (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/jni/
Dandroid_os_Parcel.cpp93 static jint android_os_Parcel_dataSize(JNIEnv* env, jclass clazz, jlong nativePtr) in android_os_Parcel_dataSize() argument
95 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_dataSize()
99 static jint android_os_Parcel_dataAvail(JNIEnv* env, jclass clazz, jlong nativePtr) in android_os_Parcel_dataAvail() argument
101 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_dataAvail()
105 static jint android_os_Parcel_dataPosition(JNIEnv* env, jclass clazz, jlong nativePtr) in android_os_Parcel_dataPosition() argument
107 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_dataPosition()
111 static jint android_os_Parcel_dataCapacity(JNIEnv* env, jclass clazz, jlong nativePtr) in android_os_Parcel_dataCapacity() argument
113 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_dataCapacity()
117 static jlong android_os_Parcel_setDataSize(JNIEnv* env, jclass clazz, jlong nativePtr, jint size) in android_os_Parcel_setDataSize() argument
119 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_setDataSize()
[all …]
Dandroid_view_MotionEvent.cpp335 jlong nativePtr, in android_view_MotionEvent_nativeInitialize() argument
348 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); in android_view_MotionEvent_nativeInitialize()
380 if (!nativePtr) { in android_view_MotionEvent_nativeInitialize()
387 jlong nativePtr) { in android_view_MotionEvent_nativeDispose() argument
388 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); in android_view_MotionEvent_nativeDispose()
393 jlong nativePtr, jlong eventTimeNanos, jobjectArray pointerCoordsObjArray, in android_view_MotionEvent_nativeAddBatch() argument
395 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); in android_view_MotionEvent_nativeAddBatch()
419 jlong nativePtr, jint pointerIndex, jint historyPos, jobject outPointerCoordsObj) { in android_view_MotionEvent_nativeGetPointerCoords() argument
420 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); in android_view_MotionEvent_nativeGetPointerCoords()
442 jlong nativePtr, jint pointerIndex, jobject outPointerPropertiesObj) { in android_view_MotionEvent_nativeGetPointerProperties() argument
[all …]
Dandroid_text_StaticLayout.cpp55 static void nSetupParagraph(JNIEnv* env, jclass, jlong nativePtr, jcharArray text, jint length, in nSetupParagraph() argument
59 minikin::LineBreaker* b = reinterpret_cast<minikin::LineBreaker*>(nativePtr); in nSetupParagraph()
95 static jint nComputeLineBreaks(JNIEnv* env, jclass, jlong nativePtr, in nComputeLineBreaks() argument
99 minikin::LineBreaker* b = reinterpret_cast<minikin::LineBreaker*>(nativePtr); in nComputeLineBreaks()
115 static void nFreeBuilder(JNIEnv*, jclass, jlong nativePtr) { in nFreeBuilder() argument
116 delete reinterpret_cast<minikin::LineBreaker*>(nativePtr); in nFreeBuilder()
119 static void nFinishBuilder(JNIEnv*, jclass, jlong nativePtr) { in nFinishBuilder() argument
120 minikin::LineBreaker* b = reinterpret_cast<minikin::LineBreaker*>(nativePtr); in nFinishBuilder()
140 static void nSetLocale(JNIEnv* env, jclass, jlong nativePtr, jstring javaLocaleName, in nSetLocale() argument
143 minikin::LineBreaker* b = reinterpret_cast<minikin::LineBreaker*>(nativePtr); in nSetLocale()
[all …]
Dandroid_graphics_drawable_AnimatedVectorDrawable.cpp107 static jlong createGroupPropertyHolder(JNIEnv*, jobject, jlong nativePtr, jint propertyId, in createGroupPropertyHolder() argument
109 VectorDrawable::Group* group = reinterpret_cast<VectorDrawable::Group*>(nativePtr); in createGroupPropertyHolder()
115 static jlong createPathDataPropertyHolder(JNIEnv*, jobject, jlong nativePtr, jlong startValuePtr, in createPathDataPropertyHolder() argument
117 VectorDrawable::Path* path = reinterpret_cast<VectorDrawable::Path*>(nativePtr); in createPathDataPropertyHolder()
125 static jlong createPathColorPropertyHolder(JNIEnv*, jobject, jlong nativePtr, jint propertyId, in createPathColorPropertyHolder() argument
127 VectorDrawable::FullPath* fullPath = reinterpret_cast<VectorDrawable::FullPath*>(nativePtr); in createPathColorPropertyHolder()
133 static jlong createPathPropertyHolder(JNIEnv*, jobject, jlong nativePtr, jint propertyId, in createPathPropertyHolder() argument
135 VectorDrawable::FullPath* fullPath = reinterpret_cast<VectorDrawable::FullPath*>(nativePtr); in createPathPropertyHolder()
141 static jlong createRootAlphaPropertyHolder(JNIEnv*, jobject, jlong nativePtr, jfloat startValue, in createRootAlphaPropertyHolder() argument
143 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(nativePtr); in createRootAlphaPropertyHolder()
Dandroid_hardware_camera2_CameraMetadata.cpp92 CameraMetadata* nativePtr = reinterpret_cast<CameraMetadata*>(env->GetLongField(thiz, in CameraMetadata_getNativeMetadata() local
94 if (nativePtr == NULL) { in CameraMetadata_getNativeMetadata()
98 *metadata = *nativePtr; in CameraMetadata_getNativeMetadata()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/drawable/
DAnimatedVectorDrawable_Delegate.java90 /*package*/ static long nCreateGroupPropertyHolder(long nativePtr, int propertyId, in nCreateGroupPropertyHolder() argument
92 VGroup_Delegate group = VNativeObject.getDelegate(nativePtr); in nCreateGroupPropertyHolder()
100 /*package*/ static long nCreatePathDataPropertyHolder(long nativePtr, long startValuePtr, in nCreatePathDataPropertyHolder() argument
108 /*package*/ static long nCreatePathColorPropertyHolder(long nativePtr, int propertyId, in nCreatePathColorPropertyHolder() argument
110 VFullPath_Delegate path = VNativeObject.getDelegate(nativePtr); in nCreatePathColorPropertyHolder()
118 /*package*/ static long nCreatePathPropertyHolder(long nativePtr, int propertyId, in nCreatePathPropertyHolder() argument
120 VFullPath_Delegate path = VNativeObject.getDelegate(nativePtr); in nCreatePathPropertyHolder()
128 /*package*/ static long nCreateRootAlphaPropertyHolder(long nativePtr, float startValue, in nCreateRootAlphaPropertyHolder() argument
130 VPathRenderer_Delegate renderer = VNativeObject.getDelegate(nativePtr); in nCreateRootAlphaPropertyHolder()
138 /*package*/ static void nSetPropertyHolderData(long nativePtr, float[] data, int length) { in nSetPropertyHolderData() argument
[all …]
DVectorDrawable_Delegate.java512 static <T> T getDelegate(long nativePtr) { in getDelegate() argument
514 T vNativeObject = (T) sPathManager.getDelegate(nativePtr); in getDelegate()
522 void setNativePtr(long nativePtr) { in setNativePtr() argument
523 mNativePtr = nativePtr; in setNativePtr()
/frameworks/base/core/java/android/view/
DMotionEvent.java1468 private static native long nativeInitialize(long nativePtr, in nativeInitialize() argument
1474 private static native void nativeDispose(long nativePtr); in nativeDispose() argument
1475 private static native void nativeAddBatch(long nativePtr, long eventTimeNanos, in nativeAddBatch() argument
1477 private static native void nativeGetPointerCoords(long nativePtr, in nativeGetPointerCoords() argument
1479 private static native void nativeGetPointerProperties(long nativePtr, in nativeGetPointerProperties() argument
1482 private static native long nativeReadFromParcel(long nativePtr, Parcel parcel); in nativeReadFromParcel() argument
1483 private static native void nativeWriteToParcel(long nativePtr, Parcel parcel); in nativeWriteToParcel() argument
1491 private static native int nativeGetPointerId(long nativePtr, int pointerIndex); in nativeGetPointerId() argument
1493 private static native int nativeGetToolType(long nativePtr, int pointerIndex); in nativeGetToolType() argument
1495 private static native long nativeGetEventTimeNanos(long nativePtr, int historyPos); in nativeGetEventTimeNanos() argument
[all …]
DRenderNode.java155 private RenderNode(long nativePtr) { in RenderNode() argument
156 mNativeRenderNode = nativePtr; in RenderNode()
188 public static RenderNode adopt(long nativePtr) { in adopt() argument
189 return new RenderNode(nativePtr); in adopt()
DRenderNodeAnimator.java509 private static native void nSetStartValue(long nativePtr, float startValue); in nSetStartValue() argument
510 private static native void nSetDuration(long nativePtr, long duration); in nSetDuration() argument
511 private static native long nGetDuration(long nativePtr); in nGetDuration() argument
512 private static native void nSetStartDelay(long nativePtr, long startDelay); in nSetStartDelay() argument
/frameworks/base/tools/layoutlib/bridge/src/libcore/util/
DNativeAllocationRegistry_Delegate.java54 /*package*/ static void applyFreeFunction(long freeFunction, long nativePtr) { in applyFreeFunction() argument
61 delegate.mFinalizer.free(nativePtr); in applyFreeFunction()
68 void free(long nativePtr); in free() argument
/frameworks/base/core/java/android/os/
DParcel.java264 private static native int nativeDataSize(long nativePtr); in nativeDataSize() argument
266 private static native int nativeDataAvail(long nativePtr); in nativeDataAvail() argument
268 private static native int nativeDataPosition(long nativePtr); in nativeDataPosition() argument
270 private static native int nativeDataCapacity(long nativePtr); in nativeDataCapacity() argument
272 private static native long nativeSetDataSize(long nativePtr, int size); in nativeSetDataSize() argument
274 private static native void nativeSetDataPosition(long nativePtr, int pos); in nativeSetDataPosition() argument
276 private static native void nativeSetDataCapacity(long nativePtr, int size); in nativeSetDataCapacity() argument
279 private static native boolean nativePushAllowFds(long nativePtr, boolean allowFds); in nativePushAllowFds() argument
281 private static native void nativeRestoreAllowFds(long nativePtr, boolean lastValue); in nativeRestoreAllowFds() argument
283 private static native void nativeWriteByteArray(long nativePtr, byte[] b, int offset, int len); in nativeWriteByteArray() argument
[all …]
/frameworks/base/core/java/android/text/
DHyphenator.java70 private Hyphenator(long nativePtr, ByteBuffer b) { in Hyphenator() argument
71 mNativePtr = nativePtr; in Hyphenator()
147 long nativePtr = StaticLayout.nLoadHyphenator( in loadHyphenator() local
149 return new Hyphenator(nativePtr, buf); in loadHyphenator()
DStaticLayout.java1305 private static native void nFreeBuilder(long nativePtr);
1306 private static native void nFinishBuilder(long nativePtr);
1311 private static native void nSetLocale(long nativePtr, String locale, long nativeHyphenator);
1313 private static native void nSetIndents(long nativePtr, int[] indents);
1316 private static native void nSetupParagraph(long nativePtr, char[] text, int length,
1321 private static native float nAddStyleRun(long nativePtr, long nativePaint,
1324 private static native void nAddMeasuredRun(long nativePtr,
1327 private static native void nAddReplacementRun(long nativePtr, int start, int end, float width);
1329 private static native void nGetWidths(long nativePtr, float[] widths);
1336 private static native int nComputeLineBreaks(long nativePtr, LineBreaks recycle,
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedVectorDrawable.java1345 long nativePtr = target.getNativePtr(); in createRTAnimatorForGroup() local
1365 long propertyPtr = nCreateGroupPropertyHolder(nativePtr, propertyId, in createRTAnimatorForGroup()
1378 long nativePtr = target.getNativePtr(); in createRTAnimatorForPath() local
1383 long propertyPtr = nCreatePathDataPropertyHolder(nativePtr, startPathDataPtr, in createRTAnimatorForPath()
1393 long nativePtr = target.getNativePtr(); in createRTAnimatorForFullPath() local
1403 propertyPtr = nCreatePathPropertyHolder(nativePtr, propertyId, in createRTAnimatorForFullPath()
1413 propertyPtr = nCreatePathColorPropertyHolder(nativePtr, propertyId, in createRTAnimatorForFullPath()
1436 long nativePtr = target.getNativeRenderer(); in createRTAnimatorForRootGroup() local
1462 long propertyPtr = nCreateRootAlphaPropertyHolder(nativePtr, startValue, endValue); in createRTAnimatorForRootGroup()
1800 private static native void nSetPropertyHolderData(long nativePtr, float[] data, int length); in nSetPropertyHolderData() argument
[all …]
/frameworks/base/core/java/android/util/
DPathParser.java133 private static native long nCreatePathData(long nativePtr); in nCreatePathData() argument
138 private static native void nFinalize(long nativePtr); in nFinalize() argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/view/animation/
DNativeInterpolatorFactoryHelper_Delegate.java49 public static Interpolator getDelegate(long nativePtr) { in getDelegate() argument
50 return sManager.getDelegate(nativePtr); in getDelegate()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecController.java130 long nativePtr = nativeInit(controller, service.getServiceLooper().getQueue()); in create() local
131 if (nativePtr == 0L) { in create()
136 controller.init(nativePtr); in create()
140 private void init(long nativePtr) { in init() argument
143 mNativePtr = nativePtr; in init()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DCanvas_Delegate.java464 sFinalizer = NativeAllocationRegistry_Delegate.createFinalizer(nativePtr -> { in nGetNativeFinalizer()
465 Canvas_Delegate delegate = Canvas_Delegate.getDelegate(nativePtr); in nGetNativeFinalizer()
469 sManager.removeJavaReferenceFor(nativePtr); in nGetNativeFinalizer()
DFontFamily_Delegate.java286 /*package*/ static void nUnrefFamily(long nativePtr) {
289 sManager.removeJavaReferenceFor(nativePtr);
DBitmap_Delegate.java661 /*package*/ static boolean nativeGetColorSpace(long nativePtr, float[] xyz, float[] params) { in nativeGetColorSpace() argument
/frameworks/base/tools/layoutlib/bridge/src/android/util/
DPathParser_Delegate.java54 public static PathParser_Delegate getDelegate(long nativePtr) { in getDelegate() argument
55 return sManager.getDelegate(nativePtr); in getDelegate()
94 /*package*/ static long nCreatePathData(long nativePtr) { in nCreatePathData() argument
95 PathParser_Delegate source = sManager.getDelegate(nativePtr); in nCreatePathData()
143 /*package*/ static void nFinalize(long nativePtr) { in nFinalize() argument
144 sManager.removeJavaReferenceFor(nativePtr); in nFinalize()
/frameworks/base/graphics/java/android/graphics/
DFontFamily.java189 private static native void nUnrefFamily(long nativePtr); in nUnrefFamily() argument
DBitmap.java1978 private static native boolean nativeGetColorSpace(long nativePtr, float[] xyz, float[] params); in nativeGetColorSpace() argument
1979 private static native boolean nativeIsSRGB(long nativePtr); in nativeIsSRGB() argument