blob: a4ce9895f249d735ef4cccc68b138ab61d3c6f21
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 | public: |
15 | enum { |
16 | CONNECT = IBinder::FIRST_CALL_TRANSACTION, |
17 | }; |
18 | |
19 | public: |
20 | DECLARE_META_INTERFACE(TvService); |
21 | |
22 | virtual sp<ITv> connect(const sp<ITvClient> &tvClient) = 0; |
23 | }; |
24 | |
25 | class BnTvService: public BnInterface<ITvService> { |
26 | public: |
27 | virtual status_t onTransact(uint32_t code, |
28 | const Parcel &data, |
29 | Parcel *reply, |
30 | uint32_t flags = 0); |
31 | }; |
32 | |
33 | #endif |
34 |