Jaewoong Jung | 88888a4 | 2019-11-16 18:45:26 +0000 | [diff] [blame] | 1 | /* |
| 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> |
| 23 | #include <mediadrm/ICrypto.h> |
| 24 | #include <mediadrm/IDrm.h> |
| 25 | #include <mediadrm/IMediaDrmService.h> |
| 26 | |
| 27 | #include <utils/Errors.h> // for status_t |
| 28 | #include <utils/String8.h> |
| 29 | |
| 30 | namespace android { |
| 31 | |
| 32 | class BpMediaDrmService: public BpInterface<IMediaDrmService> |
| 33 | { |
| 34 | public: |
| 35 | explicit BpMediaDrmService(const sp<IBinder>& impl) |
| 36 | : BpInterface<IMediaDrmService>(impl) |
| 37 | { |
| 38 | } |
| 39 | |
| 40 | }; |
| 41 | |
| 42 | IMPLEMENT_META_INTERFACE(MediaDrmService, "android.media.IMediaDrmService"); |
| 43 | |
| 44 | // ---------------------------------------------------------------------- |
| 45 | |
| 46 | status_t BnMediaDrmService::onTransact( |
| 47 | uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) |
| 48 | { |
| 49 | switch (code) { |
| 50 | default: |
| 51 | return BBinder::onTransact(code, data, reply, flags); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | // ---------------------------------------------------------------------------- |
| 56 | |
| 57 | } // namespace android |