summaryrefslogtreecommitdiff
path: root/core/jni/LayoutlibLoader.cpp
diff options
context:
space:
mode:
authorJerome Gaillard <jgaillard@google.com>2020-11-02 16:16:17 +0000
committerJerome Gaillard <jgaillard@google.com>2020-11-02 16:27:11 +0000
commit1044702c35a226f33341f6bdeb47644f71f6c45f (patch)
tree3e5592d8d4fe31f98d5fd144bdd809636a57a1d1 /core/jni/LayoutlibLoader.cpp
parent67dd9ce1301f431c4b4a213eabf028aba241c83c (diff)
Add SQLite to libandroid_runtime for linux host
This allows the possibility to use it with Layoutlib/Helium. Test: lunch sdk && m libandroid_runtime Change-Id: I93b1ebec968566aeb9209da607ce8a80489ed060
Diffstat (limited to 'core/jni/LayoutlibLoader.cpp')
-rw-r--r--core/jni/LayoutlibLoader.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/jni/LayoutlibLoader.cpp b/core/jni/LayoutlibLoader.cpp
index 4e50f87c086b..3e513df98f14 100644
--- a/core/jni/LayoutlibLoader.cpp
+++ b/core/jni/LayoutlibLoader.cpp
@@ -41,6 +41,10 @@ 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_database_CursorWindow(JNIEnv* env);
+extern int register_android_database_SQLiteConnection(JNIEnv* env);
+extern int register_android_database_SQLiteGlobal(JNIEnv* env);
+extern int register_android_database_SQLiteDebug(JNIEnv* env);
extern int register_android_os_FileObserver(JNIEnv* env);
extern int register_android_os_MessageQueue(JNIEnv* env);
extern int register_android_os_SystemClock(JNIEnv* env);
@@ -65,6 +69,11 @@ static const std::unordered_map<std::string, RegJNIRec> gRegJNIMap = {
#ifdef __linux__
{"android.content.res.ApkAssets", REG_JNI(register_android_content_res_ApkAssets)},
{"android.content.res.AssetManager", REG_JNI(register_android_content_AssetManager)},
+ {"android.database.CursorWindow", REG_JNI(register_android_database_CursorWindow)},
+ {"android.database.sqlite.SQLiteConnection",
+ REG_JNI(register_android_database_SQLiteConnection)},
+ {"android.database.sqlite.SQLiteGlobal", REG_JNI(register_android_database_SQLiteGlobal)},
+ {"android.database.sqlite.SQLiteDebug", REG_JNI(register_android_database_SQLiteDebug)},
#endif
{"android.content.res.StringBlock", REG_JNI(register_android_content_StringBlock)},
{"android.content.res.XmlBlock", REG_JNI(register_android_content_XmlBlock)},