Fix google-explicit-constructor warnings in libnativehelper

Bug: 28341362
Change-Id: I8e19914bdc20e734fd273e874d329d1c273db894
Test: build with clang-tidy
diff --git a/include/nativehelper/AsynchronousCloseMonitor.h b/include/nativehelper/AsynchronousCloseMonitor.h
index eefbbdf..0eae752 100644
--- a/include/nativehelper/AsynchronousCloseMonitor.h
+++ b/include/nativehelper/AsynchronousCloseMonitor.h
@@ -43,7 +43,7 @@
  */
 class AsynchronousCloseMonitor {
 public:
-    AsynchronousCloseMonitor(int fd);
+    explicit AsynchronousCloseMonitor(int fd);
     ~AsynchronousCloseMonitor();
     bool wasSignaled() const;
 
diff --git a/include/nativehelper/toStringArray.h b/include/nativehelper/toStringArray.h
index 9dc7a16..cb46024 100644
--- a/include/nativehelper/toStringArray.h
+++ b/include/nativehelper/toStringArray.h
@@ -47,14 +47,14 @@
 
 struct VectorCounter {
     const std::vector<std::string>& strings;
-    VectorCounter(const std::vector<std::string>& strings) : strings(strings) {}
+    explicit VectorCounter(const std::vector<std::string>& strings) : strings(strings) {}
     size_t operator()() {
         return strings.size();
     }
 };
 struct VectorGetter {
     const std::vector<std::string>& strings;
-    VectorGetter(const std::vector<std::string>& strings) : strings(strings) {}
+    explicit VectorGetter(const std::vector<std::string>& strings) : strings(strings) {}
     const char* operator()(size_t i) {
         return strings[i].c_str();
     }