summaryrefslogtreecommitdiff
path: root/core/jni/LayoutlibLoader.cpp
diff options
context:
space:
mode:
authorBrett Chabot <brettchabot@google.com>2019-06-21 16:51:12 -0700
committerJerome Gaillard <jgaillard@google.com>2019-06-27 18:02:52 +0100
commit6f014b469f25be2dbfd4fd612b5a65121dcf1cf3 (patch)
treec1320c8baf5c1520b89e765598be96b08bff5e2c /core/jni/LayoutlibLoader.cpp
parent15c7bcd01089043882f9b53b71724bc294615bd7 (diff)
Build native EventLog and XmlBlock for host linux.
Test: tools/test/simulated_device/ctesque/run_tests_host.sh Change-Id: Icc5b8563b62e601ff6f5b49e4c7b6493cd41d85b
Diffstat (limited to 'core/jni/LayoutlibLoader.cpp')
-rw-r--r--core/jni/LayoutlibLoader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/jni/LayoutlibLoader.cpp b/core/jni/LayoutlibLoader.cpp
index f451f4eb5389..eb700355ff0e 100644
--- a/core/jni/LayoutlibLoader.cpp
+++ b/core/jni/LayoutlibLoader.cpp
@@ -51,6 +51,7 @@ namespace android {
extern int register_android_animation_PropertyValuesHolder(JNIEnv *env);
extern int register_android_content_AssetManager(JNIEnv* env);
extern int register_android_content_StringBlock(JNIEnv* env);
+extern int register_android_content_XmlBlock(JNIEnv* env);
extern int register_android_content_res_ApkAssets(JNIEnv* env);
extern int register_android_graphics_Canvas(JNIEnv* env);
extern int register_android_graphics_ColorFilter(JNIEnv* env);
@@ -73,6 +74,7 @@ extern int register_android_os_MessageQueue(JNIEnv* env);
extern int register_android_os_SystemClock(JNIEnv* env);
extern int register_android_os_SystemProperties(JNIEnv* env);
extern int register_android_os_Trace(JNIEnv* env);
+extern int register_android_util_EventLog(JNIEnv* env);
extern int register_android_util_Log(JNIEnv* env);
extern int register_android_util_PathParser(JNIEnv* env);
extern int register_android_view_RenderNode(JNIEnv* env);
@@ -91,6 +93,7 @@ static const std::unordered_map<std::string, RegJNIRec> gRegJNIMap = {
{"android.animation.PropertyValuesHolder", REG_JNI(register_android_animation_PropertyValuesHolder)},
{"android.content.AssetManager", REG_JNI(register_android_content_AssetManager)},
{"android.content.StringBlock", REG_JNI(register_android_content_StringBlock)},
+ {"android.content.XmlBlock", REG_JNI(register_android_content_XmlBlock)},
{"android.content.res.ApkAssets", REG_JNI(register_android_content_res_ApkAssets)},
{"android.graphics.Bitmap", REG_JNI(register_android_graphics_Bitmap)},
{"android.graphics.BitmapFactory", REG_JNI(register_android_graphics_BitmapFactory)},
@@ -126,6 +129,7 @@ static const std::unordered_map<std::string, RegJNIRec> gRegJNIMap = {
{"android.os.SystemClock", REG_JNI(register_android_os_SystemClock)},
{"android.os.SystemProperties", REG_JNI(register_android_os_SystemProperties)},
{"android.os.Trace", REG_JNI(register_android_os_Trace)},
+ {"android.util.EventLog", REG_JNI(register_android_util_EventLog)},
{"android.util.Log", REG_JNI(register_android_util_Log)},
{"android.util.PathParser", REG_JNI(register_android_util_PathParser)},
{"com.android.internal.util.VirtualRefBasePtr", REG_JNI(register_com_android_internal_util_VirtualRefBasePtr)},