| /base/global/resource_management/interfaces/cj/src/ |
| D | resource_manager_impl.cpp | 48 RState state = resMgr_->CloseRawFileDescriptor(name); in CloseRawFd() local 49 if (state != RState::SUCCESS) { in CloseRawFd() 50 LOGE("ResourceManagerImpl::CloseRawFd failed %{public}" PRIu32, state); in CloseRawFd() 54 return state; in CloseRawFd() 60 RState state = resMgr_->GetRawFileDescriptorFromHap(rawFileName, descriptor); in GetRawFd() local 61 if (state != RState::SUCCESS) { in GetRawFd() 62 LOGE("ResourceManagerImpl::GetRawFd failed %{public}" PRIu32, state); in GetRawFd() 66 return state; in GetRawFd() 72 RState state = resMgr_->GetRawFileFromHap(name, len, outValue); in GetRawFileContent() local 73 if (state != RState::SUCCESS) { in GetRawFileContent() [all …]
|
| /base/request/request/services/src/manage/scheduler/ |
| D | sql.rs | 15 use crate::info::State; 20 …TE request_task SET state = {}, reason = {} where task_id = {} AND (state = {} OR state = {} OR (a… in start_task() 21 State::Waiting.repr, in start_task() 24 State::Initialized.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() 34 …"UPDATE request_task SET state = {}, reason = {} where task_id = {} AND (state = {} OR state = {} … in pause_task() 35 State::Paused.repr, in pause_task() 38 State::Running.repr, in pause_task() [all …]
|
| D | mod.rs | 16 pub(crate) mod state; module 22 use state::sql::SqlList; 34 use crate::task::info::State; 60 state_handler: state::Handler, 71 let mut state_handler = state::Handler::new(tx.clone()); in init() 126 if (is_resume && info.progress.common_data.state != State::Paused.repr) in start_inner() 127 || (!is_resume && info.progress.common_data.state == State::Paused.repr) in start_inner() 131 database.change_status(task_id, State::Waiting)?; in start_inner() 141 database.update_task_state(task_id, State::Completed, Reason::Default); in start_inner() 160 database.change_status(task_id, State::Paused)?; in pause_task() [all …]
|
| /base/request/request/services/src/manage/scheduler/state/ |
| D | sql.rs | 17 use crate::info::State; 21 const INITIALIZED: u8 = State::Initialized.repr; 22 const RUNNING: u8 = State::Running.repr; 23 const RETRYING: u8 = State::Retrying.repr; 24 const WAITING: u8 = State::Waiting.repr; 25 const PAUSED: u8 = State::Paused.repr; 26 const STOPPED: u8 = State::Stopped.repr; 27 const FAILED: u8 = State::Failed.repr; 100 state = CASE in app_state_unavailable() 101 … WHEN (state = {RUNNING} OR state = {RETRYING}) AND action = {DOWNLOAD} THEN {WAITING} in app_state_unavailable() [all …]
|
| /base/account/os_account/services/accountmgr/src/ |
| D | account_state_machine.cpp | 25 * Account state machine initialize. 30 // ACCOUNT_STATE_UNBOUND state in OnInitialize() 32 // normal event, transform to login state in OnInitialize() 34 // normal event, keep in unbound state in OnInitialize() 36 // unexpected event, re-initial state machine, check the state from account server in OnInitialize() 38 // unexpected event, re-initial state machine, check the state from account server in OnInitialize() 40 // unexpected event, re-initial state machine, check the state from account server in OnInitialize() 42 // unexpected event, re-initial state machine, check the state from account server in OnInitialize() 44 // unexpected event, re-initial state machine, check the state from account server in OnInitialize() 46 // unexpected event, keep in unbound state in OnInitialize() [all …]
|
| /base/account/os_account/services/accountmgr/include/ |
| D | account_state_machine.h | 27 * Account state machine 33 * exception event action, to re-init state machine, and get account state from account server. 49 * unbound state action. 54 * unbound state action Constructor. 59 * unbound state action Destructor. 65 * login state action. 70 * login state action Constructor. 75 * login state action Destructor. 81 * logout state action. 86 * logout state action Constructor. [all …]
|
| /base/startup/init/test/benchmark/ |
| D | parameter_benchmark.cpp | 127 * @param state 129 static void BMCachedParameterGet(benchmark::State &state) in BMCachedParameterGet() argument 137 for (auto _ : state) { in BMCachedParameterGet() 140 state.SetItemsProcessed(state.iterations()); in BMCachedParameterGet() 146 * @param state 148 static void BMCachedParameterGetChangedStatic(benchmark::State &state) in BMCachedParameterGetChangedStatic() argument 155 for (auto _ : state) { in BMCachedParameterGetChangedStatic() 161 state.SetItemsProcessed(state.iterations()); in BMCachedParameterGetChangedStatic() 167 * @param state 169 static void BMCachedParameterGetChangedGlobal(benchmark::State &state) in BMCachedParameterGetChangedGlobal() argument [all …]
|
| /base/time/time_service/framework/cj/src/ |
| D | system_date_time_ffi.cpp | 38 auto [state, time] = SystemDateTimeImpl::getCurrentTime(isNano); in FfiOHOSSysDateTimegetCurrentTime() 39 if (state != SUCCESS_CODE) { in FfiOHOSSysDateTimegetCurrentTime() 40 ret.code = state; in FfiOHOSSysDateTimegetCurrentTime() 44 ret.code = state; in FfiOHOSSysDateTimegetCurrentTime() 52 auto [state, time] = SystemDateTimeImpl::getRealActiveTime(isNano); in FfiOHOSSysDateTimegetRealActiveTime() 53 if (state != SUCCESS_CODE) { in FfiOHOSSysDateTimegetRealActiveTime() 54 ret.code = state; in FfiOHOSSysDateTimegetRealActiveTime() 58 ret.code = state; in FfiOHOSSysDateTimegetRealActiveTime() 66 auto [state, time] = SystemDateTimeImpl::getRealTime(isNano); in FfiOHOSSysDateTimegetRealTime() 67 if (state != SUCCESS_CODE) { in FfiOHOSSysDateTimegetRealTime() [all …]
|
| /base/account/os_account/services/accountmgr/test/unittest/common/account_mgr_service_test/ |
| D | account_state_machine_test.cpp | 50 * @tc.desc: Account state machine initial state 58 * @tc.expected: step1. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND 66 * @tc.desc: Account state machine transform unbound state to login state 74 * @tc.expected: step1. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND 81 * @tc.expected: step2. The current state is AccountStateMachine::ACCOUNT_STATE_LOGIN 89 * @tc.desc: Account state machine keep the last state 97 * @tc.expected: step1. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND 104 * @tc.expected: step2. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND 112 * @tc.desc: Account state machine keep the last state 120 * @tc.expected: step1. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND [all …]
|
| /base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/ |
| D | notification_service_test.cpp | 105 void SetUp(const ::benchmark::State &state) override in SetUp() argument 112 void TearDown(const ::benchmark::State &state) override in TearDown() argument 131 BENCHMARK_F(BenchmarkNotificationService, AddSlotTestCase)(benchmark::State &state) in BENCHMARK_F() 136 while (state.KeepRunning()) { in BENCHMARK_F() 139 state.SkipWithError("AddSlotTestCase failed."); in BENCHMARK_F() 150 BENCHMARK_F(BenchmarkNotificationService, RemoveSlotByTypeTestCase)(benchmark::State &state) in BENCHMARK_F() 155 while (state.KeepRunning()) { in BENCHMARK_F() 158 state.SkipWithError("RemoveSlotByTypeTestCase add failed."); in BENCHMARK_F() 163 state.SkipWithError("RemoveSlotByTypeTestCase remove failed."); in BENCHMARK_F() 174 BENCHMARK_F(BenchmarkNotificationService, SubscribeTestCase)(benchmark::State &state) in BENCHMARK_F() [all …]
|
| /base/global/resource_management/interfaces/js/innerkits/core/src/ |
| D | resource_manager_napi_sync_impl.cpp | 150 RState state = dataContext->addon_->GetResMgr()->GetRawFileList(dataContext->path_.c_str(), in GetRawFileListSync() local 152 if (state != RState::SUCCESS || dataContext->arrayValue_.empty()) { in GetRawFileListSync() 175 RState state = dataContext->addon_->GetResMgr()->GetRawFileFromHap(dataContext->path_, in GetRawFileContentSync() local 177 if (state != SUCCESS) { in GetRawFileContentSync() 179 ResourceManagerNapiUtils::NapiThrow(env, state); in GetRawFileContentSync() 199 RState state = dataContext->addon_->GetResMgr()->GetRawFileDescriptorFromHap(dataContext->path_, in GetRawFdSync() local 201 if (state != RState::SUCCESS) { in GetRawFdSync() 203 ResourceManagerNapiUtils::NapiThrow(env, state); in GetRawFdSync() 222 RState state = dataContext->addon_->GetResMgr()->CloseRawFileDescriptor(dataContext->path_); in CloseRawFdSync() local 223 if (state != RState::SUCCESS) { in CloseRawFdSync() [all …]
|
| /base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
| D | resource_manager_test.cpp | 218 RState state; variable 226 state = rm->UpdateResConfig(*rc); 228 EXPECT_EQ(SUCCESS, state); 239 RState state; variable 245 state = rm->UpdateResConfig(*rc); 247 EXPECT_EQ(LOCALEINFO_IS_NULL, state); 258 RState state; variable 265 state = rm->UpdateResConfig(*rc); 267 EXPECT_EQ(LOCALEINFO_IS_NULL, state); 280 RState state; variable [all …]
|
| D | locale_info_test.cpp | 174 RState state = SUCCESS; variable 175 LocaleInfo* localeInfo = BuildFromString("zh-CN", '-', state); 200 RState state = SUCCESS; variable 201 LocaleInfo* localeInfo = BuildFromString("zh-CN", '-', state); 216 localeInfo = BuildFromString("en-US", '-', state); 227 localeInfo = BuildFromString("en-Qaag-US", '-', state); 253 RState state = SUCCESS; variable 254 LocaleInfo* localeInfo = BuildFromString("zh-CN", '-', state); 271 RState state = SUCCESS; variable 272 LocaleInfo* localeInfo = BuildFromString("zh-CN", '-', state); [all …]
|
| /base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
| D | resource_manager_test_common.cpp | 182 RState state; in TestGetProfileById() local 185 state = rm->GetProfileById(id, outValue); in TestGetProfileById() 186 EXPECT_TRUE(state == SUCCESS); in TestGetProfileById() 197 RState state = rm->GetProfileByName("test_profile", outValue); in TestGetProfileByName() local 198 EXPECT_TRUE(state == SUCCESS); in TestGetProfileByName() 211 RState state = rm->GetMediaById(id, outValue); in TestGetMediaById() local 212 EXPECT_TRUE(state == SUCCESS); in TestGetMediaById() 237 RState state = rm->GetMediaById(id, outValue, density); in TestGetMediaWithDensityById() local 238 EXPECT_TRUE(state == SUCCESS); in TestGetMediaWithDensityById() 249 RState state = rm->GetMediaByName("icon1", outValue); in TestGetMediaByName() local [all …]
|
| D | locale_info_test.cpp | 174 RState state = SUCCESS; variable 175 Locale *localeInfo = BuildFromString("zh-CN", '-', state); 199 RState state = SUCCESS; variable 200 Locale *localeInfo = BuildFromString("zh-CN", '-', state); 215 localeInfo = BuildFromString("en-US", '-', state); 226 localeInfo = BuildFromString("en-Qaag-US", '-', state); 252 RState state = SUCCESS; variable 253 Locale *localeInfo = BuildFromString("zh-CN", '-', state); 270 RState state = SUCCESS; variable 271 Locale *localeInfo = BuildFromString("zh-CN", '-', state); [all …]
|
| /base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/ |
| D | accesstoken_location_request_test.cpp | 170 * @tc.desc: only vague location permission, ret: DYNAMIC_OPER, state: DYNAMIC_OPER 186 .state = SETTING_OPER, 196 ASSERT_EQ(DYNAMIC_OPER, permsList1[0].state); 201 * @tc.desc: only vague location permission after refuse, ret: PASS_OPER, state: SETTING_OPER 217 .state = SETTING_OPER, 227 ASSERT_EQ(SETTING_OPER, permsList2[0].state); 232 * @tc.desc: only vague location permission after accept, ret: PASS_OPER, state: PASS_OPER 248 .state = SETTING_OPER, 258 ASSERT_EQ(PASS_OPER, permsList3[0].state); 263 * @tc.desc: only accurate location permission, ret: PASS_OPER, state: INVALID_OPER [all …]
|
| /base/notification/common_event_service/test/benchmarktest/common_event_service_test/ |
| D | common_event_manager_service_test.cpp | 44 void SetUp(const ::benchmark::State &state) override in SetUp() argument 46 void TearDown(const ::benchmark::State &state) override in TearDown() argument 68 …ARK_F(BenchmarkCommonEventManagerService, CommonEventSubscribeTestCase001)(benchmark::State &state) in BENCHMARK_F() 77 while (state.KeepRunning()) { in BENCHMARK_F() 81 state.SkipWithError("SubscribeCommonEvent failed."); in BENCHMARK_F() 92 …ARK_F(BenchmarkCommonEventManagerService, CommonEventSubscribeTestCase002)(benchmark::State &state) in BENCHMARK_F() 101 while (state.KeepRunning()) { in BENCHMARK_F() 105 state.SkipWithError("SubscribeCommonEvent failed."); in BENCHMARK_F() 116 …ARK_F(BenchmarkCommonEventManagerService, CommonEventSubscribeTestCase003)(benchmark::State &state) in BENCHMARK_F() 125 while (state.KeepRunning()) { in BENCHMARK_F() [all …]
|
| /base/startup/appspawn/modules/ace_adapter/ |
| D | command_lexer.cpp | 34 ParsingState state = ParsingState::INIT; in GetAllArguments() local 38 switch (state) { in GetAllArguments() 41 state = ParsingState::IN_WHITESPACE; in GetAllArguments() 43 state = ParsingState::IN_SINGLE_QUOTE; in GetAllArguments() 45 state = ParsingState::IN_DOUBLE_QUOTE; in GetAllArguments() 47 state = ParsingState::IN_ARGUMENT; in GetAllArguments() 53 state = ParsingState::IN_SINGLE_QUOTE; in GetAllArguments() 55 state = ParsingState::IN_DOUBLE_QUOTE; in GetAllArguments() 57 state = ParsingState::IN_ARGUMENT; in GetAllArguments() 67 state = ParsingState::IN_WHITESPACE; in GetAllArguments() [all …]
|
| /base/request/request/services/src/task/ |
| D | info.rs | 16 pub use ffi::State; 90 /// Task state 91 pub enum State { enum 125 impl From<u8> for State { implementation 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() [all …]
|
| /base/powermgr/display_manager/state_manager/service/native/src/ |
| D | screen_action.cpp | 57 DisplayState state = DisplayState::DISPLAY_UNKNOWN; in GetDisplayState() local 62 state = DisplayState::DISPLAY_ON; in GetDisplayState() 65 state = DisplayState::DISPLAY_DIM; in GetDisplayState() 68 state = DisplayState::DISPLAY_SUSPEND; in GetDisplayState() 71 state = DisplayState::DISPLAY_OFF; in GetDisplayState() 76 …DISPLAY_HILOGI(FEAT_STATE, "state=%{public}u displayId=%{public}u", static_cast<uint32_t>(state), … in GetDisplayState() 77 return state; in GetDisplayState() 88 bool ScreenAction::SetDisplayState(DisplayState state, const std::function<void(DisplayState)>& cal… in SetDisplayState() argument 90 …DISPLAY_HILOGI(FEAT_STATE, "[UL_POWER] SetDisplayState displayId=%{public}u, state=%{public}u", di… in SetDisplayState() 91 static_cast<uint32_t>(state)); in SetDisplayState() [all …]
|
| /base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/ |
| D | unwind_local_benchmark.cpp | 191 static void Run(benchmark::State& state, size_t (*func)(void*), void* data) in Run() argument 194 for (const auto& _ : state) { in Run() 196 state.SkipWithError("Failed to unwind."); in Run() 207 static void BenchmarkUnwinderLocalFull(benchmark::State& state) in BenchmarkUnwinderLocalFull() argument 218 Run(state, UnwinderLocal, &data); in BenchmarkUnwinderLocalFull() 227 static void BenchmarkUnwinderLocalQut(benchmark::State& state) in BenchmarkUnwinderLocalQut() argument 234 Run(state, UnwinderLocal, &data); in BenchmarkUnwinderLocalQut() 243 static void BenchmarkUnwinderLocalQutCache(benchmark::State& state) in BenchmarkUnwinderLocalQutCache() argument 250 Run(state, UnwinderLocal, &data); in BenchmarkUnwinderLocalQutCache() 259 static void BenchmarkUnwinderLocalQutFrames(benchmark::State& state) in BenchmarkUnwinderLocalQutFrames() argument [all …]
|
| D | unwind_remote_benchmark.cpp | 121 static void Run(benchmark::State& state, void* data) in Run() argument 141 state.SkipWithError("Failed to get unwinder."); in Run() 145 for (const auto& _ : state) { in Run() 154 state.SkipWithError("Failed to unwind."); in Run() 166 static void BenchmarkUnwinderRemoteFull(benchmark::State& state) in BenchmarkUnwinderRemoteFull() argument 176 Run(state, &data); in BenchmarkUnwinderRemoteFull() 185 static void BenchmarkUnwinderRemoteQut(benchmark::State& state) in BenchmarkUnwinderRemoteQut() argument 191 Run(state, &data); in BenchmarkUnwinderRemoteQut() 200 static void BenchmarkUnwinderRemoteQutCache(benchmark::State& state) in BenchmarkUnwinderRemoteQutCache() argument 206 Run(state, &data); in BenchmarkUnwinderRemoteQutCache() [all …]
|
| /base/telephony/cellular_data/services/include/state_machine/ |
| D | state_machine.h | 31 class State : public RefBase { 35 explicit State(std::string &&name) : name_(std::move(name)) {} in State() function 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> tmpState = curState_->parent_; in ProcessTransitions() [all …]
|
| /base/powermgr/power_manager/ |
| D | powermanager.yaml | 20 STATE: {type: INT32, desc: runninglock state} 29 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: screen state} 30 STATE: {type: INT32, desc: screen state} 33 STATE: 34 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: power state} 35 STATE: {type: INT32, desc: power state} 56 …_BASE: {type: FAULT, level: CRITICAL, desc: the power state is inconsistent with the display state} 57 ERROR_STATE: {type: INT32, desc: the state of the current error} 58 CORRECTION_STATE: {type: INT32, desc: the corrected state} 59 DISPLAY_STATE: {type: INT32, desc: the display state}
|
| /base/telephony/call_manager/services/audio/src/audio_state/ |
| D | holding_state.cpp | 33 TELEPHONY_LOGI("holding state switch cs call to active state"); in ProcessEvent() 41 TELEPHONY_LOGI("holding state switch ims call to active state"); in ProcessEvent() 47 // should switch incoming state while only one incoming call exists in ProcessEvent() 50 TELEPHONY_LOGI("holding state switch call to incoming state"); in ProcessEvent() 52 AudioEvent::SWITCH_INCOMING_STATE); // switch to incoming state in ProcessEvent() 61 … TELEPHONY_LOGI("holding state switch call to alerting state and ignore dialing state"); in ProcessEvent() 69 TELEPHONY_LOGI("holding state lock release"); in ProcessEvent()
|