Rename power_stat_hal to power_stats
This is a simple file rename to allow to make subsequent review easier.
Bug: 182927513
Change-Id: Ia6c3f07a427c23e79877a75c3201b518c659b44b
diff --git a/Android.bp b/Android.bp
index d0eb9b0..838eb79 100644
--- a/Android.bp
+++ b/Android.bp
@@ -620,8 +620,8 @@
"src/android_internal/atrace_hal.cc",
"src/android_internal/health_hal.cc",
"src/android_internal/incident_service.cc",
+ "src/android_internal/power_stats.cc",
"src/android_internal/power_stats_aidl.cc",
- "src/android_internal/power_stats_hal.cc",
"src/android_internal/statsd_logging.cc",
"src/android_internal/tracing_service_proxy.cc",
],
diff --git a/BUILD b/BUILD
index 3b09ac8..9a6cd9e 100644
--- a/BUILD
+++ b/BUILD
@@ -551,8 +551,8 @@
"src/android_internal/atrace_hal.h",
"src/android_internal/health_hal.h",
"src/android_internal/incident_service.h",
+ "src/android_internal/power_stats.h",
"src/android_internal/power_stats_aidl.h",
- "src/android_internal/power_stats_hal.h",
"src/android_internal/statsd_logging.h",
"src/android_internal/tracing_service_proxy.h",
],
diff --git a/src/android_internal/BUILD.gn b/src/android_internal/BUILD.gn
index 1ded343..ede7fb5 100644
--- a/src/android_internal/BUILD.gn
+++ b/src/android_internal/BUILD.gn
@@ -32,7 +32,7 @@
"health_hal.cc",
"incident_service.cc",
"power_stats_aidl.cc",
- "power_stats_hal.cc",
+ "power_stats.cc",
"statsd_logging.cc",
"tracing_service_proxy.cc",
]
@@ -74,7 +74,7 @@
"health_hal.h",
"incident_service.h",
"power_stats_aidl.h",
- "power_stats_hal.h",
+ "power_stats.h",
"statsd_logging.h",
"tracing_service_proxy.h",
]
diff --git a/src/android_internal/power_stats_hal.cc b/src/android_internal/power_stats.cc
similarity index 96%
rename from src/android_internal/power_stats_hal.cc
rename to src/android_internal/power_stats.cc
index 9027e4e..39b9930 100644
--- a/src/android_internal/power_stats_hal.cc
+++ b/src/android_internal/power_stats.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2019 The Android Open Source Project
+ * Copyright (C) 2021 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.
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-#include "src/android_internal/power_stats_hal.h"
+#include "src/android_internal/power_stats.h"
#include <string.h>
diff --git a/src/android_internal/power_stats_hal.h b/src/android_internal/power_stats.h
similarity index 89%
rename from src/android_internal/power_stats_hal.h
rename to src/android_internal/power_stats.h
index 6773b19..f107efc 100644
--- a/src/android_internal/power_stats_hal.h
+++ b/src/android_internal/power_stats.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2019 The Android Open Source Project
+ * Copyright (C) 2021 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.
@@ -14,8 +14,8 @@
* limitations under the License.
*/
-#ifndef SRC_ANDROID_INTERNAL_POWER_STATS_HAL_H_
-#define SRC_ANDROID_INTERNAL_POWER_STATS_HAL_H_
+#ifndef SRC_ANDROID_INTERNAL_POWER_STATS_H_
+#define SRC_ANDROID_INTERNAL_POWER_STATS_H_
#include <stddef.h>
#include <stdint.h>
@@ -64,4 +64,4 @@
} // namespace android_internal
} // namespace perfetto
-#endif // SRC_ANDROID_INTERNAL_POWER_STATS_HAL_H_
+#endif // SRC_ANDROID_INTERNAL_POWER_STATS_H_
diff --git a/src/traced/probes/power/android_power_data_source.cc b/src/traced/probes/power/android_power_data_source.cc
index 5f55183..74ed8da 100644
--- a/src/traced/probes/power/android_power_data_source.cc
+++ b/src/traced/probes/power/android_power_data_source.cc
@@ -28,7 +28,7 @@
#include "perfetto/tracing/core/data_source_config.h"
#include "src/android_internal/health_hal.h"
#include "src/android_internal/lazy_library_loader.h"
-#include "src/android_internal/power_stats_hal.h"
+#include "src/android_internal/power_stats.h"
#include "protos/perfetto/config/power/android_power_config.pbzero.h"
#include "protos/perfetto/trace/power/battery_counters.pbzero.h"