Remove DNS event reporting level
Reporting level was used only by microbenchmarks, but CI go/apct-net
doesn't show a significant timing difference between test runs with and
without reporting enabled.
Test: atest resolv_integration_test
Test: m netd_benchmark && adb sync data && adb shell /data/benchmarktest64/netd_benchmark/netd_benchmark
Change-Id: I0db0522e1cf229649c2516973d8942549ccd5476
diff --git a/server/EventReporter.h b/server/EventReporter.h
index 3338a04..d4dc93d 100644
--- a/server/EventReporter.h
+++ b/server/EventReporter.h
@@ -24,20 +24,15 @@
#include "android/net/metrics/INetdEventListener.h"
/*
- * This class stores the reporting level and can be used to get the event listener service.
+ * This class can be used to get the event listener service.
*/
class EventReporter {
public:
- int setMetricsReportingLevel(const int level);
- int getMetricsReportingLevel() const;
-
// Returns the binder reference to the netd events listener service, attempting to fetch it if
// we do not have it already. This method is threadsafe.
android::sp<android::net::metrics::INetdEventListener> getNetdEventListener();
private:
- std::atomic_int mReportingLevel{
- android::net::metrics::INetdEventListener::REPORTING_LEVEL_FULL};
// TODO: consider changing this into an atomic type such as
// std::atomic<android::net::metrics::INetdEventListener> and deleting the mutex.
//