wifi: Change namespace
Move the implementation to "android::hardware::wifi:V1_0::implementation"
namespace.
This is following the style guidelines in NFC HIDL
implementation(go/aog/279421).
While there,
Run checkstyle to correct formatting issues.
Bug:31936700
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: I5600a60a0041b3318ed9289823ec335a8ed8a83d
diff --git a/wifi/1.0/default/wifi.h b/wifi/1.0/default/wifi.h
index 92712fd..0122741 100644
--- a/wifi/1.0/default/wifi.h
+++ b/wifi/1.0/default/wifi.h
@@ -21,25 +21,26 @@
#include <set>
#include <thread>
-#include <android/hardware/wifi/1.0/IWifi.h>
#include <android-base/macros.h>
+#include <android/hardware/wifi/1.0/IWifi.h>
#include <hardware_legacy/wifi_hal.h>
#include <utils/Looper.h>
#include "wifi_hal_state.h"
+#include "wifi_chip.h"
namespace android {
namespace hardware {
namespace wifi {
+namespace V1_0 {
+namespace implementation {
-class WifiChip;
-
-class Wifi : public V1_0::IWifi {
+class Wifi : public IWifi {
public:
Wifi(sp<Looper>& looper);
Return<void> registerEventCallback(
- const sp<V1_0::IWifiEventCallback>& callback) override;
+ const sp<IWifiEventCallback>& callback) override;
Return<bool> isStarted() override;
Return<void> start() override;
@@ -63,7 +64,7 @@
*/
void DoHalEventLoop();
- std::set<sp<V1_0::IWifiEventCallback>> callbacks_;
+ std::set<sp<IWifiEventCallback>> callbacks_;
sp<WifiChip> chip_;
WifiHalState state_;
@@ -76,6 +77,8 @@
DISALLOW_COPY_AND_ASSIGN(Wifi);
};
+} // namespace implementation
+} // namespace V1_0
} // namespace wifi
} // namespace hardware
} // namespace android