[Android] Add test cases for XWalkJavascriptResult.

This patch is to add test cases for the interfaces in
XWalkJavascriptResultInternal.java.
[Android] Fix that getBridge() method will be in javadoc

getBridge() is for internal to use, should not be public.
Update the generator script.
[Android] Embedding API 3.0: XWalkPreferences

Add following APIs:
public static final String JAVASCRIPT_CAN_OPEN_WINDOW;
public static final String ALLOW_UNIVERSAL_ACCESS_FROM_FILE;
public static final String SUPPORT_MULTIPLE_WINDOWS
public static void setValue(String key, String value);
public static void setValue(String key, int value);
public static boolean getBooleanValue(String key);
public static String getStringValue(String key);
public static int getIntegerValue(String key);

Deprecated API:
public static boolean getValue(String key);

BUG=https://crosswalk-project.org/jira/browse/XWALK-2376
[Android] Fix the encode error for writing DBCS.

This patch is to fix the encode error for writing description with
DBCS and name is not defined error.
In python3, "unicode" is deprecated, the value should not be encoded.

BUG=BUG=XWALK-2382, XWALK-2398
Bump version to 9.37.198.0
Merge pull request #2352 from wuhengzhi/encode_error_description

[Android] Fix the encode error for writing DBCS.
[Android] Fixed calling extensionManager's onPause() and onResume() at wrong places

Call extensionManager's activity life cycle related codes in
onActivityStateChange. For now its onPause() is called with
ActivityState.STOPPED and onResume() is called with
ActivityState.STARTED, which are wrong.
Merge pull request #2373 from jondong/viewInternal

[Android] XWalkViewInternal refactor
Application: Do not indent forward declaration inside namespace.

  application/browser/application.h(27): Do not indent within a
  namespace [runtime/indentation_namespace] [4]
XWalkDevToolsServer: Reorder includes.

  runtime/browser/android/xwalk_dev_tools_server.h(9): Found C system
  header after C++ system header. Should be: xwalk_dev_tools_server.h, c
  system, c++ system, other. [build/include_order] [4]
Remove ; after function declaration.

  runtime/browser/media/media_capture_devices_dispatcher.cc(32):  You
  don't need a ; after a }  [readability/braces] [4]
Merge pull request #2380 from crosswalk-project/style-fixes

Fix some coding style issues.
Move to Chromium 38.0.2125.34, the first M38 beta release.

As usual, SIMD support in V8 is disabled while the v8-crosswalk folks
rebase their code.

One important point: on Linux builds, Chromium will now default to using
its bundled clang copy instead of the system's GCC, and Ubuntu 12.04's
GCC is now too old to build the code (at least 4.8.0 is required). Use
of clang can be disabled by passing -Dclang=0 to gyp.

Relevant, non-extensive list of Chromium CLs which required us to adapt
our code:

  * https://codereview.chromium.org/213583003
  * https://codereview.chromium.org/273223002
  * https://codereview.chromium.org/321423002
  * https://codereview.chromium.org/338373002
  * https://codereview.chromium.org/344493002
  * https://codereview.chromium.org/356713005
  * https://codereview.chromium.org/364123002
  * https://codereview.chromium.org/369703002
  * https://codereview.chromium.org/373623002
  * https://codereview.chromium.org/381113004
  * https://codereview.chromium.org/382143005
  * https://codereview.chromium.org/393653002
  * https://codereview.chromium.org/397243004
  * https://codereview.chromium.org/398243002
  * https://codereview.chromium.org/398503002
  * https://codereview.chromium.org/398873004
  * https://codereview.chromium.org/405633002
  * https://codereview.chromium.org/411283002
  * https://codereview.chromium.org/415423002
  * https://codereview.chromium.org/421613002
  * https://codereview.chromium.org/425653002
  * https://codereview.chromium.org/432553003

Relevant intermediate commit messages from intermediate commits in our
next branch:

[Android] Aligh with new java targets' classes_dir

Chromium has changed java targets' classes_dir to
<intermediate>/classes/2.
It impacts xwalk_native_libraries_java and
xwalk_core_library_java in crosswalk. Changes the
classes_dir of these two targets accordingly.

In addition, use dependent settings of gyp to sync variables
between targets instead of hardcode to avoid similar issues in
future.

--

Gardening M38: Remove classes_dir in gyp files

Upstream removes classes_dir in java.gypi and java_apk.gypi.
Previously, crosswalk relies on it to create xwalk_core_library
and xwalk_runtime_embedded.
For xwalk_core_library, use javac_jar_path instead of classes_dir.
For xwalk_runtime_embedded, the target is not used any more
after xwalk_app_template switch to use xwalk_core_library,
just removed it.

--

Gardening M38: Remove classes_dir in gyp files

Upstream removes classes_dir in java.gypi and java_apk.gypi.
Previously, crosswalk relies on it to create xwalk_core_library
and xwalk_runtime_embedded.
For xwalk_core_library, use javac_jar_path instead of classes_dir.
For xwalk_runtime_embedded, the target is not used any more
after xwalk_app_template switch to use xwalk_core_library,
just removed it.

--

Re-enable WebRTC support on Tizen.

Temporarily roll WebRTC's revision manually from c1696da to cdc3123:
cdc3123 Rename linuxwindowpicker to x11windowpicker & only use it with
        use_x11
ee3ec04 common_audio/signal_processing: Remove macro
        WEBRTC_SPL_UMUL_32_16_RSFT16

cdc3123 is required to fix XWALK-2160 and re-enable WebRTC support, as
libjingle now forces a dependency on the webrtc_base target which was
causing the Tizen build to fail even with -Ddisable_webrtc=1.

See https://code.google.com/p/webrtc/issues/detail?id=3625 and
XWALK-2160.

--

gyp_xwalk: Sync with M38's gyp_chromium.

Sync the script with Chromium commits r279309, r286307, r286632,
r288360, r289094, r289099, r289158, r289546 and r289699.

Most of the changes are related to supporting the --analyzer option and
moving the handling of landmines to a separate file.

--

BUG=XWALK-2160
BUG=XWALK-2431
Merge pull request #2379 from rakuco/next

Move to Chromium 38.0.2125.34, the first M38 beta release.
[Android] Add support of getting mime type for app url scheme.

This patch is to add support of getting mime type for app url scheme.
As crosswalk supports app scheme and the local path in "iframe" was
loaded with "app://", so add conditional to get the related mime type.
The app scheme was removed in commit
12b98a890de27d1ec96eb7f10558010fc7412e58.

BUG=XWALK-2300, XWALK-2301
[Android] Add onStart and onStop to XWalkExtensionClient

Added the onStart() and onStop() method in XWalkExtensionClient,
and also added these two functions in the related classes to
make it work for XWalkExtensionClient. Now extension developer
can override the onStart() and onStop() when the activity's
onStart() and onStop() get triggered.

BUG=XWALK-1708
Merge pull request #2383 from wuhengzhi/backgroud_with_no_instrinsic_size

[Android] Add support of getting mime type for app url scheme.
Merge pull request #2353 from wang16/reflection_layer

[Android] Fix that getBridge() method will be in javadoc
Merge pull request #2372 from jondong/onStart

[Android] Add onStart and onStop to XWalkExtensionClient
[Runtime] Add "-c" option for xwalkctl for restarting aborted install/update tasks.

Crosswalk runtime should have a mechanism to restart the aborted install or
update tasks which are stopped by accident like power off. This patch related to
bug: https://crosswalk-project.org/jira/browse/XWALK-1565

How to use:
========
$ xwalkctl --continue