@Test public void testInitScriptsFramework() throws Exception { getInstance().initScriptsFramework(""); }
public synchronized void initScriptsFramework(String framework) { Message msg = mJSHandler.obtainMessage(); msg.obj = framework; msg.what = WXJSBridgeMsgType.INIT_FRAMEWORK; msg.setTarget(mJSHandler); msg.sendToTarget(); }
WXBridgeManager implements Callback, BactchExecutor { public synchronized void initScriptsFramework(String framework) { Message msg = mJSHandler.obtainMessage(); msg.obj = framework; msg.what = WXJSBridgeMsgType.INIT_FRAMEWORK; msg.setTarget(mJSHandler); msg.sendToTarget(); } }
WXBridgeManager implements Callback, BactchExecutor { public synchronized void initScriptsFramework(String framework) { Message msg = mJSHandler.obtainMessage(); msg.obj = framework; msg.what = WXJSBridgeMsgType.INIT_FRAMEWORK; msg.setTarget(mJSHandler); msg.sendToTarget(); } private  WXBridgeManager(); }
WXBridgeManager implements Callback, BactchExecutor { public synchronized void initScriptsFramework(String framework) { Message msg = mJSHandler.obtainMessage(); msg.obj = framework; msg.what = WXJSBridgeMsgType.INIT_FRAMEWORK; msg.setTarget(mJSHandler); msg.sendToTarget(); } private  WXBridgeManager(); static WXBridgeManager getInstance(); void setUseSingleProcess(final boolean flag); void setSandBoxContext(final boolean flag); void stopRemoteDebug(); Object callModuleMethod(String instanceId, String moduleStr, String methodStr, JSONArray args); Object callModuleMethod(String instanceId, String moduleStr, String methodStr, JSONArray args, JSONObject options); void restart(); synchronized void setStackTopInstance(final String instanceId); @Override void post(Runnable r); @Override void setInterceptor(Interceptor interceptor); void post(Runnable r, Object token); void sendMessageDelayed(Message message, long delayMillis); void removeMessage(int what, Object obj); Object callNativeModule(String instanceId, String module, String method, JSONArray arguments, Object options); Object callNativeModule(String instanceId, String module, String method, JSONArray arguments, JSONObject options); Object callNativeComponent(String instanceId, String componentRef, String method, JSONArray arguments, Object options); int callNative(String instanceId, JSONArray tasks, String callback); int callUpdateFinish(String instanceId, String callback); int callRefreshFinish(String instanceId, String callback); int callReportCrashReloadPage(String instanceId, String crashFile); boolean shouReloadCurrentInstance(String aUrl); void callReportCrash(String crashFile, final String instanceId, final String url); String syncExecJsOnInstanceWithResult(final String instanceId, final String js, final int type); EventResult syncCallJSEventWithResult(final String method, final String instanceId, final List<Object> params, final Object... args); void asyncCallJSEventVoidResult(final String method, final String instanceId, final List<Object> params, final Object... args); synchronized void initScriptsFramework(String framework); @Deprecated void fireEvent(final String instanceId, final String ref,
                        final String type, final Map<String, Object> data); @Deprecated void fireEvent(final String instanceId, final String ref,
                        final String type, final Map<String, Object> data, final Map<String, Object> domChanges); void fireEventOnNode(final String instanceId, final String ref,
                              final String type, final Map<String, Object> data, final Map<String, Object> domChanges); void fireEventOnNode(final String instanceId, final String ref,
                              final String type, final Map<String, Object> data,
                              final Map<String, Object> domChanges, List<Object> params); void fireEventOnNode(final String instanceId, final String ref,
                              final String type, final Map<String, Object> data,
                              final Map<String, Object> domChanges, List<Object> params,  EventResult callback); @Deprecated void callback(String instanceId, String callback, String data); @Deprecated void callback(final String instanceId, final String callback,
                       final Map<String, Object> data); @Deprecated void callback(final String instanceId, final String callback,
                       final Object data, boolean keepAlive); void refreshInstance(final String instanceId, final WXRefreshData jsonData); void commitJscCrashAlarmMonitor(final String type, final WXErrorCode errorCode, String errMsg,
                                         String instanceId, String url); void createInstance(final String instanceId, final String template,
                             final Map<String, Object> options, final String data); WXJSObject optionObjConvert(boolean useSandBox, BundType type, WXJSObject opt); BundType getBundleType(String url, String temp); void destroyInstance(final String instanceId); @Override boolean handleMessage(Message msg); void invokeExecJS(String instanceId, String namespace, String function,
                           WXJSObject[] args, boolean logTaskDetail); void invokeCreateInstanceContext(String instanceId, String namespace, String function,
                                          WXJSObject[] args, boolean logTaskDetail); void invokeDestoryInstance(String instanceId, String namespace, String function,
                                    WXJSObject[] args, boolean logTaskDetail); @NonNull static String argsToJSON(WXJSObject[] args); WXParams getInitParams(); void registerModules(final Map<String, Object> modules); void registerComponents(final List<Map<String, Object>> components); void execJSService(final String service); boolean isJSThread(); void destroy(); void reportJSException(String instanceId, String function,
                                String exception); @Deprecated void notifyTrimMemory(); static void updateGlobalConfig(String config); @Nullable Looper getJSLooper(); void notifySerializeCodeCache(); void takeJSHeapSnapshot(String filename); int callCreateBody(String pageId, String componentType, String ref,
                            HashMap<String, String> styles, HashMap<String, String> attributes, HashSet<String> events,
                            float[] margins, float[] paddings, float[] borders); int callAddElement(String pageId, 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); int callRemoveElement(String instanceId, String ref); int callMoveElement(String instanceId, String ref, String parentref, int index); int callAddEvent(String instanceId, String ref, String event); int callRemoveEvent(String instanceId, String ref, String event); int callUpdateStyle(String instanceId, String ref, HashMap<String, Object> styles,
                             HashMap<String, String> paddings,
                             HashMap<String, String> margins,
                             HashMap<String, String> borders); int callUpdateAttrs(String instanceId, String ref, HashMap<String, String> attrs); int callLayout(String pageId, String ref, int top, int bottom, int left, int right, int height, int width, int index); int callAppendTreeCreateFinish(String instanceId, String ref); int callCreateFinish(String instanceId); ContentBoxMeasurement getMeasurementFunc(String instanceId, long renderObjectPtr); void bindMeasurementToRenderObject(long ptr); @UiThread boolean notifyLayout(String instanceId); @UiThread void forceLayout(String instanceId); void onInstanceClose(String instanceId); void setDefaultRootSize(final String instanceId, final float defaultWidth, final float defaultHeight, final boolean isWidthWrapContent, final boolean isHeightWrapContent); void setRenderContentWrapContentToCore(boolean wrap, final String instanceId); void setStyleWidth(String instanceId, String ref, float value); void setStyleHeight(String instanceId, String ref, float value); long[] getFirstScreenRenderTime(String instanceId); long[] getRenderFinishTime(String instanceId); void setViewPortWidth(String instanceId, float value); void setMargin(String instanceId, String ref, CSSShorthand.EDGE edge, float value); void setPadding(String instanceId, String ref, CSSShorthand.EDGE edge, float value); void setPosition(String instanceId, String ref, CSSShorthand.EDGE edge, float value); void markDirty(String instanceId, String ref, boolean dirty); int callHasTransitionPros(String instanceId, String ref, HashMap<String, String> styles); void registerCoreEnv(String key, String value); }
WXBridgeManager implements Callback, BactchExecutor { public synchronized void initScriptsFramework(String framework) { Message msg = mJSHandler.obtainMessage(); msg.obj = framework; msg.what = WXJSBridgeMsgType.INIT_FRAMEWORK; msg.setTarget(mJSHandler); msg.sendToTarget(); } private  WXBridgeManager(); static WXBridgeManager getInstance(); void setUseSingleProcess(final boolean flag); void setSandBoxContext(final boolean flag); void stopRemoteDebug(); Object callModuleMethod(String instanceId, String moduleStr, String methodStr, JSONArray args); Object callModuleMethod(String instanceId, String moduleStr, String methodStr, JSONArray args, JSONObject options); void restart(); synchronized void setStackTopInstance(final String instanceId); @Override void post(Runnable r); @Override void setInterceptor(Interceptor interceptor); void post(Runnable r, Object token); void sendMessageDelayed(Message message, long delayMillis); void removeMessage(int what, Object obj); Object callNativeModule(String instanceId, String module, String method, JSONArray arguments, Object options); Object callNativeModule(String instanceId, String module, String method, JSONArray arguments, JSONObject options); Object callNativeComponent(String instanceId, String componentRef, String method, JSONArray arguments, Object options); int callNative(String instanceId, JSONArray tasks, String callback); int callUpdateFinish(String instanceId, String callback); int callRefreshFinish(String instanceId, String callback); int callReportCrashReloadPage(String instanceId, String crashFile); boolean shouReloadCurrentInstance(String aUrl); void callReportCrash(String crashFile, final String instanceId, final String url); String syncExecJsOnInstanceWithResult(final String instanceId, final String js, final int type); EventResult syncCallJSEventWithResult(final String method, final String instanceId, final List<Object> params, final Object... args); void asyncCallJSEventVoidResult(final String method, final String instanceId, final List<Object> params, final Object... args); synchronized void initScriptsFramework(String framework); @Deprecated void fireEvent(final String instanceId, final String ref,
                        final String type, final Map<String, Object> data); @Deprecated void fireEvent(final String instanceId, final String ref,
                        final String type, final Map<String, Object> data, final Map<String, Object> domChanges); void fireEventOnNode(final String instanceId, final String ref,
                              final String type, final Map<String, Object> data, final Map<String, Object> domChanges); void fireEventOnNode(final String instanceId, final String ref,
                              final String type, final Map<String, Object> data,
                              final Map<String, Object> domChanges, List<Object> params); void fireEventOnNode(final String instanceId, final String ref,
                              final String type, final Map<String, Object> data,
                              final Map<String, Object> domChanges, List<Object> params,  EventResult callback); @Deprecated void callback(String instanceId, String callback, String data); @Deprecated void callback(final String instanceId, final String callback,
                       final Map<String, Object> data); @Deprecated void callback(final String instanceId, final String callback,
                       final Object data, boolean keepAlive); void refreshInstance(final String instanceId, final WXRefreshData jsonData); void commitJscCrashAlarmMonitor(final String type, final WXErrorCode errorCode, String errMsg,
                                         String instanceId, String url); void createInstance(final String instanceId, final String template,
                             final Map<String, Object> options, final String data); WXJSObject optionObjConvert(boolean useSandBox, BundType type, WXJSObject opt); BundType getBundleType(String url, String temp); void destroyInstance(final String instanceId); @Override boolean handleMessage(Message msg); void invokeExecJS(String instanceId, String namespace, String function,
                           WXJSObject[] args, boolean logTaskDetail); void invokeCreateInstanceContext(String instanceId, String namespace, String function,
                                          WXJSObject[] args, boolean logTaskDetail); void invokeDestoryInstance(String instanceId, String namespace, String function,
                                    WXJSObject[] args, boolean logTaskDetail); @NonNull static String argsToJSON(WXJSObject[] args); WXParams getInitParams(); void registerModules(final Map<String, Object> modules); void registerComponents(final List<Map<String, Object>> components); void execJSService(final String service); boolean isJSThread(); void destroy(); void reportJSException(String instanceId, String function,
                                String exception); @Deprecated void notifyTrimMemory(); static void updateGlobalConfig(String config); @Nullable Looper getJSLooper(); void notifySerializeCodeCache(); void takeJSHeapSnapshot(String filename); int callCreateBody(String pageId, String componentType, String ref,
                            HashMap<String, String> styles, HashMap<String, String> attributes, HashSet<String> events,
                            float[] margins, float[] paddings, float[] borders); int callAddElement(String pageId, 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); int callRemoveElement(String instanceId, String ref); int callMoveElement(String instanceId, String ref, String parentref, int index); int callAddEvent(String instanceId, String ref, String event); int callRemoveEvent(String instanceId, String ref, String event); int callUpdateStyle(String instanceId, String ref, HashMap<String, Object> styles,
                             HashMap<String, String> paddings,
                             HashMap<String, String> margins,
                             HashMap<String, String> borders); int callUpdateAttrs(String instanceId, String ref, HashMap<String, String> attrs); int callLayout(String pageId, String ref, int top, int bottom, int left, int right, int height, int width, int index); int callAppendTreeCreateFinish(String instanceId, String ref); int callCreateFinish(String instanceId); ContentBoxMeasurement getMeasurementFunc(String instanceId, long renderObjectPtr); void bindMeasurementToRenderObject(long ptr); @UiThread boolean notifyLayout(String instanceId); @UiThread void forceLayout(String instanceId); void onInstanceClose(String instanceId); void setDefaultRootSize(final String instanceId, final float defaultWidth, final float defaultHeight, final boolean isWidthWrapContent, final boolean isHeightWrapContent); void setRenderContentWrapContentToCore(boolean wrap, final String instanceId); void setStyleWidth(String instanceId, String ref, float value); void setStyleHeight(String instanceId, String ref, float value); long[] getFirstScreenRenderTime(String instanceId); long[] getRenderFinishTime(String instanceId); void setViewPortWidth(String instanceId, float value); void setMargin(String instanceId, String ref, CSSShorthand.EDGE edge, float value); void setPadding(String instanceId, String ref, CSSShorthand.EDGE edge, float value); void setPosition(String instanceId, String ref, CSSShorthand.EDGE edge, float value); void markDirty(String instanceId, String ref, boolean dirty); int callHasTransitionPros(String instanceId, String ref, HashMap<String, String> styles); void registerCoreEnv(String key, String value); static final String METHOD_CREATE_INSTANCE; static final String METHOD_DESTROY_INSTANCE; static final String METHOD_CALL_JS; static final String METHOD_SET_TIMEOUT; static final String METHOD_REGISTER_MODULES; static final String METHOD_REGISTER_COMPONENTS; static final String METHOD_FIRE_EVENT; static final String METHD_FIRE_EVENT_SYNC; static final String METHD_COMPONENT_HOOK_SYNC; static final String METHOD_CALLBACK; static final String METHOD_REFRESH_INSTANCE; static final String METHOD_NOTIFY_TRIM_MEMORY; static final String METHOD_NOTIFY_SERIALIZE_CODE_CACHE; static final String KEY_METHOD; static final String KEY_ARGS; static final String COMPONENT; static final String REF; static final String MODULE; static final String METHOD; static final String KEY_PARAMS; static final String ARGS; static final String OPTIONS; static final String INITLOGFILE; }