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

Commit affab527 authored by Steven Moreland's avatar Steven Moreland
Browse files

easy NDK backend way to construct instance name

We have an easy way to get this in other backends, but
not in the NDK backend.

Bug: 257537714
Test: vts_treble_vintf_vendor_test after using this
Change-Id: I287c79864db62074592af57ea78b8daaacbcd2e8
parent a3793499
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -196,6 +196,10 @@ class BnCInterface : public INTERFACE {

    bool isRemote() override final { return false; }

    static std::string makeServiceName(std::string_view instance) {
        return INTERFACE::descriptor + ("/" + std::string(instance));
    }

   protected:
    /**
     * This function should only be called by asBinder. Otherwise, there is a possibility of