lineage-sdk: Comment out LineageAudioService

Requires:
deebe5a37b

*) To be reverted during later ship of topic:twelve-sdk-audio

Change-Id: I1f65fb90e0a7609d719080fa9e48150e1227cff7
This commit is contained in:
Sam Mortimer
2018-08-08 18:49:07 -07:00
committed by Luca Stefani
parent 04c0fc1235
commit 62697e0f46
2 changed files with 10 additions and 0 deletions

View File

@@ -27,7 +27,9 @@
#include "android_media_AudioErrors.h"
#include <media/AudioSystem.h>
/*
#include <media/AudioSession.h>
*/
#include <system/audio.h>
#include <utils/misc.h>
@@ -37,6 +39,7 @@
namespace android {
/*
static const char* const kClassPathName = "org/lineageos/platform/internal/LineageAudioService";
static jclass gArrayListClass;
@@ -150,8 +153,12 @@ static JNINativeMethod gMethods[] = {
(void *)org_lineageos_platform_internal_LineageAudioService_registerAudioSessionCallback},
};
*/
int register_org_lineageos_platform_internal_LineageAudioService(JNIEnv *env)
{
return 0;
/*
jclass arrayListClass = FindClassOrDie(env, "java/util/ArrayList");
gArrayListClass = MakeGlobalRefOrDie(env, arrayListClass);
gArrayListMethods.add = GetMethodIDOrDie(env, arrayListClass, "add", "(Ljava/lang/Object;)Z");
@@ -166,6 +173,7 @@ int register_org_lineageos_platform_internal_LineageAudioService(JNIEnv *env)
"audioSessionCallbackFromNative", "(ILlineageos/media/AudioSessionInfo;Z)V");
return RegisterMethodsOrDie(env, kClassPathName, gMethods, NELEM(gMethods));
*/
}
} /* namespace android */

View File

@@ -71,7 +71,9 @@ public class LineageAudioService extends LineageSystemService {
public void onBootPhase(int phase) {
if (phase == PHASE_BOOT_COMPLETED) {
if (NativeHelper.isNativeLibraryAvailable()) {
/*
native_registerAudioSessionCallback(true);
*/
}
}
}