1927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski/*
2927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski * Copyright (C) 2014 The Android Open Source Project
3927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski *
4927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski * Licensed under the Apache License, Version 2.0 (the "License");
5927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski * you may not use this file except in compliance with the License.
6927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski * You may obtain a copy of the License at
7927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski *
8927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski *      http://www.apache.org/licenses/LICENSE-2.0
9927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski *
10927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski * Unless required by applicable law or agreed to in writing, software
11927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski * distributed under the License is distributed on an "AS IS" BASIS,
12927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski * See the License for the specific language governing permissions and
14927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski * limitations under the License.
15927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski */
16927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
17927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski#include "NoOpDrmManagerClientImpl.h"
18927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
19927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskinamespace android {
20927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
21927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskivoid NoOpDrmManagerClientImpl::remove(int uniqueId) {
22927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
23927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
24927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskivoid NoOpDrmManagerClientImpl::addClient(int uniqueId) {
25927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
26927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
27927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskivoid NoOpDrmManagerClientImpl::removeClient(int uniqueId) {
28927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
29927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
30927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskistatus_t NoOpDrmManagerClientImpl::setOnInfoListener(
31927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski            int uniqueId, const sp<DrmManagerClient::OnInfoListener>& infoListener) {
32927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return UNKNOWN_ERROR;
33927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
34927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
35927634a98167e24241b89d80a1ea4511c0bb9cd1Adam LesinskiDrmConstraints* NoOpDrmManagerClientImpl::getConstraints(int uniqueId, const String8* path, const int action) {
36927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return NULL;
37927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
38927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
39927634a98167e24241b89d80a1ea4511c0bb9cd1Adam LesinskiDrmMetadata* NoOpDrmManagerClientImpl::getMetadata(int uniqueId, const String8* path) {
40927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return NULL;
41927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
42927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
43927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskibool NoOpDrmManagerClientImpl::canHandle(int uniqueId, const String8& path, const String8& mimeType) {
44927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return false;
45927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
46927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
47927634a98167e24241b89d80a1ea4511c0bb9cd1Adam LesinskiDrmInfoStatus* NoOpDrmManagerClientImpl::processDrmInfo(int uniqueId, const DrmInfo* drmInfo) {
48927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return NULL;
49927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
50927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
51927634a98167e24241b89d80a1ea4511c0bb9cd1Adam LesinskiDrmInfo* NoOpDrmManagerClientImpl::acquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest) {
52927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return NULL;
53927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
54927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
55927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskistatus_t NoOpDrmManagerClientImpl::saveRights(int uniqueId, const DrmRights& drmRights,
56927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski            const String8& rightsPath, const String8& contentPath) {
57927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return UNKNOWN_ERROR;
58927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
59927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
60927634a98167e24241b89d80a1ea4511c0bb9cd1Adam LesinskiString8 NoOpDrmManagerClientImpl::getOriginalMimeType(int uniqueId, const String8& path, int fd) {
61927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return String8();
62927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
63927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
64927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskiint NoOpDrmManagerClientImpl::getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType) {
65927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return -1;
66927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
67927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
68927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskiint NoOpDrmManagerClientImpl::checkRightsStatus(int uniqueId, const String8& path, int action) {
69927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return -1;
70927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
71927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
72927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskistatus_t NoOpDrmManagerClientImpl::consumeRights(int uniqueId, sp<DecryptHandle> &decryptHandle, int action, bool reserve) {
73927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return UNKNOWN_ERROR;
74927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
75927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
76927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskistatus_t NoOpDrmManagerClientImpl::setPlaybackStatus(
77927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski            int uniqueId, sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position) {
78927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return UNKNOWN_ERROR;
79927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
80927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
81927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskibool NoOpDrmManagerClientImpl::validateAction(
82927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski        int uniqueId, const String8& path, int action, const ActionDescription& description) {
83927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return false;
84927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
85927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
86927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskistatus_t NoOpDrmManagerClientImpl::removeRights(int uniqueId, const String8& path) {
87927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return UNKNOWN_ERROR;
88927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
89927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
90927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskistatus_t NoOpDrmManagerClientImpl::removeAllRights(int uniqueId) {
91927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return UNKNOWN_ERROR;
92927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
93927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
94927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskiint NoOpDrmManagerClientImpl::openConvertSession(int uniqueId, const String8& mimeType) {
95927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return -1;
96927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
97927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
98927634a98167e24241b89d80a1ea4511c0bb9cd1Adam LesinskiDrmConvertedStatus* NoOpDrmManagerClientImpl::convertData(int uniqueId, int convertId, const DrmBuffer* inputData) {
99927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return NULL;
100927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
101927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
102927634a98167e24241b89d80a1ea4511c0bb9cd1Adam LesinskiDrmConvertedStatus* NoOpDrmManagerClientImpl::closeConvertSession(int uniqueId, int convertId) {
103927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return NULL;
104927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
105927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
106927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskistatus_t NoOpDrmManagerClientImpl::getAllSupportInfo(int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) {
107927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return UNKNOWN_ERROR;
108927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
109927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
110927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskisp<DecryptHandle> NoOpDrmManagerClientImpl::openDecryptSession(
111927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski            int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
112927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return NULL;
113927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
114927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
115927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskisp<DecryptHandle> NoOpDrmManagerClientImpl::openDecryptSession(
116927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski            int uniqueId, const char* uri, const char* mime) {
117927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return NULL;
118927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
119927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
120927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskisp<DecryptHandle> NoOpDrmManagerClientImpl::openDecryptSession(int uniqueId, const DrmBuffer& buf,
121927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski            const String8& mimeType) {
122927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return NULL;
123927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
124927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
125927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskistatus_t NoOpDrmManagerClientImpl::closeDecryptSession(int uniqueId, sp<DecryptHandle> &decryptHandle) {
126927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return UNKNOWN_ERROR;
127927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
128927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
129927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskistatus_t NoOpDrmManagerClientImpl::initializeDecryptUnit(int uniqueId, sp<DecryptHandle> &decryptHandle,
130927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski            int decryptUnitId, const DrmBuffer* headerInfo) {
131927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return UNKNOWN_ERROR;
132927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
133927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
134927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskistatus_t NoOpDrmManagerClientImpl::decrypt(int uniqueId, sp<DecryptHandle> &decryptHandle, int decryptUnitId,
135927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski            const DrmBuffer* encBuffer, DrmBuffer** decBuffer, DrmBuffer* IV) {
136927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return UNKNOWN_ERROR;
137927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
138927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
139927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskistatus_t NoOpDrmManagerClientImpl::finalizeDecryptUnit(int uniqueId, sp<DecryptHandle> &decryptHandle, int decryptUnitId) {
140927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return UNKNOWN_ERROR;
141927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
142927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
143927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskissize_t NoOpDrmManagerClientImpl::pread(int uniqueId, sp<DecryptHandle> &decryptHandle,
144927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski            void* buffer, ssize_t numBytes, off64_t offset) {
145927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return -1;
146927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
147927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
148927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinskistatus_t NoOpDrmManagerClientImpl::notify(const DrmInfoEvent& event) {
149927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski    return UNKNOWN_ERROR;
150927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
151927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski
152927634a98167e24241b89d80a1ea4511c0bb9cd1Adam Lesinski}
153