NDC migration to binder ver.
Make ndc communicating with netd via binder
Bug: 65862741
Test: built, flashed, booted
system/netd/tests/runtests.sh pass
manual test ndc commands
Change-Id: I9edfda61d8c3a4d7b404a428e7dbb4d08eff62a9
diff --git a/server/NetworkController.cpp b/server/NetworkController.cpp
index 9fc2c66..f7cb8dd 100644
--- a/server/NetworkController.cpp
+++ b/server/NetworkController.cpp
@@ -23,16 +23,15 @@
// acquiring the lock. Private functions in this file should call xxxLocked() methods and access
// internal state directly.
-#include "NetworkController.h"
-
#define LOG_TAG "Netd"
-#include "log/log.h"
+
+#include "NetworkController.h"
#include <android-base/strings.h>
#include <cutils/misc.h> // FIRST_APPLICATION_UID
#include <netd_resolv/resolv.h>
#include <netd_resolv/resolv_stub.h>
-#include "android/net/INetd.h"
+#include "log/log.h"
#include "Controllers.h"
#include "DummyNetwork.h"
@@ -59,12 +58,6 @@
} // namespace
-const unsigned NetworkController::MIN_OEM_ID = 1;
-const unsigned NetworkController::MAX_OEM_ID = 50;
-const unsigned NetworkController::DUMMY_NET_ID = 51;
-// NetIds 52..98 are reserved for future use.
-const unsigned NetworkController::LOCAL_NET_ID = INetd::LOCAL_NET_ID;
-
// All calls to methods here are made while holding a write lock on mRWLock.
// They are mostly not called directly from this class, but from methods in PhysicalNetwork.cpp.
// However, we're the only user of that class, so all calls to those methods come from here and are