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

Commit a9b79dd7 authored by Jooyung Han's avatar Jooyung Han
Browse files

use vector<uint8_t> for byte[] in AIDL

In native world, byte stream is typically represented in uint8_t[]
or vector<uint8_t>. C++ backend already generates that way. This
change involves NDK backend.

Now NDK backend also uses vector<uint8_t> just like C++ backend.

Bug: 144957764
Test: atest CtsNdkBinderTestCases
Merged-In: I8de348b57cf92dd99b3ee16252f56300ce5f4683
Change-Id: I8de348b57cf92dd99b3ee16252f56300ce5f4683
(cherry picked from commit 32b8191d)
parent 355b949d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ namespace metrics {

::ndk::ScopedAStatus BaseMetricsListener::onWakeupEvent(
        const std::string& /*prefix*/, int32_t /*uid*/, int32_t /*ethertype*/,
        int32_t /*ipNextHeader*/, const std::vector<int8_t>& /*dstHw*/,
        int32_t /*ipNextHeader*/, const std::vector<uint8_t>& /*dstHw*/,
        const std::string& /*srcIp*/, const std::string& /*dstIp*/, int32_t /*srcPort*/,
        int32_t /*dstPort*/, int64_t /*timestampNs*/) {
    // default no-op
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ class BaseMetricsListener : public aidl::android::net::metrics::BnNetdEventListe
                                                int32_t /*uid*/) override;
    virtual ::ndk::ScopedAStatus onWakeupEvent(const std::string& /*prefix*/, int32_t /*uid*/,
                                               int32_t /*ethertype*/, int32_t /*ipNextHeader*/,
                                               const std::vector<int8_t>& /*dstHw*/,
                                               const std::vector<uint8_t>& /*dstHw*/,
                                               const std::string& /*srcIp*/,
                                               const std::string& /*dstIp*/, int32_t /*srcPort*/,
                                               int32_t /*dstPort*/,