summaryrefslogtreecommitdiff
path: root/libs/services/include/android/os/StatsLogEventWrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/services/include/android/os/StatsLogEventWrapper.h')
-rw-r--r--libs/services/include/android/os/StatsLogEventWrapper.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/services/include/android/os/StatsLogEventWrapper.h b/libs/services/include/android/os/StatsLogEventWrapper.h
index 52cb75e8e639..f60c338bf9c4 100644
--- a/libs/services/include/android/os/StatsLogEventWrapper.h
+++ b/libs/services/include/android/os/StatsLogEventWrapper.h
@@ -58,6 +58,11 @@ struct StatsLogValue {
type = FLOAT;
}
+ StatsLogValue(double v) {
+ double_value = v;
+ type = DOUBLE;
+ }
+
StatsLogValue(const std::string& v) {
str_value = v;
type = STRING;