Home
last modified time | relevance | path

Searched refs:keyStatus (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp464 DrmPlugin::KeyStatus keyStatus; in setPropertyString() local
466 keyStatus.mKeyId.clear(); in setPropertyString()
467 keyStatus.mKeyId.appendArray(keyId1, sizeof(keyId1)); in setPropertyString()
468 keyStatus.mType = DrmPlugin::kKeyStatusType_Usable; in setPropertyString()
469 keyStatusList.add(keyStatus); in setPropertyString()
472 keyStatus.mKeyId.clear(); in setPropertyString()
473 keyStatus.mKeyId.appendArray(keyId2, sizeof(keyId2)); in setPropertyString()
474 keyStatus.mType = DrmPlugin::kKeyStatusType_Expired; in setPropertyString()
475 keyStatusList.add(keyStatus); in setPropertyString()
478 keyStatus.mKeyId.clear(); in setPropertyString()
[all …]
/frameworks/av/drm/libmediadrm/interface/mediadrm/
DDrmUtils.h77 for (const auto &keyStatus : keyStatusList) { in WriteKeysChange() local
78 WriteByteArray(obj, keyStatus.keyId); in WriteKeysChange()
79 obj.writeInt32(keyStatus.type); in WriteKeysChange()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DDrmPlugin.cpp418 KeyStatus_V1_2 keyStatus; in provideKeyResponse() local
421 keyStatus.keyId = keyId1; in provideKeyResponse()
422 keyStatus.type = V1_2::KeyStatusType::USABLE; in provideKeyResponse()
423 keysStatus.push_back(keyStatus); in provideKeyResponse()
426 keyStatus.keyId = keyId2; in provideKeyResponse()
427 keyStatus.type = V1_2::KeyStatusType::EXPIRED; in provideKeyResponse()
428 keysStatus.push_back(keyStatus); in provideKeyResponse()
431 keyStatus.keyId = keyId3; in provideKeyResponse()
432 keyStatus.type = V1_2::KeyStatusType::USABLEINFUTURE; in provideKeyResponse()
433 keysStatus.push_back(keyStatus); in provideKeyResponse()
/frameworks/av/media/ndk/
DNdkMediaDrm.cpp135 AMediaDrmKeyStatus keyStatus; in sendKeysChange() local
136 keyStatus.keyId.ptr = drmKeyStatus.keyId.data(); in sendKeysChange()
137 keyStatus.keyId.length = drmKeyStatus.keyId.size(); in sendKeysChange()
138 keyStatus.keyType = static_cast<AMediaDrmKeyStatusType>(drmKeyStatus.type); in sendKeysChange()
139 keysStatus.push(keyStatus); in sendKeysChange()
/frameworks/av/media/ndk/include/media/
DNdkMediaDrm.h165 const AMediaDrmSessionId *sessionId, const AMediaDrmKeyStatus *keyStatus,
/frameworks/base/media/jni/
Dandroid_media_MediaDrm.cpp210 KeyStatusFields keyStatus; member
527 clazz = gFields.keyStatus.classId; in sendKeysChange()
528 for (const auto &keyStatus : keyStatusList) { in sendKeysChange() local
529 jbyteArray jKeyId(hidlVectorToJByteArray(keyStatus.keyId)); in sendKeysChange()
530 jint jStatusCode(keyStatus.type); in sendKeysChange()
531 jobject jKeyStatus = env->NewObject(clazz, gFields.keyStatus.init, jKeyId, jStatusCode); in sendKeysChange()
908 gFields.keyStatus.classId = static_cast<jclass>(env->NewGlobalRef(clazz)); in android_media_MediaDrm_native_init()
909 GET_METHOD_ID(gFields.keyStatus.init, clazz, "<init>", "([BI)V"); in android_media_MediaDrm_native_init()
/frameworks/av/drm/libmediadrm/
DDrmHal.cpp513 const KeyStatus &keyStatus = hKeyStatusList[i]; in sendKeysChange_1_2() local
515 switch(keyStatus.type) { in sendKeysChange_1_2()
536 keyStatusList.push_back({type, keyStatus.keyId}); in sendKeysChange_1_2()
537 mMetrics.mKeyStatusChangeCounter.Increment(keyStatus.type); in sendKeysChange_1_2()