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

Commit 8c04e18c authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Short-term fix for unregistered JNI method"

parents 08c5ad43 7922be86
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1049,9 +1049,12 @@ static void android_media_AudioTrack_disableDeviceCallback(
    pJniStorage->mDeviceCallback.clear();
}

// FIXME
#if 0
static jint android_media_AudioTrack_get_FCC_8(JNIEnv *env, jobject thiz) {
    return FCC_8;
}
#endif


// ----------------------------------------------------------------------------
@@ -1110,7 +1113,7 @@ static const JNINativeMethod gMethods[] = {
    {"native_getRoutedDeviceId", "()I", (void *)android_media_AudioTrack_getRoutedDeviceId},
    {"native_enableDeviceCallback", "()V", (void *)android_media_AudioTrack_enableDeviceCallback},
    {"native_disableDeviceCallback", "()V", (void *)android_media_AudioTrack_disableDeviceCallback},
    {"native_get_FCC_8",     "()I",      (void *)android_media_AudioTrack_get_FCC_8},
    // FIXME {"native_get_FCC_8",     "()I",      (void *)android_media_AudioTrack_get_FCC_8},
};


+2 −2
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ public class AudioTrack
    /** Maximum value for AudioTrack channel count
     * @hide public for MediaCode only, do not un-hide or change to a numeric literal
     */
    public static final int CHANNEL_COUNT_MAX = native_get_FCC_8();
    public static final int CHANNEL_COUNT_MAX = 8; // FIXME was native_get_FCC_8(), unregistered!

    /** indicates AudioTrack state is stopped */
    public static final int PLAYSTATE_STOPPED = 1;  // matches SL_PLAYSTATE_STOPPED
@@ -2584,7 +2584,7 @@ public class AudioTrack
    private native final int native_getRoutedDeviceId();
    private native final void native_enableDeviceCallback();
    private native final void native_disableDeviceCallback();
    static private native int native_get_FCC_8();
    // FIXME static private native int native_get_FCC_8();

    //---------------------------------------------------------
    // Utility methods