summaryrefslogtreecommitdiffstats
path: root/src/doppelganger/schedulingpolicyservice.h
blob: 377265dcae6728f192722e8cecaa4f6760684c8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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