Home
last modified time | relevance | path

Searched refs:State (Results 1 - 25 of 367) sorted by relevance

12345678910>>...15

/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/utils/
H A Dhgm_state_machine.h31 using State = StateType;
36 using StateChangeCallback = std::function<void(State, State)>;
38 using StateChangeCallbacksType = std::unordered_map<State, std::unordered_map<int32_t, StateChangeCallback>>;
40 explicit HgmStateMachine(State state) : state_(state) {} in HgmStateMachine()
43 State GetState() { return state_.load(); } in GetState()
44 void ChangeState(State state);
47 int32_t RegisterEnterStateCallback(State state, const StateChangeCallback& callback);
48 void UnRegisterEnterStateCallback(State state, int32_t callbackId);
49 int32_t RegisterExitStateCallback(State stat
[all...]
/foundation/multimedia/media_foundation/engine/scene/recorder/internal/
H A Dstate.cpp16 #define HST_LOG_TAG "State"
23 State::State(StateId stateId, std::string name, RecorderExecutor& executor) in State() function in OHOS::Media::Record::State
28 std::tuple<ErrorCode, Action> State::Enter(Intent intent) in Enter()
35 void State::Exit() in Exit()
40 std::tuple<ErrorCode, Action> State::Execute(Intent intent, const Plugin::Any& param) in Execute()
45 const std::string& State::GetName() in GetName()
50 StateId State::GetStateId() in GetStateId()
55 std::tuple<ErrorCode, Action> State::SetVideoSource(const Plugin::Any& param) in SetVideoSource()
61 std::tuple<ErrorCode, Action> State
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/cloud/
H A Dcloud_sync_state_machine.cpp27 using State = CloudSyncState;
36 {State::IDLE, Event::START_SYNC_EVENT, State::DO_DOWNLOAD},
37 {State::IDLE, Event::ERROR_EVENT, State::DO_FINISHED},
40 {State::DO_DOWNLOAD, Event::DOWNLOAD_FINISHED_EVENT, State::DO_UPLOAD},
41 {State::DO_DOWNLOAD, Event::ERROR_EVENT, State::DO_FINISHED},
44 {State
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/util/
H A Dstate_machine.h28 class State { class in utility::StateMachine
31 * @brief Construct a new State object.
32 * @param name State's name.
33 * @param statemachine State is owned by which StateMachine.
34 * @param parent State's parent state.
37 explicit State(const std::string &name, StateMachine &statemachine) in State() function in utility::StateMachine::State
41 * @brief Construct a new State object.
42 * @param name State's name.
43 * @param statemachine State is owned by which StateMachine.
44 * @param parent State'
47 explicit State(const std::string &name, StateMachine &statemachine, State &parent) State() function in utility::StateMachine::State
[all...]
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/wakeup/
H A Dwakeup_engine_impl.h34 using OHOS::IntellVoiceUtils::State;
71 int32_t HandleGetParam(const StateMsg &msg, State &nextState);
72 int32_t HandleSetParam(const StateMsg &msg, State &nextState);
73 int32_t HandleInit(const StateMsg &msg, State &nextState);
74 int32_t HandleSetListener(const StateMsg &msg, State &nextState);
75 int32_t HandleInitDone(const StateMsg &msg, State &nextState);
76 int32_t HandleStart(const StateMsg &msg, State &nextState);
77 int32_t HandleStop(const StateMsg &msg, State &nextState);
78 int32_t HandleRecognizeComplete(const StateMsg &msg, State &nextState);
79 int32_t HandleReconfirmRecognitionComplete(const StateMsg &msg, State
[all...]
/foundation/multimedia/media_foundation/engine/plugin/core/
H A Dplugin_core_utils.cpp20 const char* GetStateString(State state) in GetStateString()
24 case State::CREATED: in GetStateString()
26 case State::INITIALIZED: in GetStateString()
28 case State::DESTROYED: in GetStateString()
30 case State::PREPARED: in GetStateString()
32 case State::RUNNING: in GetStateString()
34 case State::PAUSED: in GetStateString()
H A Dbase.cpp33 RETURN_WRONG_STATE_IF_CON_TRUE(pluginState_ == State::DESTROYED, plugin_, pluginState_.load()); in Init()
34 if (pluginState_ != State::CREATED) { in Init()
41 pluginState_ = State::INITIALIZED; in Init()
51 if (pluginState_ == State::DESTROYED) { in Deinit()
58 pluginState_ = State::DESTROYED; in Deinit()
67 RETURN_WRONG_STATE_IF_CON_TRUE(pluginState_ != State::PREPARED && pluginState_ != State::INITIALIZED, in Prepare()
69 if (pluginState_ == State::PREPARED) { in Prepare()
76 pluginState_ = State::PREPARED; in Prepare()
86 RETURN_WRONG_STATE_IF_CON_TRUE(pluginState_ == State in Reset()
[all...]
/foundation/resourceschedule/ffrt/src/sched/
H A Dtask_state.h31 enum State { PENDING, READY, RUNNING, BLOCKED, EXITED, MAX }; enum in ffrt::TaskState
43 bool operator==(State state) const in operator ==()
48 bool operator!=(State state) const in operator !=()
53 State operator()() const in operator ()()
58 State CurState() const in CurState()
63 void SetCurState(State state) in SetCurState()
68 State PreState() const in PreState()
96 static void RegisterOps(State state, Op&& op) in RegisterOps()
101 static int OnTransition(State state, CPUEUTask* task, Op&& op = Op());
103 static const char* String(State stat
[all...]
/foundation/CastEngine/castengine_cast_plus_stream/src/utils/include/
H A Dstate_machine.h30 class State { class
32 explicit State(const std::shared_ptr<State> &parentState = nullptr) : parentState_(parentState) {} in State() function in OHOS::CastEngine::CastEngineService::State
33 std::shared_ptr<State> GetParentState() in GetParentState()
39 virtual ~State() = default;
46 std::shared_ptr<State> parentState_;
47 DISALLOW_EVIL_CONSTRUCTORS(State);
57 void TransferState(const std::shared_ptr<State> &state);
62 std::shared_ptr<State> state_;
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/utils/include/
H A Dstate_machine.h30 class State { class
32 explicit State(const std::shared_ptr<State> &parentState = nullptr) : parentState_(parentState) {} in State() function in OHOS::CastEngine::CastEngineService::State
33 std::shared_ptr<State> GetParentState() in GetParentState()
39 virtual ~State() = default;
46 std::shared_ptr<State> parentState_;
47 DISALLOW_EVIL_CONSTRUCTORS(State);
57 void TransferState(const std::shared_ptr<State> &state);
62 std::shared_ptr<State> state_;
/foundation/arkui/ace_engine_lite/frameworks/src/core/router/
H A Djs_page_state.h23 class State : public MemoryHeap { class
25 State() {} in State() function in OHOS::ACELite::State
26 virtual ~State() {} in ~State()
30 class PageInitState final : public State {
34 class PageReadyState final : public State {
38 class PageShowState final : public State {
42 class PageBackgroundState final : public State {
46 class PageDestroyState final : public State {
/foundation/multimedia/media_foundation/engine/scene/player/internal/
H A Dstate.cpp16 #define HST_LOG_TAG "State"
24 const char* State::GetStateName(StateId state) in GetStateName()
39 const char* State::GetIntentName(Intent intent) in GetIntentName()
58 const char* State::GetActionName(Action action) in GetActionName()
75 State::State(StateId stateId, std::string name, PlayExecutor& executor) in State() function in OHOS::Media::State
79 std::tuple<ErrorCode, Action> State::Enter(Intent intent) in Enter()
85 void State::Exit() in Exit()
89 std::tuple<ErrorCode, Action> State::Execute(Intent intent, const Plugin::Any& param) in Execute()
93 const std::string& State in Execute()
[all...]
/foundation/CastEngine/castengine_wifi_display/services/utils/
H A Dtimeout_timer.cpp39 if (state_ == State::WAITING) { in ~TimeoutTimer()
40 state_ = State::EXITED; in ~TimeoutTimer()
42 } else if (state_ == State::WORKING) { in ~TimeoutTimer()
43 state_ = State::EXITED; in ~TimeoutTimer()
46 state_ = State::EXITED; in ~TimeoutTimer()
63 if (state_ == State::WORKING) { in StartTimer()
65 state_ = State::CANCELLED; in StartTimer()
84 if (state_ == State::WORKING) { in StopTimer()
85 state_ = State::CANCELLED; in StopTimer()
96 while (state_ != State in MainLoop()
[all...]
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/wakeup/headset/
H A Dheadset_wakeup_engine_impl.h33 using OHOS::IntellVoiceUtils::State;
65 int32_t HandleSetParam(const StateMsg &msg, State &nextState);
66 int32_t HandleInit(const StateMsg &msg, State &nextState);
67 int32_t HandleSetListener(const StateMsg &msg, State &nextState);
68 int32_t HandleInitDone(const StateMsg &msg, State &nextState);
69 int32_t HandleStart(const StateMsg &msg, State &nextState);
70 int32_t HandleStop(const StateMsg &msg, State &nextState);
71 int32_t HandleRecognizeComplete(const StateMsg &msg, State &nextState);
72 int32_t HandleStartCapturer(const StateMsg &msg, State &nextState);
73 int32_t HandleRead(const StateMsg &msg, State
[all...]
/foundation/ai/intelligent_voice_framework/utils/
H A Dstate_manager.h43 struct State { struct
44 State() = default;
45 explicit State(int s) : state(s) {}; in State() function
47 bool operator==(const State &right) const in operator ==()
52 bool operator!=(const State &right) const in operator !=()
57 bool operator<(const State &right) const in operator <()
76 using HandleMsg = std::function<int(const StateMsg &msg, State &nextState)>;
110 int Handle(const StateMsg &msg, State &nextState);
153 explicit ModuleStates(const State &defaultState = State(
[all...]
/foundation/communication/wifi/wifi/base/state_machine/include/
H A Dstate_machine.h283 * @Description : Construct a new State Machine:: State Machine object.
285 * @param name - State name.[in]
290 * @Description : Destroy the State Machine:: State Machine object.
301 void StatePlus(State *state, State *upper);
308 void StateDelete(State *state);
315 void SetFirstState(State *firstState);
322 void SwitchState(State *targetStat
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/
H A Davrcp_ct_state_machine.h330 class State : public utility::StateMachine::State { class in OHOS::bluetooth::AvrcCtStateMachineManager::StateMachine
332 explicit State(const std::string &name, utility::StateMachine &sm, const RawAddress &rawAddr);
333 explicit State(const std::string &name, utility::StateMachine &sm, const RawAddress &rawAddr,
334 utility::StateMachine::State &parent);
335 virtual ~State();
342 State() = delete;
349 class CtConnecting : public State {
392 class CtConnected : public State {
398 utility::StateMachine::State
[all...]
/foundation/communication/wifi/wifi/base/state_machine/src/
H A Dstate.cpp23 State::State(const std::string &name) : mStateName(name) in State() function in OHOS::Wifi::State
26 State::~State() in ~State()
29 std::string State::GetStateName() in GetStateName()
/foundation/bundlemanager/bundle_framework/test/benchmarktest/bundlemgr_proxy_test/
H A Dbundlemgr_proxy_test.cpp110 static void BenchmarkTestGetApplicationInfoByFlag(benchmark::State &state) in BenchmarkTestGetApplicationInfoByFlag()
131 static void BenchmarkTestGetApplicationInfoByUserId(benchmark::State &state) in BenchmarkTestGetApplicationInfoByUserId()
153 static void BenchmarkTestGetApplicationInfosByApplicationFlag(benchmark::State &state) in BenchmarkTestGetApplicationInfosByApplicationFlag()
175 static void BenchmarkTestGetApplicationInfosByFlags(benchmark::State &state) in BenchmarkTestGetApplicationInfosByFlags()
197 static void BenchmarkTestGetBundleInfoByBundleFlag(benchmark::State &state) in BenchmarkTestGetBundleInfoByBundleFlag()
217 static void BenchmarkTestGetBundleInfoByFlags(benchmark::State &state) in BenchmarkTestGetBundleInfoByFlags()
239 static void BenchmarkTestGetBundleInfosByBundleFlag(benchmark::State &state) in BenchmarkTestGetBundleInfosByBundleFlag()
260 static void BenchmarkTestGetBundleInfosByFlags(benchmark::State &state) in BenchmarkTestGetBundleInfosByFlags()
282 static void BenchmarkTestGetUidByBundleName(benchmark::State &state) in BenchmarkTestGetUidByBundleName()
300 static void BenchmarkTestGetAppIdByBundleName(benchmark::State
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/linear_indicator/
H A Dlinear_indicator_controller_test_ng.cpp43 EXPECT_EQ(controller_->animationData_.State(), STATE::ANIMATION); in HWTEST_F()
45 EXPECT_EQ(controller_->animationData_.State(), STATE::ANIMATION_PAUSE); in HWTEST_F()
47 EXPECT_EQ(controller_->animationData_.State(), STATE::ANIMATION); in HWTEST_F()
50 EXPECT_EQ(controller_->animationData_.State(), STATE::STOP); in HWTEST_F()
67 EXPECT_EQ(controller_->animationData_.State(), STATE::ANIMATION); in HWTEST_F()
71 EXPECT_EQ(controller_->animationData_.State(), STATE::INTERVAL); in HWTEST_F()
74 EXPECT_EQ(controller_->animationData_.State(), STATE::INTERVAL_PAUSE); in HWTEST_F()
76 EXPECT_EQ(controller_->animationData_.State(), STATE::STOP); in HWTEST_F()
93 EXPECT_EQ(controller_->animationData_.State(), STATE::ANIMATION); in HWTEST_F()
96 EXPECT_EQ(controller_->animationData_.State(), STAT in HWTEST_F()
[all...]
/foundation/multimedia/av_codec/services/services/codec/server/post_processing/
H A Dstate_machine.h25 enum class State { class
36 State Get() const;
37 void Set(State state);
40 std::atomic<State> state_{State::DISABLED};
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/
H A Dsingle_ver_sync_state_machine.cpp36 using State = SingleVerSyncStateMachine::State;
44 // State switch table v3, has three columns, CurrentState, Event, and OutSate
46 {State::IDLE, Event::START_SYNC_EVENT, State::TIME_SYNC},
49 {State::TIME_SYNC, Event::TIME_SYNC_FINISHED_EVENT, State::ABILITY_SYNC},
50 {State::TIME_SYNC, Event::TIME_OUT_EVENT, State::SYNC_TIME_OUT},
51 {State
[all...]
/foundation/bundlemanager/bundle_framework/test/benchmarktest/json_serializer_test/
H A Djson_serializer_test.cpp33 static void BenchmarkTestForCustomizeDataToJson(benchmark::State &state) in BenchmarkTestForCustomizeDataToJson()
52 static void BenchmarkTestForCustomizeDataFromJson(benchmark::State &state) in BenchmarkTestForCustomizeDataFromJson()
71 static void BenchmarkTestForMetadataToJson(benchmark::State &state) in BenchmarkTestForMetadataToJson()
90 static void BenchmarkTestForMetadataFromJson(benchmark::State &state) in BenchmarkTestForMetadataFromJson()
109 static void BenchmarkTestForAbilityInfoToJson(benchmark::State &state) in BenchmarkTestForAbilityInfoToJson()
128 static void BenchmarkTestForAbilityInfoFromJson(benchmark::State &state) in BenchmarkTestForAbilityInfoFromJson()
147 static void BenchmarkTestForExtensionAbilityInfoToJson(benchmark::State &state) in BenchmarkTestForExtensionAbilityInfoToJson()
166 static void BenchmarkTestForExtensionAbilityInfoFromJson(benchmark::State &state) in BenchmarkTestForExtensionAbilityInfoFromJson()
185 static void BenchmarkTestForApplicationInfoToJson(benchmark::State &state) in BenchmarkTestForApplicationInfoToJson()
204 static void BenchmarkTestForApplicationInfoFromJson(benchmark::State
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/ecs/
H A Dentity_manager.cpp102 if (EntityState::State::ALIVE == e.state) { in ~EntityManager()
105 if (EntityState::State::INACTIVE == e.state) { in ~EntityManager()
119 entities_.push_back({ EntityState::State::ALIVE, generation, nullptr }); in Create()
126 if (slot.state != EntityState::State::FREE) { in Create()
134 slot.state = EntityState::State::ALIVE; in Create()
149 { EntityState::State::ALIVE, generation, IEntityReferenceCounter::Ptr { new EntityReferenceCounter } }); in CreateReferenceCounted()
157 if (slot.state != EntityState::State::FREE) { in CreateReferenceCounted()
166 slot.state = EntityState::State::ALIVE; in CreateReferenceCounted()
181 ((e.state == EntityState::State::ALIVE) || (e.state == EntityState::State in GetReferenceCounted()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/
H A Davrcp_tg_state_machine.h311 class State : public utility::StateMachine::State { class in OHOS::bluetooth::AvrcTgStateMachineManager::StateMachine
313 explicit State(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr);
314 explicit State(const std::string &name, utility::StateMachine &stateMachine, const RawAddress &rawAddr,
315 utility::StateMachine::State &parent);
316 virtual ~State();
323 State() = delete;
330 class CtConnecting : public State {
373 class CtConnected : public State {
379 utility::StateMachine::State
[all...]

Completed in 12 milliseconds

12345678910>>...15