Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/core/jni/
H A Dandroid_os_Parcel.cpp95 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_markSensitive()
106 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_markForBinder()
120 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_isForRpc()
124 static jint android_os_Parcel_dataSize(jlong nativePtr) in android_os_Parcel_dataSize() argument
126 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_dataSize()
130 static jint android_os_Parcel_dataAvail(jlong nativePtr) in android_os_Parcel_dataAvail() argument
132 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_dataAvail()
138 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_dataPosition()
144 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_dataCapacity()
150 Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr); in android_os_Parcel_setDataSize()
[all …]
H A Dandroid_view_MotionEvent.cpp348 if (nativePtr) { in android_view_MotionEvent_nativeInitialize()
388 jlong nativePtr) { in android_view_MotionEvent_nativeDispose() argument
389 MotionEvent* event = reinterpret_cast<MotionEvent*>(nativePtr); in android_view_MotionEvent_nativeDispose()
481 jlong nativePtr, jobject parcelObj) { in android_view_MotionEvent_nativeReadFromParcel() argument
491 if (!nativePtr) { in android_view_MotionEvent_nativeReadFromParcel()
501 jlong nativePtr, jobject parcelObj) { in android_view_MotionEvent_nativeWriteToParcel() argument
525 jlong nativePtr, jint pointerIndex) { in android_view_MotionEvent_nativeGetPointerId() argument
534 jlong nativePtr, jint pointerIndex) { in android_view_MotionEvent_nativeGetToolType() argument
543 jlong nativePtr, jint historyPos) { in android_view_MotionEvent_nativeGetEventTimeNanos() argument
556 jlong nativePtr, jint axis, in android_view_MotionEvent_nativeGetRawAxisValue() argument
[all …]
H A Dcom_android_internal_os_LongMultiStateCounter.cpp67 static void native_dispose(void *nativePtr) { in native_dispose() argument
76 asLongMultiStateCounter(nativePtr)->setEnabled(enabled, timestamp); in native_setEnabled()
80 asLongMultiStateCounter(nativePtr)->setState(state, timestamp); in native_setState()
91 static void native_addCount(jlong nativePtr, jlong count) { in native_addCount() argument
92 asLongMultiStateCounter(nativePtr)->addValue(count); in native_addCount()
95 static void native_reset(jlong nativePtr) { in native_reset() argument
96 asLongMultiStateCounter(nativePtr)->reset(); in native_reset()
99 static jlong native_getCount(jlong nativePtr, jint state) { in native_getCount() argument
100 return asLongMultiStateCounter(nativePtr)->getCount(state); in native_getCount()
171 static jint native_getStateCount(jlong nativePtr) { in native_getStateCount() argument
[all …]
H A Dcom_android_internal_os_LongArrayMultiStateCounter.cpp36 static void native_dispose(void *nativePtr) { in native_dispose() argument
38 reinterpret_cast<battery::LongArrayMultiStateCounter *>(nativePtr); in native_dispose()
48 reinterpret_cast<battery::LongArrayMultiStateCounter *>(nativePtr); in native_setEnabled()
52 static void native_setState(jlong nativePtr, jint state, jlong timestamp) { in native_setState() argument
54 reinterpret_cast<battery::LongArrayMultiStateCounter *>(nativePtr); in native_setState()
61 reinterpret_cast<battery::LongArrayMultiStateCounter *>(nativePtr); in native_updateValues()
76 static void native_reset(jlong nativePtr) { in native_reset() argument
91 static jobject native_toString(JNIEnv *env, jobject self, jlong nativePtr) { in native_toString() argument
174 static jint native_getStateCount(jlong nativePtr) { in native_getStateCount() argument
180 static jint native_getArrayLength(jlong nativePtr) { in native_getArrayLength() argument
[all …]
H A DLayoutlibLoader.cpp66 void* nativePtr = reinterpret_cast<void*>(static_cast<uintptr_t>(ptr)); in NativeAllocationRegistry_Delegate_nativeApplyFreeFunction() local
69 nativeFreeFunction(nativePtr); in NativeAllocationRegistry_Delegate_nativeApplyFreeFunction()
/aosp14/frameworks/base/libs/hwui/jni/
H A DAnimatedImageDrawable.cpp129 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nDraw()
136 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nSetAlpha()
141 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nGetAlpha()
147 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nSetColorFilter()
153 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nIsRunning()
158 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nStart()
163 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nStop()
171 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nGetRepeatCount()
177 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nSetRepeatCount()
220 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nSetOnAnimationEndListener()
[all …]
H A Dandroid_graphics_drawable_AnimatedVectorDrawable.cpp104 static jlong createGroupPropertyHolder(JNIEnv*, jobject, jlong nativePtr, jint propertyId, in createGroupPropertyHolder() argument
106 VectorDrawable::Group* group = reinterpret_cast<VectorDrawable::Group*>(nativePtr); in createGroupPropertyHolder()
112 static jlong createPathDataPropertyHolder(JNIEnv*, jobject, jlong nativePtr, jlong startValuePtr, in createPathDataPropertyHolder() argument
114 VectorDrawable::Path* path = reinterpret_cast<VectorDrawable::Path*>(nativePtr); in createPathDataPropertyHolder()
122 static jlong createPathColorPropertyHolder(JNIEnv*, jobject, jlong nativePtr, jint propertyId, in createPathColorPropertyHolder() argument
124 VectorDrawable::FullPath* fullPath = reinterpret_cast<VectorDrawable::FullPath*>(nativePtr); in createPathColorPropertyHolder()
130 static jlong createPathPropertyHolder(JNIEnv*, jobject, jlong nativePtr, jint propertyId, in createPathPropertyHolder() argument
132 VectorDrawable::FullPath* fullPath = reinterpret_cast<VectorDrawable::FullPath*>(nativePtr); in createPathPropertyHolder()
138 static jlong createRootAlphaPropertyHolder(JNIEnv*, jobject, jlong nativePtr, jfloat startValue, in createRootAlphaPropertyHolder() argument
140 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(nativePtr); in createRootAlphaPropertyHolder()
H A DImageDecoder.cpp250 static jobject ImageDecoder_nDecodeBitmap(JNIEnv* env, jobject /*clazz*/, jlong nativePtr, in ImageDecoder_nDecodeBitmap() argument
258 auto* decoder = reinterpret_cast<ImageDecoder*>(nativePtr); in ImageDecoder_nDecodeBitmap()
505 static jobject ImageDecoder_nGetSampledSize(JNIEnv* env, jobject /*clazz*/, jlong nativePtr, in ImageDecoder_nGetSampledSize() argument
507 auto* decoder = reinterpret_cast<ImageDecoder*>(nativePtr); in ImageDecoder_nGetSampledSize()
512 static void ImageDecoder_nGetPadding(JNIEnv* env, jobject /*clazz*/, jlong nativePtr, in ImageDecoder_nGetPadding() argument
514 auto* decoder = reinterpret_cast<ImageDecoder*>(nativePtr); in ImageDecoder_nGetPadding()
518 static void ImageDecoder_nClose(JNIEnv* /*env*/, jobject /*clazz*/, jlong nativePtr) { in ImageDecoder_nClose() argument
519 delete reinterpret_cast<ImageDecoder*>(nativePtr); in ImageDecoder_nClose()
522 static jstring ImageDecoder_nGetMimeType(JNIEnv* env, jobject /*clazz*/, jlong nativePtr) { in ImageDecoder_nGetMimeType() argument
523 auto* decoder = reinterpret_cast<ImageDecoder*>(nativePtr); in ImageDecoder_nGetMimeType()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibratorController.java394 private static native boolean isAvailable(long nativePtr); in isAvailable() argument
396 private static native long on(long nativePtr, long milliseconds, long vibrationId); in on() argument
398 private static native void off(long nativePtr); in off() argument
400 private static native void setAmplitude(long nativePtr, float amplitude); in setAmplitude() argument
402 private static native long performEffect(long nativePtr, long effect, long strength, in performEffect() argument
405 private static native long performComposedEffect(long nativePtr, PrimitiveSegment[] effect, in performComposedEffect() argument
408 private static native long performPwleEffect(long nativePtr, RampSegment[] effect, in performPwleEffect() argument
411 private static native void setExternalControl(long nativePtr, boolean enabled); in setExternalControl() argument
413 private static native void alwaysOnEnable(long nativePtr, long id, long effect, in alwaysOnEnable() argument
416 private static native void alwaysOnDisable(long nativePtr, long id); in alwaysOnDisable() argument
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A DMotionEvent.java1687 private static native long nativeInitialize(long nativePtr, in nativeInitialize() argument
1693 private static native void nativeDispose(long nativePtr); in nativeDispose() argument
1733 private static native int nativeGetId(long nativePtr); in nativeGetId() argument
1735 private static native int nativeGetDeviceId(long nativePtr); in nativeGetDeviceId() argument
1737 private static native int nativeGetSource(long nativePtr); in nativeGetSource() argument
1741 private static native int nativeGetDisplayId(long nativePtr); in nativeGetDisplayId() argument
1745 private static native int nativeGetAction(long nativePtr); in nativeGetAction() argument
1751 private static native int nativeGetFlags(long nativePtr); in nativeGetFlags() argument
1755 private static native int nativeGetEdgeFlags(long nativePtr); in nativeGetEdgeFlags() argument
1759 private static native int nativeGetMetaState(long nativePtr); in nativeGetMetaState() argument
[all …]
H A DMotionPredictor.java120 private static native void nativeRecord(long nativePtr, MotionEvent event); in nativeRecord() argument
121 private static native MotionEvent nativePredict(long nativePtr, long predictionTimeNanos); in nativePredict() argument
122 private static native boolean nativeIsPredictionAvailable(long nativePtr, int deviceId, in nativeIsPredictionAvailable() argument
H A DSurfaceControlHdrLayerInfoListener.java64 long nativePtr = nRegister(displayToken); in register() local
65 Runnable destructor = sRegistry.registerNativeAllocation(this, nativePtr); in register()
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DAnimatedImageDrawable.java81 State(long nativePtr, InputStream is, AssetFileDescriptor afd) { in State() argument
82 mNativePtr = nativePtr; in State()
596 private static native void nSetAlpha(long nativePtr, int alpha); in nSetAlpha() argument
598 private static native int nGetAlpha(long nativePtr); in nGetAlpha() argument
602 private static native boolean nIsRunning(long nativePtr); in nIsRunning() argument
605 private static native boolean nStart(long nativePtr); in nStart() argument
607 private static native boolean nStop(long nativePtr); in nStop() argument
609 private static native int nGetRepeatCount(long nativePtr); in nGetRepeatCount() argument
613 private static native void nSetOnAnimationEndListener(long nativePtr, in nSetOnAnimationEndListener() argument
616 private static native long nNativeByteSize(long nativePtr); in nNativeByteSize() argument
[all …]
H A DAnimatedVectorDrawable.java1364 long nativePtr = target.getNativePtr(); in createRTAnimatorForGroup() local
1384 long propertyPtr = nCreateGroupPropertyHolder(nativePtr, propertyId, in createRTAnimatorForGroup()
1397 long nativePtr = target.getNativePtr(); in createRTAnimatorForPath() local
1402 long propertyPtr = nCreatePathDataPropertyHolder(nativePtr, startPathDataPtr, in createRTAnimatorForPath()
1412 long nativePtr = target.getNativePtr(); in createRTAnimatorForFullPath() local
1422 propertyPtr = nCreatePathPropertyHolder(nativePtr, propertyId, in createRTAnimatorForFullPath()
1432 propertyPtr = nCreatePathColorPropertyHolder(nativePtr, propertyId, in createRTAnimatorForFullPath()
1455 long nativePtr = target.getNativeRenderer(); in createRTAnimatorForRootGroup() local
1837 private static native long nCreateGroupPropertyHolder(long nativePtr, int propertyId, in nCreateGroupPropertyHolder() argument
1843 private static native long nCreatePathColorPropertyHolder(long nativePtr, int propertyId, in nCreatePathColorPropertyHolder() argument
[all …]
/aosp14/frameworks/base/libs/hwui/jni/text/
H A DLineBreaker.cpp66 static void nFinish(jlong nativePtr) { in nFinish() argument
67 delete toNative(nativePtr); in nFinish()
75 static jlong nComputeLineBreaks(JNIEnv* env, jclass, jlong nativePtr, in nComputeLineBreaks() argument
86 minikin::android::StaticLayoutNative* builder = toNative(nativePtr); in nComputeLineBreaks()
/aosp14/frameworks/base/core/java/android/os/
H A DParcel.java372 private static native int nativeDataSize(long nativePtr); in nativeDataSize() argument
374 private static native int nativeDataAvail(long nativePtr); in nativeDataAvail() argument
415 private static native int nativeReadInt(long nativePtr); in nativeReadInt() argument
433 private static native void nativeDestroy(long nativePtr); in nativeDestroy() argument
446 long nativePtr, int offset, int length); in nativeHasFileDescriptorsInRange() argument
452 long nativePtr, int workSourceUid); in nativeReplaceCallingWorkSourceUid() argument
5227 private Parcel(long nativePtr) { in Parcel() argument
5232 init(nativePtr); in Parcel()
5235 private void init(long nativePtr) { in init() argument
5236 if (nativePtr != 0) { in init()
[all …]
/aosp14/frameworks/base/graphics/java/android/graphics/text/
H A DMeasuredText.java176 private static native float nGetWidth(/* Non Zero */ long nativePtr, in nGetWidth() argument
184 private static native int nGetMemoryUsage(/* Non Zero */ long nativePtr); in nGetMemoryUsage() argument
186 private static native void nGetBounds(long nativePtr, char[] buf, int start, int end, in nGetBounds() argument
190 private static native float nGetCharWidthAt(long nativePtr, int offset); in nGetCharWidthAt() argument
192 private static native long nGetExtent(long nativePtr, char[] buf, int start, int end); in nGetExtent() argument
/aosp14/frameworks/base/core/java/android/util/
H A DPathParser.java136 private static native long nCreatePathData(long nativePtr); in nCreatePathData() argument
141 private static native void nFinalize(long nativePtr); in nFinalize() argument
/aosp14/frameworks/base/graphics/java/android/graphics/animation/
H A DRenderNodeAnimator.java503 private static native void nSetStartValue(long nativePtr, float startValue); in nSetStartValue() argument
504 private static native void nSetDuration(long nativePtr, long duration); in nSetDuration() argument
505 private static native long nGetDuration(long nativePtr); in nGetDuration() argument
506 private static native void nSetStartDelay(long nativePtr, long startDelay); in nSetStartDelay() argument
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java2466 private static native ColorSpace nativeComputeColorSpace(long nativePtr); in nativeComputeColorSpace() argument
2467 private static native void nativeSetColorSpace(long nativePtr, long nativeColorSpace); in nativeSetColorSpace() argument
2468 private static native boolean nativeIsSRGB(long nativePtr); in nativeIsSRGB() argument
2469 private static native boolean nativeIsSRGBLinear(long nativePtr); in nativeIsSRGBLinear() argument
2471 private static native void nativeSetImmutable(long nativePtr); in nativeSetImmutable() argument
2473 private static native Gainmap nativeExtractGainmap(long nativePtr); in nativeExtractGainmap() argument
2479 private static native boolean nativeIsImmutable(long nativePtr); in nativeIsImmutable() argument
2482 private static native boolean nativeIsBackedByAshmem(long nativePtr); in nativeIsBackedByAshmem() argument
2485 private static native boolean nativeHasGainmap(long nativePtr); in nativeHasGainmap() argument
H A DImageDecoder.java884 private ImageDecoder(long nativePtr, int width, int height, in ImageDecoder() argument
886 mNativePtr = nativePtr; in ImageDecoder()
2290 private static native Bitmap nDecodeBitmap(long nativePtr,
2299 private static native Size nGetSampledSize(long nativePtr,
2301 private static native void nGetPadding(long nativePtr, @NonNull Rect outRect);
2302 private static native void nClose(long nativePtr);
2303 private static native String nGetMimeType(long nativePtr);
2304 private static native ColorSpace nGetColorSpace(long nativePtr);
H A DHardwareRendererObserver.java118 private static native int nGetNextBuffer(long nativePtr, long[] data); in nGetNextBuffer() argument
H A DTypeface.java1320 for (long nativePtr : nativePtrs) {
1322 out.put(name, new Typeface(nativePtr, name));
1605 private static native void nativeSetDefault(long nativePtr);
1608 private static native int nativeGetStyle(long nativePtr);
1611 private static native int nativeGetWeight(long nativePtr);
1616 private static native void nativeRegisterGenericFamily(String str, long nativePtr);
1627 private static native void nativeAddFontCollections(long nativePtr);
H A DRenderNode.java235 private RenderNode(long nativePtr) { in RenderNode() argument
236 mNativeRenderNode = nativePtr; in RenderNode()
254 public static RenderNode adopt(long nativePtr) { in adopt() argument
255 return new RenderNode(nativePtr); in adopt()
/aosp14/frameworks/base/graphics/java/android/graphics/fonts/
H A DFont.java530 public Font(long nativePtr) { in Font() argument
531 mNativePtr = nativePtr; in Font()
868 for (long nativePtr : nGetAvailableFontSet()) { in getAvailableFonts()
869 Font font = new Font(nativePtr); in getAvailableFonts()

12