/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/ |
H A D | rfcomm_session_fsm.c | 221 session->pendingId = 0; in RfcommRecvConnectRsp() 546 RfcommRemoveSession(session); in RfcommRecvLinkLoss() 779 (void)session; in RfcommRecvFconRsp() 829 (void)session; in RfcommRecvFcoffRsp() 867 (void)session; in RfcommRecvTestRsp() 952 RfcommSendConnectRsp(session->l2capId, session->id, 0, 0); in RfcommRecvSessionSecurityRslt() 980 session->isInitiator = true; in RfcommRestartSession() 1003 session->l2capId = session->pendingL2capId; in RfcommAcceptPeerConnectReq() 1004 session->id = session->pendingId; in RfcommAcceptPeerConnectReq() 1007 session->pendingL2capId = 0; in RfcommAcceptPeerConnectReq() [all …]
|
H A D | rfcomm_session.c | 55 free(session); in RfcommDestroySessionList() 158 if (session == NULL) { in RfcommCreateSession() 163 session->l2capId = lcid; in RfcommCreateSession() 164 session->id = id; in RfcommCreateSession() 166 session->pendingId = 0; in RfcommCreateSession() 177 return session; in RfcommCreateSession() 192 session->l2capId = 0; in RfcommResetSessionInfo() 193 session->id = 0; in RfcommResetSessionInfo() 195 session->pendingId = 0; in RfcommResetSessionInfo() 252 free(session); in RfcommRemoveSession() [all …]
|
H A D | rfcomm_l2cap.c | 31 RfcommSessionInfo *session = NULL; in RfcommRecvConnectReqCback() local 43 if (session == NULL) { in RfcommRecvConnectReqCback() 47 if (session != NULL) { in RfcommRecvConnectReqCback() 71 RfcommSessionInfo *session = NULL; in RfcommRecvConnectRspCback() local 79 if (session != NULL) { in RfcommRecvConnectRspCback() 104 if (session != NULL) { in RfcommRecvConfigReqCback() 139 if (session != NULL) { in RfcommRecvConfigRspCback() 160 if (session != NULL) { in RfcommRecvDisconnectReqCback() 179 if (session != NULL) { in RfcommDisconnectAbnormalCback() 205 if (session == NULL) { in RfcommRecvDataCback() [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/test/fuzztest/capturesession_fuzzer/ |
H A D | capture_session_fuzzer.cpp | 92 session->Release(); in Test() 93 session->Stop(); in Test() 184 session->GetFocusMode(); in TestFocus() 210 session->GetZoomRatio(); in TestZoom() 218 session->PrepareZoom(); in TestZoom() 282 session->HasFlash(); in TestFlash() 382 session->GetFilter(); in TestBeauty() 415 session->GetMetadata(); in TestOther() 429 session->SetUserId(); in TestOther() 465 session->GetMode(); in TestSession() [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/ndk/ |
H A D | capture_session.cpp | 83 session->RegisterCallback(callback); in OH_CaptureSession_RegisterCallback() 95 session->UnregisterCallback(callback); in OH_CaptureSession_UnregisterCallback() 138 return session->BeginConfig(); in OH_CaptureSession_BeginConfig() 145 return session->CommitConfig(); in OH_CaptureSession_CommitConfig() 286 return session->GetZoomRatio(zoom); in OH_CaptureSession_GetZoomRatio() 294 return session->SetZoomRatio(zoom); in OH_CaptureSession_SetZoomRatio() 374 return session->Start(); in OH_CaptureSession_Start() 381 return session->Stop(); in OH_CaptureSession_Stop() 389 if (session != nullptr) { in OH_CaptureSession_Release() 390 delete session; in OH_CaptureSession_Release() [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | scene_session_test5.cpp | 99 panelSession = session; 378 session->BindDialogToParentSession(session); 1051 session->toastSession_.push_back(session); 1055 session->toastSession_.push_back(session); 1059 session->toastSession_.push_back(session); 1082 res = session->HandleUpdatePropertyByAction(nullptr, session, action); 1085 res = session->HandleUpdatePropertyByAction(property, session, action); 1088 res = session->HandleUpdatePropertyByAction(property, session, action); 1161 res = session->HandleActionUpdateMode(property, session, action); 1169 res = session->HandleActionUpdateMode(property, session, action); [all …]
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_dfile_session.c | 112 session->msgReceiver(session->sessionId, msgType, msg); in NotifyMsgRecver() 195 session->fileListPendingCnt, session->fileListProcessingCnt, session->smallListPendingCnt, in SendSmallAndPendingList() 340 DFileSession *session = peerInfo->session; in DTransMsgReceiver() local 613 peerInfo->session = session; in CreatePeerInfo() 849 transPara.session = session; in CreateTrans() 909 DFileSession *session = peerInfo->session; in DFileWriteHandle() local 1144 … session->fileManager->iowBytes, session->fileManager->iowCount, session->fileManager->iowRate); in DFileRecvCalculateRate() 1247 struct DFileSession *session = sendThreadCtx->session; in DFileAddiSenderHandle() local 1344 sendThreadCtx->session = session; in CreateAddiSendThread() 1728 …if (PostEvent(&session->eventNodeChain, session->epollfd, ReadEventHandle, session) != NSTACKX_EOK… in PostReadEventToMainLoop() [all …]
|
H A D | nstackx_dfile.c | 130 node->session = session; in AddDFileSessionNode() 273 ctx->session = node->session; in NSTACKX_DFileSetStoragePath() 372 ctx->session = (DFileSession *)session; in CreateStoragePathListCtx() 455 DFileSession *session = ctx->session; in DFileSendFileFail() local 471 DFileSession *session = ctx->session; in DFileSendFileInner() local 589 ctx->session = node->session; in SendFilesInner() 730 ctx->session = node->session; in PostSendFailAsync() 792 ctx->session = node->session; in NSTACKX_DFileSendFilesWithRemotePathAndType() 955 free(session); in DFileSessionCreate() 1108 ClearEvent(&session->eventNodeChain, session->epollfd); in StopDFileThreads() [all …]
|
H A D | nstackx_dfile_mp.c | 25 int32_t DFileSocketRecvSP(DFileSession *session) in DFileSocketRecvSP() argument 33 if (CapsTcp(session)) { 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() 58 if (CapsTcp(session)) { in DFileSocketRecvSP() 59 …ret = DFileSessionHandleReadBuffer(session, session->recvBuffer, (size_t)session->recvLen, &peerAd… in DFileSocketRecvSP() 60 session->recvLen = 0; in DFileSocketRecvSP() 107 para->session = session; in CreateSenderThread() [all …]
|
H A D | nstackx_dfile_send.c | 88 DFileSession *session = peerInfo->session; in TcpSendFileDataFrame() local 135 if (CapsTcp(session) && (session->sessionType == DFILE_SESSION_TYPE_SERVER)) { in SendFileDataFrame() 143 if (CapsTcp(session)) { in SendFileDataFrame() 238 flag = CapsTcp(session) ? (session->sendRemain ? 0 : 1) : in DoSendDataFrame() 274 fileProcessCnt = session->fileListProcessingCnt + session->smallListProcessingCnt; in CheckSendByBackPress() 276 …session->stopSendCnt[tid] = (session->stopSendCnt[tid] > fileProcessCnt) ? (session->stopSendCnt[t… in CheckSendByBackPress() 323 if (CapsTcp(session)) { in SendControlFrame() 324 …socket = (session->sessionType == DFILE_SESSION_TYPE_SERVER) ? session->acceptSocket : session->so… in SendControlFrame() 391 } while (!session->closeFlag); in SendOutboundFrame() 429 session->recvLen = session->recvLen + (uint32_t)ret; in TcpSocketRecv() [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/interfaces/kits/native/include/camera/ |
H A D | capture_session.h | 94 typedef void (*OH_CaptureSession_OnSmoothZoomInfo)(Camera_CaptureSession* session, 135 Camera_ErrorCode OH_CaptureSession_RegisterCallback(Camera_CaptureSession* session, 212 Camera_ErrorCode OH_CaptureSession_BeginConfig(Camera_CaptureSession* session); 224 Camera_ErrorCode OH_CaptureSession_CommitConfig(Camera_CaptureSession* session); 360 Camera_ErrorCode OH_CaptureSession_Start(Camera_CaptureSession* session); 371 Camera_ErrorCode OH_CaptureSession_Stop(Camera_CaptureSession* session); 382 Camera_ErrorCode OH_CaptureSession_Release(Camera_CaptureSession* session); 684 Camera_ErrorCode OH_CaptureSession_CanAddInput(Camera_CaptureSession* session, 736 Camera_ErrorCode OH_CaptureSession_CanPreconfig(Camera_CaptureSession* session, 763 Camera_ErrorCode OH_CaptureSession_Preconfig(Camera_CaptureSession* session, [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/module_ipc/ |
H A D | svc_session_manager_throw_mock.cpp | 29 return BackupSvcSessionManager::session->Active(newImpl); in Active() 49 return BackupSvcSessionManager::session->GetScenario(); in GetScenario() 64 BackupSvcSessionManager::session->RemoveExtInfo(bundleName); in RemoveExtInfo() 79 BackupSvcSessionManager::session->DumpInfo(fd, args); in DumpInfo() 84 BackupSvcSessionManager::session->InitClient(newImpl); in InitClient() 154 BackupSvcSessionManager::session->Start(); in Start() 159 BackupSvcSessionManager::session->Finish(); in Finish() 184 BackupSvcSessionManager::session->SetSessionUserId(userId); in SetSessionUserId() 265 BackupSvcSessionManager::session->SetMemParaCurSize(size); in SetMemParaCurSize() 285 return BackupSvcSessionManager::session->GetImpl(); in GetImpl() [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | anomaly_detection.cpp | 35 …if ((session == nullptr) || (!SceneSessionManager::GetInstance().IsSessionVisibleForeground(sessio… in SceneZOrderCheckProcess() 39 if (session->GetZOrder() == 0) { in SceneZOrderCheckProcess() 41 ReportZOrderException("check zorder 0", session); in SceneZOrderCheckProcess() 44 if (session->GetZOrder() == curZOrder) { in SceneZOrderCheckProcess() 48 curZOrder = session->GetZOrder(); in SceneZOrderCheckProcess() 63 auto mainSession = session->GetParentSession(); in SceneZOrderCheckProcess() 74 if (keyGuardFlag && (!session->IsShowWhenLocked()) && (session->IsAppSession())) { in SceneZOrderCheckProcess() 94 if (session == nullptr) { in ReportZOrderException() 101 oss << " cur ZOrder: " << session->GetZOrder() << ";"; in ReportZOrderException() 107 sptr<SceneSession> session) in ReportFocusException() argument [all …]
|
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/ |
H A D | compatible_bind_sub_session.c | 227 res = GenerateBaseBindParams(session->osAccountId, SERVER, jsonParams, session); in GenerateServerBindParams() 294 (void)session; in ReportV1BindCallEvent() 316 ProcessFinishCallback(session->reqId, session->opCode, jsonDataStr, session->base.callback); in InformSelfBindSuccess() 561 NotifyBindResult((ChannelType)session->channelType, session->channelId); in OnSessionFinish() 562 CloseChannel((ChannelType)session->channelType, session->channelId); in OnSessionFinish() 877 *session = NULL; in CreateClientBindSubSession() 883 *session = NULL; in CreateClientBindSubSession() 889 *session = NULL; in CreateClientBindSubSession() 917 *session = NULL; in CreateServerBindSubSession() 924 *session = NULL; in CreateServerBindSubSession() [all …]
|
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/ |
H A D | compatible_auth_sub_session.c | 126 … CJson *paramInSession = (session->paramsList).get(&(session->paramsList), session->currentIndex); in ProcessClientAuthTaskInner() 156 … CJson *paramInSession = (session->paramsList).get(&(session->paramsList), session->currentIndex); in ProcessClientAuthTask() 164 return HandlePeerAuthError(session); in ProcessClientAuthTask() 199 … CJson *paramInSession = (session->paramsList).get(&(session->paramsList), session->currentIndex); in CreateAndProcessClientAuthTask() 224 … CJson *paramInSession = (session->paramsList).get(&(session->paramsList), session->currentIndex); in ProcessServerAuthTaskInner() 242 … CJson *paramInSession = (session->paramsList).get(&(session->paramsList), session->currentIndex); in ProcessServerAuthTask() 268 … CJson *paramInSession = (session->paramsList).get(&(session->paramsList), session->currentIndex); in CreateAndProcessServerAuthTask() 292 CompatibleBaseSubSession **session) in CreateClientAuthSubSession() argument 312 CompatibleBaseSubSession **session) in CreateServerAuthSubSession() argument 355 session->status = STATUS_PROCESSING; in ProcessClientAuthSubSession() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/media/avsession/ |
H A D | using-avsession-developer.md | 44 // 创建session 50 console.info(`session create done : sessionId : ${session.sessionId}`); 66 // 假设已经创建了一个session,如何创建session可以参考之前的案例 144 // 假设已经创建了一个session,如何创建session可以参考之前的案例 176 // 假设已经创建了一个session,如何创建session可以参考之前的案例 200 // 假设已经创建了一个session,如何创建session可以参考之前的案例 228 // 假设已经创建了一个session,如何创建session可以参考之前的案例 304 // 假设已经创建了一个session,如何创建session可以参考之前的案例 335 // 假设已经创建了一个session,如何创建session可以参考之前的案例 364 // 假设已经创建了一个session,如何创建session可以参考之前的案例 [all …]
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/include/ |
H A D | nstackx_dfile_session.h | 164 void NotifyPipeEvent(const DFileSession *session); 165 int32_t CreateReceiverPipe(DFileSession *session); 176 void NoticeSessionProgress(DFileSession *session); 179 int32_t DFileAcceptSocket(DFileSession *session); 185 void DestroyReceiverPipe(DFileSession *session); 192 session->closeFlag |= DFILE_SESSION_FATAL_FLAG; in DFileSessionSetFatalFlag() 207 session->sleepTimes = 0; in ClearSessionStats() 210 session->fileManager->sendListFullTimes = 0; in ClearSessionStats() 211 session->fileManager->iorBytes = 0; in ClearSessionStats() 231 …return ((session->capability & NSTACKX_CAPS_WLAN_CATAGORY) && (session->wlanCatagory == NSTACKX_WL… in CapsTcp() [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/ |
H A D | obex_mp_server.cpp | 57 SetBusy(session, true); in HandlePutRequest() 86 … if (session.GetReceivedObject()->IsSrmEnable() && !session.GetReceivedObject()->IsSrmWait()) { in HandlePutRequest() 115 session.FreeReceivedObject(); in HandlePutFinalRequest() 127 SetBusy(session, false); in HandlePutFinalRequest() 144 session.SendSrmResponse(); in HandleTransportDataBusy() 178 session.FreeSendObject(); in HandleGetRequest() 189 session.FreeSendObject(); in HandleGetRequest() 195 SetBusy(session, false); in HandleGetRequest() 203 session.FreeSendObject(); in HandleAbortRequest() 204 session.FreeReceivedObject(); in HandleAbortRequest() [all …]
|
/ohos5.0/base/security/device_auth/services/session_manager/src/ |
H A D | dev_session_mgr.c | 43 DevSession *session = ptr->session; in GetSessionInfo() local 62 DevSession *session = sessionInfo->session; in RemoveTimeoutSession() local 66 session->destroy(session); in RemoveTimeoutSession() 91 newSessionInfo.session = session; in AddNewSessionToList() 117 ptr->session->destroy(ptr->session); in DestroyDevSessionManager() 155 session->destroy(session); in OpenDevSession() 177 res = session->start(session); in StartDevSession() 210 DevSession *session = ptr->session; in CloseDevSession() local 212 session->destroy(session); in CloseDevSession() 234 DevSession *session = ptr->session; in CancelDevSession() local [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/test/fuzztest/timelapsephotosession_fuzzer/ |
H A D | time_lapse_photo_session_fuzzer.cpp | 129 session->LockForControl(); in TestTimeLapsePhoto() 130 session->StartTryAE(); in TestTimeLapsePhoto() 132 session->LockForControl(); in TestTimeLapsePhoto() 133 session->StopTryAE(); in TestTimeLapsePhoto() 147 session->LockForControl(); in TestTimeLapsePhoto() 174 session->SetExposure(0); in TestManualExposure() 175 session->SetExposure(1); in TestManualExposure() 272 session->GetMetadata(); in TestGetMetadata() 478 session->BeginConfig(); in Test() 488 session->CommitConfig(); in Test() [all …]
|
/ohos5.0/base/account/os_account/services/accountmgr/src/appaccount/ |
H A D | app_account_authenticator_session_manager.cpp | 88 return OpenSession(session); in AddAccountImplicitly() 94 return OpenSession(session); in CreateAccountImplicitly() 100 return OpenSession(session); in Authenticate() 131 OpenSession(session); in SelectAccountsByOptions() 144 if (session == nullptr) { in OpenSession() 229 if (session != nullptr) { in OnSessionServerDied() 238 if (session != nullptr) { in OnSessionAbilityConnectDone() 247 if (session != nullptr) { in OnSessionAbilityDisconnectDone() 256 if (session != nullptr) { in OnSessionResult() 265 if (session != nullptr) { in OnSessionRequestRedirected() [all …]
|
/ohos5.0/base/inputmethod/imf/services/src/ |
H A D | input_method_system_ability.cpp | 171 if (session == nullptr) { in UpdateUserLockState() 175 if (session == nullptr) { in UpdateUserLockState() 243 if (session == nullptr) { in PrepareInput() 280 if (session == nullptr) { in ReleaseInput() 295 if (session == nullptr) { in StartInput() 354 if (session == nullptr) { in CheckInputTypeOption() 370 if (session == nullptr) { in ShowInput() 391 if (session == nullptr) { in HideInput() 412 if (session == nullptr) { in StopInputSession() 433 if (session == nullptr) { in RequestShowInput() [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | screen_session_test.cpp | 658 session->screenId_ = session->defaultScreenId_; 1162 session->activeIdx_ = -1; 1167 session->activeIdx_ = 100; 1462 session->Connect(); 1491 session->Disconnect(); 1896 session->SetName(name); 1956 session->activeIdx_ = -1; 1964 session->activeIdx_ = 0; 2020 session->activeIdx_ = -1; 2028 session->activeIdx_ = 0; [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/ |
H A D | scene_session.cpp | 109 if (!session) { in ConnectInner() 153 if (!session) { in Reconnect() 542 session->GetPersistentId(), session->GetSessionState()); in UpdateActiveStatus() 562 session->isActive_, session->GetSessionState()); in UpdateActiveStatus() 635 if (!session || !session->moveDragController_) { in SyncSessionEvent() 893 if (!session) { in CheckAspectRatioValid() 953 session->SaveAspectRatio(session->aspectRatio_); in SetAspectRatio() 3617 session->HandleCastScreenConnection(info, session); in PendingSessionActivation() 4507 if (!session || session->isTerminating_) { in UpdatePiPRect() 4541 if (!session || session->isTerminating_) { in UpdatePiPControlStatus() [all …]
|
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v1/ |
H A D | compatible_sub_session.c | 23 const DeviceAuthCallback *callback, CompatibleBaseSubSession **session) in CreateCompatibleSubSession() argument 26 if (jsonParams == NULL || callback == NULL || session == NULL) { in CreateCompatibleSubSession() 47 if (session == NULL || in == NULL || out == NULL || status == NULL) { in ProcessCompatibleSubSession() 51 switch (session->type) { in ProcessCompatibleSubSession() 55 return ProcessServerBindSubSession(session, in, status); in ProcessCompatibleSubSession() 59 return ProcessServerAuthSubSession(session, in, status); in ProcessCompatibleSubSession() 66 void DestroyCompatibleSubSession(CompatibleBaseSubSession *session) in DestroyCompatibleSubSession() argument 68 if (session == NULL) { in DestroyCompatibleSubSession() 72 switch (session->type) { in DestroyCompatibleSubSession() 75 DestroyCompatibleBindSubSession(session); in DestroyCompatibleSubSession() [all …]
|