Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98f33350 authored by Deepanshu Gupta's avatar Deepanshu Gupta
Browse files

Fix native methods

Fix native method signatures as changed by the following commits:
56f57ccb
76d3a1b8

Change-Id: I5db31d3665a5e8c84c107cf84ec3bd5ccfb9a9fe
parent 0ed25174
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ public abstract class ColorFilter_Delegate {
    // ---- native methods ----

    @LayoutlibDelegate
    /*package*/ static void destroyFilter(long native_instance, long nativeColorFilter) {
    /*package*/ static void destroyFilter(long native_instance) {
        sManager.removeJavaReferenceFor(native_instance);
    }

+0 −6
Original line number Diff line number Diff line
@@ -60,11 +60,5 @@ public class ColorMatrixColorFilter_Delegate extends ColorFilter_Delegate {
        return sManager.addNewDelegate(newDelegate);
    }

    @LayoutlibDelegate
    /*package*/ static long nColorMatrixFilter(long nativeFilter, float[] array) {
        // pass
        return 0;
    }

    // ---- Private delegate/helper methods ----
}
+0 −6
Original line number Diff line number Diff line
@@ -60,11 +60,5 @@ public class LightingColorFilter_Delegate extends ColorFilter_Delegate {
        return sManager.addNewDelegate(newDelegate);
    }

    @LayoutlibDelegate
    /*package*/ static int nCreateLightingFilter(long nativeFilter, int mul, int add) {
        // pass
        return 0;
    }

    // ---- Private delegate/helper methods ----
}
+0 −14
Original line number Diff line number Diff line
@@ -490,20 +490,6 @@ public final class Path_Delegate {
        return new float[0];
    }

    @LayoutlibDelegate
    /*package*/ static long native_trim(long nPath, long nTargetPath, long nPathMeasure,
            float trimStart, float trimEnd, float trimOffset) {
        // TODO: add trim.
        Bridge.getLog().error(LayoutLog.TAG_UNSUPPORTED, "Path.trim() not supported", null);
        return nPathMeasure;

    }

    @LayoutlibDelegate
    private static void native_destroyMeasure(long nPathMeasure) {
        // Do nothing.
    }

    // ---- Private helper methods ----

    private void set(Path_Delegate delegate) {
+0 −7
Original line number Diff line number Diff line
@@ -60,12 +60,5 @@ public class PorterDuffColorFilter_Delegate extends ColorFilter_Delegate {
        return sManager.addNewDelegate(newDelegate);
    }

    @LayoutlibDelegate
    /*package*/ static long nCreatePorterDuffFilter(long nativeFilter, int srcColor,
            int porterDuffMode) {
        // pass
        return 0;
    }

    // ---- Private delegate/helper methods ----
}