Home
last modified time | relevance | path

Searched refs:BaseState (Results 1 - 25 of 31) sorted by relevance

12

/foundation/resourceschedule/device_standby/plugins/ext/src/
H A Dbase_state.cpp34 std::shared_ptr<PowerMgr::RunningLock> BaseState::standbyRunningLock_ = nullptr;
37 bool BaseState::runningLockStatus_ = false;
39 ErrCode BaseState::Init(const std::shared_ptr<BaseState>& statePtr) in Init()
50 ErrCode BaseState::UnInit() in UnInit()
57 uint32_t BaseState::GetCurState() in GetCurState()
62 uint32_t BaseState::GetCurInnerPhase() in GetCurInnerPhase()
67 void BaseState::StartTransitNextState(const std::shared_ptr<BaseState>& statePtr) in StartTransitNextState()
72 BaseState in StartTransitNextState()
[all...]
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/
H A Dcast_session_state.cpp28 void CastSessionImpl::BaseState::Enter(SessionState state) in Enter()
36 // BaseState and its inherited classes work under the strict control of the session, in Enter()
37 // so the session_ used in the BaseState member function must not be null. in Enter()
42 void CastSessionImpl::BaseState::Exit() in Exit()
53 bool CastSessionImpl::BaseState::HandleMessage(const Message &msg) in HandleMessage()
66 SessionState CastSessionImpl::BaseState::GetStateId() const in GetStateId()
73 BaseState::Enter(SessionState::DEFAULT); in Enter()
78 BaseState::Exit(); in Exit()
89 BaseState::HandleMessage(msg); in HandleMessage()
105 BaseState in Enter()
[all...]
/foundation/CastEngine/castengine_cast_plus_stream/src/
H A Dcast_session_state.cpp28 void CastSessionImpl::BaseState::Enter(SessionState state) in Enter()
36 // BaseState and its inherited classes work under the strict control of the session, in Enter()
37 // so the session_ used in the BaseState member function must not be null. in Enter()
42 void CastSessionImpl::BaseState::Exit() in Exit()
53 bool CastSessionImpl::BaseState::HandleMessage(const Message &msg) in HandleMessage()
66 SessionState CastSessionImpl::BaseState::GetStateId() const in GetStateId()
73 BaseState::Enter(SessionState::DEFAULT); in Enter()
78 BaseState::Exit(); in Exit()
89 BaseState::HandleMessage(msg); in HandleMessage()
105 BaseState in Enter()
[all...]
/foundation/CastEngine/castengine_cast_framework/service/src/session/include/
H A Dcast_session_impl.h97 class CastSessionImpl::BaseState : public State { class in OHOS::CastEngine::CastEngineService::CastSessionImpl
99 BaseState(SessionState stateId, sptr<CastSessionImpl> session, std::shared_ptr<State> parentState = nullptr) in BaseState() function in OHOS::CastEngine::CastEngineService::CastSessionImpl::BaseState
110 DISALLOW_EVIL_CONSTRUCTORS(BaseState);
116 class CastSessionImpl::DefaultState : public BaseState {
119 : BaseState(stateId, session, parentState) {}; in DefaultState()
128 class CastSessionImpl::DisconnectedState : public BaseState {
131 : BaseState(stateId, session, parentState) {}; in DisconnectedState()
140 class CastSessionImpl::AuthingState : public BaseState {
143 : BaseState(stateId, session, parentState) {}; in AuthingState()
152 class CastSessionImpl::ConnectingState : public BaseState {
[all...]
/foundation/CastEngine/castengine_cast_plus_stream/include/
H A Dcast_session_impl.h97 class CastSessionImpl::BaseState : public State { class in OHOS::CastEngine::CastEngineService::CastSessionImpl
99 BaseState(SessionState stateId, sptr<CastSessionImpl> session, std::shared_ptr<State> parentState = nullptr) in BaseState() function in OHOS::CastEngine::CastEngineService::CastSessionImpl::BaseState
110 DISALLOW_EVIL_CONSTRUCTORS(BaseState);
116 class CastSessionImpl::DefaultState : public BaseState {
119 : BaseState(stateId, session, parentState) {}; in DefaultState()
128 class CastSessionImpl::DisconnectedState : public BaseState {
131 : BaseState(stateId, session, parentState) {}; in DisconnectedState()
140 class CastSessionImpl::AuthingState : public BaseState {
143 : BaseState(stateId, session, parentState) {}; in AuthingState()
152 class CastSessionImpl::ConnectingState : public BaseState {
[all...]
/foundation/multimedia/player_framework/services/services/player/server/
H A Dplayer_server_state.h23 class PlayerServer::BaseState : public PlayerServerState { class in OHOS::Media::PlayerServer
25 BaseState(PlayerServer &server, const std::string &name) : PlayerServerState(name), server_(server) {} in BaseState() function in OHOS::Media::PlayerServer::BaseState
26 virtual ~BaseState() = default;
67 class PlayerServer::IdleState : public PlayerServer::BaseState {
69 explicit IdleState(PlayerServer &server) : BaseState(server, "idle_state") {} in IdleState()
76 class PlayerServer::InitializedState : public PlayerServer::BaseState {
78 explicit InitializedState(PlayerServer &server) : BaseState(server, "inited_state") {} in InitializedState()
85 class PlayerServer::PreparingState : public PlayerServer::BaseState {
87 explicit PreparingState(PlayerServer &server) : BaseState(server, "preparing_state") {} in PreparingState()
97 class PlayerServer::PreparedState : public PlayerServer::BaseState {
[all...]
H A Dplayer_server_state.cpp29 void PlayerServer::BaseState::ReportInvalidOperation() const in ReportInvalidOperation()
35 int32_t PlayerServer::BaseState::Prepare() in Prepare()
41 int32_t PlayerServer::BaseState::Play() in Play()
47 int32_t PlayerServer::BaseState::Pause(bool isSystemOperation) in Pause()
54 int32_t PlayerServer::BaseState::PauseDemuxer() in PauseDemuxer()
60 int32_t PlayerServer::BaseState::ResumeDemuxer() in ResumeDemuxer()
66 int32_t PlayerServer::BaseState::Seek(int32_t mSeconds, PlayerSeekMode mode) in Seek()
75 int32_t PlayerServer::BaseState::Stop() in Stop()
81 int32_t PlayerServer::BaseState::SetPlaybackSpeed(PlaybackRateMode mode) in SetPlaybackSpeed()
89 int32_t PlayerServer::BaseState
[all...]
H A Dplayer_server.cpp375 auto currState = std::static_pointer_cast<BaseState>(GetCurrState()); in SetPlayRangeWithMode()
427 auto currState = std::static_pointer_cast<BaseState>(GetCurrState()); in OnPrepare()
508 auto currState = std::static_pointer_cast<BaseState>(GetCurrState()); in OnPlay()
566 auto currState = std::static_pointer_cast<BaseState>(GetCurrState()); in OnPause()
630 auto currState = std::static_pointer_cast<BaseState>(GetCurrState()); in OnStop()
811 auto currState = std::static_pointer_cast<BaseState>(GetCurrState()); in Seek()
1042 auto currState = std::static_pointer_cast<BaseState>(GetCurrState()); in SetPlaybackSpeed()
1123 auto currState = std::static_pointer_cast<BaseState>(GetCurrState()); in HandleEos()
1549 auto currState = std::static_pointer_cast<BaseState>(GetCurrState()); in OnErrorMessage()
1560 auto currState = std::static_pointer_cast<BaseState>(GetCurrStat in OnErrorMessage()
[all...]
/foundation/resourceschedule/device_standby/plugins/standby_state/include/
H A Dworking_state.h23 class WorkingState : public BaseState, public std::enable_shared_from_this<WorkingState> {
24 using BaseState::BaseState;
26 ErrCode Init(const std::shared_ptr<BaseState>& statePtr) override;
H A Dmaintenance_state.h23 class MaintenanceState : public BaseState {
24 using BaseState::BaseState;
H A Dstate_manager_adapter.h62 std::shared_ptr<BaseState> darkStatePtr_ {nullptr};
63 std::shared_ptr<BaseState> maintStatePtr_ {nullptr};
64 std::shared_ptr<BaseState> napStatePtr_ {nullptr};
65 std::shared_ptr<BaseState> sleepStatePtr_ {nullptr};
66 std::shared_ptr<BaseState> workingStatePtr_ {nullptr};
67 std::vector<std::shared_ptr<BaseState>> indexToState_ {};
H A Dsleep_state.h23 class SleepState : public BaseState, public StateWithMaint, public std::enable_shared_from_this<SleepState> {
27 ErrCode Init(const std::shared_ptr<BaseState>& statePtr) override;
H A Dnap_state.h23 class NapState : public BaseState, public StateWithMaint, public std::enable_shared_from_this<NapState> {
H A Ddark_state.h24 class DarkState : public BaseState {
/foundation/resourceschedule/device_standby/plugins/ext/include/
H A Dbase_state.h64 class BaseState { class
66 BaseState(uint32_t curState, uint32_t curPhase, const std::shared_ptr<IStateManagerAdapter>& in BaseState() function in OHOS::DevStandbyMgr::BaseState
69 virtual ~BaseState() = default;
70 virtual ErrCode Init(const std::shared_ptr<BaseState>& statePtr);
79 virtual void StartTransitNextState(const std::shared_ptr<BaseState>& statePtr);
H A Distate_manager_adapter.h32 class BaseState;
62 std::shared_ptr<BaseState> preStatePtr_ {nullptr};
63 std::shared_ptr<BaseState> curStatePtr_ {nullptr};
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/imagecodec/
H A Dcodec_state.cpp24 /**************************** BaseState Start ****************************/
25 void ImageCodec::BaseState::OnMsgReceived(const MsgInfo &info) in OnMsgReceived()
70 void ImageCodec::BaseState::ReplyErrorCode(MsgId id, int32_t err) in ReplyErrorCode()
80 void ImageCodec::BaseState::OnCodecEvent(const MsgInfo &info) in OnCodecEvent()
97 void ImageCodec::BaseState::OnCodecEvent(CodecEventType event, uint32_t data1, uint32_t data2) in OnCodecEvent()
107 void ImageCodec::BaseState::OnGetFormat(const MsgInfo &info) in OnGetFormat()
121 void ImageCodec::BaseState::OnCheckIfStuck(const MsgInfo &info) in OnCheckIfStuck()
132 void ImageCodec::BaseState::OnForceShutDown(const MsgInfo &info) in OnForceShutDown()
138 /**************************** BaseState End ******************************/
160 BaseState in OnMsgReceived()
[all...]
/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhcodec_state.cpp27 /**************************** BaseState Start ****************************/
28 void HCodec::BaseState::OnMsgReceived(const MsgInfo &info) in OnMsgReceived()
77 void HCodec::BaseState::ReplyErrorCode(MsgId id, int32_t err) in ReplyErrorCode()
87 void HCodec::BaseState::OnCodecEvent(const MsgInfo &info) in OnCodecEvent()
104 void HCodec::BaseState::OnCodecEvent(CodecEventType event, uint32_t data1, uint32_t data2) in OnCodecEvent()
114 void HCodec::BaseState::OnGetFormat(const MsgInfo &info) in OnGetFormat()
128 void HCodec::BaseState::OnSetParameters(const MsgInfo &info) in OnSetParameters()
135 void HCodec::BaseState::OnCheckIfStuck(const MsgInfo &info) in OnCheckIfStuck()
146 void HCodec::BaseState::OnForceShutDown(const MsgInfo &info) in OnForceShutDown()
154 /**************************** BaseState En in OnForceShutDown()
[all...]
H A Dhcodec.h390 struct BaseState : State { struct in OHOS::MediaAVCodec::HCodec
392 BaseState(HCodec *codec, const std::string &stateName, in BaseState() function
412 struct UninitializedState : BaseState {
413 explicit UninitializedState(HCodec *codec) : BaseState(codec, "Uninitialized") {} in UninitializedState()
420 struct InitializedState : BaseState {
421 explicit InitializedState(HCodec *codec) : BaseState(codec, "Initialized") {} in InitializedState()
432 struct StartingState : BaseState {
433 explicit StartingState(HCodec *codec) : BaseState(codec, "Starting") {} in StartingState()
445 struct RunningState : BaseState {
446 explicit RunningState(HCodec *codec) : BaseState(code
[all...]
/foundation/resourceschedule/device_standby/plugins/standby_state/src/
H A Dsleep_state.cpp36 stateManager, std::shared_ptr<AppExecFwk::EventHandler>& handler): BaseState(curState, in SleepState()
43 ErrCode SleepState::Init(const std::shared_ptr<BaseState>& statePtr) in Init()
82 BaseState::UnInit(); in UnInit()
113 BaseState::AcquireStandbyRunningLock(); in BeginState()
181 BaseState::ReleaseStandbyRunningLock(); in SetPhaseTransitOrRepeatedTask()
H A Dnap_state.cpp29 stateManager, std::shared_ptr<AppExecFwk::EventHandler>& handler): BaseState(curState, curPhase, in NapState()
65 BaseState::AcquireStandbyRunningLock(); in BeginState()
104 BaseState::ReleaseStandbyRunningLock(); in SetPhaseTransitTask()
133 BaseState::ReleaseStandbyRunningLock(); in OnStateBlocked()
H A Dworking_state.cpp46 ErrCode WorkingState::Init(const std::shared_ptr<BaseState>& thisPtr) in Init()
H A Ddark_state.cpp30 stateManager, std::shared_ptr<AppExecFwk::EventHandler>& handler): BaseState(curState, curPhase, in DarkState()
H A Dstate_manager_adapter.cpp41 BaseState::InitRunningLock(); in Init()
85 BaseState::ReleaseStandbyRunningLock(); in UnInit()
277 BaseState::ReleaseStandbyRunningLock(); in TransitToStateInner()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/hardware/imagecodec/
H A Dimage_codec.h289 struct BaseState : State { struct in OHOS::ImagePlugin::ImageCodec
291 BaseState(ImageCodec *codec, const std::string &stateName, in BaseState() function
310 struct UninitializedState : BaseState {
311 explicit UninitializedState(ImageCodec *codec) : BaseState(codec, "Uninitialized") {} in UninitializedState()
319 struct InitializedState : BaseState {
320 explicit InitializedState(ImageCodec *codec) : BaseState(codec, "Initialized") {} in InitializedState()
334 struct StartingState : BaseState {
335 explicit StartingState(ImageCodec *codec) : BaseState(codec, "Starting") {} in StartingState()
347 struct RunningState : BaseState {
348 explicit RunningState(ImageCodec *codec) : BaseState(code
[all...]

Completed in 14 milliseconds

12