blob: cd0d36635bd0ad4fd0e42f04f797448e7b40bff3
1 | #ifndef ANDROID_AMLOGIC_ITVSERVICE_H |
2 | #define ANDROID_AMLOGIC_ITVSERVICE_H |
3 | |
4 | #include <utils/RefBase.h> |
5 | #include <binder/IInterface.h> |
6 | #include <binder/Parcel.h> |
7 | #include <include/ITvClient.h> |
8 | #include <include/ITv.h> |
9 | |
10 | using namespace android; |
11 | |
12 | |
13 | class ITvService : public IInterface |
14 | { |
15 | public: |
16 | enum { |
17 | CONNECT = IBinder::FIRST_CALL_TRANSACTION, |
18 | }; |
19 | |
20 | public: |
21 | DECLARE_META_INTERFACE(TvService); |
22 | |
23 | virtual sp<ITv> connect(const sp<ITvClient> &tvClient) = 0; |
24 | }; |
25 | |
26 | class BnTvService: public BnInterface<ITvService> |
27 | { |
28 | public: |
29 | virtual status_t onTransact(uint32_t code, |
30 | const Parcel &data, |
31 | Parcel *reply, |
32 | uint32_t flags = 0); |
33 | }; |
34 | |
35 | #endif |
36 |