/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/ |
H A D | rfcomm_session_fsm.c | 18 typedef int (*SessionActionFunc)(RfcommSessionInfo *session, const void *data); 24 static int RfcommOpenSession(RfcommSessionInfo *session, const void *data); 25 static int RfcommCloseSession(RfcommSessionInfo *session, const void *data); 26 static int RfcommRecvSessionSecurityRslt(RfcommSessionInfo *session, const void *data); 27 static int RfcommRecvConnectReq(RfcommSessionInfo *session, const void *data); 28 static int RfcommRecvReqConnectRslt(RfcommSessionInfo *session, const void *data); 29 static int RfcommRecvConnectRsp(RfcommSessionInfo *session, const void *data); 30 static int RfcommRecvConfigReq(RfcommSessionInfo *session, const void *data); 31 static int RfcommRecvConfigRsp(RfcommSessionInfo *session, const void *data); 32 static int RfcommRecvDisconnectReq(RfcommSessionInfo *session, cons 82 RfcommSessionEvtFsm(RfcommSessionInfo *session, RfcommSessionEvent event, const void *data) RfcommSessionEvtFsm() argument 105 RfcommOpenSession(RfcommSessionInfo *session, const void *data) RfcommOpenSession() argument 136 RfcommRecvReqConnectRslt(RfcommSessionInfo *session, const void *data) RfcommRecvReqConnectRslt() argument 183 RfcommRecvConnectRsp(RfcommSessionInfo *session, const void *data) RfcommRecvConnectRsp() argument 241 RfcommRecvConfigRsp(RfcommSessionInfo *session, const void *data) RfcommRecvConfigRsp() argument 293 RfcommRecvConfigReq(RfcommSessionInfo *session, const void *data) RfcommRecvConfigReq() argument 348 RfcommRecvUa0(RfcommSessionInfo *session, const void *data) RfcommRecvUa0() argument 395 RfcommRecvConnectReq(RfcommSessionInfo *session, const void *data) RfcommRecvConnectReq() argument 442 RfcommRecvSabm0(RfcommSessionInfo *session, const void *data) RfcommRecvSabm0() argument 468 RfcommRecvDisc0(RfcommSessionInfo *session, const void *data) RfcommRecvDisc0() argument 516 RfcommRecvLinkLoss(RfcommSessionInfo *session, const void *data) RfcommRecvLinkLoss() argument 558 RfcommRecvDisconnectReq(RfcommSessionInfo *session, const void *data) RfcommRecvDisconnectReq() argument 587 RfcommCloseSession(RfcommSessionInfo *session, const void *data) RfcommCloseSession() argument 630 RfcommRecvDm0(RfcommSessionInfo *session, const void *data) RfcommRecvDm0() argument 676 RfcommRecvTimeOut(RfcommSessionInfo *session, const void *data) RfcommRecvTimeOut() argument 740 RfcommRecvFconReq(RfcommSessionInfo *session, const void *data) RfcommRecvFconReq() argument 775 RfcommRecvFconRsp(RfcommSessionInfo *session, const void *data) RfcommRecvFconRsp() argument 792 RfcommRecvFcoffReq(RfcommSessionInfo *session, const void *data) RfcommRecvFcoffReq() argument 825 RfcommRecvFcoffRsp(RfcommSessionInfo *session, const void *data) RfcommRecvFcoffRsp() argument 842 RfcommRecvTestReq(RfcommSessionInfo *session, const void *data) RfcommRecvTestReq() argument 863 RfcommRecvTestRsp(RfcommSessionInfo *session, const void *data) RfcommRecvTestRsp() argument 880 RfcommRecvNsc(RfcommSessionInfo *session, const void *data) RfcommRecvNsc() argument 905 RfcommRecvSessionSecurityRslt(RfcommSessionInfo *session, const void *data) RfcommRecvSessionSecurityRslt() argument 975 RfcommRestartSession(RfcommSessionInfo *session) RfcommRestartSession() argument 999 RfcommAcceptPeerConnectReq(RfcommSessionInfo *session) RfcommAcceptPeerConnectReq() argument [all...] |
H A D | rfcomm_session.c | 21 * @brief Create session list when RFCOMM initialize. 32 * @brief Free session list when RFCOMM finalize. 40 RfcommSessionInfo *session = NULL; in RfcommDestroySessionList() local 50 session = ListGetNodeData(node); in RfcommDestroySessionList() 51 if (session->timer != NULL) { in RfcommDestroySessionList() 52 AlarmDelete(session->timer); in RfcommDestroySessionList() 53 session->timer = NULL; in RfcommDestroySessionList() 55 free(session); in RfcommDestroySessionList() 97 * @brief Start session's timer. 99 * @param session Th 102 RfcommStartSessionTimer(RfcommSessionInfo *session, uint8_t timeout) RfcommStartSessionTimer() argument 119 RfcommStopSessionTimer(RfcommSessionInfo *session) RfcommStopSessionTimer() argument 157 RfcommSessionInfo *session = malloc(sizeof(RfcommSessionInfo)); RfcommCreateSession() local 186 RfcommResetSessionInfo(RfcommSessionInfo *session) RfcommResetSessionInfo() argument 210 RfcommSetFlowControlType(RfcommSessionInfo *session, bool isPnReq, uint8_t cl) RfcommSetFlowControlType() argument 241 RfcommRemoveSession(RfcommSessionInfo *session) RfcommRemoveSession() argument 265 RfcommSessionInfo *session = NULL; RfcommGetSessionByLcid() local 295 RfcommSessionInfo *session = NULL; RfcommGetSessionByAddr() local 321 RfcommIsSessionValid(RfcommSessionInfo *session) RfcommIsSessionValid() argument [all...] |
H A D | rfcomm_l2cap.c | 20 * After receiving the request, RFCOMM creates session information and calls the state machine. 31 RfcommSessionInfo *session = NULL; in RfcommRecvConnectReqCback() local 42 session = RfcommGetSessionByAddr(&addr); in RfcommRecvConnectReqCback() 43 if (session == NULL) { in RfcommRecvConnectReqCback() 44 session = RfcommCreateSession(&addr, lcid, id, false); in RfcommRecvConnectReqCback() 47 if (session != NULL) { in RfcommRecvConnectReqCback() 50 // Established session Successfully. in RfcommRecvConnectReqCback() 51 RfcommSessionEvtFsm(session, EV_SESSION_RECV_CONNECT_REQ, (void*)&connectedInfo); in RfcommRecvConnectReqCback() 53 LOG_ERROR("%{public}s No session resources.", __func__); in RfcommRecvConnectReqCback() 71 RfcommSessionInfo *session in RfcommRecvConnectRspCback() local 97 RfcommSessionInfo *session = RfcommGetSessionByLcid(lcid); RfcommRecvConfigReqCback() local 122 RfcommSessionInfo *session = NULL; RfcommRecvConfigRspCback() local 156 RfcommSessionInfo *session = RfcommGetSessionByLcid(lcid); RfcommRecvDisconnectReqCback() local 177 RfcommSessionInfo *session = RfcommGetSessionByLcid(lcid); RfcommDisconnectAbnormalCback() local 200 RfcommSessionInfo *session = RfcommGetSessionByLcid(lcid); RfcommRecvDataCback() local 246 RfcommSessionInfo *session = RfcommGetSessionByAddr(addr); RfcommSendConnectReqCback() local [all...] |
/foundation/multimedia/camera_framework/test/fuzztest/capturesession_fuzzer/ |
H A D | capture_session_fuzzer.cpp | 78 auto session = manager->CreateCaptureSession(g_sceneMode);
in Test() local 80 TestCallback(session, rawData, size);
in Test() 81 TestSession(session, rawData, size);
in Test() 82 TestWhiteBalance(session, rawData, size);
in Test() 83 TestExposure(session, rawData, size);
in Test() 84 TestFocus(session, rawData, size);
in Test() 85 TestZoom(session, rawData, size);
in Test() 86 TestStabilization(session, rawData, size);
in Test() 87 TestCreateMediaLibrary(session, rawData, size);
in Test() 88 TestProcess(session, rawDat in Test() 129 TestWhiteBalance(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestWhiteBalance() argument 135 TestExposure(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestExposure() argument 172 TestFocus(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestFocus() argument 202 TestZoom(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestZoom() argument 226 TestCallback(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestCallback() argument 253 TestStabilization(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestStabilization() argument 273 TestFlash(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestFlash() argument 296 TestCreateMediaLibrary(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestCreateMediaLibrary() argument 309 TestProcess(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestProcess() argument 336 TestAperture(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestAperture() argument 365 TestBeauty(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestBeauty() argument 398 TestOther(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestOther() argument 433 TestOther2(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestOther2() argument 456 TestSession(sptr<CaptureSession> session, uint8_t *rawData, size_t size) TestSession() argument [all...] |
/foundation/multimedia/camera_framework/frameworks/native/ndk/ |
H A D | capture_session.cpp | 25 Camera_ErrorCode OH_CaptureSession_RegisterCallback(Camera_CaptureSession* session, CaptureSession_Callbacks* callback) in OH_CaptureSession_RegisterCallback() argument 27 CHECK_AND_RETURN_RET_LOG(session != nullptr, CAMERA_INVALID_ARGUMENT, "Invaild argument, session is null!"); in OH_CaptureSession_RegisterCallback() 32 session->RegisterCallback(callback); in OH_CaptureSession_RegisterCallback() 36 Camera_ErrorCode OH_CaptureSession_UnregisterCallback(Camera_CaptureSession* session, in OH_CaptureSession_UnregisterCallback() argument 39 CHECK_AND_RETURN_RET_LOG(session != nullptr, CAMERA_INVALID_ARGUMENT, "Invaild argument, session is null!"); in OH_CaptureSession_UnregisterCallback() 44 session->UnregisterCallback(callback); in OH_CaptureSession_UnregisterCallback() 48 Camera_ErrorCode OH_CaptureSession_RegisterSmoothZoomInfoCallback(Camera_CaptureSession* session, in OH_CaptureSession_RegisterSmoothZoomInfoCallback() argument 51 CHECK_AND_RETURN_RET_LOG(session ! in OH_CaptureSession_RegisterSmoothZoomInfoCallback() 58 OH_CaptureSession_UnregisterSmoothZoomInfoCallback(Camera_CaptureSession* session, OH_CaptureSession_OnSmoothZoomInfo smoothZoomInfoCallback) OH_CaptureSession_UnregisterSmoothZoomInfoCallback() argument 68 OH_CaptureSession_SetSessionMode(Camera_CaptureSession* session, Camera_SceneMode sceneMode) OH_CaptureSession_SetSessionMode() argument 75 OH_CaptureSession_AddSecureOutput(Camera_CaptureSession* session, Camera_PreviewOutput* previewOutput) OH_CaptureSession_AddSecureOutput() argument 83 OH_CaptureSession_BeginConfig(Camera_CaptureSession* session) OH_CaptureSession_BeginConfig() argument 90 OH_CaptureSession_CommitConfig(Camera_CaptureSession* session) OH_CaptureSession_CommitConfig() argument 97 OH_CaptureSession_AddInput(Camera_CaptureSession* session, Camera_Input* cameraInput) OH_CaptureSession_AddInput() argument 106 OH_CaptureSession_RemoveInput(Camera_CaptureSession* session, Camera_Input* cameraInput) OH_CaptureSession_RemoveInput() argument 115 OH_CaptureSession_AddPreviewOutput(Camera_CaptureSession* session, Camera_PreviewOutput* previewOutput) OH_CaptureSession_AddPreviewOutput() argument 125 OH_CaptureSession_RemovePreviewOutput(Camera_CaptureSession* session, Camera_PreviewOutput* previewOutput) OH_CaptureSession_RemovePreviewOutput() argument 135 OH_CaptureSession_AddPhotoOutput(Camera_CaptureSession* session, Camera_PhotoOutput* photoOutput) OH_CaptureSession_AddPhotoOutput() argument 145 OH_CaptureSession_RemovePhotoOutput(Camera_CaptureSession* session, Camera_PhotoOutput* photoOutput) OH_CaptureSession_RemovePhotoOutput() argument 155 OH_CaptureSession_AddMetadataOutput(Camera_CaptureSession* session, Camera_MetadataOutput* metadataOutput) OH_CaptureSession_AddMetadataOutput() argument 166 OH_CaptureSession_RemoveMetadataOutput(Camera_CaptureSession* session, Camera_MetadataOutput* metadataOutput) OH_CaptureSession_RemoveMetadataOutput() argument 177 OH_CaptureSession_IsVideoStabilizationModeSupported(Camera_CaptureSession* session, Camera_VideoStabilizationMode mode, bool* isSupported) OH_CaptureSession_IsVideoStabilizationModeSupported() argument 194 OH_CaptureSession_GetVideoStabilizationMode(Camera_CaptureSession* session, Camera_VideoStabilizationMode* mode) OH_CaptureSession_GetVideoStabilizationMode() argument 204 OH_CaptureSession_SetVideoStabilizationMode(Camera_CaptureSession* session, Camera_VideoStabilizationMode mode) OH_CaptureSession_SetVideoStabilizationMode() argument 219 OH_CaptureSession_GetZoomRatioRange(Camera_CaptureSession* session, float* minZoom, float* maxZoom) OH_CaptureSession_GetZoomRatioRange() argument 229 OH_CaptureSession_GetZoomRatio(Camera_CaptureSession* session, float* zoom) OH_CaptureSession_GetZoomRatio() argument 238 OH_CaptureSession_SetZoomRatio(Camera_CaptureSession* session, float zoom) OH_CaptureSession_SetZoomRatio() argument 246 OH_CaptureSession_IsFocusModeSupported(Camera_CaptureSession* session, Camera_FocusMode focusMode, bool* isSupported) OH_CaptureSession_IsFocusModeSupported() argument 262 OH_CaptureSession_GetFocusMode(Camera_CaptureSession* session, Camera_FocusMode* focusMode) OH_CaptureSession_GetFocusMode() argument 271 OH_CaptureSession_SetFocusMode(Camera_CaptureSession* session, Camera_FocusMode focusMode) OH_CaptureSession_SetFocusMode() argument 284 OH_CaptureSession_SetFocusPoint(Camera_CaptureSession* session, Camera_Point focusPoint) OH_CaptureSession_SetFocusPoint() argument 292 OH_CaptureSession_GetFocusPoint(Camera_CaptureSession* session, Camera_Point* focusPoint) OH_CaptureSession_GetFocusPoint() argument 301 OH_CaptureSession_AddVideoOutput(Camera_CaptureSession* session, Camera_VideoOutput* videoOutput) OH_CaptureSession_AddVideoOutput() argument 310 OH_CaptureSession_RemoveVideoOutput(Camera_CaptureSession* session, Camera_VideoOutput* videoOutput) OH_CaptureSession_RemoveVideoOutput() argument 319 OH_CaptureSession_Start(Camera_CaptureSession* session) OH_CaptureSession_Start() argument 326 OH_CaptureSession_Stop(Camera_CaptureSession* session) OH_CaptureSession_Stop() argument 333 OH_CaptureSession_Release(Camera_CaptureSession* session) OH_CaptureSession_Release() argument 344 OH_CaptureSession_HasFlash(Camera_CaptureSession* session, bool* hasFlash) OH_CaptureSession_HasFlash() argument 352 OH_CaptureSession_IsFlashModeSupported(Camera_CaptureSession* session, Camera_FlashMode flashMode, bool* isSupported) OH_CaptureSession_IsFlashModeSupported() argument 362 OH_CaptureSession_GetFlashMode(Camera_CaptureSession* session, Camera_FlashMode* flashMode) OH_CaptureSession_GetFlashMode() argument 370 OH_CaptureSession_SetFlashMode(Camera_CaptureSession* session, Camera_FlashMode flashMode) OH_CaptureSession_SetFlashMode() argument 381 OH_CaptureSession_IsExposureModeSupported(Camera_CaptureSession* session, Camera_ExposureMode exposureMode, bool* isSupported) OH_CaptureSession_IsExposureModeSupported() argument 394 OH_CaptureSession_GetExposureMode(Camera_CaptureSession* session, Camera_ExposureMode* exposureMode) OH_CaptureSession_GetExposureMode() argument 403 OH_CaptureSession_SetExposureMode(Camera_CaptureSession* session, Camera_ExposureMode exposureMode) OH_CaptureSession_SetExposureMode() argument 415 OH_CaptureSession_GetMeteringPoint(Camera_CaptureSession* session, Camera_Point* point) OH_CaptureSession_GetMeteringPoint() argument 423 OH_CaptureSession_SetMeteringPoint(Camera_CaptureSession* session, Camera_Point point) OH_CaptureSession_SetMeteringPoint() argument 433 OH_CaptureSession_GetExposureBiasRange(Camera_CaptureSession* session, float* minExposureBias, float* maxExposureBias, float* step) OH_CaptureSession_GetExposureBiasRange() argument 446 OH_CaptureSession_SetExposureBias(Camera_CaptureSession* session, float exposureBias) OH_CaptureSession_SetExposureBias() argument 452 OH_CaptureSession_GetExposureBias(Camera_CaptureSession* session, float* exposureBias) OH_CaptureSession_GetExposureBias() argument 461 OH_CaptureSession_CanAddInput(Camera_CaptureSession* session, Camera_Input* cameraInput, bool* isSuccessful) OH_CaptureSession_CanAddInput() argument 475 OH_CaptureSession_CanAddPreviewOutput(Camera_CaptureSession* session, Camera_PreviewOutput* cameraOutput, bool* isSuccessful) OH_CaptureSession_CanAddPreviewOutput() argument 489 OH_CaptureSession_CanAddPhotoOutput(Camera_CaptureSession* session, Camera_PhotoOutput* cameraOutput, bool* isSuccessful) OH_CaptureSession_CanAddPhotoOutput() argument 503 OH_CaptureSession_CanAddVideoOutput(Camera_CaptureSession* session, Camera_VideoOutput* cameraOutput, bool* isSuccessful) OH_CaptureSession_CanAddVideoOutput() argument 517 OH_CaptureSession_CanPreconfig(Camera_CaptureSession* session, Camera_PreconfigType preconfigType, bool* canPreconfig) OH_CaptureSession_CanPreconfig() argument 529 OH_CaptureSession_CanPreconfigWithRatio(Camera_CaptureSession* session, Camera_PreconfigType preconfigType, Camera_PreconfigRatio preconfigRatio, bool* canPreconfig) OH_CaptureSession_CanPreconfigWithRatio() argument 541 OH_CaptureSession_Preconfig(Camera_CaptureSession* session, Camera_PreconfigType preconfigType) OH_CaptureSession_Preconfig() argument 550 OH_CaptureSession_PreconfigWithRatio(Camera_CaptureSession* session, Camera_PreconfigType preconfigType, Camera_PreconfigRatio preconfigRatio) OH_CaptureSession_PreconfigWithRatio() argument 564 OH_CaptureSession_GetExposureValue(Camera_CaptureSession* session, float* exposureValue) OH_CaptureSession_GetExposureValue() argument 579 OH_CaptureSession_GetFocalLength(Camera_CaptureSession* session, float* focalLength) OH_CaptureSession_GetFocalLength() argument 594 OH_CaptureSession_SetSmoothZoom(Camera_CaptureSession *session, float targetZoom, Camera_SmoothZoomMode smoothZoomMode) OH_CaptureSession_SetSmoothZoom() argument 608 OH_CaptureSession_GetSupportedColorSpaces(Camera_CaptureSession* session, OH_NativeBuffer_ColorSpace** colorSpace, uint32_t* size) OH_CaptureSession_GetSupportedColorSpaces() argument 626 OH_CaptureSession_DeleteColorSpaces(Camera_CaptureSession* session, OH_NativeBuffer_ColorSpace* colorSpace) OH_CaptureSession_DeleteColorSpaces() argument 642 OH_CaptureSession_GetActiveColorSpace(Camera_CaptureSession* session, OH_NativeBuffer_ColorSpace* colorSpace) OH_CaptureSession_GetActiveColorSpace() argument 658 OH_CaptureSession_SetActiveColorSpace(Camera_CaptureSession* session, OH_NativeBuffer_ColorSpace colorSpace) OH_CaptureSession_SetActiveColorSpace() argument 672 OH_CaptureSession_RegisterAutoDeviceSwitchStatusCallback(Camera_CaptureSession* session, OH_CaptureSession_OnAutoDeviceSwitchStatusChange autoDeviceSwitchStatusChange) OH_CaptureSession_RegisterAutoDeviceSwitchStatusCallback() argument 686 OH_CaptureSession_UnregisterAutoDeviceSwitchStatusCallback(Camera_CaptureSession* session, OH_CaptureSession_OnAutoDeviceSwitchStatusChange autoDeviceSwitchStatusChange) OH_CaptureSession_UnregisterAutoDeviceSwitchStatusCallback() argument 700 OH_CaptureSession_IsAutoDeviceSwitchSupported(Camera_CaptureSession* session, bool* isSupported) OH_CaptureSession_IsAutoDeviceSwitchSupported() argument 712 OH_CaptureSession_EnableAutoDeviceSwitch(Camera_CaptureSession* session, bool enabled) OH_CaptureSession_EnableAutoDeviceSwitch() argument [all...] |
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/ |
H A D | cast_session_state.cpp | 30 auto session = session_.promote(); in Enter() local 31 if (!session) { in Enter() 36 // BaseState and its inherited classes work under the strict control of the session, in Enter() 38 session->sessionState_ = state; in Enter() 44 auto session = session_.promote(); in Exit() local 45 if (!session) { in Exit() 50 CLOGI("%s exit", SESSION_STATE_STRING[static_cast<int>(session->sessionState_)].c_str()); in Exit() 55 auto session = session_.promote(); in HandleMessage() local 56 if (!session) { in HandleMessage() 61 CLOGI("msg: %s, session stat in HandleMessage() 83 auto session = session_.promote(); HandleMessage() local 115 auto session = session_.promote(); HandleMessage() local 158 auto session = session_.promote(); HandleMessage() local 215 auto session = session_.promote(); HandleMessage() local 251 HandleSetupMessage(const Message &msg, sptr<CastSessionImpl> session) HandleSetupMessage() argument 265 HandleSetupSuccessMessage(const Message &msg, const MessageId &msgId, sptr<CastSessionImpl> session) HandleSetupSuccessMessage() argument 280 HandleDisconnectMessage(const Message &msg, sptr<CastSessionImpl> session) HandleDisconnectMessage() argument 294 HandleErrorMessage(const Message &msg, sptr<CastSessionImpl> session) HandleErrorMessage() argument 304 HandleRenderReadyMessage(const Message &msg, sptr<CastSessionImpl> session) HandleRenderReadyMessage() argument 318 HandleConnectMessage(const Message &msg, const MessageId &msgId, sptr<CastSessionImpl> session) HandleConnectMessage() argument 333 auto session = session_.promote(); Enter() local 372 auto session = session_.promote(); HandleMessage() local 433 auto session = session_.promote(); HandleMessage() local 482 auto session = session_.promote(); HandleMessage() local 523 auto session = session_.promote(); HandleMessage() local 561 auto session = session_.promote(); Enter() local 578 auto session = session_.promote(); HandleMessage() local [all...] |
H A D | cast_session_listeners.cpp | 70 auto session = session_.promote(); in OnSetup() local 71 if (!session) { in OnSetup() 72 CLOGE("Setup in, session is null"); in OnSetup() 76 session->rtspParamInfo_ = param; in OnSetup() 77 if (session->IsStreamMode()) { in OnSetup() 78 session->property_.protocolType = ProtocolType::CAST_PLUS_STREAM; in OnSetup() 80 session->SendCastMessage(Message(MessageId::MSG_SETUP, mediaPort, remoteControlPort, NO_DELAY, deviceId)); in OnSetup() 86 auto session = session_.promote(); in OnPlay() local 87 if (!session) { in OnPlay() 88 CLOGE("Play in, session i in OnPlay() 99 auto session = session_.promote(); OnPause() local 112 auto session = session_.promote(); OnTearDown() local 125 auto session = session_.promote(); OnError() local 137 auto session = session_.promote(); NotifyTrigger() local 149 auto session = session_.promote(); NotifyEventChange() local 160 auto session = session_.promote(); NotifySessionEvent() local 186 auto session = session_.promote(); SendActionToPeers() local 201 auto session = session_.promote(); OnRenderReady() local 211 auto session = session_.promote(); OnEvent() local 226 auto session = session_.promote(); ProcessStreamMode() local 239 auto session = session_.promote(); NotifyModuleCustomParamsNegotiation() local 261 auto session = session_.promote(); OnPlayerReady() local 278 auto session = session_.promote(); OnChannelCreated() local 316 auto session = session_.promote(); OnChannelOpenFailed() local 329 auto session = session_.promote(); OnChannelError() local 342 auto session = session_.promote(); OnChannelRemoved() local 388 auto session = session_.promote(); IsMediaChannelReady() local [all...] |
/foundation/CastEngine/castengine_cast_plus_stream/src/ |
H A D | cast_session_state.cpp | 30 auto session = session_.promote(); in Enter() local 31 if (!session) { in Enter() 36 // BaseState and its inherited classes work under the strict control of the session, in Enter() 38 session->sessionState_ = state; in Enter() 44 auto session = session_.promote(); in Exit() local 45 if (!session) { in Exit() 50 CLOGI("%s exit", SESSION_STATE_STRING[static_cast<int>(session->sessionState_)].c_str()); in Exit() 55 auto session = session_.promote(); in HandleMessage() local 56 if (!session) { in HandleMessage() 61 CLOGI("msg: %s, session stat in HandleMessage() 83 auto session = session_.promote(); HandleMessage() local 115 auto session = session_.promote(); HandleMessage() local 158 auto session = session_.promote(); HandleMessage() local 215 auto session = session_.promote(); HandleMessage() local 251 HandleSetupMessage(const Message &msg, sptr<CastSessionImpl> session) HandleSetupMessage() argument 265 HandleSetupSuccessMessage(const Message &msg, const MessageId &msgId, sptr<CastSessionImpl> session) HandleSetupSuccessMessage() argument 280 HandleDisconnectMessage(const Message &msg, sptr<CastSessionImpl> session) HandleDisconnectMessage() argument 294 HandleErrorMessage(const Message &msg, sptr<CastSessionImpl> session) HandleErrorMessage() argument 304 HandleRenderReadyMessage(const Message &msg, sptr<CastSessionImpl> session) HandleRenderReadyMessage() argument 318 HandleConnectMessage(const Message &msg, const MessageId &msgId, sptr<CastSessionImpl> session) HandleConnectMessage() argument 333 auto session = session_.promote(); Enter() local 372 auto session = session_.promote(); HandleMessage() local 433 auto session = session_.promote(); HandleMessage() local 482 auto session = session_.promote(); HandleMessage() local 523 auto session = session_.promote(); HandleMessage() local 561 auto session = session_.promote(); Enter() local 578 auto session = session_.promote(); HandleMessage() local [all...] |
H A D | cast_session_listeners.cpp | 70 auto session = session_.promote(); in OnSetup() local 71 if (!session) { in OnSetup() 72 CLOGE("Setup in, session is null"); in OnSetup() 76 session->rtspParamInfo_ = param; in OnSetup() 77 if (session->IsStreamMode()) { in OnSetup() 78 session->property_.protocolType = ProtocolType::CAST_PLUS_STREAM; in OnSetup() 80 session->SendCastMessage(Message(MessageId::MSG_SETUP, mediaPort, remoteControlPort, NO_DELAY, deviceId)); in OnSetup() 86 auto session = session_.promote(); in OnPlay() local 87 if (!session) { in OnPlay() 88 CLOGE("Play in, session i in OnPlay() 99 auto session = session_.promote(); OnPause() local 112 auto session = session_.promote(); OnTearDown() local 125 auto session = session_.promote(); OnError() local 137 auto session = session_.promote(); NotifyTrigger() local 149 auto session = session_.promote(); NotifyEventChange() local 160 auto session = session_.promote(); NotifySessionEvent() local 186 auto session = session_.promote(); SendActionToPeers() local 201 auto session = session_.promote(); OnRenderReady() local 211 auto session = session_.promote(); OnEvent() local 226 auto session = session_.promote(); ProcessStreamMode() local 239 auto session = session_.promote(); NotifyModuleCustomParamsNegotiation() local 261 auto session = session_.promote(); OnPlayerReady() local 278 auto session = session_.promote(); OnChannelCreated() local 316 auto session = session_.promote(); OnChannelOpenFailed() local 329 auto session = session_.promote(); OnChannelError() local 342 auto session = session_.promote(); OnChannelRemoved() local 388 auto session = session_.promote(); IsMediaChannelReady() local [all...] |
/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | scene_session_test5.cpp | 28 #include "session/host/include/sub_session.h" 29 #include "session/host/include/main_session.h" 30 #include "session/host/include/scene_session.h" 31 #include "session/host/include/system_session.h" 32 #include "session/screen/include/screen_session.h" 94 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); in HWTEST_F() local 95 EXPECT_NE(session, nullptr); in HWTEST_F() 97 session->moveDragController_ = nullptr; in HWTEST_F() 98 session->isKeyboardPanelEnabled_ = false; in HWTEST_F() 100 session in HWTEST_F() 139 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 191 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 249 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 290 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 328 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 378 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 403 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 431 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 450 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 478 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 519 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 555 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 587 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 684 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 723 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 750 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 783 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 826 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 871 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 900 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 932 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 963 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 985 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1005 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1030 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1054 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1083 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1114 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1139 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1156 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1209 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1241 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1267 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1292 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1317 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1333 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1350 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1370 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1417 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1444 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1470 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1496 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1523 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1550 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local 1575 sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr); HWTEST_F() local [all...] |
/foundation/multimedia/camera_framework/interfaces/kits/native/include/camera/ |
H A D | capture_session.h | 58 * @brief Capture session object 68 * @brief Capture session focus state callback to be called in {@link CaptureSession_Callbacks}. 70 * @param session the {@link Camera_CaptureSession} which deliver the callback. 74 typedef void (*OH_CaptureSession_OnFocusStateChange)(Camera_CaptureSession* session, Camera_FocusState focusState); 77 * @brief Capture session error callback to be called in {@link CaptureSession_Callbacks}. 79 * @param session the {@link Camera_CaptureSession} which deliver the callback. 80 * @param errorCode the {@link Camera_ErrorCode} of the capture session. 85 typedef void (*OH_CaptureSession_OnError)(Camera_CaptureSession* session, Camera_ErrorCode errorCode); 88 * @brief Capture session smooth zoom info callback. 90 * @param session th [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_dfile_session.c | 52 static void ProcessSessionTrans(const DFileSession *session, uint16_t exceptTransId); 100 void NotifyMsgRecver(const DFileSession *session, DFileMsgType msgType, const DFileMsg *msg) in NotifyMsgRecver() argument 102 if (session == NULL) { in NotifyMsgRecver() 103 DFILE_LOGI(TAG, "session is NULL"); in NotifyMsgRecver() 107 if (session->msgReceiver == NULL) { in NotifyMsgRecver() 112 session->msgReceiver(session->sessionId, msgType, msg); in NotifyMsgRecver() 115 void CalculateSessionTransferRatePrepare(DFileSession *session) in CalculateSessionTransferRatePrepare() argument 118 if (session->sessionType == DFILE_SESSION_TYPE_CLIENT && (!ListIsEmpty(&session in CalculateSessionTransferRatePrepare() 137 SendSmallList(DFileSession *session) SendSmallList() argument 166 SendPendingList(DFileSession *session) SendPendingList() argument 191 SendSmallAndPendingList(DFileSession *session) SendSmallAndPendingList() argument 207 NoticeSessionProgress(DFileSession *session) NoticeSessionProgress() argument 219 UpdateMsgProcessInfo(const DFileSession *session, struct DFileTrans *dFileTrans, DFileTransMsgType msgType, DFileTransMsg *msg) UpdateMsgProcessInfo() argument 258 WakeSendThread(DFileSession *session, uint8_t isSender, uint8_t socketIndex) WakeSendThread() argument 268 CalculateSessionTransferRate(DFileSession *session, uint64_t totalBytes, DFileTransMsgType msgType) CalculateSessionTransferRate() argument 310 CheckTransDone(DFileSession *session, struct DFileTrans *dFileTrans, DFileTransMsgType msgType) CheckTransDone() argument 340 DFileSession *session = peerInfo->session; DTransMsgReceiver() local 431 SearchPeerInfoNode(const DFileSession *session, const struct sockaddr_in *peerAddr) SearchPeerInfoNode() argument 496 SetDFileSessionConfig(DFileSession *session, DFileConfig *dFileConfig, uint16_t connType, PeerInfo *peerInfo) SetDFileSessionConfig() argument 543 DFileSessionHandleClientSetting(DFileSession *session, DFileFrame *dFileFrame, struct sockaddr_in *peerAddr) DFileSessionHandleClientSetting() argument 602 CreatePeerInfo(DFileSession *session, const struct sockaddr_in *dstAddr, uint16_t peerMtu, uint16_t connType, uint8_t socketIndex) CreatePeerInfo() argument 635 HandleLinkSeqCap(DFileSession *session, SettingFrame *hostSettingFrame) HandleLinkSeqCap() argument 653 AllocPeerInfo(DFileSession *session, const struct sockaddr_in *peerAddr, const SettingFrame *frame, uint8_t socketIndex) AllocPeerInfo() argument 675 DFileSessionHandleServerSetting(DFileSession *session, DFileFrame *dFileFrame, struct sockaddr_in *peerAddr, uint8_t socketIndex) DFileSessionHandleServerSetting() argument 715 DFileSessionHandleSetting(DFileSession *session, DFileFrame *dFileFrame, struct sockaddr_in *peerAddr, uint8_t socketIndex) DFileSessionHandleSetting() argument 727 HandleWithoutSettingError(DFileSession *session, const struct sockaddr_in *peerAddr) HandleWithoutSettingError() argument 763 DFileSessionHandleRst(DFileSession *session, DFileFrame *dFileFrame, struct sockaddr_in *peerAddr) DFileSessionHandleRst() argument 783 DFileSessionResolveBackPress(DFileSession *session, DataBackPressure backPress, uint32_t count) DFileSessionResolveBackPress() argument 810 DFileSessionHandleBackPressure(DFileSession *session, const DFileFrame *dFileFrame, const struct sockaddr_in *peerAddr) DFileSessionHandleBackPressure() argument 833 CreateTrans(uint16_t transId, DFileSession *session, PeerInfo *peerInfo, uint8_t isSender) CreateTrans() argument 855 DFileSessionHandleFrame(DFileSession *session, DFileFrame *dFileFrame, struct sockaddr_in *peerAddr) DFileSessionHandleFrame() argument 908 DFileSession *session = peerInfo->session; DFileWriteHandle() local 948 GetEpollWaitTimeOut(DFileSession *session) GetEpollWaitTimeOut() argument 971 ProcessSessionTrans(const DFileSession *session, uint16_t exceptTransId) ProcessSessionTrans() argument 983 NotifyBindPort(const DFileSession *session) NotifyBindPort() argument 999 DFileSession *session = arg; DFileMainLoop() local 1048 DFileSendCalculateRate(DFileSession *session, PeerInfo *peerInfo) DFileSendCalculateRate() argument 1100 UpdateAllTransRetryCount(DFileSession *session, PeerInfo *peerInfo) UpdateAllTransRetryCount() argument 1112 DFileRecvCalculateRate(DFileSession *session, DFileFrame *dFileFrame, struct sockaddr_in *peerAddr) DFileRecvCalculateRate() argument 1195 DFileSenderUpdateMeasureTime(DFileSession *session, uint8_t socketIndex) DFileSenderUpdateMeasureTime() argument 1209 DFileSession *session = (DFileSession *)arg; TerminateMainThreadFatalInner() local 1213 PostFatalEvent(DFileSession *session) PostFatalEvent() argument 1239 struct DFileSession *session; global() member 1246 struct DFileSession *session = sendThreadCtx->session; DFileAddiSenderHandle() local 1292 CloseAddiSendThread(struct DFileSession *session) CloseAddiSendThread() argument 1307 ErrorHandle(struct DFileSession *session, uint16_t cnt) ErrorHandle() argument 1319 CreateAddiSendThread(struct DFileSession *session) CreateAddiSendThread() argument 1399 UpdateInfoAfterSend(DFileSession *session, PeerInfo *peerInfo, int32_t curAmendSendRate, struct timespec *before, uint8_t socketIndex) UpdateInfoAfterSend() argument 1418 DFileSessionSendFrame(DFileSession *session, QueueNode **preQueueNode, List *unsent, struct timespec *before, uint8_t socketIndex) DFileSessionSendFrame() argument 1468 WaitNewSendData(const QueueNode *queueNode, const List *unsent, DFileSession *session, uint8_t socketIndex) WaitNewSendData() argument 1477 DFileSenderPre(DFileSession *session, uint8_t socketIndex) DFileSenderPre() argument 1490 DFileSenderClose(DFileSession *session, QueueNode *queueNode, List *unsent, void *arg) DFileSenderClose() argument 1502 DFileSession *session = ((SenderThreadPara*)arg)->session; DFileSenderHandle() local 1582 ProcessDFileFrameList(DFileSession *session, List *head) ProcessDFileFrameList() argument 1631 DFileSession *session = arg; ReadEventHandle() local 1663 DFileAddInboundQueue(DFileSession *session, const uint8_t *frame, size_t frameLength, struct sockaddr_in *peerAddr, uint8_t socketIndex) DFileAddInboundQueue() argument 1693 DFileReceiverUpdateSessionMeasureTime(DFileSession *session) DFileReceiverUpdateSessionMeasureTime() argument 1700 BindServerRecvThreadToTargetCpu(DFileSession *session) BindServerRecvThreadToTargetCpu() argument 1721 PostReadEventToMainLoop(DFileSession *session) PostReadEventToMainLoop() argument 1736 DFileSessionHandleReadBuffer(DFileSession *session, const uint8_t *buf, size_t bufLen, struct sockaddr_in *peerAddr, uint8_t socketIndex) DFileSessionHandleReadBuffer() argument 1759 DFileRecverPre(DFileSession *session) DFileRecverPre() argument 1767 RcverWaitSocket(DFileSession *session, uint8_t *canRead) RcverWaitSocket() argument 1776 DFileSocketRecv(DFileSession *session) DFileSocketRecv() argument 1781 DFileAcceptSocket(DFileSession *session) DFileAcceptSocket() argument 1800 DFileSession *session = arg; DFileReceiverHandle() local 1841 DFileSession *session = arg; DFileControlHandle() local 1881 DFileStartTransInner(DFileSession *session, FileListInfo *fileListInfo) DFileStartTransInner() argument 1933 DFileStartTrans(DFileSession *session, FileListInfo *fileListInfo) DFileStartTrans() argument 1948 DFileSession *session = (DFileSession *)arg; TerminateMainThreadInner() local 1952 StartDFileThreadsInner(DFileSession *session) StartDFileThreadsInner() argument 1995 DFileSession *session = context; FileManagerMsgHandle() local 2006 CreateFileManager(DFileSession *session, const uint8_t *key, uint32_t keyLen, uint8_t isSender, uint16_t connType) CreateFileManager() argument 2040 DestroyReceiverPipe(DFileSession *session) DestroyReceiverPipe() argument [all...] |
H A D | nstackx_dfile_mp.c | 25 int32_t DFileSocketRecvSP(DFileSession *session) in DFileSocketRecvSP() argument 33 if (CapsTcp(session)) { in DFileSocketRecvSP() 34 if (session->sessionType == DFILE_SESSION_TYPE_SERVER) { in DFileSocketRecvSP() 35 if (session->acceptFlag == 0) { in DFileSocketRecvSP() 36 ret = DFileAcceptSocket(session); in DFileSocketRecvSP() 39 ret = SocketRecvForTcp(session, session->recvBuffer, &peerAddr, &addrLen); in DFileSocketRecvSP() 42 ret = SocketRecvForTcp(session, session->recvBuffer, &peerAddr, &addrLen); in DFileSocketRecvSP() 48 ret = SocketRecv(session in DFileSocketRecvSP() 70 TransSelectPeerInfo(DFileSession *session) TransSelectPeerInfo() argument 77 ClientGetPeerInfoByTransId(DFileSession *session) ClientGetPeerInfoByTransId() argument 84 ClientGetPeerInfoBySocketIndex(uint8_t socketIndex, const DFileSession *session) ClientGetPeerInfoBySocketIndex() argument 98 CreateSenderThread(DFileSession *session) CreateSenderThread() argument 118 RebuildFilelist(const char *files[], const char *remotePath[], uint32_t fileNum, DFileSession *session, DFileRebuildFileList *rebuildList) RebuildFilelist() argument 138 InitOutboundQueueWait(DFileSession *session) InitOutboundQueueWait() argument 147 DestroyOutboundQueueWait(DFileSession *session) DestroyOutboundQueueWait() argument 152 PostOutboundQueueWait(DFileSession *session) PostOutboundQueueWait() argument [all...] |
H A D | nstackx_dfile_send.c | 88 DFileSession *session = peerInfo->session; in TcpSendFileDataFrame() local 98 NSTACKX_ATOM_FETCH_INC(&session->totalSendBlocks); in TcpSendFileDataFrame() 114 static void UdpSendFileDataSuccess(DFileSession *session, PeerInfo *peerInfo, List *p, FileDataFrameZS *f, in UdpSendFileDataSuccess() argument 122 NSTACKX_ATOM_FETCH_INC(&session->totalSendBlocks); in UdpSendFileDataSuccess() 125 static int32_t SendFileDataFrame(DFileSession *session, PeerInfo *peerInfo, List *head, uint32_t tid) in SendFileDataFrame() argument 133 Socket *socket = session->socket[0]; in SendFileDataFrame() 135 if (CapsTcp(session) && (session->sessionType == DFILE_SESSION_TYPE_SERVER)) { in SendFileDataFrame() 136 socket = session in SendFileDataFrame() 169 SendFileDataFrameEx(DFileSession *session, PeerInfo *peerInfo, List *head, uint32_t tid) SendFileDataFrameEx() argument 196 DoSendDataFrame(DFileSession *session, List *head, int32_t count, uint32_t tid, uint8_t socketIndex) DoSendDataFrame() argument 249 CheckSendByBackPress(DFileSession *session, uint32_t tid, uint8_t socketIndex) CheckSendByBackPress() argument 294 SendDataFrame(DFileSession *session, List *unsent, uint32_t tid, uint8_t socketIndex) SendDataFrame() argument 318 SendControlFrame(DFileSession *session, QueueNode *queueNode) SendControlFrame() argument 352 SendOutboundFrame(DFileSession *session, QueueNode **preQueueNode) SendOutboundFrame() argument 403 TcpSocketRecv(DFileSession *session, uint8_t *buffer, size_t length, struct sockaddr_in *srcAddr, const socklen_t *addrLen) TcpSocketRecv() argument 435 SocketRecvForTcp(DFileSession *session, uint8_t *buffer, struct sockaddr_in *srcAddr, const socklen_t *addrLen) SocketRecvForTcp() argument [all...] |
H A D | nstackx_dfile.c | 55 DFileSession *session; member 60 DFileSession *session; member 65 DFileSession *session; member 123 static int32_t AddDFileSessionNode(DFileSession *session) in AddDFileSessionNode() argument 130 node->session = session; in AddDFileSessionNode() 131 node->sessionId = session->sessionId; in AddDFileSessionNode() 189 if (node == NULL || node->session == NULL) { in CheckDFileSessionNodeValid() 206 if (ctx->session == NULL) { in DFileSetStoragePathInner() 212 if (FileManagerSetWritePath(ctx->session in DFileSetStoragePathInner() 299 DFileSession *session; global() member 340 CreateStoragePathListCtx(const DFileSession *session, const char *path[], const uint16_t *pathType, uint16_t pathNum) CreateStoragePathListCtx() argument 436 AddFileList(DFileSession *session, FileListInfo *fileListInfo) AddFileList() argument 455 DFileSession *session = ctx->session; DFileSendFileFail() local 471 DFileSession *session = ctx->session; DFileSendFileInner() local 822 DFileSessionBaseInit(DFileSession *session, DFileSessionType type, DFileMsgReceiver msgReceiver, uint16_t sessionId) DFileSessionBaseInit() argument 855 DFileSessionMutexInit(DFileSession *session) DFileSessionMutexInit() argument 899 PostSessionCreate(DFileSession *session) PostSessionCreate() argument 914 DFileSession *session = calloc(1, sizeof(DFileSession)); DFileSessionCreate() local 959 DFileClearTransferDoneAckList(DFileSession *session) DFileClearTransferDoneAckList() argument 981 DFileSessionClean(DFileSession *session) DFileSessionClean() argument 1013 DFileRecverInit(DFileSession *session, struct sockaddr_in *sockAddr, uint8_t socketIndex) DFileRecverInit() argument 1047 DFileRecverDestory(DFileSession *session) DFileRecverDestory() argument 1055 StartDFileThreads(DFileSession *session) StartDFileThreads() argument 1080 StopDFileThreads(DFileSession *session) StopDFileThreads() argument 1115 StartSessionRunning(DFileSession *session, uint16_t SendThreadNum) StartSessionRunning() argument 1159 DFileSession *session = NULL; NSTACKX_DFileServer() local 1203 DFileSenderInitWithTargetDev(DFileSession *session, const struct sockaddr_in *sockAddr, uint16_t *connType, const char *localInterface, uint8_t socketIndex) DFileSenderInitWithTargetDev() argument 1256 DFileSenderDestory(DFileSession *session) DFileSenderDestory() argument 1305 SendSettingToServer(DFileSession *session) SendSettingToServer() argument 1335 DFileSession *session = DFileSessionCreate(DFILE_SESSION_TYPE_CLIENT, para->msgReceiver); NSTACKX_DFileClientWithTargetDev() local 1395 ClearPendingFileList(DFileSession *session) ClearPendingFileList() argument 1407 ClearSmallFileList(DFileSession *session) ClearSmallFileList() argument 1419 ClearTransChain(DFileSession *session) ClearTransChain() argument 1427 ClearOutboundQueue(DFileSession *session) ClearOutboundQueue() argument 1439 ClearInboundQueue(DFileSession *session) ClearInboundQueue() argument [all...] |
/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | anomaly_detection.cpp | 34 auto func = [&curZOrder, &keyGuardFlag](sptr<SceneSession> session) { in SceneZOrderCheckProcess() 35 if ((session == nullptr) || (!SceneSessionManager::GetInstance().IsSessionVisibleForeground(session))) { in SceneZOrderCheckProcess() 39 if (session->GetZOrder() == 0) { in SceneZOrderCheckProcess() 41 ReportZOrderException("check zorder 0", session); in SceneZOrderCheckProcess() 44 if (session->GetZOrder() == curZOrder) { in SceneZOrderCheckProcess() 45 TLOGE(WmsLogTag::WMS_HIERARCHY, "ZOrderCheck err, repetitive zorder %{public}d", session->GetZOrder()); in SceneZOrderCheckProcess() 46 ReportZOrderException("check repetitive zorder", session); in SceneZOrderCheckProcess() 48 curZOrder = session->GetZOrder(); in SceneZOrderCheckProcess() 50 if (session in SceneZOrderCheckProcess() 92 ReportZOrderException(const std::string& errorReason, sptr<SceneSession> session) ReportZOrderException() argument 106 ReportFocusException(const std::string& errorReason, int32_t focusedId, int32_t nextId, sptr<SceneSession> session) ReportFocusException() argument [all...] |
H A D | hidump_controller.cpp | 39 for (const auto& session : allSession) { in GetAllSessionDumpDetailedInfo() 40 if (session == nullptr) { in GetAllSessionDumpDetailedInfo() 46 DumpSceneSessionParam(oss, session); in GetAllSessionDumpDetailedInfo() 68 void HidumpController::DumpSceneSessionParam(std::ostringstream& oss, sptr<SceneSession> session) in DumpSceneSessionParam() argument 70 std::string sName = session->GetWindowNameAllType(); in DumpSceneSessionParam() 75 << session->GetPersistentId() in DumpSceneSessionParam() 77 sptr<WindowSessionProperty> property = session->GetSessionProperty(); in DumpSceneSessionParam() 82 DumpSessionParam(oss, session, property); in DumpSceneSessionParam() 83 DumpLayoutRectParam(oss, session, property); in DumpSceneSessionParam() 84 DumpLayoutParam(oss, session, propert in DumpSceneSessionParam() 111 DumpSessionParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property) DumpSessionParam() argument 158 DumpLayoutRectParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property) DumpLayoutRectParam() argument 215 DumpLayoutParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property) DumpLayoutParam() argument 254 DumpAbilityParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property) DumpAbilityParam() argument 297 DumpKeyboardParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property) DumpKeyboardParam() argument 356 DumpSysconfigParam(std::ostringstream& oss, sptr<SceneSession> session) DumpSysconfigParam() argument 396 DumpLifeParam(std::ostringstream& oss, sptr<SceneSession> session) DumpLifeParam() argument 419 DumpDisplayParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property) DumpDisplayParam() argument 439 DumpFocusParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property) DumpFocusParam() argument 457 DumpInputParam( std::ostringstream& oss, sptr<SceneSession> session, sptr<WindowSessionProperty> property) DumpInputParam() argument 475 DumpLakeParam(std::ostringstream& oss, sptr<SceneSession> session) DumpLakeParam() argument 490 DumpCOMParam(std::ostringstream& oss, sptr<SceneSession> session) DumpCOMParam() argument 504 DumpVisibleParam(std::ostringstream& oss, sptr<SceneSession> session) DumpVisibleParam() argument [all...] |
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/mirror/src/ |
H A D | mirror_player_impl.cpp | 36 auto session = session_.promote(); in Play() local 37 if (!session) { in Play() 38 CLOGE("session is nullptr"); in Play() 41 return session->Play(deviceId); in Play() 47 auto session = session_.promote(); in Pause() local 48 if (!session) { in Pause() 49 CLOGE("session is nullptr"); in Pause() 52 return session->Pause(deviceId); in Pause() 58 auto session = session_.promote(); in SetSurface() local 59 if (!session) { in SetSurface() 76 auto session = session_.promote(); DeliverInputEvent() local 87 auto session = session_.promote(); InjectEvent() local 97 auto session = session_.promote(); Release() local 109 auto session = session_.promote(); GetDisplayId() local 120 auto session = session_.promote(); ResizeVirtualScreen() local [all...] |
/foundation/CastEngine/castengine_cast_plus_stream/src/mirror/src/ |
H A D | mirror_player_impl.cpp | 36 auto session = session_.promote(); in Play() local 37 if (!session) { in Play() 38 CLOGE("session is nullptr"); in Play() 41 return session->Play(deviceId); in Play() 47 auto session = session_.promote(); in Pause() local 48 if (!session) { in Pause() 49 CLOGE("session is nullptr"); in Pause() 52 return session->Pause(deviceId); in Pause() 58 auto session = session_.promote(); in SetSurface() local 59 if (!session) { in SetSurface() 76 auto session = session_.promote(); DeliverInputEvent() local 87 auto session = session_.promote(); InjectEvent() local 97 auto session = session_.promote(); Release() local 109 auto session = session_.promote(); GetDisplayId() local 120 auto session = session_.promote(); ResizeVirtualScreen() local [all...] |
/foundation/filemanagement/app_file_service/tests/mock/module_ipc/ |
H A D | svc_session_manager_throw_mock.cpp | 24 BackupSvcSessionManager::session->VerifyCallerAndScenario(clientToken, scenario); in VerifyCallerAndScenario() 29 return BackupSvcSessionManager::session->Active(newImpl); in Active() 34 BackupSvcSessionManager::session->Deactive(remoteInAction, force); in Deactive() 39 BackupSvcSessionManager::session->VerifyBundleName(bundleName); in VerifyBundleName() 44 return BackupSvcSessionManager::session->GetServiceReverseProxy(); in GetServiceReverseProxy() 49 return BackupSvcSessionManager::session->GetScenario(); in GetScenario() 54 return BackupSvcSessionManager::session->OnBundleFileReady(bundleName, fileName); in OnBundleFileReady() 59 return BackupSvcSessionManager::session->OnBundleExtManageInfo(bundleName, move(fd)); in OnBundleExtManageInfo() 64 BackupSvcSessionManager::session->RemoveExtInfo(bundleName); in RemoveExtInfo() 69 return BackupSvcSessionManager::session in GetExtConnection() [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/include/ |
H A D | nstackx_dfile_session.h | 74 uint16_t sessionId; /* reserve for multi session */ 157 PeerInfo *CreatePeerInfo(DFileSession *session, const struct sockaddr_in *peerAddr, 160 void NotifyMsgRecver(const DFileSession *session, DFileMsgType msgType, const DFileMsg *msg); 165 void NotifyPipeEvent(const DFileSession *session); 166 int32_t CreateReceiverPipe(DFileSession *session); 167 int32_t CreateFileManager(DFileSession *session, const uint8_t *key, uint32_t keyLen, uint8_t isSender, 169 int32_t DFileStartTrans(DFileSession *session, FileListInfo *fileListInfo); 170 int32_t StartDFileThreadsInner(DFileSession *session); 172 void UpdateAllTransRetryCount(DFileSession *session, PeerInfo *peerInfo); 173 void CalculateSessionTransferRatePrepare(DFileSession *session); 191 DFileSessionSetFatalFlag(struct DFileSession *session) DFileSessionSetFatalFlag() argument 196 DFileSessionSetTerminateFlag(struct DFileSession *session) DFileSessionSetTerminateFlag() argument 201 DFileSessionCheckFatalFlag(const struct DFileSession *session) DFileSessionCheckFatalFlag() argument 206 ClearSessionStats(struct DFileSession *session) ClearSessionStats() argument 215 CapsGSO(const struct DFileSession *session) CapsGSO() argument 220 CapsLinkSeq(const struct DFileSession *session) CapsLinkSeq() argument 225 CapsNoRW(const struct DFileSession *session) CapsNoRW() argument 230 CapsTcp(const struct DFileSession *session) CapsTcp() argument 235 CapsRecvFeedback(const struct DFileSession *session) CapsRecvFeedback() argument 240 CapsChaCha(const struct DFileSession *session) CapsChaCha() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/ |
H A D | obex_mp_server.cpp | 53 void ObexPrivateMpServer::HandlePutRequest(ObexServerSession &session, ObexHeader &req) const in HandlePutRequest() argument 57 SetBusy(session, true); in HandlePutRequest() 59 if (session.GetReceivedObject() == nullptr) { in HandlePutRequest() 62 session.CreateReceivedObject(req, writer); in HandlePutRequest() 67 session.GetReceivedObject()->AppendBody(body->GetBytes().get(), body->GetHeaderDataSize()); in HandlePutRequest() 69 if (session.GetReceivedObject()->IsSrmReceiving()) { in HandlePutRequest() 80 session.GetReceivedObject()->SetSrmEnable(true); in HandlePutRequest() 82 if (session.GetReceivedObject()->IsSrmEnable() && req.GetItemSrmp()) { in HandlePutRequest() 84 session.GetReceivedObject()->SetSrmWait(req.GetItemSrmp()); in HandlePutRequest() 86 if (session in HandlePutRequest() 102 HandlePutFinalRequest(ObexServerSession &session, ObexHeader &req) const HandlePutFinalRequest() argument 131 HandleTransportDataBusy(ObexServerSession &session, uint8_t isBusy) HandleTransportDataBusy() argument 148 HandleGetRequest(ObexServerSession &session, ObexHeader &req) HandleGetRequest() argument 200 HandleAbortRequest(ObexServerSession &session, ObexHeader &req) HandleAbortRequest() argument [all...] |
/foundation/multimedia/camera_framework/test/fuzztest/timelapsephotosession_fuzzer/ |
H A D | time_lapse_photo_session_fuzzer.cpp | 53 sptr<TimeLapsePhotoSession> session;
member 64 session->AddOutput(previewOutput);
in AddOutput() 72 session->AddOutput(photoOutput);
in AddOutput() 81 session->SetExposureInfoCallback(make_shared<ExposureInfoCallbackMock>());
in TestProcessor() 85 session->ProcessExposureChange(meta);
in TestProcessor() 92 session->SetIsoInfoCallback(make_shared<IsoInfoCallbackMock>());
in TestProcessor() 95 session->ProcessIsoInfoChange(meta);
in TestProcessor() 103 session->SetLuminationInfoCallback(make_shared<LuminationInfoCallbackMock>());
in TestProcessor() 111 session->SetTryAEInfoCallback(make_shared<TryAEInfoCallbackMock>());
in TestProcessor() 121 TimeLapsePhotoSessionMetadataResultProcessor processor(session);
in TestProcessor() [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/sessionimpl_fuzzer/ |
H A D | sessionimpl_fuzzer.cpp | 26 Communication::SoftBus::SessionImpl session; in SessionTest() local 29 session.SetSessionId(sessionId); in SessionTest() 30 session.GetSessionId(); in SessionTest() 33 session.SetMySessionName(sessionName); in SessionTest() 34 session.SetPeerSessionName(sessionName); in SessionTest() 42 Communication::SoftBus::SessionImpl session; in SetOpeTest() local 44 session.SetPeerDeviceId(deviceId); in SetOpeTest() 45 session.SetDeviceId(deviceId); in SetOpeTest() 46 session.SetIsServer(true); in SetOpeTest() 50 session in SetOpeTest() 61 Communication::SoftBus::SessionImpl session; SendBytesTest() local [all...] |
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | screen_session_test.cpp | 325 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); in HWTEST_F() local 327 auto res = session->ConvertIntToRotation(rotation); in HWTEST_F() 330 res = session->ConvertIntToRotation(rotation); in HWTEST_F() 333 res = session->ConvertIntToRotation(rotation); in HWTEST_F() 336 res = session->ConvertIntToRotation(rotation); in HWTEST_F() 619 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); in HWTEST_F() local 620 session->screenId_ = session->defaultScreenId_; in HWTEST_F() 621 ScreenSourceMode mode = session->GetSourceMode(); in HWTEST_F() 1040 sptr<ScreenSession> session in HWTEST_F() local 1054 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1070 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1087 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1105 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1123 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1150 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(screenId, property, nodeId, defaultScreenId); HWTEST_F() local 1165 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1186 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1203 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1220 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1237 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1258 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1283 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1313 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1364 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1409 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1425 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1438 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1455 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1470 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1485 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1500 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1519 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1533 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1548 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1564 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1580 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1605 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1621 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1636 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1650 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1664 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1681 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1697 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1711 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1725 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1741 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1758 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1782 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1798 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1812 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1857 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1875 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1890 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1904 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 1926 sptr<ScreenSession> session = new(std::nothrow) HWTEST_F() local 1950 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 2014 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 2062 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 2102 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 2142 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(2024, property, 0); HWTEST_F() local 2165 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 2182 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 2198 ScreenSession session; HWTEST_F() local 2242 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local 2257 sptr<ScreenSession> session = new(std::nothrow) ScreenSession(); HWTEST_F() local [all...] |