summaryrefslogtreecommitdiffstats
path: root/Power.cpp
diff options
context:
space:
mode:
authorPhilip Cuadra <philipcuadra@google.com>2017-07-11 14:50:25 -0700
committerRashed Abdel-Tawab <rashed@linux.com>2017-12-29 23:49:55 +0200
commitc1f872c20b60de3e68987e1fe7e01088287ab75e (patch)
treee0565cacb04d8f0168778e5a44babbf429175925 /Power.cpp
parent00b218507cd75ae86a1ab8d11054a87d8a8f44a3 (diff)
downloadandroid_hardware_qcom_power-c1f872c20b60de3e68987e1fe7e01088287ab75e.tar.gz
android_hardware_qcom_power-c1f872c20b60de3e68987e1fe7e01088287ab75e.tar.bz2
android_hardware_qcom_power-c1f872c20b60de3e68987e1fe7e01088287ab75e.zip
power: Add powerHintAsync functionality
Add an async version of powerHint called powerHintAsync. Bug: 62377008 Test: Take systrace, confirm powerHint is an async HIDL transaction Change-Id: I481d74e02c51756306400cc19000db644fce6559
Diffstat (limited to 'Power.cpp')
-rw-r--r--Power.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Power.cpp b/Power.cpp
index 186f325..5b838ff 100644
--- a/Power.cpp
+++ b/Power.cpp
@@ -165,6 +165,11 @@ done:
return Void();
}
+Return<void> Power::powerHintAsync(PowerHint hint, int32_t data) {
+ // just call the normal power hint in this oneway function
+ return powerHint(hint, data);
+}
+
} // namespace implementation
} // namespace V1_1
} // namespace power