Port all available calls to libupdate_engine_client

This is as far as the port can go without improving the library itself.

Change-Id: I5d5dbf14b62746786364b2a7e1a9131d8ef7bfb1
Test: All affected commands still signal the daemon on dragonboard
Bug: 26233663
diff --git a/client_library/client_impl.cc b/client_library/client_impl.cc
index 3dba873..af9cb05 100644
--- a/client_library/client_impl.cc
+++ b/client_library/client_impl.cc
@@ -70,10 +70,11 @@
   return proxy_->ResetStatus(nullptr);
 }
 
-bool UpdateEngineClientImpl::SetTargetChannel(const string& in_target_channel) {
+bool UpdateEngineClientImpl::SetTargetChannel(const string& in_target_channel,
+                                              bool allow_powerwash) {
   return proxy_->SetChannel(
       in_target_channel,
-      true,
+      allow_powerwash,
       nullptr);
 }
 
diff --git a/client_library/client_impl.h b/client_library/client_impl.h
index 912449f..c55f753 100644
--- a/client_library/client_impl.h
+++ b/client_library/client_impl.h
@@ -46,7 +46,8 @@
 
   bool ResetStatus() override;
 
-  bool SetTargetChannel(const std::string& target_channel) override;
+  bool SetTargetChannel(const std::string& target_channel,
+                        bool allow_powerwash) override;
 
   bool GetTargetChannel(std::string* out_channel) override;
 
diff --git a/client_library/include/update_engine/client.h b/client_library/include/update_engine/client.h
index 3406ca6..ffc4a8b 100644
--- a/client_library/include/update_engine/client.h
+++ b/client_library/include/update_engine/client.h
@@ -70,7 +70,8 @@
   virtual bool ResetStatus() = 0;
 
   // Changes the current channel of the device to the target channel.
-  virtual bool SetTargetChannel(const std::string& target_channel) = 0;
+  virtual bool SetTargetChannel(const std::string& target_channel,
+                                bool allow_powerwash) = 0;
 
   // Get the channel the device will switch to on reboot.
   virtual bool GetTargetChannel(std::string* out_channel) = 0;