summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorKelly Rossmoyer <krossmo@google.com>2018-10-12 17:38:28 -0700
committerKelly Rossmoyer <krossmo@google.com>2018-10-17 21:48:09 +0000
commit1000b4e9fa0e72c81f2fcee40cf5ea953aec4efb (patch)
tree0053ea7269bdefe7e61315d7599038ed22e95e82 /Android.bp
parent8b6ec3fdf79c44c42e70511e2554d81e7ab21da4 (diff)
downloadwahoo-1000b4e9fa0e72c81f2fcee40cf5ea953aec4efb.tar.gz
PowerHAL: add debug support for low power stats
The HAL API includes a "debug" interface that can be invoked from the command line to get debug output for a particular HAL. While the existing PowerHAL implementation includes support for the "debug" interface, it only includes data for the performance hinting side of the HAL. To facilitate device troubleshooting (not just of the HAL itself, but of power drain), this change expands that implementation to also include the output from calls to getPlatformLowPowerStats() and getSubsystemLowPowerStats(). On existing in-market devices where this support is present, the command lshal debug android.hardware.power@1.3::IPower/default will produce the "debug" output. The code for dumping the PowerHAL stats data is generic across device-specific PowerHAL implementations, so it is all pushed up into a new library (see topic CLs) that will eventually host additional PowerHAL implementation code. Bug: 116750864 Test: Ran code on an active P17 device. Test: Added temporary test code (triggered by appending " test" to the command above) to cover all base cases of data being present absent (test code is included in first uploaded patchset on the corresponding crosshatch CL). Change-Id: Id97534a2a9fe05bbca614c763c907daea37e9723
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 00000000..61f4f2f2
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,17 @@
+//
+// Copyright (C) 2018 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.
+soong_namespace {
+ imports: ["hardware/google/pixel"],
+}