Add a metrics notice and launch metrics
This prints a notice if there is no user
configuration in place, or if the user has
previously accepted metrics capture. This
can be selected via launcher flags. The
metrics binary is started, if yes.
The metrics binary is a skeleton for now.
Bug: 149776902
Test: local build and run
Change-Id: I4b5d6ffbae38c2b9e472ddde42e6d42d25777174
diff --git a/host/commands/metrics/metrics_defs.h b/host/commands/metrics/metrics_defs.h
new file mode 100644
index 0000000..189d13b
--- /dev/null
+++ b/host/commands/metrics/metrics_defs.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#pragma once
+
+namespace cvd {
+
+enum MetricsExitCodes : int {
+ kSuccess=0,
+ kMetricsError=1,
+ kInvalidHostConfiguration=2,
+};
+
+} // namespace cvd