mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-31 07:34:34 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user