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
This commit is contained in:
Philip Cuadra
2017-07-11 14:50:25 -07:00
parent 4293069bf3
commit 3a91edbc6c
2 changed files with 6 additions and 0 deletions

View File

@@ -191,6 +191,11 @@ bool Power::isSupportedGovernor() {
}
}
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

View File

@@ -49,6 +49,7 @@ struct Power : public IPower {
// Methods from ::android::hardware::power::V1_1::IPower follow.
Return<void> getSubsystemLowPowerStats(getSubsystemLowPowerStats_cb _hidl_cb) override;
Return<void> powerHintAsync(PowerHint hint, int32_t data) override;
// Methods from ::android::hidl::base::V1_0::IBase follow.