/foundation/resourceschedule/ffrt/test/ut/testcase/ |
H A D | ut_scheduler.cpp | 139 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 D | state_manager_adapter.cpp | 309 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 D | task_state.h | 70 return preState; in PreState() 130 State preState = PENDING; member in ffrt::TaskState
|
H A D | task_state.cpp | 40 task->state.preState = task->state.curState; in OnTransition()
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/continuation/distributed/ |
H A D | continuation_manager_stage.cpp | 465 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 D | continuation_manager.cpp | 449 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 D | base_network_strategy.cpp | 349 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 D | running_lock_strategy.cpp | 372 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 D | sqlite_single_ver_storage_engine.cpp | 459 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 D | continuation_manager_stage.h | 191 void RestoreStateWhenTimeout(long timeoutInMs, const ProgressState &preState);
|
H A D | continuation_manager.h | 96 void RestoreStateWhenTimeout(long timeoutInMs, const ProgressState &preState);
|
/foundation/resourceschedule/device_standby/plugins/standby_state/include/ |
H A D | state_manager_adapter.h | 45 void SendNotification(uint32_t preState, bool needDispatchEvent);
|