summaryrefslogtreecommitdiffstats
path: root/services/jni
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2013-12-05 16:48:06 -0800
committerAdam Lesinski <adamlesinski@google.com>2013-12-12 16:35:11 -0800
commit182f73fc4da13a6417e5086ec9ecce80eb8423ca (patch)
treed9b18344fd129069bb977c602041c1e47cf702f0 /services/jni
parentc13b4e25310034cc1e8da359edf1ee24d7429e9d (diff)
downloadframeworks_base-182f73fc4da13a6417e5086ec9ecce80eb8423ca.zip
frameworks_base-182f73fc4da13a6417e5086ec9ecce80eb8423ca.tar.gz
frameworks_base-182f73fc4da13a6417e5086ec9ecce80eb8423ca.tar.bz2
Introduce a Lifecycle for system services
Provide an abstract class for system services to extend from, similar to the android.app.Service. This will allow services to receive events in a uniform way, and will allow services to be created and started in the correct order regardless of whether or not a particular service exists. Similar to android.app.Service, services are meant to implement Binder interfaces as inner classes. This prevents services from having incestuous access to each other and makes them use the public API. Change-Id: Iaacfee8d5f080a28d7cc606761f4624673ed390f
Diffstat (limited to 'services/jni')
-rw-r--r--services/jni/Android.mk2
-rw-r--r--services/jni/com_android_server_lights_LightsService.cpp (renamed from services/jni/com_android_server_LightsService.cpp)2
2 files changed, 2 insertions, 2 deletions
diff --git a/services/jni/Android.mk b/services/jni/Android.mk
index 98e9b30..a98b1c3 100644
--- a/services/jni/Android.mk
+++ b/services/jni/Android.mk
@@ -8,7 +8,7 @@ LOCAL_SRC_FILES:= \
com_android_server_input_InputApplicationHandle.cpp \
com_android_server_input_InputManagerService.cpp \
com_android_server_input_InputWindowHandle.cpp \
- com_android_server_LightsService.cpp \
+ com_android_server_lights_LightsService.cpp \
com_android_server_power_PowerManagerService.cpp \
com_android_server_SerialService.cpp \
com_android_server_SystemServer.cpp \
diff --git a/services/jni/com_android_server_LightsService.cpp b/services/jni/com_android_server_lights_LightsService.cpp
index 401e1aa..ea03cfa 100644
--- a/services/jni/com_android_server_LightsService.cpp
+++ b/services/jni/com_android_server_lights_LightsService.cpp
@@ -134,7 +134,7 @@ static JNINativeMethod method_table[] = {
int register_android_server_LightsService(JNIEnv *env)
{
- return jniRegisterNativeMethods(env, "com/android/server/LightsService",
+ return jniRegisterNativeMethods(env, "com/android/server/lights/LightsService",
method_table, NELEM(method_table));
}