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

Commit a1ebc66b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes from topic "add-vndk-apex"

* changes:
  Revert "libbinder: Consider VNDK_APEX as vendor stable"
  Revert "Make libbinder available to VNDK APEX"
parents c932e447 e896c8e4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -73,7 +73,6 @@ cc_library {
    // or dessert updates. Instead, apex users should use libbinder_ndk.
    apex_available: [
        "//apex_available:platform",
        "com.android.vndk.current",
        // TODO(b/139016109) remove these three
        "com.android.media.swcodec",
        "test_com.android.media.swcodec",
+1 −1
Original line number Diff line number Diff line
@@ -505,7 +505,7 @@ void Parcel::updateWorkSourceRequestHeaderPosition() const {
    }
}

#if defined(__ANDROID_APEX_COM_ANDROID_VNDK_CURRENT__) || (defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__))
#if defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)
constexpr int32_t kHeader = B_PACK_CHARS('V', 'N', 'D', 'R');
#else
constexpr int32_t kHeader = B_PACK_CHARS('S', 'Y', 'S', 'T');
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ private:
        VINTF = 0b111111,
    };

#if defined(__ANDROID_APEX_COM_ANDROID_VNDK_CURRENT__) || (defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__))
#if defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)
    static constexpr Level kLocalStability = Level::VENDOR;
#else
    static constexpr Level kLocalStability = Level::SYSTEM;
+3 −6
Original line number Diff line number Diff line
@@ -30,8 +30,7 @@ enum {
    FLAG_PRIVATE_VENDOR = 0x10000000,
};

#if defined(__ANDROID_APEX_COM_ANDROID_VNDK_CURRENT__) || \
        (defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__))
#if (defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__))

enum {
    FLAG_PRIVATE_LOCAL = FLAG_PRIVATE_VENDOR,
@@ -46,8 +45,7 @@ static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) {
    AIBinder_markVendorStability(binder);
}

#else  // defined(__ANDROID_APEX_COM_ANDROID_VNDK_CURRENT__) || (defined(__ANDROID_VNDK__) &&
       // !defined(__ANDROID_APEX__))
#else  // defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)

enum {
    FLAG_PRIVATE_LOCAL = 0,
@@ -62,8 +60,7 @@ static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) {
    AIBinder_markSystemStability(binder);
}

#endif  // defined(__ANDROID_APEX_COM_ANDROID_VNDK_CURRENT__) || (defined(__ANDROID_VNDK__) &&
        // !defined(__ANDROID_APEX__))
#endif  // defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)

/**
 * This interface has system<->vendor stability