Home
last modified time | relevance | path

Searched refs:preState (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/base/hiviewdfx/hiview/plugins/unified_collector/app_trace/
H A Dapp_trace_context.cpp218 bool StartTraceState::Accept(std::shared_ptr<AppTraceState> preState) in Accept() argument
221 if (preState->GetState() == TRACE_STATE_STOP_APP_TRACE) { in Accept()
282 bool DumpTraceState::Accept(std::shared_ptr<AppTraceState> preState) in Accept() argument
285 if (preState->GetState() == TRACE_STATE_START_APP_TRACE) { in Accept()
286 if (preState->appCallerEvent_->pid_ != appCallerEvent_->pid_) { in Accept()
345 bool StopTraceState::Accept(std::shared_ptr<AppTraceState> preState) in Accept() argument
348 if (preState->GetState() == TRACE_STATE_START_APP_TRACE) { in Accept()
353 if (preState->GetState() == TRACE_STATE_DUMP_APP_TRACE) { in Accept()
/ohos5.0/foundation/resourceschedule/ffrt/test/ut/testcase/
H A Dut_scheduler.cpp138 auto preState = task->state.PreState(); variable
141 decreCount(preState);
144 … EXPECT_EQ(expectCount[static_cast<size_t>(preState)], TaskManager::Instance().GetCount(preState));
/ohos5.0/base/hiviewdfx/hiview/plugins/unified_collector/app_trace/include/
H A Dapp_trace_context.h57 virtual bool Accept(std::shared_ptr<AppTraceState> preState) = 0;
76 bool Accept(std::shared_ptr<AppTraceState> preState) override;
95 bool Accept(std::shared_ptr<AppTraceState> preState) override;
/ohos5.0/foundation/resourceschedule/device_standby/plugins/standby_state/src/
H A Dstate_manager_adapter.cpp309 uint32_t preState = preStatePtr_->GetCurState(); in OnScreenOffHalfHourInner() local
311 STATE_NAME_LIST[curState].c_str(), STATE_NAME_LIST[preState].c_str()); in OnScreenOffHalfHourInner()
312 … if (scrOffHalfHourCtrl && !(curState == StandbyState::SLEEP || (preState == StandbyState::SLEEP && in OnScreenOffHalfHourInner()
327 void StateManagerAdapter::SendNotification(uint32_t preState, bool needDispatchEvent) in SendNotification() argument
331 STATE_NAME_LIST[preState].c_str(), STATE_NAME_LIST[curState].c_str()); in SendNotification()
335 message.want_->SetParam(PREVIOUS_STATE, static_cast<int32_t>(preState)); in SendNotification()
/ohos5.0/base/telephony/cellular_call/services/control/src/
H A Dcontrol_base.cpp100 bool ControlBase::IsConnectedOut(TelCallState preState, TelCallState curState) in IsConnectedOut() argument
102 …if ((preState == TelCallState::CALL_STATUS_DIALING || preState == TelCallState::CALL_STATUS_ALERTI… in IsConnectedOut()
/ohos5.0/foundation/resourceschedule/ffrt/src/sched/
H A Dtask_state.h70 return preState; in PreState()
130 State preState = PENDING; variable
H A Dtask_state.cpp39 task->state.preState = task->state.curState; in OnTransition()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_single_ver_storage_engine.cpp459 EngineState preState = GetEngineState(); in ExecuteMigrate() local
461 if (preState == EngineState::MIGRATING || preState == EngineState::INVALID || in ExecuteMigrate()
464 …"[SqlSingleVerEngine] Being single ver migrating or never create db! engine state [%u]", preState); in ExecuteMigrate()
479 errCode = InitExecuteMigrate(handle, preState); in ExecuteMigrate()
486 static_cast<unsigned>(preState), static_cast<unsigned>(executorState_)); in ExecuteMigrate()
503 errCode = FinishMigrateData(handle, preState); in ExecuteMigrate()
511 EndMigrate(handle, preState, errCode, isNeedTriggerSync); in ExecuteMigrate()
/ohos5.0/foundation/resourceschedule/device_standby/plugins/strategy/src/
H A Dbase_network_strategy.cpp344 uint32_t preState = static_cast<uint32_t>(message.want_->GetIntParam(PREVIOUS_STATE, 0)); in DisableNetworkFirewall() local
346 if ((curState == StandbyState::MAINTENANCE) && (preState == StandbyState::SLEEP)) { in DisableNetworkFirewall()
351 } else if ((curState == StandbyState::SLEEP) && (preState == StandbyState::MAINTENANCE)) { in DisableNetworkFirewall()
356 } else if (preState == StandbyState::SLEEP || preState == StandbyState::MAINTENANCE) { in DisableNetworkFirewall()
H A Drunning_lock_strategy.cpp372 uint32_t preState = static_cast<uint32_t>(message.want_->GetIntParam(PREVIOUS_STATE, 0)); in StopProxy() local
374 if ((curState == StandbyState::MAINTENANCE) && (preState == StandbyState::SLEEP)) { in StopProxy()
378 } else if ((curState == StandbyState::SLEEP) && (preState == StandbyState::MAINTENANCE)) { in StopProxy()
382 } else if (preState == StandbyState::SLEEP || preState == StandbyState::MAINTENANCE) { in StopProxy()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/continuation/distributed/
H A Dcontinuation_manager.cpp442 void ContinuationManager::RestoreStateWhenTimeout(long timeoutInMs, const ProgressState &preState) in RestoreStateWhenTimeout() argument
446 auto timeoutTask = [continuationManager = shared_from_this(), preState]() { in RestoreStateWhenTimeout()
449 preState, in RestoreStateWhenTimeout()
451 if (preState == continuationManager->GetProcessState()) { in RestoreStateWhenTimeout()
H A Dcontinuation_manager_stage.cpp457 … ContinuationManagerStage::RestoreStateWhenTimeout(long timeoutInMs, const ProgressState &preState) in RestoreStateWhenTimeout() argument
462 auto timeoutTask = [continuationManager = shared_from_this(), preState]() { in RestoreStateWhenTimeout()
464 …"preState = %{public}d, currentState = %{public}d", preState, continuationManager->GetProcessState… in RestoreStateWhenTimeout()
465 if (preState == continuationManager->GetProcessState()) { in RestoreStateWhenTimeout()
/ohos5.0/foundation/resourceschedule/device_standby/plugins/standby_state/include/
H A Dstate_manager_adapter.h45 void SendNotification(uint32_t preState, bool needDispatchEvent);
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/continuation/distributed/
H A Dcontinuation_manager.h95 void RestoreStateWhenTimeout(long timeoutInMs, const ProgressState &preState);
H A Dcontinuation_manager_stage.h189 void RestoreStateWhenTimeout(long timeoutInMs, const ProgressState &preState);
/ohos5.0/base/telephony/cellular_call/services/control/include/
H A Dcontrol_base.h195 bool IsConnectedOut(TelCallState preState, TelCallState curState);
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/
H A Ddev_session_v2.c2097 int32_t preState = impl->curState; in SessionSwitchState() local
2111 … LOGI("[Event]: %d, [CurState]: %d, [nextState]: %d", event->type, preState, impl->curState); in SessionSwitchState()