Home
last modified time | relevance | path

Searched refs:mNativePtr (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/core/java/android/hardware/
DSyncFence.java85 private long mNativePtr; field in SyncFence
94 mNativePtr = nCreate(fileDescriptor); in SyncFence()
95 mCloser = sRegistry.registerNativeAllocation(this, mNativePtr); in SyncFence()
105 mNativePtr = nCreate(fileDescriptor.getInt$()); in SyncFence()
106 mCloser = sRegistry.registerNativeAllocation(this, mNativePtr); in SyncFence()
119 mNativePtr = nativeFencePtr; in SyncFence()
121 mCloser = sRegistry.registerNativeAllocation(this, mNativePtr); in SyncFence()
133 this(other.mNativePtr); in SyncFence()
135 if (mNativePtr != 0) { in SyncFence()
136 nIncRef(mNativePtr); in SyncFence()
[all …]
/frameworks/base/core/java/android/view/
DMotionEvent.java1802 private long mNativePtr; field in MotionEvent
1932 if (mNativePtr != 0) { in finalize()
1933 nativeDispose(mNativePtr); in finalize()
1934 mNativePtr = 0; in finalize()
2298 ev.mNativePtr = nativeCopy(ev.mNativePtr, other.mNativePtr, true /*keepHistory*/); in obtain()
2312 ev.mNativePtr = nativeCopy(ev.mNativePtr, other.mNativePtr, false /*keepHistory*/); in obtainNoHistory()
2324 mNativePtr = nativeInitialize(mNativePtr, deviceId, source, displayId, action, flags, in initialize()
2328 if (mNativePtr == 0) { in initialize()
2373 nativeScale(mNativePtr, scale); in scale()
2380 return nativeGetId(mNativePtr); in getId()
[all …]
DSurfaceControl.java465 private final VirtualRefBasePtr mNativePtr; field in SurfaceControl.OnJankDataListener
468 mNativePtr = new VirtualRefBasePtr(nativeCreateJankDataListenerWrapper(this)); in OnJankDataListener()
2639 nativeAddJankDataListener(listener.mNativePtr.get(), surface.mNativeObject); in addJankDataListener()
2647 nativeRemoveJankDataListener(listener.mNativePtr.get()); in removeJankDataListener()
/frameworks/base/graphics/java/android/graphics/
DGainmap.java93 final long mNativePtr; field in Gainmap
102 mNativePtr = nativeGainmap; in Gainmap()
133 this(gainmapContents, nCreateCopy(gainmap.mNativePtr)); in Gainmap()
158 nSetBitmap(mNativePtr, bitmap); in setGainmapContents()
166 nSetRatioMin(mNativePtr, r, g, b); in setRatioMin()
176 nGetRatioMin(mNativePtr, ret); in getRatioMin()
184 nSetRatioMax(mNativePtr, r, g, b); in setRatioMax()
194 nGetRatioMax(mNativePtr, ret); in getRatioMax()
202 nSetGamma(mNativePtr, r, g, b); in setGamma()
212 nGetGamma(mNativePtr, ret); in getGamma()
[all …]
DBitmap.java71 private final long mNativePtr; field in Bitmap
161 mNativePtr = nativeBitmap; in Bitmap()
186 return mNativePtr; in getNativeInstance()
304 nativeReconfigure(mNativePtr, width, height, config.nativeInt, mRequestPremultiplied); in reconfigure()
381 nativeRecycle(mNativePtr); in recycle()
409 return nativeGenerationId(mNativePtr); in getGenerationId()
640 nativeCopyPixelsToBuffer(mNativePtr, dst); in copyPixelsToBuffer()
683 nativeCopyPixelsFromBuffer(mNativePtr, src); in copyPixelsFromBuffer()
720 Bitmap b = nativeCopy(mNativePtr, config.nativeInt, isMutable); in copy()
739 Bitmap b = nativeCopyAshmem(mNativePtr); in createAshmemBitmap()
[all …]
DHardwareRendererObserver.java35 private VirtualRefBasePtr mNativePtr; field in HardwareRendererObserver
79 mNativePtr = new VirtualRefBasePtr(nCreateObserver( in HardwareRendererObserver()
84 return mNativePtr.get(); in getNativeInstance()
92 int dropCount = nGetNextBuffer(mNativePtr.get(), mFrameMetrics); in notifyDataAvailable()
DFontFamily.java67 public long mNativePtr; field in FontFamily
116 mNativePtr = nCreateFamily(mBuilderPtr); in freeze()
119 if (mNativePtr != 0) { in freeze()
120 NoImagePreloadHolder.sFamilyRegistry.registerNativeAllocation(this, mNativePtr); in freeze()
122 return mNativePtr != 0; in freeze()
DImageDecoder.java826 private long mNativePtr; field in ImageDecoder
862 mNativePtr = nativePtr; in ImageDecoder()
1149 if (mNativePtr == 0) { in getSampledSize()
1153 return nGetSampledSize(mNativePtr, sampleSize); in getSampledSize()
1606 nClose(mNativePtr); in close()
1607 mNativePtr = 0; in close()
1620 if (mNativePtr == 0) { in checkState()
1674 return nDecodeBitmap(mNativePtr, this, mPostProcessor != null, in decodeBitmapInternal()
1772 Drawable d = new AnimatedImageDrawable(decoder.mNativePtr, in decodeDrawableImpl()
1796 nGetPadding(decoder.mNativePtr, padding); in decodeDrawableImpl()
[all …]
DBitmapShader.java227 mOverrideGainmap != null ? mOverrideGainmap.mNativePtr : 0); in createNativeInstance()
DColorSpace.java2616 private final long mNativePtr;
2620 if (mNativePtr == 0) { in getNativeInstance()
2625 return mNativePtr; in getNativeInstance()
3104 mNativePtr = Native.nativeCreate((float) mTransferParameters.a, in Rgb()
3112 NoImagePreloadHolder.sRegistry.registerNativeAllocation(this, mNativePtr); in Rgb()
3114 mNativePtr = 0; in Rgb()
/frameworks/base/core/java/com/android/internal/util/
DVirtualRefBasePtr.java27 private long mNativePtr; field in VirtualRefBasePtr
30 mNativePtr = ptr; in VirtualRefBasePtr()
31 nIncStrong(mNativePtr); in VirtualRefBasePtr()
43 return mNativePtr; in get()
47 if (mNativePtr != 0) { in release()
48 nDecStrong(mNativePtr); in release()
49 mNativePtr = 0; in release()
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedImageDrawable.java82 mNativePtr = nativePtr; in State()
87 final long mNativePtr; field in AnimatedImageDrawable.State
145 if (mState.mNativePtr != 0) { in setRepeatCount()
146 nSetRepeatCount(mState.mNativePtr, repeatCount); in setRepeatCount()
170 if (mState.mNativePtr == 0) { in getRepeatCount()
174 mState.mRepeatCount = nGetRepeatCount(mState.mNativePtr); in getRepeatCount()
264 if (mState.mNativePtr == 0 && (mState.mThemeAttrs == null in updateStateFromTypedArray()
281 if (autoStart && mState.mNativePtr != 0) { in updateStateFromTypedArray()
315 final long nativeSize = nNativeByteSize(mState.mNativePtr); in AnimatedImageDrawable()
318 registry.registerNativeAllocation(mState, mState.mNativePtr); in AnimatedImageDrawable()
[all …]
DVectorDrawable.java1015 mNativeTree = new VirtualRefBasePtr(nCreateTree(rootGroup.mNativePtr)); in createNativeTree()
1024 copy.mNativeTree.get(), rootGroup.mNativePtr)); in createNativeTreeFromCopy()
1309 private final long mNativePtr; field in VectorDrawable.VGroup
1319 mNativePtr = nCreateGroup(copy.mNativePtr); in VGroup()
1345 mNativePtr = nCreateGroup(); in VGroup()
1362 nAddChild(mNativePtr, child.getNativePtr()); in addChild()
1377 return mNativePtr; in getNativePtr()
1399 boolean success = nGetGroupProperties(mNativePtr, mTransform, TRANSFORM_PROPERTY_COUNT); in updateStateFromTypedArray()
1421 nSetName(mNativePtr, mGroupName); in updateStateFromTypedArray()
1423 nUpdateGroupProperties(mNativePtr, rotate, pivotX, pivotY, scaleX, scaleY, in updateStateFromTypedArray()
[all …]
/frameworks/base/graphics/java/android/graphics/animation/
DRenderNodeAnimator.java63 private VirtualRefBasePtr mNativePtr; field in RenderNodeAnimator
133 mNativePtr = new VirtualRefBasePtr(ptr); in init()
140 if (mNativePtr == null) { in checkMutable()
151 if (mInterpolator == null || mNativePtr == null) return; in applyInterpolator()
157 long duration = nGetDuration(mNativePtr.get()); in applyInterpolator()
160 nSetInterpolator(mNativePtr.get(), ni); in applyInterpolator()
179 if (mNativePtr == null) { in start()
183 nSetStartDelay(mNativePtr.get(), mStartDelay); in start()
208 if (mNativePtr != null) { in moveToRunningState()
209 nStart(mNativePtr.get()); in moveToRunningState()
[all …]
/frameworks/base/core/java/android/content/res/
DApkAssets.java119 private long mNativePtr; // final, except cleared in finalizer. field in ApkAssets
303 mNativePtr = nativeLoad(format, path, flags, assets); in ApkAssets()
304 mStringBlock = new StringBlock(nativeGetStringBlock(mNativePtr), true /*useSparse*/); in ApkAssets()
314 mNativePtr = nativeLoadFd(format, fd, friendlyName, flags, assets); in ApkAssets()
315 mStringBlock = new StringBlock(nativeGetStringBlock(mNativePtr), true /*useSparse*/); in ApkAssets()
325 mNativePtr = nativeLoadFdOffsets(format, fd, friendlyName, offset, length, flags, assets); in ApkAssets()
326 mStringBlock = new StringBlock(nativeGetStringBlock(mNativePtr), true /*useSparse*/); in ApkAssets()
332 mNativePtr = nativeLoadEmpty(flags, assets); in ApkAssets()
340 return TextUtils.emptyIfNull(nativeGetAssetPath(mNativePtr)); in getAssetPath()
347 return nativeGetDebugName(mNativePtr); in getDebugName()
[all …]
/frameworks/base/graphics/java/android/graphics/text/
DMeasuredText.java62 private final long mNativePtr; field in MeasuredText
73 mNativePtr = ptr; in MeasuredText()
123 return nGetWidth(mNativePtr, start, end); in getWidth()
132 return nGetMemoryUsage(mNativePtr); in getMemoryUsage()
146 nGetBounds(mNativePtr, mChars, start, end, rect); in getBounds()
161 long packed = nGetExtent(mNativePtr, mChars, start, end); in getFontMetricsInt()
175 return nGetCharWidthAt(mNativePtr, offset); in getCharWidthAt()
184 return mNativePtr; in getNativePtr()
227 private long mNativePtr; field in MeasuredText.Builder
251 mNativePtr = nInitBuilder(); in Builder()
[all …]
DLineBreaker.java491 private final long mNativePtr; field in LineBreaker
505 mNativePtr = nInit(breakStrategy, hyphenationFrequency, in LineBreaker()
507 NoImagePreloadHolder.sRegistry.registerNativeAllocation(this, mNativePtr); in LineBreaker()
585 mNativePtr, in computeLineBreaks()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibratorController.java445 private long mNativePtr = 0; field in VibratorController.NativeWrapper
449 mNativePtr = nativeInit(vibratorId, listener); in init()
456 registry.registerNativeAllocation(this, mNativePtr); in init()
462 return isAvailable(mNativePtr); in isAvailable()
467 return on(mNativePtr, milliseconds, vibrationId); in on()
472 off(mNativePtr); in off()
477 setAmplitude(mNativePtr, amplitude); in setAmplitude()
482 return performEffect(mNativePtr, effect, strength, vibrationId); in perform()
487 return performComposedEffect(mNativePtr, primitives, vibrationId); in compose()
492 return performPwleEffect(mNativePtr, primitives, braking, vibrationId); in composePwle()
[all …]
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DFrontBufferedLayer.kt46 nDestroy(mNativePtr) in surfaceChanged()
47 mNativePtr = nCreate(holder.surface) in surfaceChanged()
60 nDestroy(mNativePtr) in surfaceDestroyed()
61 mNativePtr = 0 in surfaceDestroyed()
80 nUpdateBuffer(mNativePtr, it.mHardwareBuffer) in clearOverlay()
113 nUpdateBuffer(mNativePtr, it.mHardwareBuffer) in onTouchEvent()
121 private var mNativePtr: Long = 0 variable in com.android.test.hwui.FrontBufferedLayer
/frameworks/base/graphics/java/android/graphics/fonts/
DFont.java508 private final long mNativePtr; // address of the shared ptr of minikin::Font field in Font
533 mNativePtr = nativePtr; in Font()
535 NoImagePreloadHolder.FONT_REGISTRY.registerNativeAllocation(this, mNativePtr); in Font()
552 long ref = nCloneFont(mNativePtr); in getBuffer()
553 ByteBuffer fromNative = nNewByteBuffer(mNativePtr); in getBuffer()
575 String path = nGetFontPath(mNativePtr); in getFile()
595 int packedStyle = nGetPackedStyle(mNativePtr); in getStyle()
614 return nGetIndex(mNativePtr); in getTtcIndex()
627 int axisCount = nGetAxisCount(mNativePtr); in getAxes()
631 long packedAxis = nGetAxisInfo(mNativePtr, i); in getAxes()
[all …]
DFontFamily.java319 private final long mNativePtr; field in FontFamily
324 mNativePtr = ptr; in FontFamily()
333 return nGetLangTags(mNativePtr); in getLangTags()
341 return nGetVariant(mNativePtr); in getVariant()
354 return new Font(nGetFont(mNativePtr, index)); in getFont()
363 return nGetFontSize(mNativePtr); in getSize()
368 return mNativePtr; in getNativePtr()
/frameworks/base/ravenwood/bivalenttest/test/com/android/ravenwoodtest/bivalenttest/
DRavenwoodNativeAllocationRegistryTest.java43 private final long mNativePtr; field in RavenwoodNativeAllocationRegistryTest.Data
52 return nGet(mNativePtr); in get()
62 mNativePtr = nMalloc(value); in Data()
63 NarHolder.sRegistry.registerNativeAllocation(this, mNativePtr); in Data()
/frameworks/base/core/java/android/os/
DParcel.java246 private long mNativePtr; // used by native code field in Parcel
581 if (res.mNativePtr == 0) { in obtain()
633 mNativePtr = 0; in recycle()
688 nativeMarkSensitive(mNativePtr); in markSensitive()
695 nativeMarkForBinder(mNativePtr, binder); in markForBinder()
704 return nativeIsForRpc(mNativePtr); in isForRpc()
745 return nativeDataSize(mNativePtr); in dataSize()
753 return nativeDataAvail(mNativePtr); in dataAvail()
761 return nativeDataPosition(mNativePtr); in dataPosition()
771 return nativeDataCapacity(mNativePtr); in dataCapacity()
[all …]
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp46 jfieldID mNativePtr; member
78 env->GetLongField(eventObj, gMotionEventClassInfo.mNativePtr)); in android_view_MotionEvent_getNativePtr()
83 env->SetLongField(eventObj.get(), gMotionEventClassInfo.mNativePtr, in android_view_MotionEvent_setNativePtr()
930 gMotionEventClassInfo.mNativePtr = GetFieldIDOrDie(env, gMotionEventClassInfo.clazz, in register_android_view_MotionEvent()
Dandroid_os_Parcel.cpp66 jfieldID mNativePtr; member
74 Parcel* p = (Parcel*)env->GetLongField(obj, gParcelOffsets.mNativePtr); in parcelForJavaObject()
944 gParcelOffsets.mNativePtr = GetFieldIDOrDie(env, clazz, "mNativePtr", "J"); in register_android_os_Parcel()

12