Build native FileObserver for host.

Test: ctesque/run_tests_host.sh
Test: ctesque/run_cts_tests_host.sh

Change-Id: Idfcee3edc08e5c98aa670cf45db7c5bb2f461593
(cherry picked from commit 0ccc1ce74ca5108c315cfa48846957c51a754a70)
This commit is contained in:
Brett Chabot
2019-06-28 15:59:33 -07:00
committed by Jerome Gaillard
parent 6762470fc2
commit dcb31f21a6
2 changed files with 3 additions and 0 deletions

View File

@@ -308,6 +308,7 @@ cc_library_shared {
"android_os_MessageQueue.cpp",
"android_os_Trace.cpp",
"android_util_AssetManager.cpp",
"android_util_FileObserver.cpp",
"android_util_StringBlock.cpp",
"android_util_XmlBlock.cpp",
],

View File

@@ -70,6 +70,7 @@ extern int register_android_graphics_fonts_Font(JNIEnv* env);
extern int register_android_graphics_fonts_FontFamily(JNIEnv* env);
extern int register_android_graphics_text_LineBreaker(JNIEnv* env);
extern int register_android_graphics_text_MeasuredText(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);
extern int register_android_os_SystemProperties(JNIEnv* env);
@@ -128,6 +129,7 @@ static const std::unordered_map<std::string, RegJNIRec> gRegJNIMap = {
{"android.graphics.text.LineBreaker", REG_JNI(register_android_graphics_text_LineBreaker)},
{"android.graphics.text.MeasuredText", REG_JNI(register_android_graphics_text_MeasuredText)},
#ifdef __linux__
{"android.os.FileObserver", REG_JNI(register_android_os_FileObserver)},
{"android.os.MessageQueue", REG_JNI(register_android_os_MessageQueue)},
#endif
{"android.os.SystemClock", REG_JNI(register_android_os_SystemClock)},