@Test public void testReportJSException() throws Exception { bridge.reportJSException("1","test","some exception"); }
public void reportJSException(String instanceId, String func, String exception) { WXBridgeManager.getInstance().reportJSException(instanceId, func, exception); }
WXBridge implements IWXBridge { public void reportJSException(String instanceId, String func, String exception) { WXBridgeManager.getInstance().reportJSException(instanceId, func, exception); } }
WXBridge implements IWXBridge { public void reportJSException(String instanceId, String func, String exception) { WXBridgeManager.getInstance().reportJSException(instanceId, func, exception); }  }
WXBridge implements IWXBridge { public void reportJSException(String instanceId, String func, String exception) { WXBridgeManager.getInstance().reportJSException(instanceId, func, exception); }  native byte[] nativeExecJSWithResult(String instanceId, String _namespace, String _function, WXJSObject[] args); native int nativeCreateInstanceContext(String instanceId, String name, String function, WXJSObject[] args); native int nativeDestoryInstance(String instanceId, String name, String function, WXJSObject[] args); native String nativeExecJSOnInstance(String instanceId, String script, int type); native long[] nativeGetFirstScreenRenderTime(String instanceId); native long[] nativeGetRenderFinishTime(String instanceId); native void nativeUpdateGlobalConfig(String config); @Override int initFramework(String framework, WXParams params); @Override int initFrameworkEnv(String framework, WXParams params, String cacheDir, boolean pieSupport); @Override int execJS(String instanceId, String namespace, String function, WXJSObject[] args); @Override byte[] execJSWithResult(String instanceId, String namespace, String function, WXJSObject[] args); @Override int execJSService(String javascript); @Override void takeHeapSnapshot(String filename); @Override int createInstanceContext(String instanceId, String name, String function, WXJSObject[] args); @Override int destoryInstance(String instanceId, String name, String function, WXJSObject[] args); @Override String execJSOnInstance(String instanceId, String script, int type); int callNative(String instanceId, byte[] tasks, String callback); @Override int callNative(String instanceId, String tasks, String callback); void reportJSException(String instanceId, String func, String exception); @Override Object callNativeModule(String instanceId, String module, String method, byte[] arguments, byte[] options); @Override void callNativeComponent(String instanceId, String ref, String method, byte[] arguments, byte[] optionsData); void setTimeoutNative(String callbackId, String time); void setJSFrmVersion(String version); @Override int callUpdateFinish(String instanceId, byte[] tasks, String callback); @Override int callRefreshFinish(String instanceId, byte[] tasks, String callback); @Override void reportServerCrash(String instanceId, String crashFile); @Override int callCreateBody(String instanceId, String componentType, String ref,
                            HashMap<String, String> styles, HashMap<String, String> attributes, HashSet<String> events,
                            float[] margins, float[] paddings, float[] borders); @Override int callAddElement(String instanceId, String componentType, String ref, int index, String parentRef,
                            HashMap<String, String> styles, HashMap<String, String> attributes, HashSet<String> events,
                            float[] margins, float[] paddings, float[] borders,  boolean willLayout); @Override int callRemoveElement(String instanceId, String ref); @Override int callMoveElement(String instanceId, String ref, String parentref, int index); @Override int callAddEvent(String instanceId, String ref, String event); @Override int callRemoveEvent(String instanceId, String ref, String event); @Override int callUpdateStyle(String instanceId, String ref,
                             HashMap<String, Object> styles,
                             HashMap<String, String> paddings,
                             HashMap<String, String> margins,
                             HashMap<String, String> borders); @Override int callUpdateAttrs(String instanceId, String ref, HashMap<String, String> attrs); @Override int callLayout(String instanceId, String ref, int top, int bottom, int left, int right, int height, int width, int index); @Override int callCreateFinish(String instanceId); @Override int callAppendTreeCreateFinish(String instanceId, String ref); @Override int callHasTransitionPros(String instanceId, String ref, HashMap<String, String> styles); @Override ContentBoxMeasurement getMeasurementFunc(String instanceId, long renderObjectPtr); @Override void bindMeasurementToRenderObject(long ptr); @Override void setRenderContainerWrapContent(boolean wrap, String instanceId); @Override long[] getFirstScreenRenderTime(String instanceId); @Override long[] getRenderFinishTime(String instanceId); @Override void setDefaultHeightAndWidthIntoRootDom(String instanceId, float defaultWidth, float defaultHeight, boolean isWidthWrapContent, boolean isHeightWrapContent); @Override void onInstanceClose(String instanceId); @Override void forceLayout(String instanceId); @Override boolean notifyLayout(String instanceId); @Override void setStyleWidth(String instanceId, String ref, float value); @Override void setMargin(String instanceId, String ref, CSSShorthand.EDGE edge, float value); @Override void setPadding(String instanceId, String ref, CSSShorthand.EDGE edge, float value); @Override void setPosition(String instanceId, String ref, CSSShorthand.EDGE edge, float value); @Override void markDirty(String instanceId, String ref, boolean dirty); @Override void setStyleHeight(String instanceId, String ref, float value); @Override void registerCoreEnv(String key, String value); @Override void setViewPortWidth(String instanceId, float value); void reportNativeInitStatus(String statusCode, String errorMsg); }
WXBridge implements IWXBridge { public void reportJSException(String instanceId, String func, String exception) { WXBridgeManager.getInstance().reportJSException(instanceId, func, exception); }  native byte[] nativeExecJSWithResult(String instanceId, String _namespace, String _function, WXJSObject[] args); native int nativeCreateInstanceContext(String instanceId, String name, String function, WXJSObject[] args); native int nativeDestoryInstance(String instanceId, String name, String function, WXJSObject[] args); native String nativeExecJSOnInstance(String instanceId, String script, int type); native long[] nativeGetFirstScreenRenderTime(String instanceId); native long[] nativeGetRenderFinishTime(String instanceId); native void nativeUpdateGlobalConfig(String config); @Override int initFramework(String framework, WXParams params); @Override int initFrameworkEnv(String framework, WXParams params, String cacheDir, boolean pieSupport); @Override int execJS(String instanceId, String namespace, String function, WXJSObject[] args); @Override byte[] execJSWithResult(String instanceId, String namespace, String function, WXJSObject[] args); @Override int execJSService(String javascript); @Override void takeHeapSnapshot(String filename); @Override int createInstanceContext(String instanceId, String name, String function, WXJSObject[] args); @Override int destoryInstance(String instanceId, String name, String function, WXJSObject[] args); @Override String execJSOnInstance(String instanceId, String script, int type); int callNative(String instanceId, byte[] tasks, String callback); @Override int callNative(String instanceId, String tasks, String callback); void reportJSException(String instanceId, String func, String exception); @Override Object callNativeModule(String instanceId, String module, String method, byte[] arguments, byte[] options); @Override void callNativeComponent(String instanceId, String ref, String method, byte[] arguments, byte[] optionsData); void setTimeoutNative(String callbackId, String time); void setJSFrmVersion(String version); @Override int callUpdateFinish(String instanceId, byte[] tasks, String callback); @Override int callRefreshFinish(String instanceId, byte[] tasks, String callback); @Override void reportServerCrash(String instanceId, String crashFile); @Override int callCreateBody(String instanceId, String componentType, String ref,
                            HashMap<String, String> styles, HashMap<String, String> attributes, HashSet<String> events,
                            float[] margins, float[] paddings, float[] borders); @Override int callAddElement(String instanceId, String componentType, String ref, int index, String parentRef,
                            HashMap<String, String> styles, HashMap<String, String> attributes, HashSet<String> events,
                            float[] margins, float[] paddings, float[] borders,  boolean willLayout); @Override int callRemoveElement(String instanceId, String ref); @Override int callMoveElement(String instanceId, String ref, String parentref, int index); @Override int callAddEvent(String instanceId, String ref, String event); @Override int callRemoveEvent(String instanceId, String ref, String event); @Override int callUpdateStyle(String instanceId, String ref,
                             HashMap<String, Object> styles,
                             HashMap<String, String> paddings,
                             HashMap<String, String> margins,
                             HashMap<String, String> borders); @Override int callUpdateAttrs(String instanceId, String ref, HashMap<String, String> attrs); @Override int callLayout(String instanceId, String ref, int top, int bottom, int left, int right, int height, int width, int index); @Override int callCreateFinish(String instanceId); @Override int callAppendTreeCreateFinish(String instanceId, String ref); @Override int callHasTransitionPros(String instanceId, String ref, HashMap<String, String> styles); @Override ContentBoxMeasurement getMeasurementFunc(String instanceId, long renderObjectPtr); @Override void bindMeasurementToRenderObject(long ptr); @Override void setRenderContainerWrapContent(boolean wrap, String instanceId); @Override long[] getFirstScreenRenderTime(String instanceId); @Override long[] getRenderFinishTime(String instanceId); @Override void setDefaultHeightAndWidthIntoRootDom(String instanceId, float defaultWidth, float defaultHeight, boolean isWidthWrapContent, boolean isHeightWrapContent); @Override void onInstanceClose(String instanceId); @Override void forceLayout(String instanceId); @Override boolean notifyLayout(String instanceId); @Override void setStyleWidth(String instanceId, String ref, float value); @Override void setMargin(String instanceId, String ref, CSSShorthand.EDGE edge, float value); @Override void setPadding(String instanceId, String ref, CSSShorthand.EDGE edge, float value); @Override void setPosition(String instanceId, String ref, CSSShorthand.EDGE edge, float value); @Override void markDirty(String instanceId, String ref, boolean dirty); @Override void setStyleHeight(String instanceId, String ref, float value); @Override void registerCoreEnv(String key, String value); @Override void setViewPortWidth(String instanceId, float value); void reportNativeInitStatus(String statusCode, String errorMsg); static final boolean MULTIPROCESS; static final String TAG; }