| /foundation/multimedia/media_foundation/engine/scene/recorder/internal/ |
| D | recording_setting_state.h | 36 std::tuple<ErrorCode, Action> SetVideoSource(const Plugin::Any& param) override in SetVideoSource() 39 …Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_… in SetVideoSource() local 40 return {ret, action}; in SetVideoSource() 43 std::tuple<ErrorCode, Action> SetAudioSource(const Plugin::Any& param) override in SetAudioSource() 46 …Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_… in SetAudioSource() local 47 return {ret, action}; in SetAudioSource() 50 std::tuple<ErrorCode, Action> Configure(const Plugin::Any& param) override in Configure() 53 …Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_… in Configure() local 54 return {ret, action}; in Configure() 57 std::tuple<ErrorCode, Action> SetOutputFormat(const Plugin::Any& param) override in SetOutputFormat() [all …]
|
| 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> State::SetOutputFormat(const Plugin::Any& param) in SetOutputFormat() [all …]
|
| D | recording_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent intent) override in Enter() 44 return {ret, Action::ACTION_BUTT}; in Enter() 47 std::tuple<ErrorCode, Action> Start() override in Start() 49 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Start() 52 std::tuple<ErrorCode, Action> Resume() override in Resume() 54 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Resume() 57 std::tuple<ErrorCode, Action> Pause() override in Pause() 59 return {ErrorCode::SUCCESS, Action::TRANS_TO_PAUSE}; in Pause() 62 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override in Stop() 65 Action action = (ret == ErrorCode::SUCCESS) ? Action::ACTION_BUTT : Action::TRANS_TO_ERROR; in Stop() local [all …]
|
| 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() 131 auto action = job(); in DoTask() local 132 switch (action) { in DoTask() 133 case Action::ACTION_PENDING: in DoTask() 136 case Action::TRANS_TO_INIT: in DoTask() 137 case Action::TRANS_TO_RECORDING_SETTING: in DoTask() [all …]
|
| D | init_state.h | 35 std::tuple<ErrorCode, Action> SetVideoSource(const Plugin::Any& param) override in SetVideoSource() 38 …Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_… in SetVideoSource() local 39 return {ret, action}; in SetVideoSource() 42 std::tuple<ErrorCode, Action> SetAudioSource(const Plugin::Any& param) override in SetAudioSource() 45 …Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_… in SetAudioSource() local 46 return {ret, action}; in SetAudioSource() 49 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override in Stop() 51 return {ErrorCode::ERROR_INVALID_OPERATION, Action::TRANS_TO_ERROR}; in Stop() 54 std::tuple<ErrorCode, Action> OnComplete() override in OnComplete() 57 return {ret, Action::ACTION_BUTT}; in OnComplete()
|
| D | state.h | 61 enum class Action { enum 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> Prepare(); [all …]
|
| D | pause_state.h | 34 std::tuple<ErrorCode, Action> Enter(Intent) override in Enter() 38 return {ret, Action::ACTION_BUTT}; in Enter() 41 std::tuple<ErrorCode, Action> Start() override in Start() 44 return {ErrorCode::SUCCESS, Action::TRANS_TO_RECORDING}; in Start() 47 std::tuple<ErrorCode, Action> Pause() override in Pause() 50 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Pause() 53 std::tuple<ErrorCode, Action> Resume() override in Resume() 56 return {ErrorCode::SUCCESS, Action::TRANS_TO_RECORDING}; in Resume() 59 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override in Stop() 63 … Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_INIT : Action::TRANS_TO_ERROR; in Stop() local [all …]
|
| /foundation/ability/ability_runtime/frameworks/js/napi/wantConstant/ |
| D | want_constant.cpp | 32 napi_value action = nullptr; in WantConstantInit() local 36 napi_create_object(env, &action); in WantConstantInit() 41 SetNamedProperty(env, action, "ohos.want.action.home", "ACTION_HOME"); in WantConstantInit() 42 SetNamedProperty(env, action, "ohos.want.action.dial", "ACTION_DIAL"); in WantConstantInit() 43 SetNamedProperty(env, action, "ohos.want.action.search", "ACTION_SEARCH"); in WantConstantInit() 44 SetNamedProperty(env, action, "ohos.settings.wireless", "ACTION_WIRELESS_SETTINGS"); in WantConstantInit() 45 …SetNamedProperty(env, action, "ohos.settings.manage.applications", "ACTION_MANAGE_APPLICATIONS_SET… in WantConstantInit() 46 …SetNamedProperty(env, action, "ohos.settings.application.details", "ACTION_APPLICATION_DETAILS_SET… in WantConstantInit() 47 SetNamedProperty(env, action, "ohos.want.action.setAlarm", "ACTION_SET_ALARM"); in WantConstantInit() 48 SetNamedProperty(env, action, "ohos.want.action.showAlarms", "ACTION_SHOW_ALARMS"); in WantConstantInit() [all …]
|
| /foundation/multimedia/media_foundation/engine/scene/player/internal/ |
| D | state.cpp | 58 const char* State::GetActionName(Action action) in GetActionName() argument 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::TRANS_TO_EOS, "TRANS_TO_EOS"}, in GetActionName() [all …]
|
| 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() 141 auto action = job(); in DoTask() local 142 switch (action) { in DoTask() 143 case Action::ACTION_PENDING: in DoTask() 146 case Action::TRANS_TO_IDLE: in DoTask() 147 case Action::TRANS_TO_INIT: in DoTask() [all …]
|
| D | state.h | 58 enum class Action { enum 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> Resume(); [all …]
|
| D | playing_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent intent) override in Enter() 44 return {ret, Action::ACTION_BUTT}; in Enter() 47 std::tuple<ErrorCode, Action> Play() override in Play() 49 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Play() 52 std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param) override in Seek() 55 … std::tuple<ErrorCode, Action> err {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; in Seek() 59 return {ret, Action::ACTION_BUTT}; in Seek() 62 std::tuple<ErrorCode, Action> Pause() override in Pause() 64 return {ErrorCode::SUCCESS, Action::TRANS_TO_PAUSE}; in Pause() 67 std::tuple<ErrorCode, Action> Stop() override in Stop() [all …]
|
| D | pause_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent) override in Enter() 39 return {ret, Action::ACTION_BUTT}; in Enter() 42 std::tuple<ErrorCode, Action> Play() override in Play() 45 return {ErrorCode::SUCCESS, Action::TRANS_TO_PLAYING}; in Play() 48 std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param) override in Seek() 51 … std::tuple<ErrorCode, Action> err {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; in Seek() 55 return {ret, Action::ACTION_BUTT}; in Seek() 58 std::tuple<ErrorCode, Action> Pause() override in Pause() 61 return {ErrorCode::SUCCESS, Action::ACTION_BUTT}; in Pause() 64 std::tuple<ErrorCode, Action> Resume() override in Resume() [all …]
|
| D | init_state.h | 35 std::tuple<ErrorCode, Action> SetSource(const Plugin::Any& param) override in SetSource() 40 return {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; in SetSource() 43 Action action = ret == ErrorCode::SUCCESS ? Action::TRANS_TO_INIT : Action::ACTION_BUTT; in SetSource() local 44 return {ret, action}; in SetSource() 47 std::tuple<ErrorCode, Action> Prepare() override in Prepare() 49 return {ErrorCode::SUCCESS, Action::TRANS_TO_PREPARING}; in Prepare() 52 std::tuple<ErrorCode, Action> Stop() override in Stop() 54 return {ErrorCode::SUCCESS, Action::TRANS_TO_STOPPED}; in Stop()
|
| D | ready_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent intent) override in Enter() 40 return {rtv, Action::ACTION_BUTT}; in Enter() 42 return {rtv, Action::TRANS_TO_INIT}; in Enter() 46 std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param) override in Seek() 49 … std::tuple<ErrorCode, Action> err {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; in Seek() 53 return {ret, Action::ACTION_BUTT}; in Seek() 56 std::tuple<ErrorCode, Action> Play() override in Play() 59 return {ErrorCode::SUCCESS, Action::TRANS_TO_PLAYING}; in Play() 62 std::tuple<ErrorCode, Action> Stop() override in Stop() 65 return {ErrorCode::SUCCESS, Action::TRANS_TO_STOPPED}; in Stop()
|
| D | preparing_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent) override in Enter() 37 Action nextAction = Action::ACTION_BUTT; in Enter() 40 nextAction = Action::TRANS_TO_INIT; in Enter() 45 std::tuple<ErrorCode, Action> Play() override in Play() 48 return {ErrorCode::SUCCESS, Action::ACTION_PENDING}; in Play() 51 std::tuple<ErrorCode, Action> Stop() override in Stop() 53 return {ErrorCode::SUCCESS, Action::TRANS_TO_STOPPED}; in Stop() 56 std::tuple<ErrorCode, Action> OnReady() override in OnReady() 58 return {ErrorCode::SUCCESS, Action::TRANS_TO_READY}; in OnReady()
|
| /foundation/ai/intelligent_voice_framework/utils/ |
| D | state_manager.cpp | 57 StateActions* action = new (std::nothrow) StateActions(); in ForState() local 58 if (action == nullptr) { in ForState() 63 states_[s] = action; in ForState() 77 StateActions& action = ForState(i); in FromState() local 78 AddAction(&action); in FromState() 87 StateActions* action = currState_->second; in ToState() local 88 if (action->timerId != INVALID_ID) { in ToState() 89 KillTimer(action->timerId); in ToState() 98 action = nextIt->second; in ToState() 99 if (action->cfg.delayUs != 0) { in ToState() [all …]
|
| /foundation/multimedia/ringtone_library/test/unittest/ringtone_data_extension_test/src/ |
| D | ringtone_subscriber_test.cpp | 48 string action = EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF; variable 50 want.SetAction(action); 53 EXPECT_EQ(want.GetAction(), action); 60 string action = EventFwk::CommonEventSupport::COMMON_EVENT_POWER_CONNECTED; variable 62 want.SetAction(action); 65 EXPECT_EQ(want.GetAction(), action); 72 string action = EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON; variable 74 want.SetAction(action); 77 EXPECT_EQ(want.GetAction(), action); 84 string action = EventFwk::CommonEventSupport::COMMON_EVENT_TIME_CHANGED; variable [all …]
|
| /foundation/distributeddatamgr/preferences/frameworks/native/include/ |
| D | concurrent_map.h | 130 …bool ContainIf(const key_type &key, const std::function<bool(const mapped_type &value)> &action) c… in ContainIf() argument 137 if (action) { in ContainIf() 138 return action(it->second); in ContainIf() 171 const std::function<bool(const key_type &key, mapped_type &value)> &action) noexcept in EraseIf() argument 173 if (action == nullptr) { in EraseIf() 178 if (it == entries_.end() || !action((*it).first, (*it).second)) { in EraseIf() 202 // The action`s return true means meeting the erase condition 203 // The action`s return false means not meeting the erase condition 204 …size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noex… in EraseIf() argument 206 if (action == nullptr) { in EraseIf() [all …]
|
| /foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/object/ |
| 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)SaveNewAsset }, // remote_changed [all …]
|
| /foundation/distributeddatamgr/kv_store/frameworks/common/ |
| D | concurrent_map.h | 114 …bool ContainIf(const key_type &key, const std::function<bool(const mapped_type &value)> &action) c… in ContainIf() argument 121 if (action) { in ContainIf() 122 return action(it->second); in ContainIf() 172 // The action`s return true means meeting the erase condition 173 // The action`s return false means not meeting the erase condition 174 …size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noex… in EraseIf() argument 176 if (action == nullptr) { in EraseIf() 182 [&action](value_type &value) -> bool { return action(value.first, value.second); }); in EraseIf() 186 if (action((*it).first, (*it).second)) { in EraseIf() 197 void ForEach(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEach() argument [all …]
|
| /foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/common_event/src/ |
| D | event_controller.cpp | 206 std::string action = want.GetAction(); in OnReceiveEvent() local 207 RESSCHED_LOGD("Recieved common event:%{public}s", action.c_str()); in OnReceiveEvent() 210 if (HandlePkgCommonEvent(action, want, payload)) { in OnReceiveEvent() 213 if (action == CommonEventSupport::COMMON_EVENT_SCREEN_ON) { in OnReceiveEvent() 217 if (action == CommonEventSupport::COMMON_EVENT_SCREEN_OFF) { in OnReceiveEvent() 221 if (action == CommonEventSupport::COMMON_EVENT_CONNECTIVITY_CHANGE) { in OnReceiveEvent() 226 if (action == CommonEventSupport::COMMON_EVENT_USER_SWITCHED) { in OnReceiveEvent() 231 if (action == CommonEventSupport::COMMON_EVENT_USER_REMOVED) { in OnReceiveEvent() 236 if (action == "common.event.UNLOCK_SCREEN") { in OnReceiveEvent() 240 if (action == "common.event.LOCK_SCREEN") { in OnReceiveEvent() [all …]
|
| /foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
| D | concurrent_adapter.cpp | 19 int ConcurrentAdapter::ScheduleTask(const TaskAction &action, Dependence inDeps, Dependence outDeps) in ScheduleTask() argument 23 ffrt::submit(action); in ScheduleTask() 25 ffrt::submit(action, {}, { outDeps }); in ScheduleTask() 27 ffrt::submit(action, { inDeps }, {}); in ScheduleTask() 29 ffrt::submit(action, { inDeps }, { outDeps }); in ScheduleTask() 33 return RuntimeContext::GetInstance()->ScheduleTask(action); in ScheduleTask() 37 TaskHandle ConcurrentAdapter::ScheduleTaskH(const TaskAction &action, Dependence inDeps, Dependence… in ScheduleTaskH() argument 41 return ffrt::submit_h(action); in ScheduleTaskH() 43 return ffrt::submit_h(action, {}, { outDeps }); in ScheduleTaskH() 45 return ffrt::submit_h(action, { inDeps }, {}); in ScheduleTaskH() [all …]
|
| /foundation/distributeddatamgr/relational_store/rdbmock/frameworks/native/rdb/ |
| D | concurrent_map.h | 159 // The action`s return true means meeting the erase condition 160 // The action`s return false means not meeting the erase condition 161 …size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noex… in EraseIf() argument 163 if (action == nullptr) { in EraseIf() 169 [&action](value_type &value) -> bool { return action(value.first, value.second); }); in EraseIf() 173 if (action((*it).first, (*it).second)) { in EraseIf() 190 void ForEach(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEach() argument 192 if (action == nullptr) { in ForEach() 197 if (action(key, value)) { in ForEach() 203 void ForEachCopies(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEachCopies() argument [all …]
|
| /foundation/distributeddatamgr/pasteboard/framework/framework/include/common/ |
| D | concurrent_map.h | 134 // The action`s return true mains meet the erase condition 135 // The action`s return false mains not meet the erase condition 136 …size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noex… in EraseIf() argument 138 if (action == nullptr) { in EraseIf() 144 … entries_, [&action](value_type &value) -> bool { return action(value.first, value.second); }); in EraseIf() 148 if (action((*it).first, (*it).second)) { in EraseIf() 159 void ForEach(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEach() argument 161 if (action == nullptr) { in ForEach() 166 if (action(key, value)) { in ForEach() 172 void ForEachCopies(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEachCopies() argument [all …]
|