Skip to content

Commit ef8a810

Browse files
Gloria WangAndroid Code Review
authored andcommitted
Merge "Update of DRM framework"
2 parents bbd212d + c7b3ccc commit ef8a810

25 files changed

+374
-566
lines changed

api/current.xml

Lines changed: 17 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -55656,29 +55656,7 @@
5565655656
type="int"
5565755657
transient="false"
5565855658
volatile="false"
55659-
value="2012"
55660-
static="true"
55661-
final="true"
55662-
deprecated="not deprecated"
55663-
visibility="public"
55664-
>
55665-
</field>
55666-
<field name="TYPE_FINALIZE_FAILED"
55667-
type="int"
55668-
transient="false"
55669-
volatile="false"
55670-
value="2010"
55671-
static="true"
55672-
final="true"
55673-
deprecated="not deprecated"
55674-
visibility="public"
55675-
>
55676-
</field>
55677-
<field name="TYPE_INITIALIZE_FAILED"
55678-
type="int"
55679-
transient="false"
55680-
volatile="false"
55681-
value="2009"
55659+
value="2008"
5568255660
static="true"
5568355661
final="true"
5568455662
deprecated="not deprecated"
@@ -55718,7 +55696,7 @@
5571855696
visibility="public"
5571955697
>
5572055698
</field>
55721-
<field name="TYPE_REGISTRATION_FAILED"
55699+
<field name="TYPE_PROCESS_DRM_INFO_FAILED"
5572255700
type="int"
5572355701
transient="false"
5572455702
volatile="false"
@@ -55733,18 +55711,7 @@
5573355711
type="int"
5573455712
transient="false"
5573555713
volatile="false"
55736-
value="2011"
55737-
static="true"
55738-
final="true"
55739-
deprecated="not deprecated"
55740-
visibility="public"
55741-
>
55742-
</field>
55743-
<field name="TYPE_RIGHTS_ACQUISITION_FAILED"
55744-
type="int"
55745-
transient="false"
55746-
volatile="false"
55747-
value="2008"
55714+
value="2007"
5574855715
static="true"
5574955716
final="true"
5575055717
deprecated="not deprecated"
@@ -55773,17 +55740,6 @@
5577355740
visibility="public"
5577455741
>
5577555742
</field>
55776-
<field name="TYPE_UNREGISTRATION_FAILED"
55777-
type="int"
55778-
transient="false"
55779-
volatile="false"
55780-
value="2007"
55781-
static="true"
55782-
final="true"
55783-
deprecated="not deprecated"
55784-
visibility="public"
55785-
>
55786-
</field>
5578755743
</class>
5578855744
<class name="DrmEvent"
5578955745
extends="java.lang.Object"
@@ -55863,28 +55819,6 @@
5586355819
>
5586455820
</field>
5586555821
<field name="TYPE_ALL_RIGHTS_REMOVED"
55866-
type="int"
55867-
transient="false"
55868-
volatile="false"
55869-
value="1006"
55870-
static="true"
55871-
final="true"
55872-
deprecated="not deprecated"
55873-
visibility="public"
55874-
>
55875-
</field>
55876-
<field name="TYPE_DRM_INFO_ACQUIRED"
55877-
type="int"
55878-
transient="false"
55879-
volatile="false"
55880-
value="1007"
55881-
static="true"
55882-
final="true"
55883-
deprecated="not deprecated"
55884-
visibility="public"
55885-
>
55886-
</field>
55887-
<field name="TYPE_FINALIZED"
5588855822
type="int"
5588955823
transient="false"
5589055824
volatile="false"
@@ -55895,7 +55829,7 @@
5589555829
visibility="public"
5589655830
>
5589755831
</field>
55898-
<field name="TYPE_INITIALIZED"
55832+
<field name="TYPE_DRM_INFO_ACQUIRED"
5589955833
type="int"
5590055834
transient="false"
5590155835
volatile="false"
@@ -55906,7 +55840,7 @@
5590655840
visibility="public"
5590755841
>
5590855842
</field>
55909-
<field name="TYPE_REGISTERED"
55843+
<field name="TYPE_DRM_INFO_PROCESSED"
5591055844
type="int"
5591155845
transient="false"
5591255846
volatile="false"
@@ -55917,28 +55851,6 @@
5591755851
visibility="public"
5591855852
>
5591955853
</field>
55920-
<field name="TYPE_RIGHTS_ACQUIRED"
55921-
type="int"
55922-
transient="false"
55923-
volatile="false"
55924-
value="1005"
55925-
static="true"
55926-
final="true"
55927-
deprecated="not deprecated"
55928-
visibility="public"
55929-
>
55930-
</field>
55931-
<field name="TYPE_UNREGISTERED"
55932-
type="int"
55933-
transient="false"
55934-
volatile="false"
55935-
value="1004"
55936-
static="true"
55937-
final="true"
55938-
deprecated="not deprecated"
55939-
visibility="public"
55940-
>
55941-
</field>
5594255854
</class>
5594355855
<class name="DrmInfo"
5594455856
extends="java.lang.Object"
@@ -56314,6 +56226,8 @@
5631456226
>
5631556227
<parameter name="_statusCode" type="int">
5631656228
</parameter>
56229+
<parameter name="_infoType" type="int">
56230+
</parameter>
5631756231
<parameter name="_data" type="android.drm.ProcessedData">
5631856232
</parameter>
5631956233
<parameter name="_mimeType" type="java.lang.String">
@@ -56351,6 +56265,16 @@
5635156265
visibility="public"
5635256266
>
5635356267
</field>
56268+
<field name="infoType"
56269+
type="int"
56270+
transient="false"
56271+
volatile="false"
56272+
static="false"
56273+
final="true"
56274+
deprecated="not deprecated"
56275+
visibility="public"
56276+
>
56277+
</field>
5635456278
<field name="mimeType"
5635556279
type="java.lang.String"
5635656280
transient="false"
@@ -56614,17 +56538,6 @@
5661456538
<parameter name="uri" type="android.net.Uri">
5661556539
</parameter>
5661656540
</method>
56617-
<method name="loadPlugIns"
56618-
return="int"
56619-
abstract="false"
56620-
native="false"
56621-
synchronized="false"
56622-
static="false"
56623-
final="false"
56624-
deprecated="not deprecated"
56625-
visibility="public"
56626-
>
56627-
</method>
5662856541
<method name="openConvertSession"
5662956542
return="int"
5663056543
abstract="false"
@@ -56746,17 +56659,6 @@
5674656659
<parameter name="infoListener" type="android.drm.DrmManagerClient.OnInfoListener">
5674756660
</parameter>
5674856661
</method>
56749-
<method name="unloadPlugIns"
56750-
return="int"
56751-
abstract="false"
56752-
native="false"
56753-
synchronized="false"
56754-
static="false"
56755-
final="false"
56756-
deprecated="not deprecated"
56757-
visibility="public"
56758-
>
56759-
</method>
5676056662
<field name="ERROR_NONE"
5676156663
type="int"
5676256664
transient="false"

drm/common/DrmEngineBase.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ status_t DrmEngineBase::openDecryptSession(
120120
return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length);
121121
}
122122

123+
status_t DrmEngineBase::openDecryptSession(
124+
int uniqueId, DecryptHandle* decryptHandle, const char* uri) {
125+
return onOpenDecryptSession(uniqueId, decryptHandle, uri);
126+
}
127+
123128
status_t DrmEngineBase::closeDecryptSession(int uniqueId, DecryptHandle* decryptHandle) {
124129
return onCloseDecryptSession(uniqueId, decryptHandle);
125130
}

drm/common/DrmInfoStatus.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
using namespace android;
2020

2121
DrmInfoStatus::DrmInfoStatus(
22-
int _statusCode, const DrmBuffer* _drmBuffer, const String8& _mimeType) :
22+
int _statusCode, int _infoType, const DrmBuffer* _drmBuffer, const String8& _mimeType) :
2323
statusCode(_statusCode),
24+
infoType(_infoType),
2425
drmBuffer(_drmBuffer),
2526
mimeType(_mimeType) {
2627

0 commit comments

Comments
 (0)