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

Commit 409e34c8 authored by Vic Yang's avatar Vic Yang Committed by Gerrit Code Review
Browse files

Merge "Reland "binder: Use StaticString16 for interface descriptors""

parents ed8f1294 5cb7391b
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -88,8 +88,12 @@ private: \
public:                                                                 \
public:                                                                 \




#define __IINTF_CONCAT(x, y) (x ## y)
#define IMPLEMENT_META_INTERFACE(INTERFACE, NAME)                       \
#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&                                          \
    const ::android::String16&                                          \
            I##INTERFACE::getInterfaceDescriptor() const {              \
            I##INTERFACE::getInterfaceDescriptor() const {              \
        return I##INTERFACE::descriptor;                                \
        return I##INTERFACE::descriptor;                                \