Search in sources :

Example 6 with VFullPath_Delegate

use of android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate in project android_frameworks_base by DirtyUnicorns.

the class AnimatedVectorDrawable_Delegate method nCreatePathColorPropertyHolder.

@LayoutlibDelegate
static /*package*/
long nCreatePathColorPropertyHolder(long nativePtr, int propertyId, int startValue, int endValue) {
    VFullPath_Delegate path = VNativeObject.getDelegate(nativePtr);
    Consumer<Integer> setter = path.getIntPropertySetter(propertyId);
    return sHolders.addNewDelegate(IntPropertySetter.of(setter, startValue, endValue));
}
Also used : VFullPath_Delegate(android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate) LayoutlibDelegate(com.android.tools.layoutlib.annotations.LayoutlibDelegate)

Example 7 with VFullPath_Delegate

use of android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate in project android_frameworks_base by AOSPA.

the class AnimatedVectorDrawable_Delegate method nCreatePathPropertyHolder.

@LayoutlibDelegate
static /*package*/
long nCreatePathPropertyHolder(long nativePtr, int propertyId, float startValue, float endValue) {
    VFullPath_Delegate path = VNativeObject.getDelegate(nativePtr);
    Consumer<Float> setter = path.getFloatPropertySetter(propertyId);
    return sHolders.addNewDelegate(FloatPropertySetter.of(setter, startValue, endValue));
}
Also used : VFullPath_Delegate(android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate) LayoutlibDelegate(com.android.tools.layoutlib.annotations.LayoutlibDelegate)

Example 8 with VFullPath_Delegate

use of android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate in project android_frameworks_base by AOSPA.

the class AnimatedVectorDrawable_Delegate method nCreatePathColorPropertyHolder.

@LayoutlibDelegate
static /*package*/
long nCreatePathColorPropertyHolder(long nativePtr, int propertyId, int startValue, int endValue) {
    VFullPath_Delegate path = VNativeObject.getDelegate(nativePtr);
    Consumer<Integer> setter = path.getIntPropertySetter(propertyId);
    return sHolders.addNewDelegate(IntPropertySetter.of(setter, startValue, endValue));
}
Also used : VFullPath_Delegate(android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate) LayoutlibDelegate(com.android.tools.layoutlib.annotations.LayoutlibDelegate)

Example 9 with VFullPath_Delegate

use of android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate in project android_frameworks_base by ResurrectionRemix.

the class AnimatedVectorDrawable_Delegate method nCreatePathColorPropertyHolder.

@LayoutlibDelegate
static /*package*/
long nCreatePathColorPropertyHolder(long nativePtr, int propertyId, int startValue, int endValue) {
    VFullPath_Delegate path = VNativeObject.getDelegate(nativePtr);
    Consumer<Integer> setter = path.getIntPropertySetter(propertyId);
    return sHolders.addNewDelegate(IntPropertySetter.of(setter, startValue, endValue));
}
Also used : VFullPath_Delegate(android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate) LayoutlibDelegate(com.android.tools.layoutlib.annotations.LayoutlibDelegate)

Example 10 with VFullPath_Delegate

use of android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate in project android_frameworks_base by crdroidandroid.

the class AnimatedVectorDrawable_Delegate method nCreatePathColorPropertyHolder.

@LayoutlibDelegate
static /*package*/
long nCreatePathColorPropertyHolder(long nativePtr, int propertyId, int startValue, int endValue) {
    VFullPath_Delegate path = VNativeObject.getDelegate(nativePtr);
    Consumer<Integer> setter = path.getIntPropertySetter(propertyId);
    return sHolders.addNewDelegate(IntPropertySetter.of(setter, startValue, endValue));
}
Also used : VFullPath_Delegate(android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate) LayoutlibDelegate(com.android.tools.layoutlib.annotations.LayoutlibDelegate)

Aggregations

VFullPath_Delegate (android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate)10 LayoutlibDelegate (com.android.tools.layoutlib.annotations.LayoutlibDelegate)10