Home
last modified time | relevance | path

Searched refs:native_instance (Results 1 – 25 of 46) 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()
119 return native_getSegment(native_instance, startD, stopD, dst.ni(), startWithMoveTo); in getSegment()
126 return native_isClosed(native_instance); in isClosed()
134 return native_nextContour(native_instance); in nextContour()
138 native_destroy(native_instance); in finalize()
[all …]
DMatrix.java222 public int 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()
253 return native_rectStaysRect(native_instance); in rectStaysRect()
264 native_set(native_instance, src.native_instance); in set()
274 return native_equals(native_instance, ((Matrix)obj).native_instance); in equals()
288 native_reset(native_instance); in reset()
293 native_setTranslate(native_instance, dx, dy); in setTranslate()
302 native_setScale(native_instance, sx, sy, px, py); in setScale()
[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 int native_instance; field in Interpolator
157 private static native void nativeDestructor(int native_instance); in nativeDestructor() argument
158 private static native void nativeReset(int native_instance, int valueCount, int frameCount); in nativeReset() argument
[all …]
DComposeShader.java56 native_instance = nativeCreate1(shaderA.native_instance, shaderB.native_instance, in ComposeShader()
57 (mode != null) ? mode.native_instance : 0); in ComposeShader()
60 native_shader = nativePostCreate2(native_instance, shaderA.native_shader, in ComposeShader()
63 native_shader = nativePostCreate1(native_instance, shaderA.native_shader, in ComposeShader()
64 shaderB.native_shader, mode != null ? mode.native_instance : 0); in ComposeShader()
80 native_instance = nativeCreate2(shaderA.native_instance, shaderB.native_instance, in ComposeShader()
82 native_shader = nativePostCreate2(native_instance, shaderA.native_shader, in ComposeShader()
DTypeface.java51 int native_instance; field in Typeface
110 ni = family.native_instance; in create()
178 native_instance = ni; in Typeface()
199 nativeUnref(native_instance); in finalize()
212 return mStyle == typeface.mStyle && native_instance == typeface.native_instance; in equals()
217 int result = native_instance; in hashCode()
223 private static native int nativeCreateFromTypeface(int native_instance, int style); in nativeCreateFromTypeface() argument
224 private static native void nativeUnref(int native_instance); in nativeUnref() argument
225 private static native int nativeGetStyle(int native_instance); in nativeGetStyle() argument
DColorMatrixColorFilter.java29 native_instance = nativeColorMatrixFilter(colorMatrix); in ColorMatrixColorFilter()
30 nativeColorFilter = nColorMatrixFilter(native_instance, colorMatrix); in ColorMatrixColorFilter()
44 native_instance = nativeColorMatrixFilter(array); in ColorMatrixColorFilter()
45 nativeColorFilter = nColorMatrixFilter(native_instance, array); in ColorMatrixColorFilter()
DRasterizer.java27 finalizer(native_instance); in finalize()
30 private static native void finalizer(int native_instance); in finalizer() argument
32 int native_instance; field in Rasterizer
DXfermode.java35 finalizer(native_instance); in finalize()
41 private static native void finalizer(int native_instance); in finalizer() argument
43 int native_instance; field in Xfermode
DShader.java31 public int native_instance; field in Shader
81 nativeSetLocalMatrix(native_instance, native_shader, in setLocalMatrix()
82 localM == null ? 0 : localM.native_instance); in setLocalMatrix()
89 nativeDestructor(native_instance, native_shader); in finalize()
DColorFilter.java26 int native_instance; field in ColorFilter
37 finalizer(native_instance, nativeColorFilter); in finalize()
41 private static native void finalizer(int native_instance, int nativeColorFilter); in finalizer() argument
DSumPathEffect.java26 native_instance = nativeCreate(first.native_instance, in SumPathEffect()
27 second.native_instance); in SumPathEffect()
DComposePathEffect.java26 native_instance = nativeCreate(outerpe.native_instance, in ComposePathEffect()
27 innerpe.native_instance); in ComposePathEffect()
DLayerRasterizer.java21 native_instance = nativeConstructor(); in LayerRasterizer()
30 nativeAddLayer(native_instance, paint.mNativePaint, dx, dy); in addLayer()
34 nativeAddLayer(native_instance, paint.mNativePaint, 0, 0); in addLayer()
DSweepGradient.java65 native_instance = nativeCreate1(cx, cy, colors, positions); in SweepGradient()
66 native_shader = nativePostCreate1(native_instance, cx, cy, colors, positions); in SweepGradient()
83 native_instance = nativeCreate2(cx, cy, color0, color1); in SweepGradient()
84 native_shader = nativePostCreate2(native_instance, cx, cy, color0, color1); in SweepGradient()
DRadialGradient.java68 native_instance = nativeCreate1(x, y, radius, colors, positions, tile.nativeInt); in RadialGradient()
69 native_shader = nativePostCreate1(native_instance, x, y, radius, colors, positions, in RadialGradient()
93 native_instance = nativeCreate2(x, y, radius, color0, color1, tile.nativeInt); in RadialGradient()
94 native_shader = nativePostCreate2(native_instance, x, y, radius, color0, color1, in RadialGradient()
DLinearGradient.java68 native_instance = nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt); in LinearGradient()
69 native_shader = nativePostCreate1(native_instance, x0, y0, x1, y1, colors, positions, in LinearGradient()
92 native_instance = nativeCreate2(x0, y0, x1, y1, color0, color1, tile.nativeInt); in LinearGradient()
93 native_shader = nativePostCreate2(native_instance, x0, y0, x1, y1, color0, color1, in LinearGradient()
DPathEffect.java27 nativeDestructor(native_instance); in finalize()
31 int native_instance; field in PathEffect
DMaskFilter.java27 nativeDestructor(native_instance); in finalize()
31 int native_instance; field in MaskFilter
DLightingColorFilter.java32 native_instance = native_CreateLightingFilter(mul, add); in LightingColorFilter()
33 nativeColorFilter = nCreateLightingFilter(native_instance, mul, add); in LightingColorFilter()
DPorterDuffColorFilter.java28 native_instance = native_CreatePorterDuffFilter(srcColor, mode.nativeInt); in PorterDuffColorFilter()
29 nativeColorFilter = nCreatePorterDuffFilter(native_instance, srcColor, mode.nativeInt); in PorterDuffColorFilter()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DXfermode_Delegate.java51 public static Xfermode_Delegate getDelegate(int native_instance) { in getDelegate() argument
52 return sManager.getDelegate(native_instance); in getDelegate()
63 /*package*/ static void finalizer(int native_instance) { in finalizer() argument
64 sManager.removeJavaReferenceFor(native_instance); in finalizer()
DTypeface_Delegate.java83 return getFonts(typeface.native_instance); in getFonts()
124 /*package*/ static synchronized int nativeCreateFromTypeface(int native_instance, int style) { in nativeCreateFromTypeface() argument
125 Typeface_Delegate delegate = sManager.getDelegate(native_instance); in nativeCreateFromTypeface()
180 /*package*/ static void nativeUnref(int native_instance) { in nativeUnref() argument
181 sManager.removeJavaReferenceFor(native_instance); in nativeUnref()
185 /*package*/ static int nativeGetStyle(int native_instance) { in nativeGetStyle() argument
186 Typeface_Delegate delegate = sManager.getDelegate(native_instance); in nativeGetStyle()
DRasterizer_Delegate.java59 /*package*/ static void finalizer(int native_instance) { in finalizer() argument
60 sManager.removeJavaReferenceFor(native_instance); in finalizer()
DColorFilter_Delegate.java59 /*package*/ static void finalizer(int native_instance, int nativeColorFilter) { in finalizer() argument
60 sManager.removeJavaReferenceFor(native_instance); in finalizer()
/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