Pass args from the host when calling a HAL API and package the return
message

Change-Id: I2cae0d235431df8783013872d7c0cc91dcda6650
diff --git a/sysfuzzer/vtscompiler/VtsCompilerUtils.cpp b/sysfuzzer/vtscompiler/VtsCompilerUtils.cpp
index 45afb3c..02cc4e5 100644
--- a/sysfuzzer/vtscompiler/VtsCompilerUtils.cpp
+++ b/sysfuzzer/vtscompiler/VtsCompilerUtils.cpp
@@ -114,10 +114,14 @@
 }
 
 
-string GetCppInstanceType(ArgumentSpecificationMessage arg) {
+string GetCppInstanceType(ArgumentSpecificationMessage arg, string msg) {
   if (arg.has_aggregate_type()) {
     if (!strcmp(arg.aggregate_type().c_str(), "struct light_state_t*")) {
-      return "GenerateLightState()";
+      if (msg.length() == 0) {
+        return "GenerateLightState()";
+      } else {
+        return "GenerateLightStateUsingMessage(" + msg + ")";
+      }
     } else if (!strcmp(arg.aggregate_type().c_str(), "GpsCallbacks*")) {
       return "GenerateGpsCallbacks()";
     } else if (!strcmp(arg.aggregate_type().c_str(), "GpsUtcTime")) {