Home
last modified time | relevance | path

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

12

/frameworks/base/graphics/java/android/graphics/
DPathMeasure.java31 native_instance = native_create(0, false); in PathMeasure()
51 native_instance = native_create(path != null ? path.ni() : 0, in PathMeasure()
61 native_setPath(native_instance, in setPath()
71 return native_getLength(native_instance); in getLength()
90 return native_getPosTan(native_instance, distance, pos, tan); in getPosTan()
107 return native_getMatrix(native_instance, distance, matrix.native_instance, flags); in getMatrix()
118 return native_getSegment(native_instance, startD, stopD, dst.ni(), startWithMoveTo); in getSegment()
125 return native_isClosed(native_instance); in isClosed()
133 return native_nextContour(native_instance); in nextContour()
137 native_destroy(native_instance); in finalize()
[all …]
DMatrix.java225 public int native_instance; field in Matrix
231 native_instance = native_create(0); in Matrix()
239 native_instance = native_create(src != null ? src.native_instance : 0); in Matrix()
247 return native_isIdentity(native_instance); in isIdentity()
256 return native_rectStaysRect(native_instance); in rectStaysRect()
267 native_set(native_instance, src.native_instance); in set()
276 native_equals(native_instance, ((Matrix)obj).native_instance); in equals()
281 native_reset(native_instance); in reset()
286 native_setTranslate(native_instance, dx, dy); in setTranslate()
295 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.java42 native_instance = nativeCreate1(shaderA.native_instance, shaderB.native_instance, in ComposeShader()
43 (mode != null) ? mode.native_instance : 0); in ComposeShader()
46 native_shader = nativePostCreate2(native_instance, shaderA.native_shader, in ComposeShader()
49 native_shader = nativePostCreate1(native_instance, shaderA.native_shader, in ComposeShader()
50 shaderB.native_shader, mode != null ? mode.native_instance : 0); in ComposeShader()
64 native_instance = nativeCreate2(shaderA.native_instance, shaderB.native_instance, in ComposeShader()
66 native_shader = nativePostCreate2(native_instance, shaderA.native_shader, in ComposeShader()
DTypeface.java48 /* package */ int native_instance; field in Typeface
58 return nativeGetStyle(native_instance); in getStyle()
100 ni = family.native_instance; in create()
149 native_instance = ni; in Typeface()
169 nativeUnref(native_instance); in finalize()
173 private static native int nativeCreateFromTypeface(int native_instance, int style); in nativeCreateFromTypeface() argument
174 private static native void nativeUnref(int native_instance); in nativeUnref() argument
175 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()
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()
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
DSweepGradient.java44 native_instance = nativeCreate1(cx, cy, colors, positions); in SweepGradient()
45 native_shader = nativePostCreate1(native_instance, cx, cy, colors, positions); in SweepGradient()
57 native_instance = nativeCreate2(cx, cy, color0, color1); in SweepGradient()
58 native_shader = nativePostCreate2(native_instance, cx, cy, color0, color1); in SweepGradient()
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
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
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()
DRadialGradient.java42 native_instance = nativeCreate1(x, y, radius, colors, positions, tile.nativeInt); in RadialGradient()
43 native_shader = nativePostCreate1(native_instance, x, y, radius, colors, positions, in RadialGradient()
60 native_instance = nativeCreate2(x, y, radius, color0, color1, tile.nativeInt); in RadialGradient()
61 native_shader = nativePostCreate2(native_instance, x, y, radius, color0, color1, in RadialGradient()
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()
DLinearGradient.java39 native_instance = nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt); in LinearGradient()
40 native_shader = nativePostCreate1(native_instance, x0, y0, x1, y1, colors, positions, in LinearGradient()
55 native_instance = nativeCreate2(x0, y0, x1, y1, color0, color1, tile.nativeInt); in LinearGradient()
56 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()
121 /*package*/ static synchronized int nativeCreateFromTypeface(int native_instance, int style) { in nativeCreateFromTypeface() argument
122 Typeface_Delegate delegate = sManager.getDelegate(native_instance); in nativeCreateFromTypeface()
177 /*package*/ static void nativeUnref(int native_instance) { in nativeUnref() argument
178 sManager.removeJavaReferenceFor(native_instance); in nativeUnref()
182 /*package*/ static int nativeGetStyle(int native_instance) { in nativeGetStyle() argument
183 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