/ohos5.0/foundation/multimedia/drm_framework/frameworks/c/drm_capi/ |
H A D | native_mediakeysession.cpp | 83 DRM_CHECK_AND_RETURN_RET_LOG(sessionObject->sessionImpl_ != nullptr, DRM_ERR_INVALID_VAL, in OH_MediaKeySession_GenerateMediaKeyRequest() 104 DRM_CHECK_AND_RETURN_RET_LOG(sessionObject->sessionImpl_ != nullptr, DRM_ERR_INVALID_VAL, in OH_MediaKeySession_ProcessMediaKeyResponse() 162 DRM_CHECK_AND_RETURN_RET_LOG(sessionObject->sessionImpl_ != nullptr, DRM_ERR_INVALID_VAL, in OH_MediaKeySession_CheckMediaKeyStatus() 164 int32_t result = sessionObject->sessionImpl_->CheckMediaKeyStatus(licenseStatus); in OH_MediaKeySession_CheckMediaKeyStatus() 184 DRM_CHECK_AND_RETURN_RET_LOG(sessionObject->sessionImpl_ != nullptr, DRM_ERR_INVALID_VAL, in OH_MediaKeySession_ClearMediaKeys() 186 result = sessionObject->sessionImpl_->ClearMediaKeys(); in OH_MediaKeySession_ClearMediaKeys() 256 result = sessionObject->sessionImpl_->RestoreOfflineMediaKeys(licenseIdVec); in OH_MediaKeySession_RestoreOfflineMediaKeys() 275 result = sessionObject->sessionImpl_->GetContentProtectionLevel(&level); in OH_MediaKeySession_GetContentProtectionLevel() 319 sessionObject->sessionCallback_->SetCallbackReference(*callback); in OH_MediaKeySession_SetMediaKeySessionCallback() 332 sessionObject->sessionCallback_->SetCallbackReference(mediaKeySessoin, *callback); in OH_MediaKeySession_SetCallback() [all …]
|
H A D | native_mediakeysystem.cpp | 484 …struct MediaKeySessionObject *sessionObject = new (std::nothrow) MediaKeySessionObject(keySessionI… in OH_MediaKeySystem_CreateMediaKeySession() local 485 …DRM_CHECK_AND_RETURN_RET_LOG(sessionObject != nullptr, DRM_ERR_NO_MEMORY, "MediaKeySessionObject c… in OH_MediaKeySystem_CreateMediaKeySession() 487 sessionObject->sessionCallback_ = new (std::nothrow) MediaKeySessionCallbackCapi(); in OH_MediaKeySystem_CreateMediaKeySession() 488 if (sessionObject->sessionCallback_ == nullptr) { in OH_MediaKeySystem_CreateMediaKeySession() 489 delete sessionObject; in OH_MediaKeySystem_CreateMediaKeySession() 493 ret = sessionObject->sessionImpl_->SetCallback(sessionObject->sessionCallback_); in OH_MediaKeySystem_CreateMediaKeySession() 495 delete sessionObject; in OH_MediaKeySystem_CreateMediaKeySession() 500 *mediaKeySession = static_cast<MediaKeySession *>(sessionObject); in OH_MediaKeySystem_CreateMediaKeySession()
|
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/mini/ |
H A D | ipc_proxy_inner.c | 160 HandleSessionList *sessionObject = (HandleSessionList *)malloc(sizeof(HandleSessionList)); in GetSessionFromDBinderService() local 161 if (sessionObject == NULL) { in GetSessionFromDBinderService() 169 free(sessionObject); in GetSessionFromDBinderService() 177 free(sessionObject); in GetSessionFromDBinderService() 186 free(sessionObject); in GetSessionFromDBinderService() 191 …UpdateClientSession(svc->handle, sessionObject, session->serviceName, session->deviceIdInfo.toDevi… in GetSessionFromDBinderService() 207 HandleSessionList *sessionObject = QueryProxySession(svc->handle); in UpdateProto() local 208 if (sessionObject != NULL) { in UpdateProto()
|
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/src/ |
H A D | dbinder_invoker.c | 157 if (sessionObject->buffer == NULL) { in MoveTransData2Buffer() 161 sessionObject->len = transData->sizeOfSelf; in MoveTransData2Buffer() 166 free(sessionObject->buffer); in MoveTransData2Buffer() 173 free(sessionObject->buffer); in MoveTransData2Buffer() 184 if (sessionObject == NULL) { in WriteTransaction() 192 if (sessionObject->buffer != NULL) { in WriteTransaction() 193 free(sessionObject->buffer); in WriteTransaction() 224 return sessionObject; in WriteTransaction() 650 sessionObject->handle = handle; in UpdateClientSession() 651 sessionObject->sessionId = sessionId; in UpdateClientSession() [all …]
|
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/small/ |
H A D | ipc_proxy_inner.c | 41 HandleSessionList *sessionObject = (HandleSessionList *)calloc(1, sizeof(HandleSessionList)); in UpdateDatabusClientSession() local 42 if (sessionObject == NULL) { in UpdateDatabusClientSession() 50 free(sessionObject); in UpdateDatabusClientSession() 58 free(sessionObject); in UpdateDatabusClientSession() 66 free(sessionObject); in UpdateDatabusClientSession() 71 UpdateClientSession(handle, sessionObject, serviceName, peerID); in UpdateDatabusClientSession() 247 HandleSessionList *sessionObject = QueryProxySession(svc->handle); in UpdateProto() local 248 if (sessionObject != NULL) { in UpdateProto()
|
/ohos5.0/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_binder_databus_invoker_unittest.cpp | 551 std::shared_ptr<DBinderSessionObject> sessionObject = variable 564 sessionObject->proxy_ = nullptr; 702 std::shared_ptr<DBinderSessionObject> sessionObject = variable 725 std::shared_ptr<DBinderSessionObject> sessionObject = variable 742 std::shared_ptr<DBinderSessionObject> sessionObject = variable 927 EXPECT_TRUE(sessionObject == nullptr); 1127 std::shared_ptr<DBinderSessionObject> sessionObject = variable 1148 std::shared_ptr<DBinderSessionObject> sessionObject = variable 1173 std::shared_ptr<DBinderSessionObject> sessionObject = variable 1210 std::shared_ptr<DBinderSessionObject> sessionObject = variable [all …]
|
/ohos5.0/foundation/communication/ipc/ipc/native/src/mock/source/ |
H A D | dbinder_databus_invoker.cpp | 235 sessionObject->SetSocketId(socketId); in OnReceiveNewConnection() 236 sessionObject->SetPeerPid(peerPid); in OnReceiveNewConnection() 237 sessionObject->SetPeerUid(peerUid); in OnReceiveNewConnection() 559 sessionObject->GetServiceName(), sessionObject->GetDeviceId()); in UpdateClientSession() 569 sessionObject->SetSocketId(socketId); in UpdateClientSession() 570 sessionObject->SetPeerPid(std::stoi(peerPid)); in UpdateClientSession() 571 sessionObject->SetPeerUid(std::stoi(peerUid)); in UpdateClientSession() 851 sessionObject->GetTokenId()); in MakeDefaultServerSessionObject() 863 if (sessionObject == nullptr) { in ConnectRemoteObject2Session() 873 int peerPid = sessionObject->GetPeerPid(); in ConnectRemoteObject2Session() [all …]
|
/ohos5.0/foundation/communication/ipc/ipc/native/src/mock/include/ |
H A D | dbinder_base_invoker_interface.h | 28 std::shared_ptr<T> sessionObject = GetSessionObject(handle, socketId); in WriteTransaction() local 29 if (sessionObject == nullptr) { in WriteTransaction() 44 if (ProcessRawData(sessionObject, data, seqNum) != true) { in WriteTransaction() 50 ProcessNormalData(sessionObject, data, handle, socketId, seqNum, cmd, code, flags, status); in WriteTransaction() 57 if (MoveTransData2Buffer(sessionObject, transData) != true) { in WriteTransaction() 64 return sessionObject; in WriteTransaction() 131 std::shared_ptr<T> sessionObject = WriteTransaction(BC_REPLY, flags, 0, in SendReply() local 137 SendOrWaitForCompletion(0, seqNumber, sessionObject, nullptr); in SendReply()
|
H A D | dbinder_base_invoker_define.h | 60 virtual bool UpdateClientSession(std::shared_ptr<T> sessionObject) = 0; 82 …ed_ptr<T> CreateServerSessionObject(binder_uintptr_t binder, std::shared_ptr<T> sessionObject) = 0; 115 uint32_t socketId, std::shared_ptr<T> sessionObject); 117 uint32_t socketId, std::shared_ptr<T> sessionObject); 123 bool ProcessRawData(std::shared_ptr<T> sessionObject, MessageParcel &data, uint64_t seqNum); 124 …std::shared_ptr<dbinder_transaction_data> ProcessNormalData(std::shared_ptr<T> sessionObject, Mess… 126 …bool MoveTransData2Buffer(std::shared_ptr<T> sessionObject, std::shared_ptr<dbinder_transaction_da… 129 bool MoveMessageParcel2TransData(MessageParcel &data, std::shared_ptr<T> sessionObject,
|
H A D | dbinder_databus_invoker.h | 55 bool UpdateClientSession(std::shared_ptr<DBinderSessionObject> sessionObject) override; 59 std::shared_ptr<DBinderSessionObject> sessionObject) override; 101 const std::shared_ptr<DBinderSessionObject> sessionObject); 103 const std::shared_ptr<DBinderSessionObject> sessionObject);
|
H A D | dbinder_base_invoker_process.h | 178 bool DBinderBaseInvoker<T>::ProcessRawData(std::shared_ptr<T> sessionObject, MessageParcel &data, u… in ProcessRawData() argument 199 result = OnSendRawData(sessionObject, transData.get(), totalSize); in ProcessRawData() 208 …binder_transaction_data> DBinderBaseInvoker<T>::ProcessNormalData(std::shared_ptr<T> sessionObject, in ProcessNormalData() argument 223 transData->cookie = (handle == 0) ? 0 : sessionObject->GetStubIndex(); in ProcessNormalData() 224 if (MoveMessageParcel2TransData(data, sessionObject, transData, socketId, status) != true) { in ProcessNormalData() 356 …rBaseInvoker<T>::MoveMessageParcel2TransData(MessageParcel &data, std::shared_ptr<T> sessionObject, in MoveMessageParcel2TransData() argument 391 data, socketId, sessionObject)) { in MoveMessageParcel2TransData()
|
H A D | dbinder_base_invoker_object.h | 113 MessageParcel &data, uint32_t socketId, std::shared_ptr<T> sessionObject) in IRemoteObjectTranslateWhenSend() argument 128 … uint32_t flatSize = TranslateBinderType(binderObject, flatOffset + totalSize, sessionObject); in IRemoteObjectTranslateWhenSend() 137 … uint32_t flatSize = TranslateHandleType(binderObject, flatOffset + totalSize, sessionObject); in IRemoteObjectTranslateWhenSend() 163 MessageParcel &data, uint32_t socketId, std::shared_ptr<T> sessionObject) in IRemoteObjectTranslateWhenRcv() argument 292 bool DBinderBaseInvoker<T>::MoveTransData2Buffer(std::shared_ptr<T> sessionObject, in MoveTransData2Buffer() argument 295 std::shared_ptr<BufferObject> sessionBuff = sessionObject->GetSessionBuff(); in MoveTransData2Buffer()
|
/ohos5.0/foundation/multimedia/drm_framework/frameworks/native/test/fuzztest/mediakeydecryptndk_fuzzer/ |
H A D | mediakeydecryptndk_fuzzer.cpp | 181 … MediaKeySessionObject *sessionObject = reinterpret_cast<MediaKeySessionObject *>(mediaKeySession); in FuzzTestMediaKeyDecryptNdk() local 183 sessionObject->sessionImpl_->GetMediaKeySessionServiceProxy(); in FuzzTestMediaKeyDecryptNdk() 191 …sptr<MediaKeySessionImplCallback> callback = sessionObject->sessionImpl_->GetApplicationCallback(); in FuzzTestMediaKeyDecryptNdk()
|
/ohos5.0/foundation/multimedia/av_codec/frameworks/native/capi/avcodec/ |
H A D | native_audio_codec.cpp | 478 DrmStandard::MediaKeySessionObject *sessionObject = in OH_AudioCodec_SetDecryptionConfig() local 480 …CHECK_AND_RETURN_RET_LOG(sessionObject != nullptr, AV_ERR_INVALID_VAL, "sessionObject is nullptr!"… in OH_AudioCodec_SetDecryptionConfig() 481 …("DRM sessionObject impl :0x%{public}06" PRIXPTR " Instances create", FAKE_POINTER(sessionObject)); in OH_AudioCodec_SetDecryptionConfig() 483 CHECK_AND_RETURN_RET_LOG(sessionObject->sessionImpl_ != nullptr, AV_ERR_INVALID_VAL, in OH_AudioCodec_SetDecryptionConfig() 486 FAKE_POINTER(sessionObject->sessionImpl_.GetRefPtr())); in OH_AudioCodec_SetDecryptionConfig() 487 …CHECK_AND_RETURN_RET_LOG(sessionObject->sessionImpl_ ->GetMediaKeySessionServiceProxy() != nullptr, in OH_AudioCodec_SetDecryptionConfig() 491 sessionObject->sessionImpl_->GetMediaKeySessionServiceProxy(), secureAudio); in OH_AudioCodec_SetDecryptionConfig()
|
H A D | native_video_decoder.cpp | 782 …struct MediaKeySessionObject *sessionObject = reinterpret_cast<MediaKeySessionObject *>(mediaKeySe… in OH_VideoDecoder_SetDecryptionConfig() local 783 …CHECK_AND_RETURN_RET_LOG(sessionObject != nullptr, AV_ERR_INVALID_VAL, "sessionObject is nullptr!"… in OH_VideoDecoder_SetDecryptionConfig() 784 …("DRM sessionObject impl :0x%{public}06" PRIXPTR " Instances create", FAKE_POINTER(sessionObject)); in OH_VideoDecoder_SetDecryptionConfig() 786 CHECK_AND_RETURN_RET_LOG(sessionObject->sessionImpl_ != nullptr, AV_ERR_INVALID_VAL, in OH_VideoDecoder_SetDecryptionConfig() 789 FAKE_POINTER(sessionObject->sessionImpl_.GetRefPtr())); in OH_VideoDecoder_SetDecryptionConfig() 792 sessionObject->sessionImpl_->GetMediaKeySessionServiceProxy(), secureVideoPath); in OH_VideoDecoder_SetDecryptionConfig()
|
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/include/ |
H A D | dbinder_invoker.h | 34 void UpdateClientSession(int32_t handle, HandleSessionList *sessionObject,
|
/ohos5.0/foundation/multimedia/drm_framework/frameworks/native/test/unittest/src/ |
H A D | drm_framework_unittest.cpp | 3042 sessionObject->sessionImpl_->GetMediaKeySessionServiceProxy(); 3265 sessionObject->sessionImpl_->~MediaKeySessionImpl(); 3298 sessionObject->sessionImpl_->~MediaKeySessionImpl(); 3325 sessionObject->sessionImpl_->~MediaKeySessionImpl(); 3355 sessionObject->sessionImpl_->~MediaKeySessionImpl(); 3658 result = sessionObject->sessionImpl_->GetContentProtectionLevel(&securityLevel); in killclearplay() 3661 result = sessionObject->sessionImpl_->CheckMediaKeyStatus(licenseStatus2); in killclearplay() 3663 result = sessionObject->sessionImpl_->RestoreOfflineMediaKeys(licenseIdVec); in killclearplay() 3665 result = sessionObject->sessionImpl_->ClearMediaKeys(); in killclearplay() 3669 result = sessionObject->sessionImpl_->RequireSecureDecoderModule(mimeType, &status); in killclearplay() [all …]
|
/ohos5.0/foundation/communication/ipc/services/dbinder/c/src/ |
H A D | dbinder_service.c | 827 … SessionInfo *sessionObject = QuerySessionObject((uintptr_t)(dBinderServiceStub->svc.cookie)); in MakeRemoteBinder() local 828 if (sessionObject != NULL) { in MakeRemoteBinder() 829 DetachSessionObject(sessionObject); in MakeRemoteBinder() 830 free(sessionObject); in MakeRemoteBinder()
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/zidl/ |
H A D | scene_session_manager_proxy.cpp | 84 sptr<IRemoteObject> sessionObject = reply.ReadRemoteObject(); in CreateAndConnectSpecificSession() local 85 if (sessionObject == nullptr) { in CreateAndConnectSpecificSession() 89 session = iface_cast<ISession>(sessionObject); in CreateAndConnectSpecificSession() 146 sptr<IRemoteObject> sessionObject = reply.ReadRemoteObject(); in RecoverAndConnectSpecificSession() local 147 if (sessionObject == nullptr) { in RecoverAndConnectSpecificSession() 151 session = iface_cast<ISession>(sessionObject); in RecoverAndConnectSpecificSession() 203 sptr<IRemoteObject> sessionObject = reply.ReadRemoteObject(); in RecoverAndReconnectSceneSession() local 204 if (sessionObject == nullptr) { in RecoverAndReconnectSceneSession() 208 session = iface_cast<ISession>(sessionObject); in RecoverAndReconnectSceneSession()
|
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/capi/player/ |
H A D | native_avplayer.cpp | 1290 …struct MediaKeySessionObject *sessionObject = reinterpret_cast<MediaKeySessionObject *>(mediaKeySe… in OH_AVPlayer_SetDecryptionConfig() local 1291 CHECK_AND_RETURN_RET_LOG(sessionObject != nullptr, AV_ERR_INVALID_VAL, "sessionObject is null"); in OH_AVPlayer_SetDecryptionConfig() 1292 …CHECK_AND_RETURN_RET_LOG(sessionObject->sessionImpl_ != nullptr, AV_ERR_INVALID_VAL, "sessionObjec… in OH_AVPlayer_SetDecryptionConfig() 1294 …playerObj->player_->SetDecryptConfig(sessionObject->sessionImpl_->GetMediaKeySessionServiceProxy(), in OH_AVPlayer_SetDecryptionConfig()
|