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

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

Merge "Revert "Short-term fix for unregistered JNI method""

parents 7db704a3 25d3c7c4
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1049,12 +1049,9 @@ 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


// ----------------------------------------------------------------------------
@@ -1113,7 +1110,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},
    // FIXME {"native_get_FCC_8",     "()I",      (void *)android_media_AudioTrack_get_FCC_8},
    {"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 = 8; // FIXME was native_get_FCC_8(), unregistered!
    public static final int CHANNEL_COUNT_MAX = native_get_FCC_8();

    /** 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();
    // FIXME static private native int native_get_FCC_8();
    static private native int native_get_FCC_8();

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