Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/
DMotionEvent.java1464 private long mNativePtr; field in MotionEvent
1572 if (mNativePtr != 0) { in finalize()
1573 nativeDispose(mNativePtr); in finalize()
1574 mNativePtr = 0; in finalize()
1630 ev.mNativePtr = nativeInitialize(ev.mNativePtr, in obtain()
1731 ev.mNativePtr = nativeInitialize(ev.mNativePtr, in obtain()
1811 ev.mNativePtr = nativeCopy(ev.mNativePtr, other.mNativePtr, true /*keepHistory*/); in obtain()
1825 ev.mNativePtr = nativeCopy(ev.mNativePtr, other.mNativePtr, false /*keepHistory*/); in obtainNoHistory()
1865 nativeScale(mNativePtr, scale); in scale()
1872 return nativeGetDeviceId(mNativePtr); in getDeviceId()
[all …]
DRenderNodeAnimator.java82 private VirtualRefBasePtr mNativePtr; field in RenderNodeAnimator
144 mNativePtr = new VirtualRefBasePtr(ptr); in init()
151 if (mNativePtr == null) { in checkMutable()
168 long duration = nGetDuration(mNativePtr.get()); in applyInterpolator()
171 nSetInterpolator(mNativePtr.get(), ni); in applyInterpolator()
187 if (mNativePtr == null) { in start()
191 nSetStartDelay(mNativePtr.get(), mStartDelay); in start()
217 if (mNativePtr != null) { in moveToRunningState()
218 nStart(mNativePtr.get()); in moveToRunningState()
256 if (mNativePtr != null) { in end()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DVirtualRefBasePtr.java24 private long mNativePtr; field in VirtualRefBasePtr
27 mNativePtr = ptr; in VirtualRefBasePtr()
28 nIncStrong(mNativePtr); in VirtualRefBasePtr()
32 return mNativePtr; in get()
36 if (mNativePtr != 0) { in release()
37 nDecStrong(mNativePtr); in release()
38 mNativePtr = 0; in release()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java54 private final long mNativePtr; field in Bitmap
126 mNativePtr = nativeBitmap; in Bitmap()
138 return mNativePtr; in getNativeInstance()
255 nativeReconfigure(mNativePtr, width, height, config.nativeInt, mRequestPremultiplied); in reconfigure()
332 if (!mRecycled && mNativePtr != 0) { in recycle()
333 if (nativeRecycle(mNativePtr)) { in recycle()
365 return nativeGenerationId(mNativePtr); in getGenerationId()
553 nativeCopyPixelsToBuffer(mNativePtr, dst); in copyPixelsToBuffer()
596 nativeCopyPixelsFromBuffer(mNativePtr, src); in copyPixelsFromBuffer()
630 Bitmap b = nativeCopy(mNativePtr, config.nativeInt, isMutable); in copy()
[all …]
DFontFamily.java42 public long mNativePtr; field in FontFamily
65 mNativePtr = nCreateFamily(mBuilderPtr); in freeze()
67 return mNativePtr != 0; in freeze()
81 if (mNativePtr != 0) { in finalize()
82 nUnrefFamily(mNativePtr); in finalize()
DTypeface.java846 ptrArray[i] = families[i].mNativePtr; in createFromFamilies()
869 ptrArray[i] = families[i].mNativePtr; in createFromFamiliesWithDefault()
872 ptrArray[i + families.length] = sFallbackFonts[i].mNativePtr; in createFromFamiliesWithDefault()
/frameworks/base/graphics/java/android/graphics/drawable/
DVectorDrawable.java901 mNativeTree = new VirtualRefBasePtr(nCreateTree(rootGroup.mNativePtr)); in createNativeTree()
910 copy.mNativeTree.get(), rootGroup.mNativePtr)); in createNativeTreeFromCopy()
1202 private final long mNativePtr; field in VectorDrawable.VGroup
1212 mNativePtr = nCreateGroup(copy.mNativePtr); in VGroup()
1238 mNativePtr = nCreateGroup(); in VGroup()
1255 nAddChild(mNativePtr, child.getNativePtr()); in addChild()
1270 return mNativePtr; in getNativePtr()
1292 boolean success = nGetGroupProperties(mNativePtr, mTransform, TRANSFORM_PROPERTY_COUNT); in updateStateFromTypedArray()
1314 nSetName(mNativePtr, mGroupName); in updateStateFromTypedArray()
1316 nUpdateGroupProperties(mNativePtr, rotate, pivotX, pivotY, scaleX, scaleY, in updateStateFromTypedArray()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecController.java102 private volatile long mNativePtr; field in HdmiCecController
143 mNativePtr = nativePtr; in init()
238 return nativeGetPortInfos(mNativePtr); in getPortInfos()
266 return nativeAddLogicalAddress(mNativePtr, newLogicalAddress); in addLogicalAddress()
283 nativeClearLogicalAddress(mNativePtr); in clearLogicalAddress()
303 return nativeGetPhysicalAddress(mNativePtr); in getPhysicalAddress()
314 return nativeGetVersion(mNativePtr); in getVersion()
325 return nativeGetVendorId(mNativePtr); in getVendorId()
338 nativeSetOption(mNativePtr, flag, enabled); in setOption()
352 nativeSetLanguage(mNativePtr, language); in setLanguage()
[all …]
/frameworks/base/core/java/android/os/
DParcel.java198 private long mNativePtr; // used by native code field in Parcel
371 mNativePtr = 0; in recycle()
395 return nativeDataSize(mNativePtr); in dataSize()
403 return nativeDataAvail(mNativePtr); in dataAvail()
411 return nativeDataPosition(mNativePtr); in dataPosition()
421 return nativeDataCapacity(mNativePtr); in dataCapacity()
432 updateNativeSize(nativeSetDataSize(mNativePtr, size)); in setDataSize()
441 nativeSetDataPosition(mNativePtr, pos); in setDataPosition()
452 nativeSetDataCapacity(mNativePtr, size); in setDataCapacity()
457 return nativePushAllowFds(mNativePtr, allowFds); in pushAllowFds()
[all …]
/frameworks/base/core/java/android/text/
DStaticLayout.java61 mNativePtr = nNewBuilder(); in Builder()
110 nFinishBuilder(b.mNativePtr); in recycle()
116 nFinishBuilder(mNativePtr); in finish()
319 nSetIndents(mNativePtr, indents); in setIndents()
359 nSetLocale(mNativePtr, locale.toLanguageTag(),
366 return nAddStyleRun(mNativePtr, paint.getNativeInstance(), paint.mNativeTypeface,
371 nAddMeasuredRun(mNativePtr, start, end, widths);
375 nAddReplacementRun(mNativePtr, start, end, width);
396 nFreeBuilder(mNativePtr);
402 /* package */ long mNativePtr;
[all …]
DHyphenator.java64 final private long mNativePtr; field in Hyphenator
71 mNativePtr = nativePtr; in Hyphenator()
76 return mNativePtr; in getNativePtr()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/drawable/
DVectorDrawable_Delegate.java509 long mNativePtr = 0; field in VectorDrawable_Delegate.VNativeObject
523 mNativePtr = nativePtr; in setNativePtr()
971 if (nativeObject.mNativePtr != 0) { in dispose()
972 sPathManager.removeJavaReferenceFor(nativeObject.mNativePtr); in dispose()
973 nativeObject.mNativePtr = 0; in dispose()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp44 jfieldID mNativePtr; member
73 env->GetLongField(eventObj, gMotionEventClassInfo.mNativePtr)); in android_view_MotionEvent_getNativePtr()
78 env->SetLongField(eventObj, gMotionEventClassInfo.mNativePtr, in android_view_MotionEvent_setNativePtr()
880 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()
819 gParcelOffsets.mNativePtr = GetFieldIDOrDie(env, clazz, "mNativePtr", "J"); in register_android_os_Parcel()