summaryrefslogtreecommitdiff
path: root/PowerHintSession.h
diff options
context:
space:
mode:
Diffstat (limited to 'PowerHintSession.h')
-rw-r--r--PowerHintSession.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/PowerHintSession.h b/PowerHintSession.h
index a56713a..82747c2 100644
--- a/PowerHintSession.h
+++ b/PowerHintSession.h
@@ -8,9 +8,7 @@
#include <aidl/android/hardware/power/WorkDuration.h>
#include <aidl/android/hardware/power/BnPowerHintSession.h>
-#if (PLATFORM_SDK_VERSION >= 34)
#include <aidl/android/hardware/power/SessionHint.h>
-#endif
std::shared_ptr<aidl::android::hardware::power::IPowerHintSession> setPowerHintSession();
int64_t getSessionPreferredRate();
@@ -23,9 +21,7 @@ public:
ndk::ScopedAStatus pause() override;
ndk::ScopedAStatus resume() override;
ndk::ScopedAStatus close() override;
- #if (PLATFORM_SDK_VERSION >= 34)
ndk::ScopedAStatus sendHint(aidl::android::hardware::power::SessionHint hint) override;
ndk::ScopedAStatus setThreads(const std::vector<int32_t>& threadIds) override;
- #endif
};
-#endif /* __POWERHINTSESSION__ */ \ No newline at end of file
+#endif /* __POWERHINTSESSION__ */