From f40dc09cc7008ded099bd9d8a61df3ee92a23685 Mon Sep 17 00:00:00 2001 From: Hungming Chen Date: Thu, 12 Mar 2020 16:21:03 +0800 Subject: Add binder call tetherOffloadGetStats This binder call is separated from the existing call tetherGetStats and used for for BPF tether stats. Note that the default value of ifIndex of TetherStatsParcel.aidl is applied for backward compatibility because it is added from this commit. Make netd modules to use netd_aidl_interface-unstable-cpp. Both netd and libnetd_server use unstable aidl for new api tetherOffload* and modified parcel TetherStatsParcel. Generated with: m netd_aidl_interface-update-api Bug: 150736748 Test: atest Change-Id: Ie03834bc40992a4abdc8ef70150569982092b386 --- server/NetdNativeService.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/NetdNativeService.h') diff --git a/server/NetdNativeService.h b/server/NetdNativeService.h index 0d95c8ea4..f9979d316 100644 --- a/server/NetdNativeService.h +++ b/server/NetdNativeService.h @@ -123,6 +123,8 @@ class NetdNativeService : public BinderService, public BnNetd binder::Status tetherApplyDnsInterfaces(bool *ret) override; binder::Status tetherGetStats( std::vector* tetherStatsVec) override; + binder::Status tetherOffloadGetStats( + std::vector* tetherStatsVec) override; binder::Status tetherStart(const std::vector& dhcpRanges) override; binder::Status tetherStartWithConfiguration(const TetherConfigParcel& config) override; binder::Status tetherStop() override; -- cgit v1.2.3