Loading core/java/android/os/SystemProperties.java +8 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,7 @@ public class SystemProperties { private static native boolean native_get_boolean(String key, boolean def); private static native void native_set(String key, String def); private static native void native_add_change_callback(); private static native void native_report_sysprop_change(); /** * Get the value for the given key. Loading Loading @@ -195,4 +196,11 @@ public class SystemProperties { } } } /* * Notifies listeners that a system property has changed */ public static void reportSyspropChanged() { native_report_sysprop_change(); } } core/jni/android_os_SystemProperties.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -220,6 +220,11 @@ static void SystemProperties_add_change_callback(JNIEnv *env, jobject clazz) } } static void SystemProperties_report_sysprop_change(JNIEnv /**env*/, jobject /*clazz*/) { report_sysprop_change(); } static const JNINativeMethod method_table[] = { { "native_get", "(Ljava/lang/String;)Ljava/lang/String;", (void*) SystemProperties_getS }, Loading @@ -235,6 +240,8 @@ static const JNINativeMethod method_table[] = { (void*) SystemProperties_set }, { "native_add_change_callback", "()V", (void*) SystemProperties_add_change_callback }, { "native_report_sysprop_change", "()V", (void*) SystemProperties_report_sysprop_change }, }; int register_android_os_SystemProperties(JNIEnv *env) Loading Loading
core/java/android/os/SystemProperties.java +8 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,7 @@ public class SystemProperties { private static native boolean native_get_boolean(String key, boolean def); private static native void native_set(String key, String def); private static native void native_add_change_callback(); private static native void native_report_sysprop_change(); /** * Get the value for the given key. Loading Loading @@ -195,4 +196,11 @@ public class SystemProperties { } } } /* * Notifies listeners that a system property has changed */ public static void reportSyspropChanged() { native_report_sysprop_change(); } }
core/jni/android_os_SystemProperties.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -220,6 +220,11 @@ static void SystemProperties_add_change_callback(JNIEnv *env, jobject clazz) } } static void SystemProperties_report_sysprop_change(JNIEnv /**env*/, jobject /*clazz*/) { report_sysprop_change(); } static const JNINativeMethod method_table[] = { { "native_get", "(Ljava/lang/String;)Ljava/lang/String;", (void*) SystemProperties_getS }, Loading @@ -235,6 +240,8 @@ static const JNINativeMethod method_table[] = { (void*) SystemProperties_set }, { "native_add_change_callback", "()V", (void*) SystemProperties_add_change_callback }, { "native_report_sysprop_change", "()V", (void*) SystemProperties_report_sysprop_change }, }; int register_android_os_SystemProperties(JNIEnv *env) Loading