blob: f0ea418b6587a25d3eb946eeb026cdb7d62f1ec7 [file] [log] [blame]
Amy Zhangb0f63ab2021-01-06 17:19:27 -08001/*
2 * Copyright 2021 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#define LOG_TAG "DescramblerClient"
18
19#include <android-base/logging.h>
20#include <utils/Log.h>
21
22#include "DescramblerClient.h"
23
24using ::android::hardware::tv::tuner::V1_0::Result;
25
26namespace android {
27
28/////////////// DescramblerClient ///////////////////////
29
30// TODO: pending aidl interface
31DescramblerClient::DescramblerClient() {
32 //mTunerDescrambler = tunerDescrambler;
33}
34
35DescramblerClient::~DescramblerClient() {
36 //mTunerDescrambler = NULL;
37 mDescrambler = NULL;
38}
39
40// TODO: remove after migration to Tuner Service is done.
41void DescramblerClient::setHidlDescrambler(sp<IDescrambler> descrambler) {
42 mDescrambler = descrambler;
43}
44
45Result DescramblerClient::setDemuxSource(sp<DemuxClient> /*demuxClient*/) {
46 return Result::SUCCESS;
47}
48
49Result DescramblerClient::setKeyToken(vector<uint8_t> /*keyToken*/) {
50 return Result::SUCCESS;
51}
52
53Result DescramblerClient::addPid(DemuxPid /*pid*/, sp<FilterClient> /*optionalSourceFilter*/) {
54 return Result::SUCCESS;
55}
56
57Result DescramblerClient::removePid(DemuxPid /*pid*/, sp<FilterClient> /*optionalSourceFilter*/) {
58 return Result::SUCCESS;
59}
60
61Result DescramblerClient::close() {
62 return Result::SUCCESS;
63}
64
65/////////////// DescramblerClient Helper Methods ///////////////////////
66
67} // namespace android