Home
last modified time | relevance | path

Searched refs:native_instance (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/
DPathMeasure.java33 native_instance = native_create(0, false); in PathMeasure()
53 native_instance = native_create(path != null ? path.ni() : 0, in PathMeasure()
62 native_setPath(native_instance, in setPath()
72 return native_getLength(native_instance); in getLength()
91 return native_getPosTan(native_instance, distance, pos, tan); in getPosTan()
108 return native_getMatrix(native_instance, distance, matrix.native_instance, flags); in getMatrix()
125 return native_getSegment(native_instance, startD, stopD, dst.ni(), startWithMoveTo); in getSegment()
132 return native_isClosed(native_instance); in isClosed()
140 return native_nextContour(native_instance); in nextContour()
144 native_destroy(native_instance); in finalize()
[all …]
DMatrix.java222 public long native_instance; field in Matrix
228 native_instance = native_create(0); in Matrix()
236 native_instance = native_create(src != null ? src.native_instance : 0); in Matrix()
244 return native_isIdentity(native_instance); in isIdentity()
254 return native_isAffine(native_instance); in isAffine()
263 return native_rectStaysRect(native_instance); in rectStaysRect()
274 native_set(native_instance, src.native_instance); in set()
284 return native_equals(native_instance, ((Matrix)obj).native_instance); in equals()
298 native_reset(native_instance); in reset()
303 native_setTranslate(native_instance, dx, dy); in setTranslate()
[all …]
DInterpolator.java26 native_instance = nativeConstructor(valueCount, 2); in Interpolator()
32 native_instance = nativeConstructor(valueCount, frameCount); in Interpolator()
52 nativeReset(native_instance, valueCount, frameCount); in reset()
97 nativeSetKeyFrame(native_instance, index, msec, values, blend); in setKeyFrame()
107 nativeSetRepeatMirror(native_instance, repeatCount, mirror); in setRepeatMirror()
140 switch (nativeTimeToValues(native_instance, msec, values)) { in timeToValues()
149 nativeDestructor(native_instance); in finalize()
154 private final long native_instance; field in Interpolator
157 private static native void nativeDestructor(long native_instance); in nativeDestructor() argument
158 private static native void nativeReset(long native_instance, int valueCount, int frameCount); in nativeReset() argument
[all …]
DShader.java29 private long native_instance; field in Shader
37 native_instance = ni; in init()
85 nativeSetLocalMatrix(native_instance, localM == null ? 0 : localM.native_instance); in setLocalMatrix()
92 nativeDestructor(native_instance); in finalize()
119 return native_instance; in getNativeInstance()
DTypeface.java74 public long native_instance; field in Typeface
86 nativeSetDefault(t.native_instance); in setDefault()
144 ni = family.native_instance; in create()
258 native_instance = ni; in Typeface()
317 newFace = new Typeface(nativeCreateWeightAlias(base.native_instance, weight)); in init()
360 nativeUnref(native_instance); in finalize()
373 return mStyle == typeface.mStyle && native_instance == typeface.native_instance; in equals()
383 result = 31 * result + (int) (native_instance ^ (native_instance >>> 32)); in hashCode()
388 private static native long nativeCreateFromTypeface(long native_instance, int style); in nativeCreateFromTypeface() argument
389 private static native long nativeCreateWeightAlias(long native_instance, int weight); in nativeCreateWeightAlias() argument
[all …]
DXfermode.java35 finalizer(native_instance); in finalize()
41 private static native void finalizer(long native_instance); in finalizer() argument
43 long native_instance; field in Xfermode
DRasterizer.java28 finalizer(native_instance); in finalize()
31 private static native void finalizer(long native_instance); in finalizer() argument
33 long native_instance; field in Rasterizer
DColorFilter.java35 public long native_instance; field in ColorFilter
42 destroyFilter(native_instance); in finalize()
46 static native void destroyFilter(long native_instance); in destroyFilter() argument
DComposePathEffect.java26 native_instance = nativeCreate(outerpe.native_instance, in ComposePathEffect()
27 innerpe.native_instance); in ComposePathEffect()
DSumPathEffect.java26 native_instance = nativeCreate(first.native_instance, in SumPathEffect()
27 second.native_instance); in SumPathEffect()
DLayerRasterizer.java22 native_instance = nativeConstructor(); in LayerRasterizer()
31 nativeAddLayer(native_instance, paint.mNativePaint, dx, dy); in addLayer()
35 nativeAddLayer(native_instance, paint.mNativePaint, 0, 0); in addLayer()
DPathEffect.java27 nativeDestructor(native_instance); in finalize()
31 long native_instance; field in PathEffect
DMaskFilter.java27 nativeDestructor(native_instance); in finalize()
31 long native_instance; field in MaskFilter
DTableMaskFilter.java28 native_instance = nativeNewTable(table); in TableMaskFilter()
32 native_instance = ni; in TableMaskFilter()
DLightingColorFilter.java107 destroyFilter(native_instance); in update()
108 native_instance = native_CreateLightingFilter(mMul, mAdd); in update()
DColorMatrixColorFilter.java123 destroyFilter(native_instance); in update()
124 native_instance = nativeColorMatrixFilter(colorMatrix); in update()
DCamera.java142 nativeGetMatrix(matrix.native_instance); in getMatrix()
176 long native_instance; field in Camera
DPorterDuffColorFilter.java102 destroyFilter(native_instance); in update()
103 native_instance = native_CreatePorterDuffFilter(mColor, mMode.nativeInt); in update()
DCornerPathEffect.java28 native_instance = nativeCreate(radius); in CornerPathEffect()
DPixelXorXfermode.java29 native_instance = nativeCreate(opColor); in PixelXorXfermode()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DTypeface_Delegate.java146 /*package*/ static synchronized long nativeCreateFromTypeface(long native_instance, int style) {
147 Typeface_Delegate delegate = sManager.getDelegate(native_instance);
160 /*package*/ static long nativeCreateWeightAlias(long native_instance, int weight) {
161 Typeface_Delegate delegate = sManager.getDelegate(native_instance);
184 /*package*/ static void nativeUnref(long native_instance) {
185 sManager.removeJavaReferenceFor(native_instance);
189 /*package*/ static int nativeGetStyle(long native_instance) {
190 Typeface_Delegate delegate = sManager.getDelegate(native_instance);
199 /*package*/ static void nativeSetDefault(long native_instance) {
200 sDefaultTypeface = native_instance;
DXfermode_Delegate.java51 public static Xfermode_Delegate getDelegate(long native_instance) { in getDelegate() argument
52 return sManager.getDelegate(native_instance); in getDelegate()
63 /*package*/ static void finalizer(long native_instance) { in finalizer() argument
64 sManager.removeJavaReferenceFor(native_instance); in finalizer()
DRasterizer_Delegate.java59 /*package*/ static void finalizer(long native_instance) { in finalizer() argument
60 sManager.removeJavaReferenceFor(native_instance); in finalizer()
DColorFilter_Delegate.java69 /*package*/ static void destroyFilter(long native_instance) { in destroyFilter() argument
70 sManager.removeJavaReferenceFor(native_instance); in destroyFilter()
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/dataclass/
DClassWithNative.java40 return native_instance(a, d, o); in callNativeInstance()
43 private native int native_instance(int a, double d, Object[] o); in native_instance() method in ClassWithNative

12