/base/global/resmgr_standard/frameworks/resmgr/test/unittest/common/ |
D | resource_manager_test.cpp | 252 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 …]
|
D | locale_info_test.cpp | 173 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/ |
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/powermgr/display_manager/service/native/src/ |
D | screen_controller.cpp | 39 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 …]
|
D | screen_action.cpp | 53 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/ |
D | thermal_protector_utils.cpp | 41 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/ |
D | common_event_dump_test.cpp | 120 …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/ |
D | state_machine.cpp | 39 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/ |
D | battery_freamwork.c | 57 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/ |
D | permission_policy_set.cpp | 118 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.ts | 106 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/ |
D | device_state_action.cpp | 59 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/ |
D | call_policy.cpp | 77 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 …]
|
D | ims_call.cpp | 42 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/ |
D | common_hisysevent.cpp | 33 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/ |
D | base_connection.cpp | 37 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/ |
D | display_power_mgr_service_test.cpp | 140 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/ |
D | battery_stats_listener.cpp | 67 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/ |
D | stringfilter.cpp | 94 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/ |
D | file_operation.cpp | 76 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/ |
D | screen_controller.h | 39 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/ |
D | mock_accessible_ability_manager_service_stub.h | 85 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/ |
D | utils_state_machine.c | 40 …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/ |
D | accessible_ability_manager_service_interface.h | 97 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;
|