FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
android_frameworks_base/drm/common/DrmEngineBase.cpp at ics · sirdigitalpython/android_frameworks_base · GitHub
sirdigitalpython
/
android_frameworks_base
Public
forked from
zsol/android_frameworks_base
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
android_frameworks_base
/
drm
/
common
/
DrmEngineBase.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
156 lines (121 loc) · 5.13 KB
Breadcrumbs
android_frameworks_base
/
drm
/
common
/
DrmEngineBase.cpp
Copy path
File metadata and controls
156 lines (121 loc) · 5.13 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#
include
"
DrmEngineBase.h
"
using
namespace
android
;
DrmEngineBase::DrmEngineBase
() {
}
DrmEngineBase::~DrmEngineBase
() {
}
DrmConstraints*
DrmEngineBase::getConstraints
(
int
uniqueId,
const
String8* path,
int
action) {
return
onGetConstraints
(uniqueId, path, action);
}
DrmMetadata*
DrmEngineBase::getMetadata
(
int
uniqueId,
const
String8* path) {
return
onGetMetadata
(uniqueId, path);
}
status_t
DrmEngineBase::initialize
(
int
uniqueId) {
return
onInitialize
(uniqueId);
}
status_t
DrmEngineBase::setOnInfoListener
(
int
uniqueId,
const
IDrmEngine::OnInfoListener* infoListener) {
return
onSetOnInfoListener
(uniqueId, infoListener);
}
status_t
DrmEngineBase::terminate
(
int
uniqueId) {
return
onTerminate
(uniqueId);
}
bool
DrmEngineBase::canHandle
(
int
uniqueId,
const
String8& path) {
return
onCanHandle
(uniqueId, path);
}
DrmInfoStatus*
DrmEngineBase::processDrmInfo
(
int
uniqueId,
const
DrmInfo* drmInfo) {
return
onProcessDrmInfo
(uniqueId, drmInfo);
}
status_t
DrmEngineBase::saveRights
(
int
uniqueId,
const
DrmRights& drmRights,
const
String8& rightsPath,
const
String8& contentPath) {
return
onSaveRights
(uniqueId, drmRights, rightsPath, contentPath);
}
DrmInfo*
DrmEngineBase::acquireDrmInfo
(
int
uniqueId,
const
DrmInfoRequest* drmInfoRequest) {
return
onAcquireDrmInfo
(uniqueId, drmInfoRequest);
}
String8
DrmEngineBase::getOriginalMimeType
(
int
uniqueId,
const
String8& path) {
return
onGetOriginalMimeType
(uniqueId, path);
}
int
DrmEngineBase::getDrmObjectType
(
int
uniqueId,
const
String8& path,
const
String8& mimeType) {
return
onGetDrmObjectType
(uniqueId, path, mimeType);
}
int
DrmEngineBase::checkRightsStatus
(
int
uniqueId,
const
String8& path,
int
action) {
return
onCheckRightsStatus
(uniqueId, path, action);
}
status_t
DrmEngineBase::consumeRights
(
int
uniqueId, DecryptHandle* decryptHandle,
int
action,
bool
reserve) {
return
onConsumeRights
(uniqueId, decryptHandle, action, reserve);
}
status_t
DrmEngineBase::setPlaybackStatus
(
int
uniqueId, DecryptHandle* decryptHandle,
int
playbackStatus,
int64_t
position) {
return
onSetPlaybackStatus
(uniqueId, decryptHandle, playbackStatus, position);
}
bool
DrmEngineBase::validateAction
(
int
uniqueId,
const
String8& path,
int
action,
const
ActionDescription& description) {
return
onValidateAction
(uniqueId, path, action, description);
}
status_t
DrmEngineBase::removeRights
(
int
uniqueId,
const
String8& path) {
return
onRemoveRights
(uniqueId, path);
}
status_t
DrmEngineBase::removeAllRights
(
int
uniqueId) {
return
onRemoveAllRights
(uniqueId);
}
status_t
DrmEngineBase::openConvertSession
(
int
uniqueId,
int
convertId) {
return
onOpenConvertSession
(uniqueId, convertId);
}
DrmConvertedStatus*
DrmEngineBase::convertData
(
int
uniqueId,
int
convertId,
const
DrmBuffer* inputData) {
return
onConvertData
(uniqueId, convertId, inputData);
}
DrmConvertedStatus*
DrmEngineBase::closeConvertSession
(
int
uniqueId,
int
convertId) {
return
onCloseConvertSession
(uniqueId, convertId);
}
DrmSupportInfo*
DrmEngineBase::getSupportInfo
(
int
uniqueId) {
return
onGetSupportInfo
(uniqueId);
}
status_t
DrmEngineBase::openDecryptSession
(
int
uniqueId, DecryptHandle* decryptHandle,
int
fd,
off64_t
offset,
off64_t
length) {
return
onOpenDecryptSession
(uniqueId, decryptHandle, fd, offset, length);
}
status_t
DrmEngineBase::openDecryptSession
(
int
uniqueId, DecryptHandle* decryptHandle,
const
char
* uri) {
return
onOpenDecryptSession
(uniqueId, decryptHandle, uri);
}
status_t
DrmEngineBase::closeDecryptSession
(
int
uniqueId, DecryptHandle* decryptHandle) {
return
onCloseDecryptSession
(uniqueId, decryptHandle);
}
status_t
DrmEngineBase::initializeDecryptUnit
(
int
uniqueId, DecryptHandle* decryptHandle,
int
decryptUnitId,
const
DrmBuffer* headerInfo) {
return
onInitializeDecryptUnit
(uniqueId, decryptHandle, decryptUnitId, headerInfo);
}
status_t
DrmEngineBase::decrypt
(
int
uniqueId, DecryptHandle* decryptHandle,
int
decryptUnitId,
const
DrmBuffer* encBuffer, DrmBuffer** decBuffer, DrmBuffer*
IV
) {
return
onDecrypt
(uniqueId, decryptHandle, decryptUnitId, encBuffer, decBuffer,
IV
);
}
status_t
DrmEngineBase::finalizeDecryptUnit
(
int
uniqueId, DecryptHandle* decryptHandle,
int
decryptUnitId) {
return
onFinalizeDecryptUnit
(uniqueId, decryptHandle, decryptUnitId);
}
ssize_t
DrmEngineBase::pread
(
int
uniqueId, DecryptHandle* decryptHandle,
void
* buffer,
ssize_t
numBytes,
off64_t
offset) {
return
onPread
(uniqueId, decryptHandle, buffer, numBytes, offset);
}
Back
|
FazBrowse Home
|
New Git URL