blob: db67c23137928d9dddfb177685c8eb5a98d313da [file] [log] [blame]
Jeff Tinkera69729d2016-02-12 08:47:00 -08001/*
2**
3** Copyright 2015, The Android Open Source Project
4**
5** Licensed under the Apache License, Version 2.0 (the "License");
6** you may not use this file except in compliance with the License.
7** You may obtain a copy of the License at
8**
9** http://www.apache.org/licenses/LICENSE-2.0
10**
11** Unless required by applicable law or agreed to in writing, software
12** distributed under the License is distributed on an "AS IS" BASIS,
13** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14** See the License for the specific language governing permissions and
15** limitations under the License.
16*/
17
18#include <stdint.h>
19#include <sys/types.h>
20
21#include <binder/Parcel.h>
22#include <binder/IMemory.h>
Jeff Tinker7d2c6e82018-02-16 16:14:59 -080023#include <mediadrm/ICrypto.h>
24#include <mediadrm/IDrm.h>
25#include <mediadrm/IMediaDrmService.h>
Jeff Tinkera69729d2016-02-12 08:47:00 -080026
27#include <utils/Errors.h> // for status_t
28#include <utils/String8.h>
29
30namespace android {
31
Jeff Tinkera69729d2016-02-12 08:47:00 -080032class BpMediaDrmService: public BpInterface<IMediaDrmService>
33{
34public:
Chih-Hung Hsieh64a28702016-05-03 09:52:51 -070035 explicit BpMediaDrmService(const sp<IBinder>& impl)
Jeff Tinkera69729d2016-02-12 08:47:00 -080036 : BpInterface<IMediaDrmService>(impl)
37 {
38 }
39
Jeff Tinkera69729d2016-02-12 08:47:00 -080040};
41
42IMPLEMENT_META_INTERFACE(MediaDrmService, "android.media.IMediaDrmService");
43
44// ----------------------------------------------------------------------
45
46status_t BnMediaDrmService::onTransact(
47 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags)
48{
49 switch (code) {
Jeff Tinkera69729d2016-02-12 08:47:00 -080050 default:
51 return BBinder::onTransact(code, data, reply, flags);
52 }
53}
54
55// ----------------------------------------------------------------------------
56
Jeff Tinkera69729d2016-02-12 08:47:00 -080057} // namespace android