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

Commit 2d4f561c authored by Vic Yang's avatar Vic Yang Committed by android-build-merger
Browse files

Merge "Reland "binder: Use StaticString16 for interface descriptors"" am: 409e34c8

am: 3d17a3b0

Change-Id: I83f4a8915938c8bc3e8cbc7bb4d652c29147273f
parents 303d8dc8 3d17a3b0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -88,8 +88,12 @@ private: \
public:                                                                 \


#define __IINTF_CONCAT(x, y) (x ## y)
#define IMPLEMENT_META_INTERFACE(INTERFACE, NAME)                       \
    const ::android::String16 I##INTERFACE::descriptor(NAME);           \
    const ::android::StaticString16                                     \
        I##INTERFACE##_descriptor_static_str16(__IINTF_CONCAT(u, NAME));\
    const ::android::String16 I##INTERFACE::descriptor(                 \
        I##INTERFACE##_descriptor_static_str16);                        \
    const ::android::String16&                                          \
            I##INTERFACE::getInterfaceDescriptor() const {              \
        return I##INTERFACE::descriptor;                                \