diff options
author | Eric Laurent <elaurent@google.com> | 2015-05-20 14:49:08 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-05-20 17:39:21 -0700 |
commit | 0867bed9ddb3bea3d7c252791f8b62ae21ad3de5 (patch) | |
tree | cc10476ac20f7d91ee7fd4a8cd57ddc306f355ed /core/jni | |
parent | c8304e86c86b1925d6f3e58a930d6a2ada6bb3a2 (diff) | |
download | frameworks_base-0867bed9ddb3bea3d7c252791f8b62ae21ad3de5.zip frameworks_base-0867bed9ddb3bea3d7c252791f8b62ae21ad3de5.tar.gz frameworks_base-0867bed9ddb3bea3d7c252791f8b62ae21ad3de5.tar.bz2 |
AudioService: indicate system ready to AudioFlinger
Indicate when JAVA services are ready to AudioFlinger so that
calls to power manager and scheduling service can be enabled.
Bug: 11520969.
Change-Id: Id977cab3208c34709011703d2dfdcf552e60371b
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/android_media_AudioSystem.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/jni/android_media_AudioSystem.cpp b/core/jni/android_media_AudioSystem.cpp index eab5668..1cd07d1 100644 --- a/core/jni/android_media_AudioSystem.cpp +++ b/core/jni/android_media_AudioSystem.cpp @@ -1554,6 +1554,11 @@ exit: return jStatus; } +static jint +android_media_AudioSystem_systemReady(JNIEnv *env, jobject thiz) +{ + return nativeToJavaStatus(AudioSystem::systemReady()); +} // ---------------------------------------------------------------------------- @@ -1601,6 +1606,7 @@ static JNINativeMethod gMethods[] = { (void *)android_media_AudioSystem_registerPolicyMixes}, {"native_register_dynamic_policy_callback", "()V", (void *)android_media_AudioSystem_registerDynPolicyCallback}, + {"systemReady", "()I", (void *)android_media_AudioSystem_systemReady}, }; |