Home
last modified time | relevance | path

Searched refs:AVControlCommand (Results 1 - 25 of 62) sorted by relevance

123

/foundation/multimedia/av_session/frameworks/js/napi/session/include/
H A Dnapi_control_command.h27 using GetterType = std::function<napi_status(napi_env, napi_value, AVControlCommand&)>;
28 using SetterType = std::function<napi_status(napi_env, AVControlCommand&, napi_value&)>;
34 static napi_status GetValue(napi_env env, napi_value in, AVControlCommand& out);
35 static napi_status SetValue(napi_env env, AVControlCommand& in, napi_value& out);
37 static napi_status GetNoneParam(napi_env env, napi_value in, AVControlCommand& out);
38 static napi_status GetSpeed(napi_env env, napi_value in, AVControlCommand& out);
39 static napi_status GetForwardTime(napi_env env, napi_value in, AVControlCommand& out);
40 static napi_status GetRewindTime(napi_env env, napi_value in, AVControlCommand& out);
41 static napi_status GetSeekTime(napi_env env, napi_value in, AVControlCommand& out);
42 static napi_status GetLoopMode(napi_env env, napi_value in, AVControlCommand
[all...]
/foundation/multimedia/av_session/services/session/server/
H A Davsession_item.h159 void ExecuteControllerCommand(const AVControlCommand& cmd);
270 void HandleOnAVCallAnswer(const AVControlCommand& cmd);
271 void HandleOnAVCallHangUp(const AVControlCommand& cmd);
272 void HandleOnAVCallToggleCallMute(const AVControlCommand& cmd);
273 void HandleOnPlay(const AVControlCommand& cmd);
274 void HandleOnPause(const AVControlCommand& cmd);
275 void HandleOnPlayOrPause(const AVControlCommand& cmd);
276 void HandleOnStop(const AVControlCommand& cmd);
277 void HandleOnPlayNext(const AVControlCommand& cmd);
278 void HandleOnPlayPrevious(const AVControlCommand
[all...]
H A Davsession_item.cpp719 CHECK_AND_RETURN_RET_LOG(cmd > AVControlCommand::SESSION_CMD_INVALID, AVSESSION_ERROR, "invalid cmd"); in AddSupportCommand()
720 CHECK_AND_RETURN_RET_LOG(cmd < AVControlCommand::SESSION_CMD_MAX, AVSESSION_ERROR, "invalid cmd"); in AddSupportCommand()
722 if (cmd == AVControlCommand::SESSION_CMD_MEDIA_KEY_SUPPORT) { in AddSupportCommand()
763 CHECK_AND_RETURN_RET_LOG(cmd > AVControlCommand::SESSION_CMD_INVALID, AVSESSION_ERROR, "invalid cmd");
764 CHECK_AND_RETURN_RET_LOG(cmd < AVControlCommand::SESSION_CMD_MAX, AVSESSION_ERROR, "invalid cmd");
766 if (cmd == AVControlCommand::SESSION_CMD_MEDIA_KEY_SUPPORT) {
895 iter = std::find(supportedCmd_.begin(), supportedCmd_.end(), AVControlCommand::SESSION_CMD_SET_LOOP_MODE);
897 AddSessionCommandToCast(AVControlCommand::SESSION_CMD_SET_LOOP_MODE);
903 if (cmd == AVControlCommand::SESSION_CMD_SET_LOOP_MODE) {
911 if (cmd != AVControlCommand
[all...]
/foundation/multimedia/av_session/frameworks/common/src/
H A Davcontrol_command.cpp22 AVControlCommand::AVControlCommand() in AVControlCommand() function in OHOS::AVSession::AVControlCommand
27 AVControlCommand::~AVControlCommand() in ~AVControlCommand()
31 AVControlCommand *AVControlCommand::Unmarshalling(Parcel& data) in Unmarshalling()
33 auto result = new (std::nothrow) AVControlCommand(); in Unmarshalling()
69 bool AVControlCommand::Marshalling(Parcel& parcel) const in Marshalling()
109 bool AVControlCommand::IsValid() const in IsValid()
114 int32_t AVControlCommand
[all...]
/foundation/multimedia/av_session/frameworks/js/napi/session/src/
H A Dnapi_control_command.cpp25 { "play", { GetNoneParam, SetNoneParam, AVControlCommand::SESSION_CMD_PLAY } },
26 { "pause", { GetNoneParam, SetNoneParam, AVControlCommand::SESSION_CMD_PAUSE } },
27 { "stop", { GetNoneParam, SetNoneParam, AVControlCommand::SESSION_CMD_STOP } },
28 { "playNext", { GetNoneParam, SetNoneParam, AVControlCommand::SESSION_CMD_PLAY_NEXT } },
29 { "playPrevious", { GetNoneParam, SetNoneParam, AVControlCommand::SESSION_CMD_PLAY_PREVIOUS } },
30 { "fastForward", { GetForwardTime, SetForwardTime, AVControlCommand::SESSION_CMD_FAST_FORWARD } },
31 { "rewind", { GetRewindTime, SetRewindTime, AVControlCommand::SESSION_CMD_REWIND } },
32 { "seek", { GetSeekTime, SetSeekTime, AVControlCommand::SESSION_CMD_SEEK } },
33 { "setSpeed", { GetSpeed, SetSpeed, AVControlCommand::SESSION_CMD_SET_SPEED } },
34 { "setLoopMode", { GetLoopMode, SetLoopMode, AVControlCommand
[all...]
H A Dnapi_avsession.cpp1251 int32_t ret = napiSession->session_->AddSupportCommand(AVControlCommand::SESSION_CMD_PLAY); in OnPlay()
1260 int32_t ret = napiSession->session_->AddSupportCommand(AVControlCommand::SESSION_CMD_PAUSE); in OnPause()
1269 int32_t ret = napiSession->session_->AddSupportCommand(AVControlCommand::SESSION_CMD_STOP); in OnStop()
1278 int32_t ret = napiSession->session_->AddSupportCommand(AVControlCommand::SESSION_CMD_PLAY_NEXT); in OnPlayNext()
1287 int32_t ret = napiSession->session_->AddSupportCommand(AVControlCommand::SESSION_CMD_PLAY_PREVIOUS); in OnPlayPrevious()
1296 int32_t ret = napiSession->session_->AddSupportCommand(AVControlCommand::SESSION_CMD_FAST_FORWARD); in OnFastForward()
1305 int32_t ret = napiSession->session_->AddSupportCommand(AVControlCommand::SESSION_CMD_REWIND); in OnRewind()
1314 int32_t ret = napiSession->session_->AddSupportCommand(AVControlCommand::SESSION_CMD_SEEK); in OnSeek()
1323 int32_t ret = napiSession->session_->AddSupportCommand(AVControlCommand::SESSION_CMD_SET_SPEED); in OnSetSpeed()
1332 int32_t ret = napiSession->session_->AddSupportCommand(AVControlCommand in OnSetLoopMode()
[all...]
/foundation/multimedia/av_session/frameworks/native/session/test/unittest/
H A Davsession_test.cpp718 for (int32_t cmd = AVControlCommand::SESSION_CMD_PLAY; cmd < AVControlCommand::SESSION_CMD_MAX; cmd++) { in HWTEST_F()
719 if (cmd == AVControlCommand::SESSION_CMD_MEDIA_KEY_SUPPORT) { in HWTEST_F()
722 AVControlCommand controlCommand; in HWTEST_F()
726 case AVControlCommand::SESSION_CMD_SEEK : controlCommand.SetSeekTime(100000); in HWTEST_F()
728 case AVControlCommand::SESSION_CMD_SET_SPEED : controlCommand.SetSpeed(1.5); in HWTEST_F()
730 case AVControlCommand::SESSION_CMD_SET_LOOP_MODE : controlCommand.SetLoopMode(2); in HWTEST_F()
732 case AVControlCommand::SESSION_CMD_TOGGLE_FAVORITE : controlCommand.SetAssetId("callback"); in HWTEST_F()
734 case AVControlCommand::SESSION_CMD_FAST_FORWARD : controlCommand.SetForwardTime(10); in HWTEST_F()
736 case AVControlCommand in HWTEST_F()
[all...]
H A Davsession_controller_test.cpp224 int32_t SendControlCommand(const AVControlCommand& cmd) override;
284 int32_t AVSessionControllerStubTest::SendControlCommand(const AVControlCommand& cmd) in SendControlCommand()
561 EXPECT_EQ(avsession_->AddSupportCommand(AVControlCommand::SESSION_CMD_PLAY), AVSESSION_SUCCESS); in HWTEST_F()
562 EXPECT_EQ(avsession_->AddSupportCommand(AVControlCommand::SESSION_CMD_PAUSE), AVSESSION_SUCCESS); in HWTEST_F()
564 std::vector<int32_t>::iterator it = std::find(cmds.begin(), cmds.end(), AVControlCommand::SESSION_CMD_PLAY); in HWTEST_F()
566 it = std::find(cmds.begin(), cmds.end(), AVControlCommand::SESSION_CMD_PAUSE); in HWTEST_F()
568 it = std::find(cmds.begin(), cmds.end(), AVControlCommand::SESSION_CMD_STOP); in HWTEST_F()
587 * @tc.desc: send command, check if AVControlCommand is invalid
593 AVControlCommand command; in HWTEST_F()
594 EXPECT_EQ(command.SetCommand(AVControlCommand in HWTEST_F()
[all...]
H A Davsession_manager_test.cpp684 AVControlCommand command; in HWTEST_F()
699 AVControlCommand command; in HWTEST_F()
700 command.SetCommand(AVControlCommand::SESSION_CMD_PLAY); in HWTEST_F()
725 EXPECT_EQ(session->AddSupportCommand(AVControlCommand::SESSION_CMD_PLAY), AVSESSION_SUCCESS); in HWTEST_F()
733 AVControlCommand command; in HWTEST_F()
734 EXPECT_EQ(command.SetCommand(AVControlCommand::SESSION_CMD_PLAY), AVSESSION_SUCCESS); in HWTEST_F()
H A Davsession_permission_test.cpp271 AVControlCommand command; in HWTEST_F()
272 command.SetCommand(AVControlCommand::SESSION_CMD_PLAY); in HWTEST_F()
434 AVControlCommand command; in HWTEST_F()
435 command.SetCommand(AVControlCommand::SESSION_CMD_PLAY); in HWTEST_F()
/foundation/multimedia/av_session/interfaces/inner_api/native/session/include/
H A Davcontrol_command.h27 class AVControlCommand : public Parcelable { class
50 AVControlCommand();
51 ~AVControlCommand() override;
53 static AVControlCommand* Unmarshalling(Parcel& data);
H A Davsession_controller.h110 * @param cmd Commands and parameters related to the session {@link AVControlCommand}.
114 virtual int32_t SendControlCommand(const AVControlCommand& cmd) = 0;
/foundation/multimedia/av_session/frameworks/native/session/test/benchmarktest/avsession_controller_test/
H A Davsession_controller_test.cpp265 avsession_->AddSupportCommand(AVControlCommand::SESSION_CMD_PLAY); in BENCHMARK_F()
266 avsession_->AddSupportCommand(AVControlCommand::SESSION_CMD_PAUSE); in BENCHMARK_F()
267 avsession_->AddSupportCommand(AVControlCommand::SESSION_CMD_STOP); in BENCHMARK_F()
268 avsession_->AddSupportCommand(AVControlCommand::SESSION_CMD_PLAY_NEXT); in BENCHMARK_F()
269 avsession_->AddSupportCommand(AVControlCommand::SESSION_CMD_PLAY_PREVIOUS); in BENCHMARK_F()
270 avsession_->AddSupportCommand(AVControlCommand::SESSION_CMD_FAST_FORWARD); in BENCHMARK_F()
271 avsession_->AddSupportCommand(AVControlCommand::SESSION_CMD_REWIND); in BENCHMARK_F()
272 avsession_->AddSupportCommand(AVControlCommand::SESSION_CMD_SEEK); in BENCHMARK_F()
273 avsession_->AddSupportCommand(AVControlCommand::SESSION_CMD_SET_SPEED); in BENCHMARK_F()
274 avsession_->AddSupportCommand(AVControlCommand in BENCHMARK_F()
[all...]
/foundation/multimedia/av_session/frameworks/native/ohavsession/src/
H A DOHAVSession.cpp203 int32_t ret = avSession_->AddSupportCommand(static_cast<int32_t>(AVControlCommand::SESSION_CMD_FAST_FORWARD)); in RegisterForwardCallback()
217 int32_t ret = avSession_->DeleteSupportCommand(static_cast<int32_t>(AVControlCommand::SESSION_CMD_FAST_FORWARD)); in UnregisterForwardCallback()
229 int32_t ret = avSession_->AddSupportCommand(static_cast<int32_t>(AVControlCommand::SESSION_CMD_REWIND)); in RegisterRewindCallback()
243 int32_t ret = avSession_->DeleteSupportCommand(static_cast<int32_t>(AVControlCommand::SESSION_CMD_REWIND)); in UnregisterRewindCallback()
255 int32_t ret = avSession_->AddSupportCommand(static_cast<int32_t>(AVControlCommand::SESSION_CMD_SEEK)); in RegisterSeekCallback()
269 int32_t ret = avSession_->DeleteSupportCommand(static_cast<int32_t>(AVControlCommand::SESSION_CMD_SEEK)); in UnregisterSeekCallback()
281 int32_t ret = avSession_->AddSupportCommand(static_cast<int32_t>(AVControlCommand::SESSION_CMD_SET_LOOP_MODE)); in RegisterSetLoopModeCallback()
295 int32_t ret = avSession_->DeleteSupportCommand(static_cast<int32_t>(AVControlCommand::SESSION_CMD_SET_LOOP_MODE)); in UnregisterSetLoopModeCallback()
308 int32_t ret = avSession_->AddSupportCommand(static_cast<int32_t>(AVControlCommand::SESSION_CMD_TOGGLE_FAVORITE)); in RegisterToggleFavoriteCallback()
322 int32_t ret = avSession_->DeleteSupportCommand(static_cast<int32_t>(AVControlCommand in UnregisterToggleFavoriteCallback()
[all...]
/foundation/multimedia/av_session/services/session/server/remote/
H A Dremote_session_syncer.h42 virtual int32_t PutControlCommand(const AVControlCommand& command) = 0;
44 virtual int32_t GetControlCommand(AVControlCommand& command) = 0;
H A Dremote_session_syncer_impl.h50 int32_t PutControlCommand(const AVControlCommand& command) override;
52 int32_t GetControlCommand(AVControlCommand& command) override;
H A Dremote_session_sink_proxy.h34 int32_t SetControlCommand(const AVControlCommand& command) override;
H A Dremote_session_sink_impl.h39 int32_t SetControlCommand(const AVControlCommand& command) override;
H A Dremote_session_sink.h32 virtual int32_t SetControlCommand(const AVControlCommand& command) = 0;
H A Dremote_session_capability_set.cpp35 localCapability[SESSION_DATA_CONTROL_COMMAND] = AVControlCommand::localCapability; in GetLocalCapability()
H A Dremote_session_syncer_impl.cpp159 int32_t RemoteSessionSyncerImpl::PutControlCommand(const AVControlCommand& command) in PutControlCommand()
173 int32_t RemoteSessionSyncerImpl::GetControlCommand(AVControlCommand& command) in GetControlCommand()
186 AVControlCommand *data = AVControlCommand::Unmarshalling(parcelData); in GetControlCommand()
/foundation/multimedia/av_session/interfaces/inner_api/native/session/test/fuzztest/avcontrolcommand_fuzzer/
H A Davcontrolcommand_fuzzer.cpp34 AVControlCommand avControlCommand; in AVControlCommandTest()
/foundation/multimedia/av_session/services/session/server/migrate/
H A Dmigrate_avsession_server.cpp579 AVControlCommand cmd; in PlaybackCommandDataProc()
582 cmd.SetCommand(AVControlCommand::SESSION_CMD_PLAY); in PlaybackCommandDataProc()
586 cmd.SetCommand(AVControlCommand::SESSION_CMD_PAUSE); in PlaybackCommandDataProc()
590 cmd.SetCommand(AVControlCommand::SESSION_CMD_STOP); in PlaybackCommandDataProc()
594 cmd.SetCommand(AVControlCommand::SESSION_CMD_PLAY_PREVIOUS); in PlaybackCommandDataProc()
598 cmd.SetCommand(AVControlCommand::SESSION_CMD_PLAY_NEXT); in PlaybackCommandDataProc()
/foundation/multimedia/av_session/frameworks/native/session/test/fuzztest/avsessionmanager_fuzzer/
H A Davsessionmanager_fuzzer.cpp93 AVControlCommand command; in SendSystemControlCommandFuzzTest()
129 AVControlCommand command; in AVSessionManagerTestClient()
/foundation/multimedia/av_session/services/session/server/test/
H A Dremote_session_sink_test.cpp84 AVControlCommand command; in HWTEST_F()

Completed in 18 milliseconds

123