Home
last modified time | relevance | path

Searched refs:drm (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/base/media/jni/
Dandroid_media_MediaDrm.cpp364 sp<IDrm> drm = service->makeDrm(); in MakeDrm() local
365 if (drm == NULL || (drm->initCheck() != OK && drm->initCheck() != NO_INIT)) { in MakeDrm()
369 return drm; in MakeDrm()
374 sp<IDrm> drm = MakeDrm(); in MakeDrm() local
376 if (drm == NULL) { in MakeDrm()
380 status_t err = drm->createPlugin(uuid, appPackageName); in MakeDrm()
386 return drm; in MakeDrm()
417 sp<IDrm> drm = MakeDrm(); in IsCryptoSchemeSupported() local
419 if (drm == NULL) { in IsCryptoSchemeSupported()
423 return drm->isCryptoSchemeSupported(uuid, mimeType); in IsCryptoSchemeSupported()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/
DAndroid.mk26 ifneq ($(shell grep -c 'off64_t offset' $(base)/drm/libdrmframework/plugins/common/include/IDrmEngi…
55 $(base)/include/drm \
56 $(base)/drm/libdrmframework/plugins/common/include \
57 $(base)/drm/libdrmframework/plugins/common/util/include \
58 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/common \
59 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/converter \
60 $(base)/drm/libdrmframework/plugins/forward-lock/internal-format/decoder \
63 LOCAL_MODULE_RELATIVE_PATH := drm
/frameworks/av/drm/libmediadrm/
DDrmSessionManager.cpp68 int pid, const sp<DrmSessionClientInterface>& drm, const Vector<uint8_t> &sessionId) { in addSession() argument
69 ALOGV("addSession(pid %d, drm %p, sessionId %s)", pid, drm.get(), in addSession()
74 info.drm = drm; in addSession()
119 void DrmSessionManager::removeDrm(const sp<DrmSessionClientInterface>& drm) { in removeDrm() argument
120 ALOGV("removeDrm(%p)", drm.get()); in removeDrm()
127 if (infos[j].drm == drm) { in removeDrm()
144 sp<DrmSessionClientInterface> drm; in reclaimSession() local
161 if (!getLeastUsedSession_l(lowestPriorityPid, &drm, &sessionId)) { in reclaimSession()
166 if (drm == NULL) { in reclaimSession()
173 return drm->reclaimSession(sessionId); in reclaimSession()
[all …]
DCryptoHal.cpp33 using ::android::hardware::drm::V1_0::BufferType;
34 using ::android::hardware::drm::V1_0::DestinationBuffer;
35 using ::android::hardware::drm::V1_0::ICryptoFactory;
36 using ::android::hardware::drm::V1_0::ICryptoPlugin;
37 using ::android::hardware::drm::V1_0::Mode;
38 using ::android::hardware::drm::V1_0::Pattern;
39 using ::android::hardware::drm::V1_0::SharedBuffer;
40 using ::android::hardware::drm::V1_0::Status;
41 using ::android::hardware::drm::V1_0::SubSample;
DDrmHal.cpp39 using ::android::hardware::drm::V1_0::EventType;
40 using ::android::hardware::drm::V1_0::IDrmFactory;
41 using ::android::hardware::drm::V1_0::IDrmPlugin;
42 using ::android::hardware::drm::V1_0::KeyedVector;
43 using ::android::hardware::drm::V1_0::KeyRequestType;
44 using ::android::hardware::drm::V1_0::KeyStatus;
45 using ::android::hardware::drm::V1_0::KeyStatusType;
46 using ::android::hardware::drm::V1_0::KeyType;
47 using ::android::hardware::drm::V1_0::KeyValue;
48 using ::android::hardware::drm::V1_0::SecureStop;
[all …]
DIMediaDrmService.cpp77 sp<IDrm> drm = makeDrm(); in onTransact() local
78 reply->writeStrongBinder(IInterface::asBinder(drm)); in onTransact()
DAndroid.mk10 frameworks/av/drm/libmediadrm/aidl
50 android.hardware.drm@1.0 \
/frameworks/av/services/mediadrm/tests/
DDrmSessionManager_test.cpp89 static void ExpectEqSessionInfo(const SessionInfo& info, sp<DrmSessionClientInterface> drm, in ExpectEqSessionInfo() argument
91 EXPECT_EQ(drm, info.drm); in ExpectEqSessionInfo()
136 sp<DrmSessionClientInterface> drm; in testGetLeastUsedSession() local
138 EXPECT_FALSE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession()
142 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession()
143 EXPECT_EQ(mTestDrm1, drm); in testGetLeastUsedSession()
146 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid2, &drm, &sessionId)); in testGetLeastUsedSession()
147 EXPECT_EQ(mTestDrm2, drm); in testGetLeastUsedSession()
152 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid2, &drm, &sessionId)); in testGetLeastUsedSession()
153 EXPECT_EQ(mTestDrm2, drm); in testGetLeastUsedSession()
[all …]
/frameworks/av/media/libmediaplayerservice/tests/
DDrmSessionManager_test.cpp93 static void ExpectEqSessionInfo(const SessionInfo& info, sp<DrmSessionClientInterface> drm, in ExpectEqSessionInfo() argument
95 EXPECT_EQ(drm, info.drm); in ExpectEqSessionInfo()
140 sp<DrmSessionClientInterface> drm; in testGetLeastUsedSession() local
142 EXPECT_FALSE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession()
146 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession()
147 EXPECT_EQ(mTestDrm1, drm); in testGetLeastUsedSession()
150 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid2, &drm, &sessionId)); in testGetLeastUsedSession()
151 EXPECT_EQ(mTestDrm2, drm); in testGetLeastUsedSession()
156 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid2, &drm, &sessionId)); in testGetLeastUsedSession()
157 EXPECT_EQ(mTestDrm2, drm); in testGetLeastUsedSession()
[all …]
/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/
DMediaDrmSigner.java98 public static CertificateRequest getCertificateRequest(MediaDrm drm, int certType, in getCertificateRequest() argument
100 return new CertificateRequest(drm.getCertificateRequest(certType, certAuthority)); in getCertificateRequest()
118 public static Certificate provideCertificateResponse(MediaDrm drm, byte[] response) in provideCertificateResponse() argument
120 return new Certificate(drm.provideCertificateResponse(response)); in provideCertificateResponse()
133 public static byte[] signRSA(MediaDrm drm, byte[] sessionId, in signRSA() argument
135 return drm.signRSA(sessionId, algorithm, wrappedKey, message); in signRSA()
/frameworks/av/drm/drmserver/
Ddrmserver.rc1 service drm /system/bin/drmserver
3 user drm
4 group drm system inet drmrpc readproc
DAndroid.mk36 $(TOP)/frameworks/av/drm/libdrmframework/include \
37 $(TOP)/frameworks/av/drm/libdrmframework/plugins/common/include
/frameworks/av/media/libmedia/include/media/
DDrmSessionManager.h36 sp<DrmSessionClientInterface> drm; member
50 …void addSession(int pid, const sp<DrmSessionClientInterface>& drm, const Vector<uint8_t>& sessionI…
53 void removeDrm(const sp<DrmSessionClientInterface>& drm);
65 int pid, sp<DrmSessionClientInterface>* drm, Vector<uint8_t>* sessionId);
DCryptoHal.h28 using ::android::hardware::drm::V1_0::ICryptoFactory;
29 using ::android::hardware::drm::V1_0::ICryptoPlugin;
30 using ::android::hardware::drm::V1_0::SharedBuffer;
DDrmHal.h29 using ::android::hardware::drm::V1_0::EventType;
30 using ::android::hardware::drm::V1_0::IDrmFactory;
31 using ::android::hardware::drm::V1_0::IDrmPlugin;
32 using ::android::hardware::drm::V1_0::IDrmPluginListener;
33 using ::android::hardware::drm::V1_0::KeyStatus;
/frameworks/av/include/media/
DDrmSessionManager.h36 sp<DrmSessionClientInterface> drm; member
50 …void addSession(int pid, const sp<DrmSessionClientInterface>& drm, const Vector<uint8_t>& sessionI…
53 void removeDrm(const sp<DrmSessionClientInterface>& drm);
65 int pid, sp<DrmSessionClientInterface>* drm, Vector<uint8_t>* sessionId);
DCryptoHal.h28 using ::android::hardware::drm::V1_0::ICryptoFactory;
29 using ::android::hardware::drm::V1_0::ICryptoPlugin;
30 using ::android::hardware::drm::V1_0::SharedBuffer;
DDrmHal.h29 using ::android::hardware::drm::V1_0::EventType;
30 using ::android::hardware::drm::V1_0::IDrmFactory;
31 using ::android::hardware::drm::V1_0::IDrmPlugin;
32 using ::android::hardware::drm::V1_0::IDrmPluginListener;
33 using ::android::hardware::drm::V1_0::KeyStatus;
/frameworks/av/drm/libdrmframework/plugins/passthru/
DAndroid.mk33 $(TOP)/frameworks/av/drm/libdrmframework/include \
34 $(TOP)/frameworks/av/drm/libdrmframework/plugins/passthru/include \
35 $(TOP)/frameworks/av/drm/libdrmframework/plugins/common/include \
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDrm.cpp44 sp<IDrm> drm = service->makeDrm(); in CreateDrm() local
45 if (drm == NULL) { in CreateDrm()
51 status = drm->initCheck(); in CreateDrm()
56 return drm; in CreateDrm()
158 sp<IDrm> drm = CreateDrm(&status); in getSupportedDrmSchemes() local
159 if (drm != NULL) { in getSupportedDrmSchemes()
162 if (drm->isCryptoSchemeSupported(uuid.ptr(), String8())) in getSupportedDrmSchemes()
166 drm.clear(); in getSupportedDrmSchemes()
/frameworks/av/drm/libdrmframework/plugins/common/util/
DAndroid.mk29 $(base)/include/drm \
30 $(base)/include/drm/plugins \
/frameworks/base/drm/jni/
DAndroid.mk37 $(TOP)/frameworks/av/drm/libdrmframework/include \
38 $(TOP)/frameworks/av/drm/libdrmframework/plugins/common/include \
/frameworks/base/drm/java/android/drm/
DDrmOutputStream.java17 package android.drm;
19 import static android.drm.DrmConvertedStatus.STATUS_OK;
20 import static android.drm.DrmManagerClient.INVALID_SESSION;
/frameworks/av/drm/common/
DAndroid.mk38 $(TOP)/frameworks/av/drm/libdrmframework/include \
39 $(TOP)/frameworks/av/drm/libdrmframework/plugins/common/include
/frameworks/av/media/ndk/
DNdkMediaDrm.cpp160 sp<IDrm> drm = service->makeDrm(); in CreateDrm() local
161 if (drm == NULL || (drm->initCheck() != OK && drm->initCheck() != NO_INIT)) { in CreateDrm()
164 return drm; in CreateDrm()
169 sp<IDrm> drm = CreateDrm(); in CreateDrmFromUUID() local
171 if (drm == NULL) { in CreateDrmFromUUID()
176 status_t err = drm->createPlugin(uuid, nullPackageName); in CreateDrmFromUUID()
182 return drm; in CreateDrmFromUUID()
187 sp<IDrm> drm = CreateDrm(); in AMediaDrm_isCryptoSchemeSupported() local
189 if (drm == NULL) { in AMediaDrm_isCryptoSchemeSupported()
194 return drm->isCryptoSchemeSupported(uuid, mimeStr); in AMediaDrm_isCryptoSchemeSupported()

123