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

Commit 69945b28 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "MediaMetrics: Convert to AIDL" into sc-dev

parents d9b723b8 fc63a30d
Loading
Loading
Loading
Loading
+1 −7
Original line number Original line Diff line number Diff line
@@ -18,7 +18,6 @@


#include <binder/Parcel.h>
#include <binder/Parcel.h>
#include <jni.h>
#include <jni.h>
#include <media/IMediaMetricsService.h>
#include <media/MediaMetricsItem.h>
#include <media/MediaMetricsItem.h>
#include <nativehelper/JNIHelp.h>
#include <nativehelper/JNIHelp.h>
#include <variant>
#include <variant>
@@ -151,12 +150,7 @@ static jint android_media_MediaMetrics_submit_bytebuffer(
        return (jint)BAD_VALUE;
        return (jint)BAD_VALUE;
    }
    }


    sp<IMediaMetricsService> service = mediametrics::BaseItem::getService();
    return (jint)mediametrics::BaseItem::submitBuffer((char *)buffer, length);
    if (service == nullptr) {
        ALOGW("Cannot retrieve mediametrics service");
        return (jint)NO_INIT;
    }
    return (jint)service->submitBuffer((char *)buffer, length);
}
}


// Helper function to convert a native PersistableBundle to a Java
// Helper function to convert a native PersistableBundle to a Java