/foundation/multimedia/media_foundation/engine/scene/recorder/internal/ |
H A D | state.cpp | 28 std::tuple<ErrorCode, Action> State::Enter(Intent intent) in Enter() 32 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Enter() 40 std::tuple<ErrorCode, Action> State::Execute(Intent intent, const Plugin::Any& param) in Execute() 55 std::tuple<ErrorCode, Action> State::SetVideoSource(const Plugin::Any& param) in SetVideoSource() 58 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in SetVideoSource() 61 std::tuple<ErrorCode, Action> State::SetAudioSource(const Plugin::Any& param) in SetAudioSource() 64 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in SetAudioSource() 67 std::tuple<ErrorCode, Action> State::Configure(const Plugin::Any ¶m) in Configure() 70 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; in Configure() 73 std::tuple<ErrorCode, Action> Stat [all...] |
H A D | recording_setting_state.h | 36 std::tuple<ErrorCode, Action> SetVideoSource(const Plugin::Any& param) override 39 Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_BUTT; 43 std::tuple<ErrorCode, Action> SetAudioSource(const Plugin::Any& param) override 46 Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_BUTT; 50 std::tuple<ErrorCode, Action> Configure(const Plugin::Any& param) override 53 Action actio [all...] |
H A D | recording_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent intent) override 44 return {ret, Action::ACTION_BUTT}; 47 std::tuple<ErrorCode, Action> Start() override 49 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; 52 std::tuple<ErrorCode, Action> Resume() override 54 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; 57 std::tuple<ErrorCode, Action> Pause() override 59 return {ErrorCode::SUCCESS, Action::TRANS_TO_PAUSE}; 62 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override 65 Action actio [all...] |
H A D | state.h | 61 enum class Action { class 76 virtual std::tuple<ErrorCode, Action> Enter(Intent intent); 78 std::tuple<ErrorCode, Action> Execute(Intent intent, const Plugin::Any& param); 82 virtual std::tuple<ErrorCode, Action> SetVideoSource(const Plugin::Any& param); 83 virtual std::tuple<ErrorCode, Action> SetAudioSource(const Plugin::Any& param); 84 virtual std::tuple<ErrorCode, Action> Configure(const Plugin::Any& param); 85 virtual std::tuple<ErrorCode, Action> SetOutputFormat(const Plugin::Any& param); 86 virtual std::tuple<ErrorCode, Action> SetObs(); 87 virtual std::tuple<ErrorCode, Action> GetSurface(); 88 virtual std::tuple<ErrorCode, Action> Prepar [all...] |
H A D | pause_state.h | 34 std::tuple<ErrorCode, Action> Enter(Intent) override 38 return {ret, Action::ACTION_BUTT}; 41 std::tuple<ErrorCode, Action> Start() override 44 return {ErrorCode::SUCCESS, Action::TRANS_TO_RECORDING}; 47 std::tuple<ErrorCode, Action> Pause() override 50 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; 53 std::tuple<ErrorCode, Action> Resume() override 56 return {ErrorCode::SUCCESS, Action::TRANS_TO_RECORDING}; 59 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override 63 Action actio [all...] |
H A D | init_state.h | 35 std::tuple<ErrorCode, Action> SetVideoSource(const Plugin::Any& param) override 38 Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_BUTT; 42 std::tuple<ErrorCode, Action> SetAudioSource(const Plugin::Any& param) override 45 Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_BUTT; 49 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override 51 return {ErrorCode::ERROR_INVALID_OPERATION, Action [all...] |
H A D | state_machine.cpp | 90 if (jobs_.Push([this, intent, param]() -> Action { return ProcessIntent(intent, param); })) { in SendEventAsync() 96 Action StateMachine::ProcessIntent(Intent intent, const Plugin::Any& param) in ProcessIntent() 105 Action nextAction = Action::ACTION_BUTT; in ProcessIntent() 107 if (nextAction != Action::ACTION_BUTT) { in ProcessIntent() 117 return (rtv == ErrorCode::SUCCESS) ? nextAction : Action::ACTION_BUTT; in ProcessIntent() 133 case Action::ACTION_PENDING: in DoTask() 136 case Action::TRANS_TO_INIT: in DoTask() 137 case Action::TRANS_TO_RECORDING_SETTING: in DoTask() 138 case Action in DoTask() [all...] |
H A D | ready_state.h | 35 std::tuple<ErrorCode, Action> Start() override 38 return {ErrorCode::SUCCESS, Action::TRANS_TO_RECORDING}; 41 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override 43 return {ErrorCode::ERROR_INVALID_OPERATION, Action::TRANS_TO_ERROR};
|
/foundation/multimedia/media_foundation/engine/scene/player/internal/ |
H A D | state.cpp | 58 const char* State::GetActionName(Action action) in GetActionName() 60 static const std::map<Action, const char*> actionDesc = { in GetActionName() 61 {Action::TRANS_TO_IDLE, "TRANS_TO_IDLE"}, in GetActionName() 62 {Action::TRANS_TO_INIT, "TRANS_TO_INIT"}, in GetActionName() 63 {Action::TRANS_TO_PREPARING, "TRANS_TO_PREPARING"}, in GetActionName() 64 {Action::TRANS_TO_READY, "TRANS_TO_READY"}, in GetActionName() 65 {Action::TRANS_TO_PLAYING, "TRANS_TO_PLAYING"}, in GetActionName() 66 {Action::TRANS_TO_PAUSE, "TRANS_TO_PAUSE"}, in GetActionName() 67 {Action::TRANS_TO_STOPPED, "TRANS_TO_STOPPED"}, in GetActionName() 68 {Action in GetActionName() [all...] |
H A D | playing_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent intent) override 44 return {ret, Action::ACTION_BUTT}; 47 std::tuple<ErrorCode, Action> Play() override 49 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; 52 std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param) override 55 std::tuple<ErrorCode, Action> err {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; 59 return {ret, Action::ACTION_BUTT}; 62 std::tuple<ErrorCode, Action> Pause() override 64 return {ErrorCode::SUCCESS, Action [all...] |
H A D | pause_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent) override 39 return {ret, Action::ACTION_BUTT}; 42 std::tuple<ErrorCode, Action> Play() override 45 return {ErrorCode::SUCCESS, Action::TRANS_TO_PLAYING}; 48 std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param) override 51 std::tuple<ErrorCode, Action> err {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; 55 return {ret, Action::ACTION_BUTT}; 58 std::tuple<ErrorCode, Action> Pause() override 61 return {ErrorCode::SUCCESS, Action [all...] |
H A D | preparing_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent) override 37 Action nextAction = Action::ACTION_BUTT; 40 nextAction = Action::TRANS_TO_INIT; 45 std::tuple<ErrorCode, Action> Play() override 48 return {ErrorCode::SUCCESS, Action::ACTION_PENDING}; 51 std::tuple<ErrorCode, Action> Stop() override 53 return {ErrorCode::SUCCESS, Action::TRANS_TO_STOPPED}; 56 std::tuple<ErrorCode, Action> OnReady() override 58 return {ErrorCode::SUCCESS, Action [all...] |
H A D | ready_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent intent) override 40 return {rtv, Action::ACTION_BUTT}; 42 return {rtv, Action::TRANS_TO_INIT}; 46 std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param) override 49 std::tuple<ErrorCode, Action> err {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; 53 return {ret, Action::ACTION_BUTT}; 56 std::tuple<ErrorCode, Action> Play() override 59 return {ErrorCode::SUCCESS, Action::TRANS_TO_PLAYING}; 62 std::tuple<ErrorCode, Action> Sto [all...] |
H A D | state.h | 58 enum class Action { class 75 virtual std::tuple<ErrorCode, Action> Enter(Intent intent); 77 std::tuple<ErrorCode, Action> Execute(Intent intent, const Plugin::Any& param); 80 virtual std::tuple<ErrorCode, Action> SetSource(const Plugin::Any& param); 81 virtual std::tuple<ErrorCode, Action> Prepare(); 82 virtual std::tuple<ErrorCode, Action> Play(); 83 virtual std::tuple<ErrorCode, Action> Stop(); 84 virtual std::tuple<ErrorCode, Action> Reset(); 85 virtual std::tuple<ErrorCode, Action> Pause(); 86 virtual std::tuple<ErrorCode, Action> Resum [all...] |
H A D | state_machine.cpp | 100 if (jobs_.Push([this, intent, param]() -> Action { return ProcessIntent(intent, param); })) { in SendEventAsync() 106 Action StateMachine::ProcessIntent(Intent intent, const Plugin::Any& param) in ProcessIntent() 115 Action nextAction = Action::ACTION_BUTT; in ProcessIntent() 117 if (nextAction != Action::ACTION_BUTT) { in ProcessIntent() 127 return (rtv == ErrorCode::SUCCESS) ? nextAction : Action::ACTION_BUTT; in ProcessIntent() 143 case Action::ACTION_PENDING: in DoTask() 146 case Action::TRANS_TO_IDLE: in DoTask() 147 case Action::TRANS_TO_INIT: in DoTask() 148 case Action in DoTask() [all...] |
H A D | init_state.h | 35 std::tuple<ErrorCode, Action> SetSource(const Plugin::Any& param) override 40 return {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; 43 Action action = ret == ErrorCode::SUCCESS ? Action::TRANS_TO_INIT : Action::ACTION_BUTT; 47 std::tuple<ErrorCode, Action> Prepare() override 49 return {ErrorCode::SUCCESS, Action::TRANS_TO_PREPARING}; 52 std::tuple<ErrorCode, Action> Stop() override 54 return {ErrorCode::SUCCESS, Action::TRANS_TO_STOPPED};
|
H A D | eos_state.h | 29 std::tuple<ErrorCode, Action> Play() override 34 return {ErrorCode::SUCCESS, Action::TRANS_TO_PLAYING}; 37 return {ret, Action::ACTION_BUTT}; 41 std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param) override 44 return {ErrorCode::ERROR_INVALID_OPERATION, Action::ACTION_BUTT}; 47 std::tuple<ErrorCode, Action> Enter(Intent intent) override 51 return {ret, Action::ACTION_BUTT}; 54 std::tuple<ErrorCode, Action> Stop() override 57 return {ErrorCode::SUCCESS, Action::TRANS_TO_STOPPED};
|
H A D | idle_state.h | 28 std::tuple<ErrorCode, Action> SetSource(const Plugin::Any& param) override 33 return {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; 36 Action action = ret == ErrorCode::SUCCESS ? Action::TRANS_TO_INIT : Action::ACTION_BUTT; 40 std::tuple<ErrorCode, Action> Enter(Intent) override 42 return {executor_.DoReset(), Action::ACTION_BUTT};
|
/foundation/filemanagement/dfs_service/frameworks/native/cloud_file_kit_inner/src/data_sync/ |
H A D | sync_state_manager.cpp | 25 Action SyncStateManager::UpdateSyncState(SyncState newState) in UpdateSyncState() 40 nextAction_ = Action::STOP; in CheckAndSetPending() 45 if (nextAction_ == Action::CHECK) { in CheckAndSetPending() 49 nextAction_ = Action::FORCE_START; in CheckAndSetPending() 51 nextAction_ = Action::CHECK; in CheckAndSetPending() 53 nextAction_ = Action::START; in CheckAndSetPending() 67 nextAction_ = Action::STOP; in SetCleaningFlag() 70 Action SyncStateManager::ClearCleaningFlag() in ClearCleaningFlag() 86 nextAction_ = Action::STOP; in SetDisableCloudFlag() 89 Action SyncStateManage [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/object/ |
H A D | object_asset_machine.cpp | 70 { STATUS_TRANSFERRING, nullptr, (Action)DoTransfer }, // remote_changed 71 { STATUS_NO_CHANGE, nullptr, (Action)Recover }, // transfer_finished 73 { STATUS_NO_CHANGE, nullptr, (Action)Recover }, // upload_finished 75 { STATUS_NO_CHANGE, nullptr, (Action)Recover }, // upload_finished 79 { STATUS_WAIT_TRANSFER, nullptr, (Action)SaveNewAsset }, // remote_changed 81 { STATUS_WAIT_UPLOAD, nullptr, (Action)ChangeAssetToNormal }, // upload 82 { STATUS_NO_CHANGE, nullptr, (Action)Recover }, // upload_finished 83 { STATUS_WAIT_DOWNLOAD, nullptr, (Action)ChangeAssetToNormal }, // download 84 { STATUS_NO_CHANGE, nullptr, (Action)Recover }, // upload_finished 88 { STATUS_WAIT_TRANSFER, nullptr, (Action)SaveNewAsse [all...] |
/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloud_file_kit_inner/ |
H A D | sync_state_manager.h | 38 enum class Action : int32_t { class 47 Action UpdateSyncState(SyncState newState); 50 Action ClearCleaningFlag(); 55 Action ClearDisableCloudFlag(); 63 Action nextAction_{Action::STOP};
|
/foundation/multimodalinput/input/frameworks/napi/mouse_event/src/ |
H A D | js_mouse_event.cpp | 28 enum class Action : int32_t { class 87 DECLARE_NAPI_STATIC_PROPERTY("CANCEL", GetNapiInt32(env, static_cast<int32_t>(Action::CANCEL))), in HandleActionPropertyArr() 88 DECLARE_NAPI_STATIC_PROPERTY("MOVE", GetNapiInt32(env, static_cast<int32_t>(Action::MOVE))), in HandleActionPropertyArr() 89 DECLARE_NAPI_STATIC_PROPERTY("BUTTON_DOWN", GetNapiInt32(env, static_cast<int32_t>(Action::BUTTON_DOWN))), in HandleActionPropertyArr() 90 DECLARE_NAPI_STATIC_PROPERTY("BUTTON_UP", GetNapiInt32(env, static_cast<int32_t>(Action::BUTTON_UP))), in HandleActionPropertyArr() 91 DECLARE_NAPI_STATIC_PROPERTY("AXIS_BEGIN", GetNapiInt32(env, static_cast<int32_t>(Action::AXIS_BEGIN))), in HandleActionPropertyArr() 92 DECLARE_NAPI_STATIC_PROPERTY("AXIS_UPDATE", GetNapiInt32(env, static_cast<int32_t>(Action::AXIS_UPDATE))), in HandleActionPropertyArr() 93 DECLARE_NAPI_STATIC_PROPERTY("AXIS_END", GetNapiInt32(env, static_cast<int32_t>(Action::AXIS_END))), in HandleActionPropertyArr() 94 DECLARE_NAPI_STATIC_PROPERTY("ACTION_DOWN", GetNapiInt32(env, static_cast<int32_t>(Action::ACTION_DOWN))), in HandleActionPropertyArr() 95 DECLARE_NAPI_STATIC_PROPERTY("ACTION_UP", GetNapiInt32(env, static_cast<int32_t>(Action in HandleActionPropertyArr() [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/wrapper/ |
H A D | netsys_event_message.h | 30 enum class Action { class in OHOS::nmd::NetsysEventMessage 71 inline void SetAction(Action action) in SetAction() 76 inline const Action &GetAction() const in GetAction() 108 Action action_ = Action::UNKNOWN;
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/ |
H A D | wrapper_distributor.cpp | 27 return message->GetAction() != NetsysEventMessage::Action::UNKNOWN && in IsValidMessage() 96 NetsysEventMessage::Action action = message->GetAction(); in HandleSubSysNet() 100 case NetsysEventMessage::Action::ADD: in HandleSubSysNet() 103 case NetsysEventMessage::Action::REMOVE: in HandleSubSysNet() 106 case NetsysEventMessage::Action::CHANGE: in HandleSubSysNet() 109 case NetsysEventMessage::Action::LINKUP: in HandleSubSysNet() 112 case NetsysEventMessage::Action::LINKDOWN: in HandleSubSysNet() 115 case NetsysEventMessage::Action::ADDRESSUPDATE: in HandleSubSysNet() 116 case NetsysEventMessage::Action::ADDRESSREMOVED: in HandleSubSysNet() 119 case NetsysEventMessage::Action in HandleSubSysNet() [all...] |
/foundation/multimodalinput/input/frameworks/napi/touch_event/src/ |
H A D | js_touch_event.cpp | 50 DECLARE_NAPI_STATIC_PROPERTY("CANCEL", GetNapiInt32(env, static_cast<int32_t>(Action::CANCEL))), in Export() 51 DECLARE_NAPI_STATIC_PROPERTY("DOWN", GetNapiInt32(env, static_cast<int32_t>(Action::DOWN))), in Export() 52 DECLARE_NAPI_STATIC_PROPERTY("MOVE", GetNapiInt32(env, static_cast<int32_t>(Action::MOVE))), in Export() 53 DECLARE_NAPI_STATIC_PROPERTY("UP", GetNapiInt32(env, static_cast<int32_t>(Action::UP))), in Export() 54 DECLARE_NAPI_STATIC_PROPERTY("PULL_DOWN", GetNapiInt32(env, static_cast<int32_t>(Action::PULL_DOWN))), in Export() 55 DECLARE_NAPI_STATIC_PROPERTY("PULL_MOVE", GetNapiInt32(env, static_cast<int32_t>(Action::PULL_MOVE))), in Export() 56 DECLARE_NAPI_STATIC_PROPERTY("PULL_UP", GetNapiInt32(env, static_cast<int32_t>(Action::PULL_UP))), in Export() 59 CHKRP(napi_define_class(env, "Action", NAPI_AUTO_LENGTH, EnumClassConstructor, nullptr, in Export() 61 CHKRP(napi_set_named_property(env, exports, "Action", action), SET_NAMED_PROPERTY); in Export()
|