Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/
DMotionEvent.java1437 private long mNativePtr; field in MotionEvent
1507 if (mNativePtr != 0) { in finalize()
1508 nativeDispose(mNativePtr); in finalize()
1509 mNativePtr = 0; in finalize()
1565 ev.mNativePtr = nativeInitialize(ev.mNativePtr, in obtain()
1666 ev.mNativePtr = nativeInitialize(ev.mNativePtr, in obtain()
1746 ev.mNativePtr = nativeCopy(ev.mNativePtr, other.mNativePtr, true /*keepHistory*/); in obtain()
1760 ev.mNativePtr = nativeCopy(ev.mNativePtr, other.mNativePtr, false /*keepHistory*/); in obtainNoHistory()
1800 nativeScale(mNativePtr, scale); in scale()
1807 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()
218 if (mNativePtr != null) { in moveToRunningState()
219 nStart(mNativePtr.get()); in moveToRunningState()
257 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/
DFontFamily.java40 public long mNativePtr; field in FontFamily
43 mNativePtr = nCreateFamily(null, 0); in FontFamily()
44 if (mNativePtr == 0) { in FontFamily()
56 mNativePtr = nCreateFamily(lang, varEnum); in FontFamily()
57 if (mNativePtr == 0) { in FontFamily()
65 nUnrefFamily(mNativePtr); in finalize()
76 return nAddFont(mNativePtr, fontBuffer, ttcIndex); in addFont()
85 return nAddFontWeightStyle(mNativePtr, font, ttcIndex, axes, weight, style); in addFontWeightStyle()
89 return nAddFontFromAsset(mNativePtr, mgr, path); in addFontFromAsset()
DBitmap.java57 private final long mNativePtr; field in Bitmap
130 mNativePtr = nativeBitmap; in Bitmap()
144 return mNativePtr; in getNativeInstance()
263 nativeReconfigure(mNativePtr, width, height, config.nativeInt, in reconfigure()
340 if (!mRecycled && mNativePtr != 0) { in recycle()
341 if (nativeRecycle(mNativePtr)) { in recycle()
374 return nativeGenerationId(mNativePtr); in getGenerationId()
530 nativeCopyPixelsToBuffer(mNativePtr, dst); in copyPixelsToBuffer()
570 nativeCopyPixelsFromBuffer(mNativePtr, src); in copyPixelsFromBuffer()
592 Bitmap b = nativeCopy(mNativePtr, config.nativeInt, isMutable); in copy()
[all …]
DTypeface.java264 ptrArray[i] = families[i].mNativePtr; in createFromFamilies()
279 ptrArray[i] = families[i].mNativePtr; in createFromFamiliesWithDefault()
282 ptrArray[i + families.length] = sFallbackFonts[i].mNativePtr; in createFromFamiliesWithDefault()
/frameworks/base/graphics/java/android/graphics/drawable/
DVectorDrawable.java829 mNativeTree = new VirtualRefBasePtr(nCreateTree(rootGroup.mNativePtr)); in createNativeTree()
838 copy.mNativeTree.get(), rootGroup.mNativePtr)); in createNativeTreeFromCopy()
1024 private final long mNativePtr; field in VectorDrawable.VGroup
1034 mNativePtr = nCreateGroup(copy.mNativePtr); in VGroup()
1060 mNativePtr = nCreateGroup(); in VGroup()
1068 nAddChild(mNativePtr, child.getNativePtr()); in addChild()
1083 return mNativePtr; in getNativePtr()
1105 boolean success = nGetGroupProperties(mNativePtr, mTransform, TRANSFORM_PROPERTY_COUNT); in updateStateFromTypedArray()
1127 nSetName(mNativePtr, mGroupName); in updateStateFromTypedArray()
1129 nUpdateGroupProperties(mNativePtr, rotate, pivotX, pivotY, scaleX, scaleY, in updateStateFromTypedArray()
[all …]
/frameworks/base/core/java/android/os/
DParcel.java194 private long mNativePtr; // used by native code field in Parcel
345 mNativePtr = 0; in recycle()
369 return nativeDataSize(mNativePtr); in dataSize()
377 return nativeDataAvail(mNativePtr); in dataAvail()
385 return nativeDataPosition(mNativePtr); in dataPosition()
395 return nativeDataCapacity(mNativePtr); in dataCapacity()
406 updateNativeSize(nativeSetDataSize(mNativePtr, size)); in setDataSize()
415 nativeSetDataPosition(mNativePtr, pos); in setDataPosition()
426 nativeSetDataCapacity(mNativePtr, size); in setDataCapacity()
431 return nativePushAllowFds(mNativePtr, allowFds); in pushAllowFds()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecController.java97 private volatile long mNativePtr; field in HdmiCecController
134 mNativePtr = nativePtr; in init()
228 return nativeGetPortInfos(mNativePtr); in getPortInfos()
256 return nativeAddLogicalAddress(mNativePtr, newLogicalAddress); in addLogicalAddress()
273 nativeClearLogicalAddress(mNativePtr); in clearLogicalAddress()
293 return nativeGetPhysicalAddress(mNativePtr); in getPhysicalAddress()
304 return nativeGetVersion(mNativePtr); in getVersion()
315 return nativeGetVendorId(mNativePtr); in getVendorId()
328 nativeSetOption(mNativePtr, flag, value); in setOption()
340 nativeSetAudioReturnChannel(mNativePtr, port, enabled); in setAudioReturnChannel()
[all …]
/frameworks/base/core/java/android/text/
DHyphenator.java53 final private long mNativePtr; field in Hyphenator
60 mNativePtr = nativePtr; in Hyphenator()
65 return mNativePtr; in getNativePtr()
DStaticLayout.java61 mNativePtr = nNewBuilder(); in Builder()
109 nFinishBuilder(b.mNativePtr); in recycle()
115 nFinishBuilder(mNativePtr); in finish()
318 nSetIndents(mNativePtr, indents); in setIndents()
345 nSetLocale(mNativePtr, locale.toLanguageTag(),
352 return nAddStyleRun(mNativePtr, paint.getNativeInstance(), paint.mNativeTypeface,
357 nAddMeasuredRun(mNativePtr, start, end, widths);
361 nAddReplacementRun(mNativePtr, start, end, width);
382 nFreeBuilder(mNativePtr);
388 /* package */ long mNativePtr;
[all …]
/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()
895 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()
785 gParcelOffsets.mNativePtr = GetFieldIDOrDie(env, clazz, "mNativePtr", "J"); in register_android_os_Parcel()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DTypeface_Delegate.java215 FontFamily_Delegate.addFont(fontFamily.mNativePtr, font.fontName, font.weight,
DFontFamily_Delegate.java251 final FontFamily_Delegate delegate = getDelegate(thisFontFamily.mNativePtr); in addFont()