Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcb31f21 authored by Brett Chabot's avatar Brett Chabot Committed by Jerome Gaillard
Browse files

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)
parent 6762470f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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",
            ],
+2 −0
Original line number Diff line number Diff line
@@ -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)},