Fix native methods

Fix native method signatures as changed by the following commits:
56f57ccbd4
76d3a1b8d0

Change-Id: I5db31d3665a5e8c84c107cf84ec3bd5ccfb9a9fe
This commit is contained in:
Deepanshu Gupta
2014-02-18 12:50:34 -08:00
parent 0ed25174f9
commit 98f33350b1
5 changed files with 1 additions and 34 deletions

View File

@@ -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);
}

View File

@@ -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 ----
}

View File

@@ -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 ----
}

View File

@@ -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) {

View File

@@ -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 ----
}