Home
last modified time | relevance | path

Searched refs:curState (Results 1 – 21 of 21) sorted by relevance

/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
Dmk_agree.c49 int32_t curState; member
94 if (cmd->curState == CLIENT_INIT_STATE) { in AddEventByState()
96 } else if (cmd->curState == SERVER_WAIT_REQUEST_STATE) { in AddEventByState()
106 LOGI("process mk agree task, current state is: %d", cmd->curState); in ProcessMkAgreeTask()
119 if (cmd->curState == CLIENT_WAIT_RESPONSE_STATE) { in ProcessMkAgreeTask()
175 … if ((STATE_MACHINE[i].curState == cmd->curState) && (STATE_MACHINE[i].eventType == eventType)) { in SwitchState()
179 cmd->curState = cmd->failState; in SwitchState()
182 …LOGI("event: %d, curState: %d, nextState: %d", eventType, cmd->curState, STATE_MACHINE[i].nextStat… in SwitchState()
183 cmd->curState = STATE_MACHINE[i].nextState; in SwitchState()
184 … *returnState = (cmd->curState == cmd->finishState) ? CMD_STATE_FINISH : CMD_STATE_CONTINUE; in SwitchState()
[all …]
Dauth_code_import.c91 int32_t curState; member
461 … if ((STATE_MACHINE[i].curState == self->curState) && (STATE_MACHINE[i].eventType == eventType)) { in SwitchState()
465 self->curState = self->failState; in SwitchState()
468 …LOGI("event: %d, curState: %d, nextState: %d", eventType, self->curState, STATE_MACHINE[i].nextSta… in SwitchState()
469 self->curState = STATE_MACHINE[i].nextState; in SwitchState()
470 … *returnState = (self->curState == self->finishState) ? CMD_STATE_FINISH : CMD_STATE_CONTINUE; in SwitchState()
474 …("Unsupported event type. Ignore process. [Event]: %d, [CurState]: %d", eventType, self->curState); in SwitchState()
484 if (self->curState != self->beginState) { in StartAuthCodeImportCmd()
499 if ((self->curState == self->finishState) || (self->curState == self->failState)) { in ProcessAuthCodeImportCmd()
552 instance->base.curState = instance->base.beginState; in InitAuthCodeImportCmd()
Dpub_key_exchange.c102 int32_t curState; member
593 … if ((STATE_MACHINE[i].curState == self->curState) && (STATE_MACHINE[i].eventType == eventType)) { in SwitchState()
597 self->curState = self->failState; in SwitchState()
600 …LOGI("event: %d, curState: %d, nextState: %d", eventType, self->curState, STATE_MACHINE[i].nextSta… in SwitchState()
601 self->curState = STATE_MACHINE[i].nextState; in SwitchState()
602 … *returnState = (self->curState == self->finishState) ? CMD_STATE_FINISH : CMD_STATE_CONTINUE; in SwitchState()
606 …("Unsupported event type. Ignore process. [Event]: %d, [CurState]: %d", eventType, self->curState); in SwitchState()
616 if (self->curState != self->beginState) { in StartPubKeyExchangeCmd()
631 if ((self->curState == self->finishState) || (self->curState == self->failState)) { in ProcessPubKeyExchangeCmd()
685 instance->base.curState = instance->base.beginState; in InitPubkeyExchangeCmd()
Dsave_trusted_info.c90 int32_t curState; member
689 … if ((STATE_MACHINE[i].curState == self->curState) && (STATE_MACHINE[i].eventType == eventType)) { in SwitchState()
693 self->curState = self->failState; in SwitchState()
696 …LOGI("event: %d, curState: %d, nextState: %d", eventType, self->curState, STATE_MACHINE[i].nextSta… in SwitchState()
697 self->curState = STATE_MACHINE[i].nextState; in SwitchState()
698 … *returnState = (self->curState == self->finishState) ? CMD_STATE_FINISH : CMD_STATE_CONTINUE; in SwitchState()
702 …("Unsupported event type. Ignore process. [Event]: %d, [CurState]: %d", eventType, self->curState); in SwitchState()
712 if (self->curState != self->beginState) { in StartSaveTrustedInfoCmd()
727 if ((self->curState == self->finishState) || (self->curState == self->failState)) { in ProcessSaveTrustedInfoCmd()
794 instance->base.curState = instance->base.beginState; in InitSaveTrustedInfoCmd()
/base/telephony/cellular_call/services/control/src/
Dcontrol_base.cpp103 bool ControlBase::IsConnectedOut(TelCallState preState, TelCallState curState) in IsConnectedOut() argument
106 …!(curState == TelCallState::CALL_STATUS_DIALING || curState == TelCallState::CALL_STATUS_ALERTING)… in IsConnectedOut()
/base/security/device_auth/services/session_manager/inc/session/v2/expand_sub_session/expand_process_lib/
Dbase_cmd.h37 int32_t curState; member
/base/security/device_auth/services/session_manager/inc/session/
Ddev_session_def.h41 int32_t curState; member
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/
Diso_protocol.c67 int32_t curState; member
718 … if ((STATE_MACHINE[i].curState == self->curState) && (STATE_MACHINE[i].eventType == eventType)) { in IsoProtocolSwitchState()
722 self->curState = self->failState; in IsoProtocolSwitchState()
725 …LOGI("event: %d, curState: %d, nextState: %d", eventType, self->curState, STATE_MACHINE[i].nextSta… in IsoProtocolSwitchState()
726 self->curState = STATE_MACHINE[i].nextState; in IsoProtocolSwitchState()
730 …("Unsupported event type. Ignore process. [Event]: %d, [CurState]: %d", eventType, self->curState); in IsoProtocolSwitchState()
740 if ((self->curState == self->finishState) || (self->curState == self->failState)) { in StartIsoProtocol()
753 if ((self->curState == self->finishState) || (self->curState == self->failState)) { in ProcessIsoProtocol()
807 if (self->curState != self->finishState) { in GetIsoSessionKey()
856 instance->base.curState = instance->base.beginState; in CreateIsoProtocol()
Dec_speke_protocol.c77 int32_t curState; member
963 … if ((STATE_MACHINE[i].curState == self->curState) && (STATE_MACHINE[i].eventType == eventType)) { in EcSpekeProtocolSwitchState()
967 self->curState = self->failState; in EcSpekeProtocolSwitchState()
970 …LOGI("event: %d, curState: %d, nextState: %d", eventType, self->curState, STATE_MACHINE[i].nextSta… in EcSpekeProtocolSwitchState()
971 self->curState = STATE_MACHINE[i].nextState; in EcSpekeProtocolSwitchState()
975 …("Unsupported event type. Ignore process. [Event]: %d, [CurState]: %d", eventType, self->curState); in EcSpekeProtocolSwitchState()
985 if ((self->curState == self->finishState) || (self->curState == self->failState)) { in StartEcSpekeProtocol()
998 if ((self->curState == self->finishState) || (self->curState == self->failState)) { in ProcessEcSpekeProtocol()
1052 if (self->curState != self->finishState) { in GetEcSpekeSessionKey()
1092 instance->base.curState = instance->base.beginState; in BuildEcSpekeProtocolObj()
/base/security/device_auth/services/session_manager/inc/session/v2/auth_sub_session/protocol_lib/
Dbase_protocol.h32 int32_t curState; member
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/auth_sub_session/protocol_lib/
Diso_protocol_test.cpp325 self->curState = self->finishState;
341 self->curState = self->failState;
400 self->curState = self->finishState;
417 self->curState = self->failState;
Dec_speke_protocol_test.cpp386 self->curState = self->finishState;
402 self->curState = self->failState;
461 self->curState = self->finishState;
478 self->curState = self->failState;
/base/security/device_auth/services/session_manager/src/session/v2/
Ddev_session_v2.c70 int32_t curState; member
1863 …if ((STATE_MACHINE[i].curState == impl->curState) && (STATE_MACHINE[i].eventType == event->type)) { in SessionSwitchState()
1865 int32_t preState = impl->curState; in SessionSwitchState()
1869 impl->curState = SESSION_FAIL_STATE; in SessionSwitchState()
1873 impl->curState = STATE_MACHINE[i].nextState; in SessionSwitchState()
1875 impl->curState = impl->restartState; in SessionSwitchState()
1877 impl->curState = SESSION_FINISH_STATE; in SessionSwitchState()
1879 … LOGI("[Event]: %d, [CurState]: %d, [nextState]: %d", event->type, preState, impl->curState); in SessionSwitchState()
1883 …Unsupported event type. Ignore process. [Event]: %d, [CurState]: %d", event->type, impl->curState); in SessionSwitchState()
/base/security/device_auth/services/session_manager/src/session/
Ddev_session_fwk.c482 if (impl->curState == SESSION_FINISH_STATE) { in ProcV2Session()
557 session->curState = session->isClient ? INIT_CLIENT_STATE : INIT_SERVER_STATE; in BuildDevSession()
558 session->restartState = session->curState; in BuildDevSession()
/base/telephony/cellular_call/services/control/include/
Dcontrol_base.h195 bool IsConnectedOut(TelCallState preState, TelCallState curState);
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/
Dauth_sub_session.c85 …impl->base.state = (protocol->curState == protocol->finishState) ? AUTH_STATE_FINISH : AUTH_STATE_… in ProcessAuthSubSession()
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/expand_process_lib/
Dpub_key_exchange_test.cpp274 self->curState = self->finishState;
290 self->curState = self->failState;
Dauth_code_import_test.cpp274 self->curState = self->finishState;
290 self->curState = self->failState;
Dsave_trusted_info_test.cpp464 self->curState = self->finishState;
480 self->curState = self->failState;
/base/telephony/core_service/services/sim/include/
Dsim_file.h146 std::string ParseSpn(const std::string &rawData, int curState);
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/
Dexpand_sub_session.c312 if ((!cmd->isCaller) || (cmd->curState != cmd->beginState)) { in StartNewCmds()