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

Commit c87414d9 authored by Chong Zhang's avatar Chong Zhang Committed by Android (Google) Code Review
Browse files

Merge "Set use_vendor to false for media apex"

parents 0516866e 2f89ec29
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -97,7 +97,6 @@ apex_defaults {
        "crash_dump.policy",
        "mediaswcodec.xml",
    ],
    use_vendor: true,
    key: "com.android.media.swcodec.key",
    certificate: ":com.android.media.swcodec.certificate",

+7 −1
Original line number Diff line number Diff line
@@ -35,7 +35,13 @@ cc_library_static {
        ],
        cfi: true,
    },
    apex_available: ["com.android.media.swcodec"],

    apex_available: [
        "//apex_available:platform",
        "com.android.media.swcodec",
        "test_com.android.media.swcodec",
    ],

    min_sdk_version: "29",

    target: {
+1 −0
Original line number Diff line number Diff line
@@ -101,6 +101,7 @@ cc_library_shared {
        "//apex_available:platform",
    ],
    vendor_available: false,
    min_sdk_version: "29",
    static_libs: [
        "libgui_bufferqueue_static",
    ],
+3 −3
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@

#include <media/stagefright/foundation/hexdump.h>

#ifndef __ANDROID_VNDK__
#if !defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)
#include <binder/Parcel.h>
#endif

@@ -646,7 +646,7 @@ AString AMessage::debugString(int32_t indent) const {
    return s;
}

#ifndef __ANDROID_VNDK__
#if !defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)
// static
sp<AMessage> AMessage::FromParcel(const Parcel &parcel, size_t maxNestingLevel) {
    int32_t what = parcel.readInt32();
@@ -813,7 +813,7 @@ void AMessage::writeToParcel(Parcel *parcel) const {
        }
    }
}
#endif  // __ANDROID_VNDK__
#endif  // !defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)

sp<AMessage> AMessage::changesFrom(const sp<const AMessage> &other, bool deep) const {
    if (other == NULL) {
+3 −3
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@
#include "ADebug.h"
#include "AString.h"

#ifndef __ANDROID_VNDK__
#if !defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)
#include <binder/Parcel.h>
#endif

@@ -365,7 +365,7 @@ bool AString::endsWithIgnoreCase(const char *suffix) const {
    return !strcasecmp(mData + mSize - suffixLen, suffix);
}

#ifndef __ANDROID_VNDK__
#if !defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)
// static
AString AString::FromParcel(const Parcel &parcel) {
    size_t size = static_cast<size_t>(parcel.readInt32());
@@ -380,7 +380,7 @@ status_t AString::writeToParcel(Parcel *parcel) const {
    }
    return err;
}
#endif
#endif // !defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)

AString AStringPrintf(const char *format, ...) {
    va_list ap;
Loading