summaryrefslogtreecommitdiffstats
path: root/src/doppelganger/schedulingpolicyservice.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/doppelganger/schedulingpolicyservice.h')
-rw-r--r--src/doppelganger/schedulingpolicyservice.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/doppelganger/schedulingpolicyservice.h b/src/doppelganger/schedulingpolicyservice.h
new file mode 100644
index 0000000..377265d
--- /dev/null
+++ b/src/doppelganger/schedulingpolicyservice.h
@@ -0,0 +1,21 @@
+#ifndef SCHEDULINGPOLICYSERVICE_H
+#define SCHEDULINGPOLICYSERVICE_H
+
+#include <frameworks/av/services/audioflinger/ISchedulingPolicyService.h>
+#include <binder/Parcel.h>
+
+class SchedulingPolicyService : public android::BnSchedulingPolicyService
+{
+public:
+ static void instantiate();
+
+ android::status_t onTransact(uint32_t code, const android::Parcel &data,
+ android::Parcel *reply, uint32_t flags);
+
+ int requestPriority(int32_t pid, int32_t tid, int32_t prio);
+
+private:
+ SchedulingPolicyService();
+};
+
+#endif // SCHEDULINGPOLICYSERVICE_H