/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 | 126 * @param state 128 static void BMCachedParameterGet(benchmark::State &state) in BMCachedParameterGet() argument 136 for (auto _ : state) { in BMCachedParameterGet() 139 state.SetItemsProcessed(state.iterations()); in BMCachedParameterGet() 145 * @param state 147 static void BMCachedParameterGetChangedStatic(benchmark::State &state) in BMCachedParameterGetChangedStatic() argument 154 for (auto _ : state) { in BMCachedParameterGetChangedStatic() 160 state.SetItemsProcessed(state.iterations()); in BMCachedParameterGetChangedStatic() 166 * @param state 168 static void BMCachedParameterGetChangedGlobal(benchmark::State &state) in BMCachedParameterGetChangedGlobal() argument [all …]
|
/base/account/os_account/services/accountmgr/test/unittest/common/account_mgr_service_test/ |
D | account_state_machine_test.cpp | 41 * @tc.desc: Account state machine initial state 49 * @tc.expected: step1. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND 57 * @tc.desc: Account state machine transform unbound state to login state 65 * @tc.expected: step1. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND 72 * @tc.expected: step2. The current state is AccountStateMachine::ACCOUNT_STATE_LOGIN 80 * @tc.desc: Account state machine keep the last state 88 * @tc.expected: step1. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND 95 * @tc.expected: step2. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND 103 * @tc.desc: Account state machine keep the last state 111 * @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 | 100 void SetUp(const ::benchmark::State &state) override in SetUp() argument 107 void TearDown(const ::benchmark::State &state) override in TearDown() argument 126 BENCHMARK_F(BenchmarkNotificationService, AddSlotTestCase)(benchmark::State &state) in BENCHMARK_F() 131 while (state.KeepRunning()) { in BENCHMARK_F() 134 state.SkipWithError("AddSlotTestCase failed."); in BENCHMARK_F() 145 BENCHMARK_F(BenchmarkNotificationService, RemoveSlotByTypeTestCase)(benchmark::State &state) in BENCHMARK_F() 150 while (state.KeepRunning()) { in BENCHMARK_F() 153 state.SkipWithError("RemoveSlotByTypeTestCase add failed."); in BENCHMARK_F() 158 state.SkipWithError("RemoveSlotByTypeTestCase remove failed."); in BENCHMARK_F() 169 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 | 106 RState state = dataContext->addon_->GetResMgr()->GetRawFileList(dataContext->path_.c_str(), in GetRawFileListSync() local 108 if (state != RState::SUCCESS || dataContext->arrayValue_.empty()) { in GetRawFileListSync() 130 RState state = dataContext->addon_->GetResMgr()->GetRawFileFromHap(dataContext->path_, in GetRawFileContentSync() local 132 if (state != SUCCESS) { in GetRawFileContentSync() 134 ResourceManagerNapiUtils::NapiThrow(env, state); in GetRawFileContentSync() 154 RState state = dataContext->addon_->GetResMgr()->GetRawFileDescriptorFromHap(dataContext->path_, in GetRawFdSync() local 156 if (state != RState::SUCCESS) { in GetRawFdSync() 158 ResourceManagerNapiUtils::NapiThrow(env, state); in GetRawFdSync() 177 RState state = dataContext->addon_->GetResMgr()->CloseRawFileDescriptor(dataContext->path_); in CloseRawFdSync() local 178 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/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/powermgr/power_manager/ |
D | powermanager.yaml | 20 STATE: {type: INT32, desc: runninglock state} 28 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: screen state} 29 STATE: {type: INT32, desc: screen state} 41 …_BASE: {type: FAULT, level: CRITICAL, desc: the power state is inconsistent with the display state} 42 ERROR_STATE: {type: INT32, desc: the state of the current error} 43 CORRECTION_STATE: {type: INT32, desc: the corrected state} 44 DISPLAY_STATE: {type: INT32, desc: the display state} 47 STATE: 48 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: power state} 49 STATE: {type: INT32, desc: power state}
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | resource_manager_test_common.cpp | 177 RState state; in TestGetProfileById() local 180 state = rm->GetProfileById(id, outValue); in TestGetProfileById() 181 EXPECT_TRUE(state == SUCCESS); in TestGetProfileById() 192 RState state = rm->GetProfileByName("test_profile", outValue); in TestGetProfileByName() local 193 EXPECT_TRUE(state == SUCCESS); in TestGetProfileByName() 206 RState state = rm->GetMediaById(id, outValue); in TestGetMediaById() local 207 EXPECT_TRUE(state == SUCCESS); in TestGetMediaById() 232 RState state = rm->GetMediaById(id, outValue, density); in TestGetMediaWithDensityById() local 233 EXPECT_TRUE(state == SUCCESS); in TestGetMediaWithDensityById() 244 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 …]
|
D | resource_manager_test.cpp | 158 RState state; variable 166 state = rm->UpdateResConfig(*rc); 168 EXPECT_EQ(SUCCESS, state); 179 RState state; variable 185 state = rm->UpdateResConfig(*rc); 187 EXPECT_EQ(LOCALEINFO_IS_NULL, state); 198 RState state; variable 205 state = rm->UpdateResConfig(*rc); 207 EXPECT_EQ(LOCALEINFO_IS_NULL, state); 220 RState state; variable [all …]
|
D | resource_manager_test_media.cpp | 90 RState state; variable 91 state = rm->GetMediaById(NON_EXIST_ID, outValue); 92 ASSERT_EQ(ERROR_CODE_RES_ID_NOT_FOUND, state); 136 RState state; variable 139 state = rm->GetMediaById(id, outValue, density); 140 EXPECT_TRUE(state == SUCCESS); 172 RState state; variable 175 state = rm->GetMediaById(id, outValue, density); 176 EXPECT_TRUE(state == SUCCESS); 208 RState state; variable [all …]
|
/base/telephony/cellular_data/services/include/state_machine/ |
D | state_machine.h | 33 class State : public RefBase { 37 explicit State(std::string &&name) : name_(std::move(name)) {} in State() function 38 virtual ~State() = default; 43 void SetParentState(sptr<State> &parent) in SetParentState() 56 sptr<State> parent_; 67 virtual void SetOriginalState(sptr<State> &originalState) in SetOriginalState() 72 virtual void TransitionTo(sptr<State> &destState) in TransitionTo() 74 TELEPHONY_LOGI("State machine transition to %{public}s", destState->name_.c_str()); in TransitionTo() 80 sptr<State> tmpState = curState_; in Quit() 94 sptr<State> tmpState = curState_->parent_; in ProcessTransitions() [all …]
|
/base/useriam/face_auth/services_ex/src/ |
D | finite_state_machine_builder.cpp | 40 …iteStateMachine::Builder> FiniteStateMachineBuilder::MakeTransition(uint32_t state, uint32_t event, in MakeTransition() argument 43 …auto ret = transitionMap_.try_emplace(FiniteStateMachineImpl::GetTransitionIndex(state, event), ne… in MakeTransition() 45 …IAM_LOGE("%{public}s state %{public}u and event %{public}u insert failed", name_.c_str(), state, e… in MakeTransition() 51 …iteStateMachine::Builder> FiniteStateMachineBuilder::MakeTransition(uint32_t state, uint32_t event, in MakeTransition() argument 54 MakeTransition(state, event, nextState, nullptr); in MakeTransition() 58 …shared_ptr<FiniteStateMachine::Builder> FiniteStateMachineBuilder::MakeOnStateEnter(uint32_t state, in MakeOnStateEnter() argument 61 auto ret = enterMap_.try_emplace(state, action); in MakeOnStateEnter() 63 IAM_LOGE("%{public}s enter state action %{public}u insert failed", name_.c_str(), state); in MakeOnStateEnter() 69 …shared_ptr<FiniteStateMachine::Builder> FiniteStateMachineBuilder::MakeOnStateLeave(uint32_t state, in MakeOnStateLeave() argument 72 auto ret = leaveMap_.try_emplace(state, action); in MakeOnStateLeave() [all …]
|
/base/useriam/user_auth_framework/services/base/src/ |
D | finite_state_machine_builder.cpp | 40 …iteStateMachine::Builder> FiniteStateMachineBuilder::MakeTransition(uint32_t state, uint32_t event, in MakeTransition() argument 43 …auto ret = transitionMap_.try_emplace(FiniteStateMachineImpl::GetTransitionIndex(state, event), ne… in MakeTransition() 45 …IAM_LOGE("%{public}s state %{public}u and event %{public}u insert failed", name_.c_str(), state, e… in MakeTransition() 51 …iteStateMachine::Builder> FiniteStateMachineBuilder::MakeTransition(uint32_t state, uint32_t event, in MakeTransition() argument 54 MakeTransition(state, event, nextState, nullptr); in MakeTransition() 58 …shared_ptr<FiniteStateMachine::Builder> FiniteStateMachineBuilder::MakeOnStateEnter(uint32_t state, in MakeOnStateEnter() argument 61 auto ret = enterMap_.try_emplace(state, action); in MakeOnStateEnter() 63 IAM_LOGE("%{public}s enter state action %{public}u insert failed", name_.c_str(), state); in MakeOnStateEnter() 69 …shared_ptr<FiniteStateMachine::Builder> FiniteStateMachineBuilder::MakeOnStateLeave(uint32_t state, in MakeOnStateLeave() argument 72 auto ret = leaveMap_.try_emplace(state, action); in MakeOnStateLeave() [all …]
|
/base/powermgr/display_manager/service/native/src/ |
D | screen_action.cpp | 62 DisplayState state = DisplayState::DISPLAY_UNKNOWN; in GetDisplayState() local 67 state = DisplayState::DISPLAY_ON; in GetDisplayState() 70 state = DisplayState::DISPLAY_DIM; in GetDisplayState() 73 state = DisplayState::DISPLAY_SUSPEND; in GetDisplayState() 76 state = DisplayState::DISPLAY_OFF; in GetDisplayState() 81 …DISPLAY_HILOGI(FEAT_STATE, "state=%{public}u displayId=%{public}u", static_cast<uint32_t>(state), … in GetDisplayState() 82 return state; in GetDisplayState() 85 bool ScreenAction::SetDisplayState(DisplayState state, const std::function<void(DisplayState)>& cal… in SetDisplayState() argument 87 DISPLAY_HILOGI(FEAT_STATE, "SetDisplayState: displayId=%{public}u, state=%{public}u", in SetDisplayState() 88 displayId_, static_cast<uint32_t>(state)); in SetDisplayState() [all …]
|
/base/msdp/device_status/utils/common/include/ |
D | util_napi.h | 32 #define CHKRV(state, desc) \ argument 34 if ((state) != napi_ok) { \ 40 #define CHKRP(state, desc) \ argument 42 if ((state) != napi_ok) { \ 48 #define CHKRF(state, desc) \ argument 50 if ((state) != napi_ok) { \ 56 #define CHKRV_SCOPE(env, state, desc, scope) \ argument 58 if ((state) != napi_ok) { \ 65 #define CHKRF_SCOPE(env, state, desc, scope) \ argument 67 if ((state) != napi_ok) { \ [all …]
|
/base/notification/common_event_service/services/test/unittest/ |
D | common_event_dump_test.cpp | 111 …static void DumpInfoCount(const std::vector<std::string> &state, int desSubscribersCount, int desS… 217 std::vector<std::string> state; in ProcessSubscriberTest2Case1() local 218 …innerCommonEventManager_->DumpState(static_cast<int32_t>(DumpEventType::ALL), "", ALL_USER, state); in ProcessSubscriberTest2Case1() 219 CommonEventDumpTest::DumpInfoCount(state, in ProcessSubscriberTest2Case1() 406 void CommonEventDumpTest::DumpInfoCount(const std::vector<std::string> &state, int desSubscribersCo… in DumpInfoCount() argument 417 for (auto vec : state) { in DumpInfoCount() 687 std::vector<std::string> state; variable 688 …nnerCommonEventManager()->DumpState(static_cast<int32_t>(DumpEventType::ALL), "", ALL_USER, state); 689 GTEST_LOG_(INFO) << "get state size:" << state.size(); 690 ASSERT_NE(state.size(), 0); [all …]
|
/base/notification/common_event_service/test/benchmarktest/common_event_publish_test/ |
D | common_event_publish_test.cpp | 39 void SetUp(const ::benchmark::State &state) override in SetUp() argument 42 void TearDown(const ::benchmark::State &state) override in TearDown() argument 64 BENCHMARK_F(BenchmarkCommonEventPublish, SubscribeCommonEventTestCase)(benchmark::State &state) in BENCHMARK_F() 71 while (state.KeepRunning()) { in BENCHMARK_F() 82 BENCHMARK_F(BenchmarkCommonEventPublish, UnsubscribeCommonEventTestCase)(benchmark::State &state) in BENCHMARK_F() 91 while (state.KeepRunning()) { in BENCHMARK_F() 104 BENCHMARK_F(BenchmarkCommonEventPublish, PublishCommonEventTestCase)(benchmark::State &state) in BENCHMARK_F() 116 while (state.KeepRunning()) { in BENCHMARK_F()
|
/base/notification/distributed_notification_service/test/bechmarktest/notification_publish_test/ |
D | notification_publish_test.cpp | 47 void SetUp(const ::benchmark::State &state) override in SetUp() argument 50 void TearDown(const ::benchmark::State &state) override in TearDown() argument 122 BENCHMARK_F(BenchmarkNotificationPublish, PublishNotificationTestCase001)(benchmark::State &state) in BENCHMARK_F() 125 while (state.KeepRunning()) { in BENCHMARK_F() 137 BENCHMARK_F(BenchmarkNotificationPublish, CancelNotificationTestCase)(benchmark::State &state) in BENCHMARK_F() 140 while (state.KeepRunning()) { in BENCHMARK_F() 152 BENCHMARK_F(BenchmarkNotificationPublish, PublishNotificationTestCase002)(benchmark::State &state) in BENCHMARK_F() 155 while (state.KeepRunning()) { in BENCHMARK_F() 170 BENCHMARK_F(BenchmarkNotificationPublish, PublishNotificationTestCase003)(benchmark::State &state) in BENCHMARK_F() 173 while (state.KeepRunning()) { in BENCHMARK_F() [all …]
|
/base/telephony/call_manager/services/audio/src/ |
D | audio_scene_processor.cpp | 48 TELEPHONY_LOGE("current call state nullptr"); in Init() 57 TELEPHONY_LOGE("current call state nullptr"); in ProcessEvent() 127 TELEPHONY_LOGI("switch call state lock release"); in SwitchState() 143 TELEPHONY_LOGI("current call state : dialing state"); in SwitchDialing() 154 // play ringback tone while alerting state in SwitchAlerting() 156 TELEPHONY_LOGI("current call state : alerting state"); in SwitchAlerting() 167 // play ringtone while incoming state in SwitchIncoming() 170 TELEPHONY_LOGI("current call state : incoming state"); in SwitchIncoming() 181 TELEPHONY_LOGI("current call state : cs call state"); in SwitchCS() 192 TELEPHONY_LOGI("current call state : ims call state"); in SwitchIMS() [all …]
|
/base/powermgr/display_manager/test/unittest/src/ |
D | display_power_mgr_service_test.cpp | 45 DisplayState state = DisplayPowerMgrClient::GetInstance().GetDisplayState(); in TearDown() local 46 DISPLAY_HILOGI(LABEL_TEST, "Get displaystate after run testcase, state: %{public}d", state); in TearDown() 47 if (state != beforeDisplayState) { in TearDown() 50 state, beforeDisplayState); in TearDown() 73 * @tc.desc: Test set screen state off 85 * @tc.desc: Test set screen state on 97 * @tc.desc: Test set screen state dim 109 * @tc.desc: Test set screen state suspend 121 * @tc.desc: Test set screen state unknown 133 * @tc.desc: Test set screen state on [all …]
|
/base/powermgr/battery_statistics/services/native/src/ |
D | battery_stats_listener.cpp | 123 data.state = StatsUtils::STATS_STATE_ACTIVATED; in ProcessCameraEvent() 125 data.state = StatsUtils::STATS_STATE_DEACTIVATED; in ProcessCameraEvent() 130 data.state = StatsUtils::STATS_STATE_ACTIVATED; in ProcessCameraEvent() 132 data.state = StatsUtils::STATS_STATE_DEACTIVATED; in ProcessCameraEvent() 146 if (!root["STATE"].asString().empty()) { in ProcessAudioEvent() 147 AudioState audioState = AudioState(stoi(root["STATE"].asString())); in ProcessAudioEvent() 150 data.state = StatsUtils::STATS_STATE_ACTIVATED; in ProcessAudioEvent() 155 data.state = StatsUtils::STATS_STATE_DEACTIVATED; in ProcessAudioEvent() 178 if (!root["STATE"].asString().empty()) { in ProcessSensorEvent() 179 if (root["STATE"].asString() == "1") { in ProcessSensorEvent() [all …]
|