Home
last modified time | relevance | path

Searched refs:State (Results 1 – 25 of 1886) sorted by relevance

12345678910>>...76

/ohos5.0/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)>;
44 void ChangeState(State state);
57 virtual bool CheckChangeStateValid(State lastState, State newState) { return true; } in CheckChangeStateValid()
72 std::atomic<State> state_;
80 template<typename State, typename Event>
81 void HgmStateMachine<State, Event>::ChangeState(State state) in ChangeState()
115 template<typename State, typename Event>
125 template<typename State, typename Event>
132 void HgmStateMachine<State, Event>::UnRegisterEnterStateCallback(State state, int32_t callbackId) in UnRegisterEnterStateCallback()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/cloud/
H A Dcloud_sync_state_machine.cpp27 using State = CloudSyncState; typedef
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::DO_UPLOAD, Event::UPLOAD_FINISHED_EVENT, State::DO_FINISHED},
45 {State::DO_UPLOAD, Event::ERROR_EVENT, State::DO_FINISHED},
46 {State::DO_UPLOAD, Event::REPEAT_CHECK_EVENT, State::DO_REPEAT_CHECK},
49 {State::DO_REPEAT_CHECK, Event::REPEAT_DOWNLOAD_EVENT, State::DO_DOWNLOAD},
50 {State::DO_REPEAT_CHECK, Event::ERROR_EVENT, State::DO_FINISHED},
[all …]
/ohos5.0/base/request/request/services/src/manage/scheduler/
H A Dsql.rs15 use crate::info::State;
21 State::Waiting.repr, in start_task()
25 State::Paused.repr, in start_task()
27 State::Failed.repr, in start_task()
28 State::Stopped.repr, in start_task()
35 State::Paused.repr, in pause_task()
38 State::Running.repr, in pause_task()
40 State::Waiting.repr, in pause_task()
47 State::Stopped.repr, in stop_task()
150 let states = [State::Running, State::Retrying, State::Waiting]; in ut_pause()
[all …]
/ohos5.0/base/request/request/services/src/task/
H A Dinfo.rs16 pub use ffi::State;
91 pub enum State { enum
125 impl From<u8> for State { implementation
129 16 => State::Waiting, in from()
130 32 => State::Running, in from()
132 48 => State::Paused, in from()
133 49 => State::Stopped, in from()
135 65 => State::Failed, in from()
137 _ => State::Any, in from()
180 pub(crate) state: State,
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/scene/recorder/internal/
H A Dstate.cpp23 State::State(StateId stateId, std::string name, RecorderExecutor& executor) in State() function in OHOS::Media::Record::State
35 void State::Exit() in Exit()
45 const std::string& State::GetName() in GetName()
50 StateId State::GetStateId() in GetStateId()
79 std::tuple<ErrorCode, Action> State::SetObs() in SetObs()
89 std::tuple<ErrorCode, Action> State::Prepare() in Prepare()
94 std::tuple<ErrorCode, Action> State::Start() in Start()
105 std::tuple<ErrorCode, Action> State::Pause() in Pause()
110 std::tuple<ErrorCode, Action> State::Resume() in Resume()
115 std::tuple<ErrorCode, Action> State::Reset() in Reset()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/core/
H A Dbase.cpp34 if (pluginState_ != State::CREATED) { in Init()
58 pluginState_ = State::DESTROYED; in Deinit()
67 …RETURN_WRONG_STATE_IF_CON_TRUE(pluginState_ != State::PREPARED && pluginState_ != State::INITIALIZ… in Prepare()
76 pluginState_ = State::PREPARED; in Prepare()
86 … RETURN_WRONG_STATE_IF_CON_TRUE(pluginState_ == State::RUNNING || pluginState_ == State::PAUSED || in Reset()
88 if (pluginState_ == State::CREATED || pluginState_ == State::INITIALIZED) { in Reset()
95 pluginState_ = State::INITIALIZED; in Reset()
113 pluginState_ = State::RUNNING; in Start()
123 …if (pluginState_ != State::RUNNING && pluginState_ != State::PAUSED && pluginState_ != State::PREP… in Stop()
130 pluginState_ = State::PREPARED; in Stop()
[all …]
/ohos5.0/foundation/resourceschedule/ffrt/src/sched/
H A Dtask_state.h43 bool operator==(State state) const
48 bool operator!=(State state) const
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()
103 static const char* String(State state) in String()
120 inline uint64_t CalcDuration(TaskState::State pre, TaskState::State cur) const;
129 State curState = PENDING;
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/util/
H A Dstate_machine.h28 class State {
47 explicit State(const std::string &name, StateMachine &statemachine, State &parent) in State() function
54 virtual ~State(){}; in ~State()
76 State() = delete;
94 State* parent_ {nullptr};
97 BT_DISALLOW_COPY_AND_ASSIGN(State);
117 void Move(std::unique_ptr<State> &state);
138 const State *GetState() const;
143 inline int GetStateDepth(State &state);
146 State* current_ {nullptr};
[all …]
/ohos5.0/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);
81 int32_t HandleRead(const StateMsg &msg, State &nextState);
82 int32_t HandleStopCapturer(const StateMsg &msg, State &nextState);
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/scene/player/internal/
H A Dstate.cpp24 const char* State::GetStateName(StateId state) in GetStateName()
39 const char* State::GetIntentName(Intent intent) in GetIntentName()
75 State::State(StateId stateId, std::string name, PlayExecutor& executor) in State() function in OHOS::Media::State
85 void State::Exit() in Exit()
93 const std::string& State::GetName() in GetName()
97 StateId State::GetStateId() in GetStateId()
110 std::tuple<ErrorCode, Action> State::Play() in Play()
114 std::tuple<ErrorCode, Action> State::Stop() in Stop()
119 std::tuple<ErrorCode, Action> State::Reset() in Reset()
124 std::tuple<ErrorCode, Action> State::Pause() in Pause()
[all …]
/ohos5.0/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()
223 static void BenchmarkTestForBundleInfoToJson(benchmark::State &state) in BenchmarkTestForBundleInfoToJson()
261 static void BenchmarkTestForModuleInfoToJson(benchmark::State &state) in BenchmarkTestForModuleInfoToJson()
297 static void BenchmarkTestForFormInfoToJson(benchmark::State &state) in BenchmarkTestForFormInfoToJson()
316 static void BenchmarkTestForFormInfoFromJson(benchmark::State &state) in BenchmarkTestForFormInfoFromJson()
[all …]
/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Darkts-state.md1 # \@State装饰器:组件内状态
21 \@State装饰的变量拥有以下特点:
43 | 用于初始化子组件 | \@State装饰的变量支持初始化子组件的常规变量、\@State、\@Link、\@Prop、\@Provide。 |
62 @State count: number = 0;
89 \@State装饰的类型是Model
96 对\@State装饰变量的赋值。
103 对\@State装饰变量的属性赋值。
128 \@State装饰的对象为Model类型数组时。
229 @State count: number;
243 以下示例为\@State装饰的简单类型,count被\@State装饰成为状态变量,count的改变引起Button组件的刷新:
[all …]
H A Darkts-link.md121 …2. 父组件的\@State状态变量包装类通过构造函数传给子组件,子组件的\@Link包装类拿到父组件的\@State的状态变量后,将当前\@Link包装类this指针注册给父组件的\@State
129 2. 子组件\@Link和父组件\@State分别遍历依赖的系统组件,进行对应的UI的更新。以此实现子组件\@Link同步回父组件\@State
161 // 错误写法,@Link与@State数据源类型不一致
172 @State info: Info = new Info();
176 // 错误写法,@Link与@State数据源类型不一致
203 @State info: Info = new Info();
236 @State message: string = 'Hello';
237 @State info: Info = new Info();
268 @State message: string = 'Hello';
269 @State info: Info = new Info();
[all …]
/ohos5.0/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/wakeup/headset/
H A Dheadset_wakeup_engine_impl.h35 using OHOS::IntellVoiceUtils::State;
68 int32_t HandleSetParam(const StateMsg &msg, State &nextState);
69 int32_t HandleInit(const StateMsg &msg, State &nextState);
70 int32_t HandleSetListener(const StateMsg &msg, State &nextState);
71 int32_t HandleInitDone(const StateMsg &msg, State &nextState);
72 int32_t HandleStart(const StateMsg &msg, State &nextState);
73 int32_t HandleStop(const StateMsg &msg, State &nextState);
76 int32_t HandleRead(const StateMsg &msg, State &nextState);
77 int32_t HandleStopCapturer(const StateMsg &msg, State &nextState);
79 int32_t HandleResetAdapter(const StateMsg &msg, State &nextState);
[all …]
H A Dheadset_wakeup_engine_impl.cpp65 ForState(State(i)) in InitStates()
209 nextState = State(INITIALIZING); in HandleInit()
222 nextState = State(INITIALIZED); in HandleInitDone()
261 nextState = State(RECOGNIZING); in HandleStart()
315 nextState = State(INITIALIZED); in HandleStop()
338 nextState = State(RECOGNIZED); in HandleRecognizeComplete()
352 nextState = State(READ_CAPTURER); in HandleStartCapturer()
373 nextState = State(INITIALIZED); in HandleStopCapturer()
383 nextState = State(INITIALIZED); in HandleRecognizingTimeout()
408 nextState = State(INITIALIZING); in HandleResetAdapter()
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/
H A Davrcp_ct_state_machine.h330 class State : public utility::StateMachine::State {
335 virtual ~State();
342 State() = delete;
349 class CtConnecting : public State {
392 class CtConnected : public State {
480 class CtContinuation : public State {
524 class CtDisable : public State {
568 class CtPending : public State {
612 class BrConnecting : public State {
655 class BrConnected : public State {
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/test/benchmarktest/bundlemgr_proxy_test/
H A Dbundlemgr_proxy_test.cpp282 static void BenchmarkTestGetUidByBundleName(benchmark::State &state) in BenchmarkTestGetUidByBundleName()
318 static void BenchmarkTestGetBundlesForUid(benchmark::State &state) in BenchmarkTestGetBundlesForUid()
338 static void BenchmarkTestGetNameForUid(benchmark::State &state) in BenchmarkTestGetNameForUid()
358 static void BenchmarkTestGetAppType(benchmark::State &state) in BenchmarkTestGetAppType()
417 static void BenchmarkTestQueryAbilityInfo(benchmark::State &state) in BenchmarkTestQueryAbilityInfo()
467 static void BenchmarkTestQueryAbilityInfos(benchmark::State &state) in BenchmarkTestQueryAbilityInfos()
634 static void BenchmarkTestGetAbilityLabel(benchmark::State &state) in BenchmarkTestGetAbilityLabel()
713 static void BenchmarkTestGetPermissionDef(benchmark::State &state) in BenchmarkTestGetPermissionDef()
815 static void BenchmarkTestDumpInfos(benchmark::State &state) in BenchmarkTestDumpInfos()
957 static void BenchmarkTestGetAllFormsInfo(benchmark::State &state) in BenchmarkTestGetAllFormsInfo()
[all …]
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/
H A Daddr.rs50 fn to_socket_addrs(&self) -> State<Self::Iter>; in to_socket_addrs()
54 pub enum State<I> { enum
66 match mem::replace(this, State::Done) { in poll()
67 State::Block(mut task) => { in poll()
70 *this = State::Block(task); in poll()
74 State::Ready(res) => Poll::Ready(res), in poll()
80 impl<I> Unpin for State<I> {} implementation
86 State::Ready(Ok(Some(*self).into_iter())) in to_socket_addrs()
157 State::Block(task) in to_socket_addrs()
174 State::Block(task) in to_socket_addrs()
[all …]
/ohos5.0/foundation/communication/wifi/wifi/base/state_machine/include/
H A Dstate_machine.h301 void StatePlus(State *state, State *upper);
308 void StateDelete(State *state);
315 void SetFirstState(State *firstState);
322 void SwitchState(State *targetState);
337 State *state;
375 StateInfo *StatePlus(State *state, State *upper);
382 void StateDelete(State *state);
389 void SetFirstState(State *firstState);
396 void SwitchState(State *targetState);
519 State *pFirstState;
[all …]
/ohos5.0/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() argument
47 bool operator==(const State &right) const
52 bool operator!=(const State &right) const
57 bool operator<(const State &right) const
110 int Handle(const StateMsg &msg, State &nextState);
153 explicit ModuleStates(const State &defaultState = State(0), const std::string &name = "",
157 StateActions& ForState(const State &s);
164 State CurrState() const;
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/
H A Davrcp_tg_state_machine.h311 class State : public utility::StateMachine::State {
316 virtual ~State();
323 State() = delete;
330 class CtConnecting : public State {
373 class CtConnected : public State {
425 class CtDisconnecting : public State {
469 class CtContinuation : public State {
513 class CtDisable : public State {
557 class BrConnecting : public State {
600 class BrConnected : public State {
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/ecs/
H A Dentity_manager.cpp134 slot.state = EntityState::State::ALIVE; in Create()
166 slot.state = EntityState::State::ALIVE; in CreateReferenceCounted()
181 … ((e.state == EntityState::State::ALIVE) || (e.state == EntityState::State::INACTIVE))) { in GetReferenceCounted()
204 … ((e.state == EntityState::State::ALIVE) || (e.state == EntityState::State::INACTIVE))) { in Destroy()
219 if ((EntityState::State::ALIVE == e.state) || (EntityState::State::INACTIVE == e.state)) { in DestroyAllEntities()
224 e.state = EntityState::State::DEAD; in DestroyAllEntities()
294 EntityState::State oldState; in SetActive()
295 EntityState::State newState; in SetActive()
329 e.state = EntityState::State::DEAD; in UpdateDeadEntities()
340 …alid = (type == IteratorType::DEACTIVATED) ? EntityState::State::INACTIVE : EntityState::State::AL… in IteratorImpl()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/
H A Dsingle_ver_sync_state_machine.cpp36 using State = SingleVerSyncStateMachine::State; typedef
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::TIME_SYNC, Event::INNER_ERR_EVENT, State::INNER_ERR},
54 {State::ABILITY_SYNC, Event::VERSION_NOT_SUPPOR_EVENT, State::INNER_ERR},
56 {State::ABILITY_SYNC, Event::TIME_OUT_EVENT, State::SYNC_TIME_OUT},
57 {State::ABILITY_SYNC, Event::INNER_ERR_EVENT, State::INNER_ERR},
86 {State::SYNC_CONTROL_CMD, Event::INNER_ERR_EVENT, State::INNER_ERR},
94 {State::SYNC_TIME_OUT, Event::ANY_EVENT, State::SYNC_TASK_FINISHED},
[all …]
/ohos5.0/base/account/os_account/frameworks/osaccount/native/test/benchmarktest/
H A Dos_account_manager_benchmark_test.cpp60 benchmark::State &st) in BENCHMARK_F()
83 benchmark::State &st) in BENCHMARK_F()
103 benchmark::State &st) in BENCHMARK_F()
124 benchmark::State &st) in BENCHMARK_F()
146 benchmark::State &st) in BENCHMARK_F()
166 benchmark::State &st) in BENCHMARK_F()
186 benchmark::State &st) in BENCHMARK_F()
205 benchmark::State &st) in BENCHMARK_F()
228 benchmark::State &st) in BENCHMARK_F()
248 benchmark::State &st) in BENCHMARK_F()
[all …]
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.5/
H A Dchangelogs-arkui.md14 // 错误写法: @State isLunar: any = false
15 @State isLunar: boolean = false
16 // 错误写法: @State selectedDate: Date = new Date('2021-08-08')
56 // 错误写法: @State message: string | Resource = 'Hello World'
57 @State message: string = 'Hello World'
59 @State resourceStr: Resource = $r('app.string.hello')
82 @State isLunar: any = false
87 @State selectedDate: Date = new Date('2021-08-08')
94 @State message: ResourceStr = $r('app.string.hello')
109 @State message: ResourceStr = $r('app.string.hello')
[all …]

12345678910>>...76