/foundation/multimedia/drm_framework/frameworks/native/test/unittest/src/ |
H A D | drm_framework_unittest.cpp | 496 MediaKeySession *mediaKeySession = nullptr; in HWTEST_F() local 503 errNo = OH_MediaKeySystem_CreateMediaKeySession(mediaKeySystem, &contentProtectionLevel, &mediaKeySession); in HWTEST_F() 504 errNo = OH_MediaKeySession_Destroy(mediaKeySession); in HWTEST_F() 522 MediaKeySession *mediaKeySession = nullptr; in HWTEST_F() local 527 errNo = OH_MediaKeySystem_CreateMediaKeySession(mediaKeySystem, &contentProtectionLevel, &mediaKeySession); in HWTEST_F() 528 EXPECT_NE(mediaKeySession, nullptr); in HWTEST_F() 531 errNo = OH_MediaKeySession_RequireSecureDecoderModule(mediaKeySession, "video/mp4", &requireSecureDecoder); in HWTEST_F() 533 errNo = OH_MediaKeySession_Destroy(mediaKeySession); in HWTEST_F() 552 MediaKeySession *mediaKeySession = nullptr; in HWTEST_F() local 557 errNo = OH_MediaKeySystem_CreateMediaKeySession(mediaKeySystem, &contentProtectionLevel, &mediaKeySession); in HWTEST_F() 583 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 614 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 645 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 675 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 761 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 788 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 818 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 866 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 906 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 946 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 986 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1025 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1079 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1131 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1175 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1221 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1266 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1324 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1380 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1435 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1496 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1553 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1611 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1671 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1731 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1790 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1846 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1902 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 1957 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 2020 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 2094 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 2167 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 2240 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 2270 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 2572 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 2648 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 2729 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 2806 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 2902 filltest3(MediaKeySystem *mediaKeySystem, MediaKeySession *mediaKeySession, unsigned char *keySystemResponse, int32_t KeySystemResponseLen) filltest3() argument 2938 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 2977 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3000 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3076 MediaKeySession *mediaKeySession = (MediaKeySession *)&mediaKeyIdToRelease; HWTEST_F() local 3103 MediaKeySession *mediaKeySession = (MediaKeySession *)&onlineMediaKeyId; HWTEST_F() local 3114 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3142 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3169 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3209 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3245 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3278 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3305 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3335 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3367 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3407 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3441 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3483 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3522 filltest(MediaKeySystem *mediaKeySystem, MediaKeySession *mediaKeySession) filltest() argument 3544 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3603 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3635 killclearplay(MediaKeySystem *mediaKeySystem, MediaKeySession *mediaKeySession) killclearplay() argument 3669 killclearplay2(MediaKeySystem *mediaKeySystem, MediaKeySession *mediaKeySession) killclearplay2() argument 3706 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3746 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3798 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local 3872 MediaKeySession *mediaKeySession = nullptr; HWTEST_F() local [all...] |
/foundation/multimedia/drm_framework/frameworks/native/test/fuzztest/mediakeysessionndk_fuzzer/ |
H A D | mediakeysessionndk_fuzzer.cpp | 81 DRM_INFO_LOG("Event: the mediaKeySession object is: 0x%{public}06" PRIXPTR, FAKE_POINTER(mediaKeySessoin)); in TestSessoinEventCallBackWithObj() 99 DRM_INFO_LOG("KeyChangedEvent: the mediaKeySession object is: 0x%{public}06" PRIXPTR, in TestSessoinKeyChangeCallBackWithObj() 170 OH_MediaKeySession_GenerateMediaKeyRequest(mediaKeySession, &info, &mediaKeyRequest); in GenerateLicense() 182 OH_MediaKeySession_ProcessMediaKeyResponse(mediaKeySession, keySessionResponse, keySessionResponseLen, in GenerateLicense() 210 OH_MediaKeySession_Destroy(mediaKeySession); in DestroySession() 211 mediaKeySession = nullptr; in DestroySession() 221 OH_MediaKeySystem_CreateMediaKeySession(mediaKeySystem, &ContentProtectionLevel, &mediaKeySession); in FuzzTestMediaKeySessionGenerateLicenseNdk() 230 OH_MediaKeySession_GenerateMediaKeyRequest(mediaKeySession, &info, &mediaKeyRequest); in FuzzTestMediaKeySessionGenerateLicenseNdk() 246 OH_MediaKeySession_GenerateMediaKeyRequest(mediaKeySession, &info, &mediaKeyRequest); in FuzzTestMediaKeySessionGenerateLicenseNdk() 258 OH_MediaKeySession_ProcessMediaKeyResponse(mediaKeySession, rawDat in FuzzTestMediaKeySessionGenerateLicenseNdk() [all...] |
H A D | mediakeysessionndk_fuzzer.h | 46 MediaKeySession *mediaKeySession = nullptr; member in OHOS::DrmStandard::MediaKeysessionNdkFuzzer
|
/foundation/multimedia/drm_framework/frameworks/native/test/fuzztest/mediakeydecryptndk_fuzzer/ |
H A D | mediakeydecryptndk_fuzzer.cpp | 133 OH_MediaKeySession_GenerateMediaKeyRequest(mediaKeySession, &info, &mediaKeyRequest); in GenerateLicense() 145 OH_MediaKeySession_ProcessMediaKeyResponse(mediaKeySession, keySessionResponse, keySessionResponseLen, in GenerateLicense() 178 OH_MediaKeySystem_CreateMediaKeySession(mediaKeySystem, &ContentProtectionLevel, &mediaKeySession); in FuzzTestMediaKeyDecryptNdk() 180 if (mediaKeySession) { in FuzzTestMediaKeyDecryptNdk() 181 MediaKeySessionObject *sessionObject = reinterpret_cast<MediaKeySessionObject *>(mediaKeySession); in FuzzTestMediaKeyDecryptNdk() 194 if (mediaKeySession != nullptr) { in FuzzTestMediaKeyDecryptNdk() 195 OH_MediaKeySession_Destroy(mediaKeySession); in FuzzTestMediaKeyDecryptNdk() 196 mediaKeySession = nullptr; in FuzzTestMediaKeyDecryptNdk()
|
H A D | mediakeydecryptndk_fuzzer.h | 43 MediaKeySession *mediaKeySession = nullptr; member in OHOS::DrmStandard::MediadecryptNdkFuzzer
|
/foundation/multimedia/drm_framework/interfaces/kits/c/drm_capi/include/ |
H A D | native_mediakeysession.h | 134 * @param mediaKeySession Media key session instance. 144 Drm_ErrCode OH_MediaKeySession_GenerateMediaKeyRequest(MediaKeySession *mediaKeySession, 149 * @param mediaKeySession Media key session instance. 161 Drm_ErrCode OH_MediaKeySession_ProcessMediaKeyResponse(MediaKeySession *mediaKeySession, 166 * @param mediaKeySession Media key session instance. 180 * @param mediaKeySession Media key session instance. 191 * @param mediaKeySession Media key session instance. 209 * @param mediaKeySession Media key session instance. 226 * @param mediaKeySession Media key session instance. 240 * @param mediaKeySession Medi [all...] |
H A D | native_mediakeysystem.h | 85 * or the mediaKeySession is nullptr or invalid. 247 * @param mediaKeySession Media key session instance. 260 DRM_ContentProtectionLevel *level, MediaKeySession **mediaKeySession);
|
/foundation/multimedia/drm_framework/frameworks/c/drm_capi/ |
H A D | native_mediakeysession.cpp | 61 Drm_ErrCode OH_MediaKeySession_GenerateMediaKeyRequest(MediaKeySession *mediaKeySession, DRM_MediaKeyRequestInfo *info, in OH_MediaKeySession_GenerateMediaKeyRequest() argument 66 DRM_CHECK_AND_RETURN_RET_LOG(((mediaKeySession != nullptr) && (info != nullptr) && (mediaKeyRequest != nullptr)), in OH_MediaKeySession_GenerateMediaKeyRequest() 82 MediaKeySessionObject *sessionObject = reinterpret_cast<MediaKeySessionObject *>(mediaKeySession); in OH_MediaKeySession_GenerateMediaKeyRequest() 92 Drm_ErrCode OH_MediaKeySession_ProcessMediaKeyResponse(MediaKeySession *mediaKeySession, uint8_t *response, in OH_MediaKeySession_ProcessMediaKeyResponse() argument 100 ((mediaKeySession != nullptr) && (response != nullptr) && (responseLen > 0) && in OH_MediaKeySession_ProcessMediaKeyResponse() 103 MediaKeySessionObject *sessionObject = reinterpret_cast<MediaKeySessionObject *>(mediaKeySession); in OH_MediaKeySession_ProcessMediaKeyResponse()
|
H A D | native_mediakeysystem.cpp | 456 MediaKeySession **mediaKeySession) in OH_MediaKeySystem_CreateMediaKeySession() 466 DRM_CHECK_AND_RETURN_RET_LOG(((mediaKeySystem != nullptr) && (level != nullptr) && (mediaKeySession != nullptr) && in OH_MediaKeySystem_CreateMediaKeySession() 500 *mediaKeySession = static_cast<MediaKeySession *>(sessionObject); in OH_MediaKeySystem_CreateMediaKeySession() 455 OH_MediaKeySystem_CreateMediaKeySession(MediaKeySystem *mediaKeySystem, DRM_ContentProtectionLevel *level, MediaKeySession **mediaKeySession) OH_MediaKeySystem_CreateMediaKeySession() argument
|
/foundation/multimedia/drm_framework/frameworks/native/test/fuzztest/mediakeysystemndk_fuzzer/ |
H A D | mediakeysystemndk_fuzzer.cpp | 138 OH_MediaKeySession_GenerateMediaKeyRequest(mediaKeySession, &info, &mediaKeyRequest); in GenerateLicense() 150 OH_MediaKeySession_ProcessMediaKeyResponse(mediaKeySession, keySessionResponse, keySessionResponseLen, in GenerateLicense() 312 OH_MediaKeySystem_CreateMediaKeySession(mediaKeySystem, &ContentProtectionLevel, &mediaKeySession); in FuzzTestMediaKeySystemLicenseOperationNdk() 329 if (mediaKeySession != nullptr) { in FuzzTestMediaKeySystemLicenseOperationNdk() 330 OH_MediaKeySession_Destroy(mediaKeySession); in FuzzTestMediaKeySystemLicenseOperationNdk() 331 mediaKeySession = nullptr; in FuzzTestMediaKeySystemLicenseOperationNdk()
|
H A D | mediakeysystemndk_fuzzer.h | 47 MediaKeySession *mediaKeySession = nullptr; member in OHOS::DrmStandard::MediaKeySystemNdkFuzzer
|
/foundation/multimedia/av_codec/interfaces/kits/c/ |
H A D | native_avcodec_audiocodec.h | 266 * @param mediaKeySession A media key session instance with decryption function. 270 * the mediaKeySession is nullptr or invalid. 276 OH_AVErrCode OH_AudioCodec_SetDecryptionConfig(OH_AVCodec *codec, MediaKeySession *mediaKeySession,
|
H A D | native_avcodec_videodecoder.h | 446 * @param mediaKeySession A media key session instance with decryption function. 453 * the mediaKeySession is nullptr or invalid. 457 OH_AVErrCode OH_VideoDecoder_SetDecryptionConfig(OH_AVCodec *codec, MediaKeySession *mediaKeySession,
|
/foundation/multimedia/av_codec/frameworks/native/capi/avcodec/ |
H A D | native_audio_codec.cpp | 467 OH_AVErrCode OH_AudioCodec_SetDecryptionConfig(OH_AVCodec *codec, MediaKeySession *mediaKeySession, in OH_AudioCodec_SetDecryptionConfig() argument 479 reinterpret_cast<DrmStandard::MediaKeySessionObject *>(mediaKeySession); in OH_AudioCodec_SetDecryptionConfig() 498 OH_AVErrCode OH_AudioCodec_SetDecryptionConfig(OH_AVCodec *codec, MediaKeySession *mediaKeySession, in OH_AudioCodec_SetDecryptionConfig() argument 503 (void)mediaKeySession; in OH_AudioCodec_SetDecryptionConfig()
|
H A D | native_video_decoder.cpp | 771 OH_AVErrCode OH_VideoDecoder_SetDecryptionConfig(OH_AVCodec *codec, MediaKeySession *mediaKeySession, in OH_VideoDecoder_SetDecryptionConfig() argument 782 struct MediaKeySessionObject *sessionObject = reinterpret_cast<MediaKeySessionObject *>(mediaKeySession); in OH_VideoDecoder_SetDecryptionConfig() 799 OH_AVErrCode OH_VideoDecoder_SetDecryptionConfig(OH_AVCodec *codec, MediaKeySession *mediaKeySession, in OH_VideoDecoder_SetDecryptionConfig() argument 804 (void)mediaKeySession; in OH_VideoDecoder_SetDecryptionConfig()
|
/foundation/multimedia/player_framework/interfaces/kits/c/ |
H A D | avplayer.h | 506 * @param mediaKeySession A media key session instance with decryption function. 513 OH_AVErrCode OH_AVPlayer_SetDecryptionConfig(OH_AVPlayer *player, MediaKeySession *mediaKeySession,
|
/foundation/multimedia/player_framework/frameworks/native/capi/player/ |
H A D | native_avplayer.cpp | 1336 OH_AVErrCode OH_AVPlayer_SetDecryptionConfig(OH_AVPlayer *player, MediaKeySession *mediaKeySession, in OH_AVPlayer_SetDecryptionConfig() argument 1341 CHECK_AND_RETURN_RET_LOG(mediaKeySession != nullptr, AV_ERR_INVALID_VAL, "mediaKeySession is nullptr"); in OH_AVPlayer_SetDecryptionConfig() 1344 struct MediaKeySessionObject *sessionObject = reinterpret_cast<MediaKeySessionObject *>(mediaKeySession); in OH_AVPlayer_SetDecryptionConfig() 1353 (void)mediaKeySession; in OH_AVPlayer_SetDecryptionConfig()
|