Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 412) sorted by relevance

12345678910>>...17

/base/global/resmgr_standard/frameworks/resmgr/test/unittest/common/
Dresource_manager_test.cpp252 RState state; variable
260 state = rm->UpdateResConfig(*rc);
262 EXPECT_EQ(SUCCESS, state);
273 RState state; variable
279 state = rm->UpdateResConfig(*rc);
281 EXPECT_EQ(LOCALEINFO_IS_NULL, state);
292 RState state; variable
299 state = rm->UpdateResConfig(*rc);
301 EXPECT_EQ(LOCALEINFO_IS_NULL, state);
314 RState state; variable
[all …]
Dlocale_info_test.cpp173 RState state = SUCCESS; variable
174 Locale *localeInfo = BuildFromString("zh-CN", '-', state);
198 RState state = SUCCESS; variable
199 Locale *localeInfo = BuildFromString("zh-CN", '-', state);
214 localeInfo = BuildFromString("en-US", '-', state);
225 localeInfo = BuildFromString("en-Qaag-US", '-', state);
251 RState state = SUCCESS; variable
252 Locale *localeInfo = BuildFromString("zh-CN", '-', state);
269 RState state = SUCCESS; variable
270 Locale *localeInfo = BuildFromString("zh-CN", '-', state);
[all …]
/base/global/resmgr_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dresource_manager_test.cpp218 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 …]
Dlocale_info_test.cpp174 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/powermgr/display_manager/service/native/src/
Dscreen_controller.cpp39 bool ScreenController::UpdateState(DisplayState state, uint32_t reason) in UpdateState() argument
44 displayId_, static_cast<uint32_t>(state), static_cast<uint32_t>(state_)); in UpdateState()
45 if (state == state_) { in UpdateState()
49 switch (state) { in UpdateState()
52 BeforeUpdateState(state); in UpdateState()
55 bool ret = action_->SetDisplayState(displayId_, state, callback); in UpdateState()
57 DISPLAY_HILOGW(MODULE_SERVICE, "SetDisplayState failed state=%{public}d", state); in UpdateState()
60 AfterUpdateState(state); in UpdateState()
65 bool ret = action_->SetDisplayPower(displayId_, state, stateChangeReason_); in UpdateState()
67 DISPLAY_HILOGW(MODULE_SERVICE, "SetDisplayPower failed state=%{public}d", state); in UpdateState()
[all …]
Dscreen_action.cpp53 Rosen::ScreenPowerState state = Rosen::ScreenManager::GetInstance().GetScreenPower(displayId); in GetPowerState() local
54 DISPLAY_HILOGI(MODULE_SERVICE, "GetPowerState: %{public}d", static_cast<uint32_t>(state)); in GetPowerState()
55 switch (state) { in GetPowerState()
75 bool ScreenAction::SetDisplayState(uint32_t displayId, DisplayState state, in SetDisplayState() argument
79 displayId, static_cast<uint32_t>(state)); in SetDisplayState()
82 switch (state) { in SetDisplayState()
96 DisplayState state = DisplayState::DISPLAY_UNKNOWN; in SetDisplayState() local
99 state = DisplayState::DISPLAY_ON; in SetDisplayState()
102 state = DisplayState::DISPLAY_OFF; in SetDisplayState()
107 callback(state); in SetDisplayState()
[all …]
/base/powermgr/thermal_manager/application/protector/src/
Dthermal_protector_utils.cpp41 int32_t state = fseek(stream, 0, SEEK_SET); in WriteFile() local
42 if (state != ERR_OK) { in WriteFile()
44 return state; in WriteFile()
46 state = fclose(stream); in WriteFile()
47 if (state != ERR_OK) { in WriteFile()
48 return state; in WriteFile()
/base/notification/ces_standard/services/test/unittest/
Dcommon_event_dump_test.cpp120 …static void dumpInfoCount(const std::vector<std::string> &state, int desSubscribersCount, int desS…
218 std::vector<std::string> state; in ProcessSubscriberTest2Case1() local
219 innerCommonEventManager_->DumpState("", ALL_USER, state); in ProcessSubscriberTest2Case1()
220 CommonEventDumpTest::dumpInfoCount(state, in ProcessSubscriberTest2Case1()
405 void CommonEventDumpTest::dumpInfoCount(const std::vector<std::string> &state, int desSubscribersCo… in dumpInfoCount() argument
416 for (auto vec : state) { in dumpInfoCount()
678 std::vector<std::string> state; variable
679 … OHOS::DelayedSingleton<CommonEventManagerService>::GetInstance()->DumpState("", ALL_USER, state));
680 GTEST_LOG_(INFO) << "get state size:" << state.size();
681 dumpInfoCount(state, DUMP_SUBSCRIBER_COUNT_TWO, 0, 0, DUMP_HISTORY_COUNT_TWO);
[all …]
/base/powermgr/thermal_manager/services/native/src/thermal_observer/state_machine/
Dstate_machine.cpp39 for (auto state = vState_.begin(); state != vState_.end(); state++) { in Init() local
40 THERMAL_HILOGI(COMP_SVC, "StateMachine name = %{public}s", state->name.c_str()); in Init()
41 … std::shared_ptr<IStateCollection> stateCollection = StateCollectionFactory::Create(state->name); in Init()
42 if (state->isExistParam) { in Init()
43 stateCollection->InitParam(state->params); in Init()
46 stateCollectionMap_.emplace(std::pair(state->name, stateCollection)); in Init()
/base/powermgr/battery_lite/frameworks/native/src/mini/
Dbattery_freamwork.c57 BatteryChargeState state = CHARGE_STATE_NONE; in GetChargingStatus() local
60 state = intf->GetChargingStatusFunc((IUnknown *)intf); in GetChargingStatus()
62 return state; in GetChargingStatus()
66 BatteryHealthState state = HEALTH_STATE_UNKNOWN; in GetHealthStatus() local
69 state = intf->GetHealthStatusFunc((IUnknown *)intf); in GetHealthStatus()
71 return state; in GetHealthStatus()
75 BatteryPluggedType state = PLUGGED_TYPE_NONE; in GetPluggedType() local
78 state = intf->GetPluggedTypeFunc((IUnknown *)intf); in GetPluggedType()
80 return state; in GetPluggedType()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_policy_set.cpp118 PermissionStateFull state; in RestorePermissionPolicy() local
119 int ret = DataTranslator::TranslationIntoPermissionStateFull(stateValue, state); in RestorePermissionPolicy()
121 MergePermissionStateFull(policySet->permStateList_, state); in RestorePermissionPolicy()
131 const PermissionStateFull& state) in MergePermissionStateFull() argument
134 if (state.permissionName == iter->permissionName) { in MergePermissionStateFull()
135 iter->resDeviceID.emplace_back(state.resDeviceID[0]); in MergePermissionStateFull()
136 iter->grantStatus.emplace_back(state.grantStatus[0]); in MergePermissionStateFull()
137 iter->grantFlags.emplace_back(state.grantFlags[0]); in MergePermissionStateFull()
141 permStateList.emplace_back(state); in MergePermissionStateFull()
243 for (auto& state : permStateList_) { in GetPermissionStateList() local
[all …]
/base/telephony/state_registry/interfaces/kits/js/
D@ohos.telephony.observer.d.ts106 callback: Callback<{ state: DataConnectState, network: RatType }>): void;
108 callback: Callback<{ state: DataConnectState, network: RatType }>): void;
111 callback?: Callback<{ state: DataConnectState, network: RatType }>): void;
139 …function on(type: 'callStateChange', callback: Callback<{ state: CallState, number: string }>): vo…
141 callback: Callback<{ state: CallState, number: string }>): void;
143 …function off(type: 'callStateChange', callback?: Callback<{ state: CallState, number: string }>): …
166 state: SimState,
/base/powermgr/power_manager/services/native/src/actions/default/
Ddevice_state_action.cpp59 DisplayPowerMgr::DisplayState state = DisplayPowerMgrClient::GetInstance().GetDisplayState(); in GetDisplayState() local
60 POWER_HILOGI(MODULE_SERVICE, "GetDisplayState: %{public}d", state); in GetDisplayState()
62 switch (state) { in GetDisplayState()
81 uint32_t DeviceStateAction::SetDisplayState(const DisplayState state, StateChangeReason reason) in SetDisplayState() argument
84 static_cast<uint32_t>(state), static_cast<uint32_t>(reason)); in SetDisplayState()
87 if (state == currentState) { in SetDisplayState()
88 POWER_HILOGI(MODULE_SERVICE, "Already in state: %{public}d", static_cast<uint32_t>(state)); in SetDisplayState()
99 switch (state) { in SetDisplayState()
143 DisplayPowerMgr::DisplayState state) in OnDisplayStateChanged() argument
151 switch (state) { in OnDisplayStateChanged()
/base/telephony/call_manager/services/call/src/
Dcall_policy.cpp77 TelCallState state = GetCallState(callId); in AnswerCallPolicy() local
78 if (state != TelCallState::CALL_STATUS_INCOMING && state != TelCallState::CALL_STATUS_WAITING) { in AnswerCallPolicy()
79 TELEPHONY_LOGE("current call state is:%{public}d, accept call not allowed", state); in AnswerCallPolicy()
91 TelCallState state = GetCallState(callId); in RejectCallPolicy() local
92 if (state != TelCallState::CALL_STATUS_INCOMING && state != TelCallState::CALL_STATUS_WAITING) { in RejectCallPolicy()
93 TELEPHONY_LOGE("current call state is:%{public}d, reject call not allowed", state); in RejectCallPolicy()
133 TelCallState state = GetCallState(callId); in HangUpPolicy() local
134 … if (state == TelCallState::CALL_STATUS_IDLE || state == TelCallState::CALL_STATUS_DISCONNECTING || in HangUpPolicy()
135 state == TelCallState::CALL_STATUS_DISCONNECTED) { in HangUpPolicy()
136 TELEPHONY_LOGE("current call state is:%{public}d, hang up call not allowed", state); in HangUpPolicy()
[all …]
Dims_call.cpp42 sptr<VideoCallState> state = (std::make_unique<AudioOnlyState>(this)).release(); in InitVideoCall() local
43 if (state == nullptr) { in InitVideoCall()
47 videoStateMap_[ImsCallMode::CALL_MODE_AUDIO_ONLY] = state; in InitVideoCall()
48 videoCallState_ = state; in InitVideoCall()
49 state = (std::make_unique<VideoSendState>(this)).release(); in InitVideoCall()
50 if (state == nullptr) { in InitVideoCall()
54 videoStateMap_[ImsCallMode::CALL_MODE_SEND_ONLY] = state; in InitVideoCall()
55 state = (std::make_unique<VideoReceiveState>(this)).release(); in InitVideoCall()
56 if (state == nullptr) { in InitVideoCall()
60 videoStateMap_[ImsCallMode::CALL_MODE_RECEIVE_ONLY] = state; in InitVideoCall()
[all …]
/base/location/utils/source/
Dcommon_hisysevent.cpp33 void WriteGnssStateEvent(const std::string& state) in WriteGnssStateEvent() argument
35 …WriteEvent("GNSS_STATE", "STATE", state, "PID", IPCSkeleton::GetCallingPid(), "UID", IPCSkeleton::… in WriteGnssStateEvent()
38 void WriteLocationSwitchStateEvent(const std::string& state) in WriteLocationSwitchStateEvent() argument
40 WriteEvent("LOCATION_SWITCH_STATE", "STATE", state); in WriteLocationSwitchStateEvent()
/base/telephony/cellular_call/services/connection/src/
Dbase_connection.cpp37 void BaseConnection::SetStatus(TelCallState state) in SetStatus() argument
39 callReportInfo_.state = state; in SetStatus()
44 return callReportInfo_.state; in GetStatus()
/base/powermgr/display_manager/test/unittest/common/native/src/
Ddisplay_power_mgr_service_test.cpp140 DisplayState state = DisplayPowerMgrClient::GetInstance().GetDisplayState(); variable
141 EXPECT_TRUE(state == DisplayState::DISPLAY_ON);
157 DisplayState state = DisplayPowerMgrClient::GetInstance().GetDisplayState(); variable
158 EXPECT_TRUE(state == DisplayState::DISPLAY_DIM);
173 DisplayState state = DisplayPowerMgrClient::GetInstance().GetDisplayState(); variable
174 EXPECT_TRUE(state == DisplayState::DISPLAY_OFF);
189 DisplayState state = DisplayPowerMgrClient::GetInstance().GetDisplayState(); variable
190 EXPECT_TRUE(state == DisplayState::DISPLAY_SUSPEND);
205 DisplayState state = DisplayPowerMgrClient::GetInstance().GetDisplayState(); variable
206 EXPECT_TRUE(state == DisplayState::DISPLAY_UNKNOWN);
/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_listener.cpp67 data.state = StatsUtils::STATS_STATE_ACTIVATED; in processPhoneEvent()
69 data.state = StatsUtils::STATS_STATE_DEACTIVATED; in processPhoneEvent()
87 data.state = StatsUtils::STATS_STATE_ACTIVATED; in processFlashlightEvent()
89 data.state = StatsUtils::STATS_STATE_DEACTIVATED; in processFlashlightEvent()
107 data.state = StatsUtils::STATS_STATE_ACTIVATED; in processWakelockEvent()
109 data.state = StatsUtils::STATS_STATE_DEACTIVATED; in processWakelockEvent()
129 data.state = StatsUtils::STATS_STATE_DISPLAY_OFF; in processDispalyEvent()
132 data.state = StatsUtils::STATS_STATE_DISPLAY_ON; in processDispalyEvent()
135 data.state = StatsUtils::STATS_STATE_DISPLAY_DIM; in processDispalyEvent()
138 data.state = StatsUtils::STATS_STATE_DISPLAY_SUSPEND; in processDispalyEvent()
[all …]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dstringfilter.cpp94 int state = STATE_BEGIN; in IsValidName() local
97 if (ic >= CHAR_RANGE || state < 0 || state >= StringFilter::STATE_NUM) { in IsValidName()
100 state = statTab_[state][ic]; in IsValidName()
101 if (state == STATE_STOP) { in IsValidName()
/base/powermgr/thermal_manager/utils/native/src/
Dfile_operation.cpp76 int32_t state = fseek(stream, 0, SEEK_SET); in WriteFile() local
77 if (state != ERR_OK) { in WriteFile()
79 return state; in WriteFile()
81 state = fclose(stream); in WriteFile()
82 if (state != ERR_OK) { in WriteFile()
83 return state; in WriteFile()
/base/powermgr/display_manager/service/native/include/
Dscreen_controller.h39 bool UpdateState(DisplayState state, uint32_t reason);
40 bool UpdateStateConfig(DisplayState state, uint32_t value);
53 void OnStateChanged(DisplayState state);
54 void BeforeUpdateState(DisplayState state);
55 void AfterUpdateState(DisplayState state);
/base/accessibility/frameworks/asacfwk/test/mock/
Dmock_accessible_ability_manager_service_stub.h85 bool SetCaptionState(const bool state) in SetCaptionState() argument
89 bool SetEnabled(const bool state) in SetEnabled() argument
93 bool SetTouchGuideState(const bool state) in SetTouchGuideState() argument
97 bool SetGestureState(const bool state) in SetGestureState() argument
101 bool SetKeyEventObserverState(const bool state) in SetKeyEventObserverState() argument
/base/security/device_security_level/baselib/utils/src/
Dutils_state_machine.c40 …ode *GetScheduleStateNode(const StateNode *nodes, uint32_t nodeCnt, uint32_t state, uint32_t event) in GetScheduleStateNode() argument
44 if ((node->state == state) && (node->event == event)) { in GetScheduleStateNode()
91 uint32_t state = machine->currState; in ScheduleMachine() local
92 const StateNode *node = GetScheduleStateNode(nodes, nodeCnt, state, event); in ScheduleMachine()
103 machine->machineId, state, event, machine->currState); in ScheduleMachine()
/base/accessibility/frameworks/asacfwk/include/
Daccessible_ability_manager_service_interface.h97 virtual bool SetCaptionState(const bool state) = 0;
98 virtual bool SetEnabled(const bool state) = 0;
99 virtual bool SetTouchGuideState(const bool state) = 0;
100 virtual bool SetGestureState(const bool state) = 0;
101 virtual bool SetKeyEventObserverState(const bool state) = 0;

12345678910>>...17