Home
last modified time | relevance | path

Searched refs:preState (Results 1 - 12 of 12) sorted by relevance

/foundation/resourceschedule/ffrt/test/ut/testcase/
H A Dut_scheduler.cpp139 auto preState = task->state.PreState(); in HWTEST_F() local
142 decreCount(preState); in HWTEST_F()
145 EXPECT_EQ(expectCount[static_cast<size_t>(preState)], TaskManager::Instance().GetCount(preState)); in HWTEST_F()
/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()
/foundation/resourceschedule/ffrt/src/sched/
H A Dtask_state.h70 return preState; in PreState()
130 State preState = PENDING; member in ffrt::TaskState
H A Dtask_state.cpp40 task->state.preState = task->state.curState; in OnTransition()
/foundation/ability/ability_runtime/frameworks/native/ability/native/continuation/distributed/
H A Dcontinuation_manager_stage.cpp465 void ContinuationManagerStage::RestoreStateWhenTimeout(long timeoutInMs, const ProgressState &preState) in RestoreStateWhenTimeout() argument
470 auto timeoutTask = [continuationManager = shared_from_this(), preState]() { in RestoreStateWhenTimeout()
472 "preState = %{public}d, currentState = %{public}d", preState, continuationManager->GetProcessState()); in RestoreStateWhenTimeout()
473 if (preState == continuationManager->GetProcessState()) { in RestoreStateWhenTimeout()
H A Dcontinuation_manager.cpp449 void ContinuationManager::RestoreStateWhenTimeout(long timeoutInMs, const ProgressState &preState) in RestoreStateWhenTimeout() argument
453 auto timeoutTask = [continuationManager = shared_from_this(), preState]() { in RestoreStateWhenTimeout()
455 "preState = %{public}d, currentState = %{public}d", in RestoreStateWhenTimeout()
456 preState, in RestoreStateWhenTimeout()
458 if (preState == continuationManager->GetProcessState()) { in RestoreStateWhenTimeout()
/foundation/resourceschedule/device_standby/plugins/strategy/src/
H A Dbase_network_strategy.cpp349 uint32_t preState = static_cast<uint32_t>(message.want_->GetIntParam(PREVIOUS_STATE, 0)); in DisableNetworkFirewall() local
351 if ((curState == StandbyState::MAINTENANCE) && (preState == StandbyState::SLEEP)) { in DisableNetworkFirewall()
356 } else if ((curState == StandbyState::SLEEP) && (preState == StandbyState::MAINTENANCE)) { in DisableNetworkFirewall()
361 } 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()
/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 LOGD("[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()
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/continuation/distributed/
H A Dcontinuation_manager_stage.h191 void RestoreStateWhenTimeout(long timeoutInMs, const ProgressState &preState);
H A Dcontinuation_manager.h96 void RestoreStateWhenTimeout(long timeoutInMs, const ProgressState &preState);
/foundation/resourceschedule/device_standby/plugins/standby_state/include/
H A Dstate_manager_adapter.h45 void SendNotification(uint32_t preState, bool needDispatchEvent);

Completed in 9 milliseconds