Home
last modified time | relevance | path

Searched refs:native_instance (Results 1 – 25 of 43) 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()
138 return native_getSegment(native_instance, startD, stopD, dst.ni(), startWithMoveTo); in getSegment()
145 return native_isClosed(native_instance); in isClosed()
153 return native_nextContour(native_instance); in nextContour()
157 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()
150 native_instance = 0; // Other finalizers can still call us. in finalize()
155 private long native_instance; field in Interpolator
158 private static native void nativeDestructor(long native_instance); in nativeDestructor() argument
[all …]
DShader.java29 private long native_instance; field in Shader
37 native_instance = ni; in init()
85 native_instance = nativeSetLocalMatrix(native_instance, in setLocalMatrix()
86 localM == null ? 0 : localM.native_instance); in setLocalMatrix()
93 nativeDestructor(native_instance); in finalize()
94 native_instance = 0; // Other finalizers can still call us. in finalize()
124 return native_instance; in getNativeInstance()
DTypeface.java81 public long native_instance; field in Typeface
93 nativeSetDefault(t.native_instance); in setDefault()
151 ni = family.native_instance; in create()
293 native_instance = ni; in Typeface()
370 newFace = new Typeface(nativeCreateWeightAlias(base.native_instance, weight)); in init()
413 nativeUnref(native_instance); in finalize()
414 native_instance = 0; // Other finalizers can still call us. in finalize()
427 return mStyle == typeface.mStyle && native_instance == typeface.native_instance; in equals()
437 result = 31 * result + (int) (native_instance ^ (native_instance >>> 32)); in hashCode()
442 private static native long nativeCreateFromTypeface(long native_instance, int style); in nativeCreateFromTypeface() argument
[all …]
DXfermode.java35 finalizer(native_instance); in finalize()
36 native_instance = 0; in finalize()
42 private static native void finalizer(long native_instance); in finalizer() argument
44 long native_instance; field in Xfermode
DRasterizer.java28 finalizer(native_instance); in finalize()
29 native_instance = 0; in finalize()
32 private static native void finalizer(long native_instance); in finalizer() argument
34 long native_instance; field in Rasterizer
DColorFilter.java35 public long native_instance; field in ColorFilter
42 destroyFilter(native_instance); in finalize()
43 native_instance = 0; in finalize()
47 static native void destroyFilter(long native_instance); in destroyFilter() argument
DMaskFilter.java27 nativeDestructor(native_instance); in finalize()
28 native_instance = 0; // Other finalizers can still call us. in finalize()
32 long native_instance; field in MaskFilter
DPathEffect.java27 nativeDestructor(native_instance); in finalize()
28 native_instance = 0; // Other finalizers can still call us. in finalize()
32 long native_instance; field in PathEffect
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.java22 native_instance = nativeConstructor(); in LayerRasterizer()
31 nativeAddLayer(native_instance, paint.getNativeInstance(), dx, dy); in addLayer()
35 nativeAddLayer(native_instance, paint.getNativeInstance(), 0, 0); in addLayer()
DCamera.java142 nativeGetMatrix(matrix.native_instance); in getMatrix()
166 native_instance = 0; in finalize()
177 long native_instance; field in Camera
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()
DPorterDuffColorFilter.java105 destroyFilter(native_instance); in update()
106 native_instance = native_CreatePorterDuffFilter(mColor, mMode.nativeInt); in update()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPathMeasure_Delegate.java75 /*package*/ static void native_destroy(long native_instance) { in native_destroy() argument
76 sManager.removeJavaReferenceFor(native_instance); in native_destroy()
80 /*package*/ static boolean native_getPosTan(long native_instance, float distance, float pos[], in native_getPosTan() argument
88 /*package*/ static boolean native_getMatrix(long native_instance, float distance, long in native_getMatrix() argument
96 /*package*/ static boolean native_nextContour(long native_instance) { in native_nextContour() argument
103 /*package*/ static void native_setPath(long native_instance, long native_path, boolean in native_setPath() argument
105 PathMeasure_Delegate pathMeasure = sManager.getDelegate(native_instance); in native_setPath()
124 /*package*/ static float native_getLength(long native_instance) { in native_getLength() argument
125 PathMeasure_Delegate pathMeasure = sManager.getDelegate(native_instance); in native_getLength()
136 /*package*/ static boolean native_isClosed(long native_instance) { in native_isClosed() argument
[all …]
DTypeface_Delegate.java148 /*package*/ static synchronized long nativeCreateFromTypeface(long native_instance, int style) {
149 Typeface_Delegate delegate = sManager.getDelegate(native_instance);
162 /*package*/ static long nativeCreateWeightAlias(long native_instance, int weight) {
163 Typeface_Delegate delegate = sManager.getDelegate(native_instance);
186 /*package*/ static void nativeUnref(long native_instance) {
187 sManager.removeJavaReferenceFor(native_instance);
191 /*package*/ static int nativeGetStyle(long native_instance) {
192 Typeface_Delegate delegate = sManager.getDelegate(native_instance);
201 /*package*/ static void nativeSetDefault(long native_instance) {
202 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
/frameworks/base/core/java/android/view/
DRenderNode.java247 nGetTransformMatrix(mNativeRenderNode, outMatrix.native_instance); in getMatrix()
251 nGetInverseTransformMatrix(mNativeRenderNode, outMatrix.native_instance); in getInverseMatrix()
361 return nSetStaticMatrix(mNativeRenderNode, matrix.native_instance); in setStaticMatrix()
374 (matrix != null) ? matrix.native_instance : 0); in setAnimationMatrix()

12