Home
last modified time | relevance | path

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

1234

/base/request/request/services/src/manage/scheduler/
H A Dsql.rs15 use crate::info::State;
21 State::Waiting.repr,
24 State::Initialized.repr,
25 State::Paused.repr,
27 State::Failed.repr,
28 State::Stopped.repr,
35 State::Paused.repr,
38 State::Running.repr,
39 State::Retrying.repr,
40 State
[all...]
H A Dmod.rs39 use crate::task::info::State;
133 if (is_resume && info.progress.common_data.state != State::Paused.repr) in start_inner()
134 || (!is_resume && info.progress.common_data.state == State::Paused.repr) in start_inner()
138 database.change_status(task_id, State::Waiting)?; in start_inner()
148 database.update_task_state(task_id, State::Completed, Reason::Default); in start_inner()
167 database.change_status(task_id, State::Paused)?;
181 database.change_status(task_id, State::Removed)?;
196 database.change_status(task_id, State::Stopped)?;
214 if info.state != State::Running.repr && info.state != State
[all...]
/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 {
128 0 => State::Initialized, in from()
129 16 => State::Waiting, in from()
130 32 => State::Running, in from()
131 33 => State::Retrying, in from()
132 48 => State::Paused, in from()
133 49 => State::Stopped, in from()
134 64 => State in from()
[all...]
/base/powermgr/battery_manager/test/benchmarktest/
H A Dbattery_benchmark_test.cpp30 void SetUp(const ::benchmark::State& state) {} in SetUp()
31 void TearDown(const ::benchmark::State& state) {} in TearDown()
44 BENCHMARK_F(BatteryBenchmarkTest, GetCapacity)(benchmark::State& st) in BENCHMARK_F()
62 BENCHMARK_F(BatteryBenchmarkTest, GetChargingStatus)(benchmark::State& st) in BENCHMARK_F()
80 BENCHMARK_F(BatteryBenchmarkTest, GetHealthStatus)(benchmark::State& st) in BENCHMARK_F()
98 BENCHMARK_F(BatteryBenchmarkTest, GetPluggedType)(benchmark::State& st) in BENCHMARK_F()
116 BENCHMARK_F(BatteryBenchmarkTest, GetVoltage)(benchmark::State& st) in BENCHMARK_F()
133 BENCHMARK_F(BatteryBenchmarkTest, GetPresent)(benchmark::State& st) in BENCHMARK_F()
150 BENCHMARK_F(BatteryBenchmarkTest, GetTechnology)(benchmark::State& st) in BENCHMARK_F()
167 BENCHMARK_F(BatteryBenchmarkTest, GetBatteryTemperature)(benchmark::State
[all...]
/base/telephony/cellular_data/services/include/state_machine/
H A Dincall_data_state_machine.h39 sptr<State> GetCurrentState() const;
47 sptr<State> idleState_;
48 sptr<State> secondaryActiveState_;
49 sptr<State> activatingSecondaryState_;
50 sptr<State> activatedSecondaryState_;
51 sptr<State> deactivatingSecondaryState_;
52 sptr<State> currentState_;
57 void SetCurrentState(const sptr<State> &&state);
72 class IdleState : public State {
75 : State(st in IdleState()
[all...]
H A Dstate_machine.h31 class State : public RefBase { class
35 explicit State(std::string &&name) : name_(std::move(name)) {} in State() function in OHOS::Telephony::State
36 virtual ~State() = default;
41 void SetParentState(sptr<State> &parent) in SetParentState()
54 sptr<State> parent_;
63 virtual void SetOriginalState(sptr<State> &originalState) in SetOriginalState()
68 virtual void TransitionTo(sptr<State> &destState) in TransitionTo()
70 TELEPHONY_LOGI("State machine transition to %{public}s", destState->name_.c_str()); in TransitionTo()
76 sptr<State> tmpState = curState_; in Quit()
90 sptr<State> tmpStat in ProcessTransitions()
[all...]
H A Dcellular_data_state_machine.h56 sptr<State> GetCurrentState() const;
73 sptr<State> activeState_;
74 sptr<State> inActiveState_;
75 sptr<State> activatingState_;
76 sptr<State> disconnectingState_;
77 sptr<State> defaultState_;
78 sptr<State> currentState_;
85 void SetCurrentState(const sptr<State> &&state);
H A Ddisconnecting.h27 class Disconnecting : public State {
30 : State(std::move(name)), stateMachine_(std::move(cellularService)) in Disconnecting()
H A Dactivating.h27 class Activating : public State {
30 : State(std::move(name)), stateMachine_(std::move(cellularService)) in Activating()
/base/account/os_account/frameworks/osaccount/native/test/benchmarktest/
H A Dos_account_manager_benchmark_test.cpp46 void SetUp(const ::benchmark::State &state) in SetUp()
48 void TearDown(const ::benchmark::State &state) in TearDown()
60 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 in BENCHMARK_F()
[all...]
/base/request/request/services/tests/
H A Dsearch.rs17 use download_server::info::State;
37 let v = agent.search(current, current - 3000, State::Any, Action::Any, Mode::Any); in sdv_search_user()
39 let v = agent.search(current + 3000, current, State::Any, Action::Any, Mode::Any); in sdv_search_user()
44 State::Initialized, in sdv_search_user()
52 State::Running, in sdv_search_user()
60 State::Initialized, in sdv_search_user()
69 State::Initialized, in sdv_search_user()
/base/request/request/services/src/manage/events/
H A Dstop.rs15 use crate::info::State;
24 if info.state == State::Running.repr
25 || info.state == State::Retrying.repr
26 || info.state == State::Waiting.repr
H A Dremove.rs15 use crate::info::State;
24 if info.state != State::Failed.repr
25 && info.state != State::Completed.repr
26 && info.state != State::Removed.repr
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
H A Dnotification_service_test.cpp105 void SetUp(const ::benchmark::State &state) override
112 void TearDown(const ::benchmark::State &state) override
131 BENCHMARK_F(BenchmarkNotificationService, AddSlotTestCase)(benchmark::State &state) in BENCHMARK_F()
150 BENCHMARK_F(BenchmarkNotificationService, RemoveSlotByTypeTestCase)(benchmark::State &state) in BENCHMARK_F()
174 BENCHMARK_F(BenchmarkNotificationService, SubscribeTestCase)(benchmark::State &state) in BENCHMARK_F()
193 BENCHMARK_F(BenchmarkNotificationService, PublishNotificationTestCase001)(benchmark::State &state) in BENCHMARK_F()
224 BENCHMARK_F(BenchmarkNotificationService, CancelNotificationTestCase001)(benchmark::State &state) in BENCHMARK_F()
258 BENCHMARK_F(BenchmarkNotificationService, SetNotificationBadgeNumTestCase)(benchmark::State &state) in BENCHMARK_F()
274 BENCHMARK_F(BenchmarkNotificationService, GetBundleImportanceTestCase)(benchmark::State &state) in BENCHMARK_F()
291 BENCHMARK_F(BenchmarkNotificationService, SetShowBadgeEnabledForBundleTestCase)(benchmark::State
[all...]
/base/notification/common_event_service/test/benchmarktest/common_event_publish_test/
H A Dcommon_event_publish_test.cpp39 void SetUp(const ::benchmark::State &state) override
42 void TearDown(const ::benchmark::State &state) override
64 BENCHMARK_F(BenchmarkCommonEventPublish, SubscribeCommonEventTestCase)(benchmark::State &state) in BENCHMARK_F()
82 BENCHMARK_F(BenchmarkCommonEventPublish, UnsubscribeCommonEventTestCase)(benchmark::State &state) in BENCHMARK_F()
104 BENCHMARK_F(BenchmarkCommonEventPublish, PublishCommonEventTestCase)(benchmark::State &state) in BENCHMARK_F()
/base/notification/common_event_service/test/benchmarktest/common_event_service_test/
H A Dcommon_event_manager_service_test.cpp44 void SetUp(const ::benchmark::State &state) override
46 void TearDown(const ::benchmark::State &state) override
68 BENCHMARK_F(BenchmarkCommonEventManagerService, CommonEventSubscribeTestCase001)(benchmark::State &state) in BENCHMARK_F()
92 BENCHMARK_F(BenchmarkCommonEventManagerService, CommonEventSubscribeTestCase002)(benchmark::State &state) in BENCHMARK_F()
116 BENCHMARK_F(BenchmarkCommonEventManagerService, CommonEventSubscribeTestCase003)(benchmark::State &state) in BENCHMARK_F()
140 BENCHMARK_F(BenchmarkCommonEventManagerService, CommonEventUnsubscribeTestCase)(benchmark::State &state) in BENCHMARK_F()
164 BENCHMARK_F(BenchmarkCommonEventManagerService, CommonEventPublishTestCase)(benchmark::State &state) in BENCHMARK_F()
195 BENCHMARK_F(BenchmarkCommonEventManagerService, CommonEventDumpStateTestCase)(benchmark::State &state) in BENCHMARK_F()
/base/accesscontrol/sandbox_manager/services/common/database/src/
H A Dstatement.cpp95 Statement::State Statement::Step() in Step()
100 return Statement::State::ROW; in Step()
102 return Statement::State::DONE; in Step()
104 return Statement::State::BUSY; in Step()
106 return Statement::State::MISUSE; in Step()
108 return Statement::State::UNKNOWN; in Step()
/base/security/access_token/services/common/database/src/
H A Dstatement.cpp81 Statement::State Statement::Step() in Step()
86 return Statement::State::ROW; in Step()
88 return Statement::State::DONE; in Step()
90 return Statement::State::BUSY; in Step()
92 return Statement::State::MISUSE; in Step()
94 return Statement::State::UNKNOWN; in Step()
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/
H A Dmaps_benchmark.cpp36 static void BenchmarkMapsCreateAll(benchmark::State& state) in BenchmarkMapsCreateAll()
50 static void BenchmarkMapsCreateOnlyExec(benchmark::State& state) in BenchmarkMapsCreateOnlyExec()
64 static void BenchmarkMapsCreateMapIndex(benchmark::State& state) in BenchmarkMapsCreateMapIndex()
H A Dunwind_remote_benchmark.cpp121 static void Run(benchmark::State& state, void* data) in Run()
166 static void BenchmarkUnwinderRemoteFull(benchmark::State& state) in BenchmarkUnwinderRemoteFull()
185 static void BenchmarkUnwinderRemoteQut(benchmark::State& state) in BenchmarkUnwinderRemoteQut()
200 static void BenchmarkUnwinderRemoteQutCache(benchmark::State& state) in BenchmarkUnwinderRemoteQutCache()
215 static void BenchmarkUnwinderRemoteQutFrames(benchmark::State& state) in BenchmarkUnwinderRemoteQutFrames()
230 static void BenchmarkUnwinderRemoteQutFramesCache(benchmark::State& state) in BenchmarkUnwinderRemoteQutFramesCache()
245 static void BenchmarkUnwinderRemoteQutMiniDebugInfos(benchmark::State& state) in BenchmarkUnwinderRemoteQutMiniDebugInfos()
262 static void BenchmarkUnwinderRemoteQutMiniDebugInfosLazily(benchmark::State& state) in BenchmarkUnwinderRemoteQutMiniDebugInfosLazily()
282 static void BenchmarkUnwinderRemoteFp(benchmark::State& state) in BenchmarkUnwinderRemoteFp()
H A Dunwind_local_benchmark.cpp191 static void Run(benchmark::State& state, size_t (*func)(void*), void* data) in Run()
207 static void BenchmarkUnwinderLocalFull(benchmark::State& state) in BenchmarkUnwinderLocalFull()
227 static void BenchmarkUnwinderLocalQut(benchmark::State& state) in BenchmarkUnwinderLocalQut()
243 static void BenchmarkUnwinderLocalQutCache(benchmark::State& state) in BenchmarkUnwinderLocalQutCache()
259 static void BenchmarkUnwinderLocalQutFrames(benchmark::State& state) in BenchmarkUnwinderLocalQutFrames()
275 static void BenchmarkUnwinderLocalQutFramesCache(benchmark::State& state) in BenchmarkUnwinderLocalQutFramesCache()
291 static void BenchmarkUnwinderLocalQutMiniDebugInfos(benchmark::State& state) in BenchmarkUnwinderLocalQutMiniDebugInfos()
309 static void BenchmarkUnwinderLocalQutMiniDebugInfosLazily(benchmark::State& state) in BenchmarkUnwinderLocalQutMiniDebugInfosLazily()
330 static void BenchmarkUnwinderLocalByFp(benchmark::State& state) in BenchmarkUnwinderLocalByFp()
347 static void BenchmarkUnwinderLocalFp(benchmark::State
[all...]
/base/notification/distributed_notification_service/test/bechmarktest/notification_publish_test/
H A Dnotification_publish_test.cpp47 void SetUp(const ::benchmark::State &state) override
50 void TearDown(const ::benchmark::State &state) override
122 BENCHMARK_F(BenchmarkNotificationPublish, PublishNotificationTestCase001)(benchmark::State &state) in BENCHMARK_F()
137 BENCHMARK_F(BenchmarkNotificationPublish, CancelNotificationTestCase)(benchmark::State &state) in BENCHMARK_F()
152 BENCHMARK_F(BenchmarkNotificationPublish, PublishNotificationTestCase002)(benchmark::State &state) in BENCHMARK_F()
170 BENCHMARK_F(BenchmarkNotificationPublish, PublishNotificationTestCase003)(benchmark::State &state) in BENCHMARK_F()
188 BENCHMARK_F(BenchmarkNotificationPublish, RemoveNotificationTestCase)(benchmark::State &state) in BENCHMARK_F()
/base/request/request/services/src/manage/
H A Dmod.rs44 use crate::info::{State, TaskInfo};
100 State::Initialized.repr in ut_manager_task_state_and_reason()
108 State::Waiting.repr in ut_manager_task_state_and_reason()
118 State::Paused.repr in ut_manager_task_state_and_reason()
128 State::Waiting.repr in ut_manager_task_state_and_reason()
138 State::Paused.repr in ut_manager_task_state_and_reason()
148 State::Waiting.repr in ut_manager_task_state_and_reason()
158 State::Stopped.repr in ut_manager_task_state_and_reason()
168 State::Waiting.repr in ut_manager_task_state_and_reason()
181 State in ut_manager_task_state_and_reason()
[all...]
/base/update/updater/test/benchmarktest/
H A Dupdater_benchmark_test.cpp33 void SetUp(const ::benchmark::State &state) override
35 void TearDown(const ::benchmark::State &state) override
69 BENCHMARK_F(UpdaterBenchmarkTest, TestRingBuffer)(benchmark::State &state) in BENCHMARK_F()
/base/startup/init/test/benchmark/
H A Dparameter_benchmark.cpp129 static void BMCachedParameterGet(benchmark::State &state) in BMCachedParameterGet()
148 static void BMCachedParameterGetChangedStatic(benchmark::State &state) in BMCachedParameterGetChangedStatic()
169 static void BMCachedParameterGetChangedGlobal(benchmark::State &state) in BMCachedParameterGetChangedGlobal()
189 static void BMCachedParameterGetChangedGlobal2(benchmark::State &state) in BMCachedParameterGetChangedGlobal2()
213 static void BMSystemReadParam(benchmark::State &state) in BMSystemReadParam()
238 static void BMSystemReadParam_none(benchmark::State &state) in BMSystemReadParam_none()
262 static void BMSystemFindParameter(benchmark::State &state) in BMSystemFindParameter()
281 static void BMSystemGetParameterValue(benchmark::State &state) in BMSystemGetParameterValue()
309 static void BMSystemGetParameterCommitId(benchmark::State &state) in BMSystemGetParameterCommitId()
331 static void BMTestRandom(benchmark::State
[all...]

Completed in 9 milliseconds

1234