Home
last modified time | relevance | path

Searched refs:currentState (Results 1 – 25 of 40) sorted by relevance

12

/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/source/schedule/
H A Dsystem_ability_state_machine.cpp58 SystemAbilityState currentState = context->state; in AbilityStateTransitionLocked() local
59 if (currentState == nextState) { in AbilityStateTransitionLocked()
61 context->systemAbilityId, currentState, nextState); in AbilityStateTransitionLocked()
64 if (!handler->CanEnter(currentState)) { in AbilityStateTransitionLocked()
66 context->systemAbilityId, currentState, nextState); in AbilityStateTransitionLocked()
69 if (!UpdateStateCount(context->ownProcessContext, currentState, nextState)) { in AbilityStateTransitionLocked()
75 context->systemAbilityId, currentState, nextState); in AbilityStateTransitionLocked()
119 SystemProcessState currentState = context->state; in ProcessStateTransitionLocked() local
120 if (currentState == nextState) { in ProcessStateTransitionLocked()
125 if (!handler->CanEnter(currentState)) { in ProcessStateTransitionLocked()
[all …]
/ohos5.0/base/powermgr/display_manager/state_manager/test/unittest/src/
H A Ddisplay_power_mgr_service_test.cpp369 EXPECT_TRUE(currentState == DisplayState::DISPLAY_OFF);
374 currentState = DisplayPowerMgrClient::GetInstance().GetDisplayState();
375 EXPECT_TRUE(currentState == DisplayState::DISPLAY_OFF);
392 EXPECT_TRUE(currentState == DisplayState::DISPLAY_OFF);
397 currentState = DisplayPowerMgrClient::GetInstance().GetDisplayState();
398 EXPECT_TRUE(currentState == DisplayState::DISPLAY_ON);
415 EXPECT_TRUE(currentState == DisplayState::DISPLAY_OFF);
420 currentState = DisplayPowerMgrClient::GetInstance().GetDisplayState();
421 EXPECT_TRUE(currentState == DisplayState::DISPLAY_ON);
438 EXPECT_TRUE(currentState == DisplayState::DISPLAY_OFF);
[all …]
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/fold_screen_controller/sensor_fold_state_manager/
H A Dsingle_display_sensor_pocket_fold_state_manager.cpp117 FoldStatus currentState = GetCurrentState(); in SetCameraFoldStrategy() local
123 angle, currentState); in SetCameraFoldStrategy()
134 currentState == FoldStatus::FOLDED) { in SetCameraFoldStrategy()
138 angle, currentState); in SetCameraFoldStrategy()
186 FoldStatus currentState = GetCurrentState(); in GetNextFoldState() local
188 return currentState; in GetNextFoldState()
201 state = currentState; in GetNextFoldState()
210 state = currentState; in GetNextFoldState()
219 state = currentState; in GetNextFoldState()
H A Dsingle_display_sensor_fold_state_manager.cpp73 FoldStatus currentState = GetCurrentState(); in GetNextFoldState() local
75 return currentState; in GetNextFoldState()
91 state = currentState; in GetNextFoldState()
100 state = currentState; in GetNextFoldState()
109 state = currentState; in GetNextFoldState()
/ohos5.0/base/powermgr/power_manager/services/native/src/actions/default/display/
H A Ddevice_state_action.cpp197 DisplayState currentState = GetDisplayState(); in SetDisplayState() local
198 if (state == currentState) { in SetDisplayState()
207 currentState = DisplayState::DISPLAY_ON; in SetDisplayState()
214 if (currentState == DisplayState::DISPLAY_OFF) { in SetDisplayState()
226 … if (currentState == DisplayState::DISPLAY_ON || currentState == DisplayState::DISPLAY_DIM) { in SetDisplayState()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/router/test/unittest/common/
H A Drouter_module_tdd_test.cpp221 int8_t currentState = pageSM.GetCurrentState(); variable
222 EXPECT_EQ(currentState, READY_STATE);
250 int8_t currentState = pageStateMachine.GetCurrentState(); variable
251 EXPECT_EQ(currentState, UNDEFINED_STATE);
279 int8_t currentState = stateMachine.GetCurrentState(); variable
280 EXPECT_EQ(currentState, UNDEFINED_STATE);
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/av_sender/src/
H A Dav_sender_engine.cpp528 StateId currentState = GetCurrentState(); in PushData() local
529 bool isErrState = (currentState != StateId::STARTED) && (currentState != StateId::PLAYING); in PushData()
531 "current state=%{public}" PRId32 " is invalid.", currentState); in PushData()
533 if (currentState == StateId::STARTED) { in PushData()
552 StateId currentState = GetCurrentState(); in PreparePipeline() local
553 …bool isErrState = ((currentState != StateId::INITIALIZED) && (currentState != StateId::CH_CREATED)… in PreparePipeline()
555 "current state=%{public}" PRId32 " is invalid.", currentState); in PreparePipeline()
674 StateId currentState = GetCurrentState(); in OnChannelEvent() local
675 if ((currentState != StateId::IDLE) && (currentState != StateId::INITIALIZED)) { in OnChannelEvent()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/av_receiver/src/
H A Dav_receiver_engine.cpp155 StateId currentState = GetCurrentState(); in PreparePipeline() local
156 …bool isErrState = ((currentState != StateId::INITIALIZED) && (currentState != StateId::CH_CREATED)… in PreparePipeline()
158 "current state=%{public}" PRId32 " is invalid.", currentState); in PreparePipeline()
584 StateId currentState = GetCurrentState(); in HandleOutputBuffer() local
585 bool isErrState = (currentState != StateId::STARTED) && (currentState != StateId::PLAYING); in HandleOutputBuffer()
587 "current state=%{public}" PRId32 " is invalid.", currentState); in HandleOutputBuffer()
614 StateId currentState = GetCurrentState(); in OnChannelEvent() local
615 if ((currentState != StateId::IDLE) && (currentState != StateId::INITIALIZED)) { in OnChannelEvent()
/ohos5.0/foundation/window/window_manager/window_scene/test/dms_unittest/
H A Dsingle_display_pocket_fold_policy_test.cpp515 FoldStatus currentState = FoldStatus::EXPAND; variable
516 policy.ChangeOnTentMode(currentState);
519 currentState = FoldStatus::HALF_FOLD;
520 policy.ChangeOnTentMode(currentState);
523 currentState = FoldStatus::FOLDED;
524 policy.ChangeOnTentMode(currentState);
527 currentState = FoldStatus::UNKNOWN;
528 policy.ChangeOnTentMode(currentState);
/ohos5.0/base/web/webview/ohos_adapter/media_adapter/src/
H A Dmedia_avsession_adapter_impl.cpp415 int32_t currentState; in UpdatePlaybackStateCache() local
418 currentState = AVSession::AVPlaybackState::PLAYBACK_STATE_PLAY; in UpdatePlaybackStateCache()
421 currentState = AVSession::AVPlaybackState::PLAYBACK_STATE_PAUSE; in UpdatePlaybackStateCache()
425 currentState = AVSession::AVPlaybackState::PLAYBACK_STATE_INITIAL; in UpdatePlaybackStateCache()
428 if (avPlaybackState_->GetState() != currentState) { in UpdatePlaybackStateCache()
429 avPlaybackState_->SetState(currentState); in UpdatePlaybackStateCache()
/ohos5.0/base/powermgr/power_manager/services/native/src/
H A Dpower_state_machine.cpp1921 if (currentState == GetState()) { in WakeupDeviceInner()
2008 msg.append(PowerUtils::GetPowerStateString(currentState)) in WakeupDeviceInner()
2017 currentState = correctState; in WakeupDeviceInner()
2024 currentState == PowerState::SHUTDOWN) { in WakeupDeviceInner()
2031 if (currentState == PowerState::AWAKE || currentState == PowerState::FREEZE) { in WakeupDeviceInner()
2036 if (currentState == PowerState::INACTIVE || currentState == PowerState::STAND_BY || in WakeupDeviceInner()
2037 currentState == PowerState::DOZE) { in WakeupDeviceInner()
2038 CorrectState(currentState, PowerState::DIM, state); in WakeupDeviceInner()
2042 if (currentState == PowerState::INACTIVE || currentState == PowerState::STAND_BY || in WakeupDeviceInner()
2043 currentState == PowerState::DOZE) { in WakeupDeviceInner()
[all …]
/ohos5.0/base/account/os_account/services/accountmgr/include/
H A Daccount_state_machine.h153 void SetAccountState(int currentState) in SetAccountState() argument
155 currentState_ = currentState; in SetAccountState()
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/
H A Dhcapture_session.cpp237 auto currentState = stateMachine_.GetCurrentState(); in DynamicConfigStream() local
238 if (currentState == CaptureSessionState::SESSION_STARTED) { in DynamicConfigStream()
285 if (currentState != CaptureSessionState::SESSION_CONFIG_INPROGRESS) { in CanAddInput()
316 if (currentState != CaptureSessionState::SESSION_CONFIG_INPROGRESS) { in AddInput()
383 if (currentState != CaptureSessionState::SESSION_STARTED) { in StartMovingPhotoStream()
510 if (currentState != CaptureSessionState::SESSION_CONFIG_INPROGRESS) { in AddOutput()
555 if (currentState != CaptureSessionState::SESSION_CONFIG_INPROGRESS) { in RemoveInput()
626 if (currentState != CaptureSessionState::SESSION_CONFIG_INPROGRESS) { in RemoveOutput()
1007 currentState == CaptureSessionState::SESSION_STARTED)) { in SetColorSpace()
1677 auto currentState = stateMachine_.GetCurrentState(); in GetSessionState() local
[all …]
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/fold_screen_controller/
H A Dsingle_display_pocket_fold_policy.cpp470 void SingleDisplayPocketFoldPolicy::ChangeOnTentMode(FoldStatus currentState) in ChangeOnTentMode() argument
472 …gTag::DMS, "Enter tent mode, current state:%{public}d, change display mode to MAIN", currentState); in ChangeOnTentMode()
473 if (currentState == FoldStatus::EXPAND || currentState == FoldStatus::HALF_FOLD) { in ChangeOnTentMode()
475 } else if (currentState == FoldStatus::FOLDED) { in ChangeOnTentMode()
480 TLOGE(WmsLogTag::DMS, "current state:%{public}d invalid", currentState); in ChangeOnTentMode()
H A Dfold_screen_policy.cpp77 void FoldScreenPolicy::ChangeOnTentMode(FoldStatus currentState) {} in ChangeOnTentMode() argument
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Devent_listener.cpp177 int8_t currentState = this->GetScrollState(); in EventExcute() local
178 jerry_value_t currentStateValue = jerry_create_number(currentState); in EventExcute()
/ohos5.0/base/telephony/call_manager/services/call/src/
H A Dcs_call.cpp80 …ConferenceState currentState = DelayedSingleton<CsConference>::GetInstance()->GetConferenceState(); in CombineConference() local
81 if (currentState == ConferenceState::CONFERENCE_STATE_CREATING) { in CombineConference()
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/player/test/unittest/src/
H A Dplayer_mock.cpp271 void PlayerCallbackTest::Notify(PlayerStates currentState) in Notify() argument
273 if (currentState == PLAYER_PREPARED) { in Notify()
275 } else if (currentState == PLAYER_STARTED) { in Notify()
277 } else if (currentState == PLAYER_PAUSED) { in Notify()
279 } else if (currentState == PLAYER_STOPPED) { in Notify()
281 } else if (currentState == PLAYER_IDLE) { in Notify()
/ohos5.0/foundation/multimodalinput/input/intention/dfx/src/
H A Dcooperate_hisysevent.cpp160 std::string currentState = CooperateState_[curState]; in WriteCooperateState() local
161 return WriteInputFunc(CooperateType::UPDATESTATE_SUCC, type, "CurrentState", currentState); in WriteCooperateState()
/ohos5.0/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/audio_source/src/
H A Ddaudio_ipc_callback.cpp90 BusinessState currentState = static_cast<BusinessState>(status); in OnHardwareStateChanged() local
91 stateListener_->OnStateChanged(devId, dhId, currentState); in OnHardwareStateChanged()
/ohos5.0/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_source/src/callback/
H A Ddcamera_source_callback.cpp90 BusinessState currentState = static_cast<BusinessState>(status); in OnHardwareStateChanged() local
91 stateListener_->OnStateChanged(devId, dhId, currentState); in OnHardwareStateChanged()
/ohos5.0/base/powermgr/power_manager/services/native/include/
H A Dpower_state_machine.h260 bool NeedNotify(PowerState currentState);
261 void MatchState(PowerState& currentState, DisplayState state);
262 void CorrectState(PowerState& currentState, PowerState correctState, DisplayState state);
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audiorenderer/src/
H A Daudio_renderer.cpp851 State currentState = audioStream_->GetState(); in UpdateAudioInterruptStrategy() local
852 if (currentState == NEW || currentState == PREPARED) { in UpdateAudioInterruptStrategy()
860 if (currentState == RUNNING) { in UpdateAudioInterruptStrategy()
962 State currentState = audioStream_->GetState(); in HandleAndNotifyForcedEvent() local
966 if (currentState == RUNNING || currentState == PREPARED) { in HandleAndNotifyForcedEvent()
972 sessionID_, static_cast<int32_t>(currentState)); in HandleAndNotifyForcedEvent()
977 if ((currentState != PAUSED && currentState != PREPARED) || !isForcePaused_) { in HandleAndNotifyForcedEvent()
979 sessionID_, static_cast<int32_t>(currentState)); in HandleAndNotifyForcedEvent()
/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/
H A Dcloud_enhancement_napi.cpp782 int32_t currentState = GetInt(bundle, MediaEnhance_Query::CURRENT_STATE); in FillTaskStageWithClientQuery() local
783 NAPI_INFO_LOG("clientQueryTaskStateFunc stage = %{public}d", currentState); in FillTaskStageWithClientQuery()
784 if (currentState == MediaEnhance_Query::EN_EXCEPTION) { in FillTaskStageWithClientQuery()
786 } else if (currentState == MediaEnhance_Query::EN_PREPARING) { in FillTaskStageWithClientQuery()
788 } else if (currentState == MediaEnhance_Query::EN_UPLOADING) { in FillTaskStageWithClientQuery()
792 } else if (currentState == MediaEnhance_Query::EN_EXECUTING) { in FillTaskStageWithClientQuery()
795 } else if (currentState == MediaEnhance_Query::EN_DOWNLOADING) { in FillTaskStageWithClientQuery()
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/src/
H A Daudio_capturer.cpp715 State currentState = audioStream_->GetState(); in HandleAndNotifyForcedEvent() local
718 …CHECK_AND_RETURN_LOG((currentState == PAUSED || currentState == PREPARED) && isForcePaused_ == tru… in HandleAndNotifyForcedEvent()
719 …"OnInterrupt state %{public}d or not forced pause %{public}d before", currentState, isForcePaused_… in HandleAndNotifyForcedEvent()
725 CHECK_AND_RETURN_LOG(currentState == RUNNING || currentState == PREPARED, in HandleAndNotifyForcedEvent()
726 "OnInterrupt state %{public}d, no need to pause", currentState); in HandleAndNotifyForcedEvent()

12