Bug 1182641 - Use new autogenerated native methods for ANRReporter; r=snorp

This commit is contained in:
Jim Chen 2015-07-29 15:11:14 -04:00
parent f997333a6f
commit 31ae3e7c81
2 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import java.util.regex.Pattern;
import org.json.JSONObject;
import org.mozilla.gecko.AppConstants.Versions;
import org.mozilla.gecko.mozglue.generatorannotations.WrapElementForJNI;
import org.mozilla.gecko.util.ThreadUtils;
import android.content.BroadcastReceiver;
@ -53,8 +54,11 @@ public final class ANRReporter extends BroadcastReceiver
private Handler mHandler;
private volatile boolean mPendingANR;
@WrapElementForJNI
private static native boolean requestNativeStack(boolean unwind);
@WrapElementForJNI
private static native String getNativeStack();
@WrapElementForJNI
private static native void releaseNativeStack();
public static void register(Context context) {

View File

@ -195,7 +195,6 @@ classycle_jar := $(topsrcdir)/mobile/android/build/classycle/classycle-1.4.1.jar
-libraryjars $(library_jars)
CLASSES_WITH_JNI= \
org.mozilla.gecko.ANRReporter \
org.mozilla.gecko.GeckoAppShell \
org.mozilla.gecko.GeckoJavaSampler \
org.mozilla.gecko.gfx.NativePanZoomController \