Home
last modified time | relevance | path

Searched refs:AVCastControlCommand (Results 1 - 20 of 20) sorted by relevance

/foundation/multimedia/av_session/frameworks/common/src/
H A Davcast_control_command.cpp22 AVCastControlCommand::AVCastControlCommand() in AVCastControlCommand() function in OHOS::AVSession::AVCastControlCommand
27 AVCastControlCommand::~AVCastControlCommand() in ~AVCastControlCommand()
31 AVCastControlCommand *AVCastControlCommand::Unmarshalling(Parcel& data) in Unmarshalling()
33 auto result = new (std::nothrow) AVCastControlCommand(); in Unmarshalling()
63 bool AVCastControlCommand::Marshalling(Parcel& parcel) const in Marshalling()
100 bool AVCastControlCommand::IsValid() const in IsValid()
105 int32_t AVCastControlCommand
[all...]
/foundation/multimedia/av_session/frameworks/js/napi/session/include/
H A Dnapi_cast_control_command.h27 using GetterType = std::function<napi_status(napi_env, napi_value, AVCastControlCommand&)>;
28 using SetterType = std::function<napi_status(napi_env, AVCastControlCommand&, napi_value&)>;
34 static napi_status GetValue(napi_env env, napi_value in, AVCastControlCommand& out);
35 static napi_status SetValue(napi_env env, AVCastControlCommand& in, napi_value& out);
37 static napi_status GetNoneParam(napi_env env, napi_value in, AVCastControlCommand& out);
38 static napi_status GetForwardTime(napi_env env, napi_value in, AVCastControlCommand& out);
39 static napi_status GetRewindTime(napi_env env, napi_value in, AVCastControlCommand& out);
40 static napi_status GetSpeed(napi_env env, napi_value in, AVCastControlCommand& out);
41 static napi_status GetSeekTime(napi_env env, napi_value in, AVCastControlCommand& out);
42 static napi_status GetVolume(napi_env env, napi_value in, AVCastControlCommand
[all...]
/foundation/multimedia/av_session/frameworks/js/napi/session/src/
H A Dnapi_cast_control_command.cpp24 { "play", { GetNoneParam, SetNoneParam, AVCastControlCommand::CAST_CONTROL_CMD_PLAY } },
25 { "pause", { GetNoneParam, SetNoneParam, AVCastControlCommand::CAST_CONTROL_CMD_PAUSE } },
26 { "stop", { GetNoneParam, SetNoneParam, AVCastControlCommand::CAST_CONTROL_CMD_STOP } },
27 { "playNext", { GetNoneParam, SetNoneParam, AVCastControlCommand::CAST_CONTROL_CMD_PLAY_NEXT } },
28 { "playPrevious", { GetNoneParam, SetNoneParam, AVCastControlCommand::CAST_CONTROL_CMD_PLAY_PREVIOUS } },
29 { "fastForward", { GetForwardTime, SetForwardTime, AVCastControlCommand::CAST_CONTROL_CMD_FAST_FORWARD } },
30 { "rewind", { GetRewindTime, SetRewindTime, AVCastControlCommand::CAST_CONTROL_CMD_REWIND } },
31 { "seek", { GetSeekTime, SetSeekTime, AVCastControlCommand::CAST_CONTROL_CMD_SEEK } },
32 { "setVolume", { GetVolume, SetVolume, AVCastControlCommand::CAST_CONTROL_CMD_SET_VOLUME } },
33 { "setSpeed", { GetSpeed, SetSpeed, AVCastControlCommand
[all...]
H A Dnapi_avcast_controller.cpp145 AVCastControlCommand castCommand_; in SendControlCommand()
786 AVCastControlCommand::CAST_CONTROL_CMD_PLAY_STATE_CHANGE); in OnPlaybackStateChange()
808 ->AddAvailableCommand(AVCastControlCommand::CAST_CONTROL_CMD_PLAY_NEXT); in OnPlayNext()
823 ->AddAvailableCommand(AVCastControlCommand::CAST_CONTROL_CMD_PLAY_PREVIOUS); in OnPlayPrevious()
968 ->RemoveAvailableCommand(AVCastControlCommand::CAST_CONTROL_CMD_PLAY_STATE_CHANGE); in OffPlaybackStateChange()
995 ->RemoveAvailableCommand(AVCastControlCommand::CAST_CONTROL_CMD_PLAY_NEXT); in OffPlayNext()
1012 ->RemoveAvailableCommand(AVCastControlCommand::CAST_CONTROL_CMD_PLAY_PREVIOUS); in OffPlayPrevious()
/foundation/multimedia/av_session/frameworks/native/session/test/unittest/
H A Davcast_controller_test.cpp226 * @tc.desc: send command, check if AVCastControlCommand is invalid
232 AVCastControlCommand command; in HWTEST_F()
233 EXPECT_EQ(command.SetCommand(AVCastControlCommand::CAST_CONTROL_CMD_INVALID), ERR_INVALID_PARAM); in HWTEST_F()
234 EXPECT_EQ(command.SetCommand(AVCastControlCommand::CAST_CONTROL_CMD_MAX), ERR_INVALID_PARAM); in HWTEST_F()
244 * @tc.desc: send command, check if AVCastControlCommand is invalid
250 AVCastControlCommand command; in HWTEST_F()
253 EXPECT_EQ(command.SetCommand(AVCastControlCommand::CAST_CONTROL_CMD_SET_LOOP_MODE), AVSESSION_SUCCESS); in HWTEST_F()
256 AVCastControlCommand *ret = AVCastControlCommand::Unmarshalling(parcel); in HWTEST_F()
258 EXPECT_EQ(ret->GetCommand(), AVCastControlCommand in HWTEST_F()
[all...]
/foundation/multimedia/av_session/services/session/server/
H A Dhw_cast_stream_player.cpp70 void HwCastStreamPlayer::SendControlCommand(const AVCastControlCommand castControlCommand) in SendControlCommand()
87 case AVCastControlCommand::CAST_CONTROL_CMD_PLAY: in SendControlCommand()
90 case AVCastControlCommand::CAST_CONTROL_CMD_PAUSE: in SendControlCommand()
93 case AVCastControlCommand::CAST_CONTROL_CMD_STOP: in SendControlCommand()
96 case AVCastControlCommand::CAST_CONTROL_CMD_PLAY_NEXT: in SendControlCommand()
99 case AVCastControlCommand::CAST_CONTROL_CMD_PLAY_PREVIOUS: in SendControlCommand()
108 void HwCastStreamPlayer::SendControlCommandWithParams(const AVCastControlCommand castControlCommand) in SendControlCommandWithParams()
113 case AVCastControlCommand::CAST_CONTROL_CMD_FAST_FORWARD: in SendControlCommandWithParams()
117 case AVCastControlCommand::CAST_CONTROL_CMD_REWIND: in SendControlCommandWithParams()
121 case AVCastControlCommand in SendControlCommandWithParams()
[all...]
H A Davsession_item.cpp592 if (cmd == AVCastControlCommand::CAST_CONTROL_CMD_INVALID) { in GetAVCastControllerInner()
598 if (cmd == AVCastControlCommand::CAST_CONTROL_CMD_MAX) { in GetAVCastControllerInner()
876 AVCastControlCommand::CAST_CONTROL_CMD_SET_VOLUME);
878 supportedCastCmds_.push_back(AVCastControlCommand::CAST_CONTROL_CMD_SET_VOLUME);
882 AVCastControlCommand::CAST_CONTROL_CMD_SET_SPEED);
884 supportedCastCmds_.push_back(AVCastControlCommand::CAST_CONTROL_CMD_SET_SPEED);
888 AVCastControlCommand::CAST_CONTROL_CMD_SEEK);
890 supportedCastCmds_.push_back(AVCastControlCommand::CAST_CONTROL_CMD_SEEK);
891 supportedCastCmds_.push_back(AVCastControlCommand::CAST_CONTROL_CMD_FAST_FORWARD);
892 supportedCastCmds_.push_back(AVCastControlCommand
[all...]
H A Davcast_controller_item.cpp171 int32_t AVCastControllerItem::SendControlCommand(const AVCastControlCommand& cmd) in SendControlCommand()
323 validCommandsChangecallback_(AVCastControlCommand::CAST_CONTROL_CMD_MAX, cmds); in GetValidCommands()
361 std::vector<int32_t> cmds(AVCastControlCommand::CAST_CONTROL_CMD_MAX); in AddAvailableCommand()
390 std::vector<int32_t> cmds(AVCastControlCommand::CAST_CONTROL_CMD_MAX); in RemoveAvailableCommand()
H A Dhw_cast_stream_player.h37 void SendControlCommand(const AVCastControlCommand castControlCommand) override;
68 void SendControlCommandWithParams(const AVCastControlCommand castControlCommand);
H A Davcast_controller_item.h57 int32_t SendControlCommand(const AVCastControlCommand& cmd) override;
/foundation/multimedia/av_session/services/session/server/test/
H A Dhw_cast_stream_player_test.cpp134 AVCastControlCommand::CAST_CONTROL_CMD_INVALID,
135 AVCastControlCommand::CAST_CONTROL_CMD_PLAY,
136 AVCastControlCommand::CAST_CONTROL_CMD_PAUSE,
137 AVCastControlCommand::CAST_CONTROL_CMD_STOP,
138 AVCastControlCommand::CAST_CONTROL_CMD_PLAY_NEXT,
139 AVCastControlCommand::CAST_CONTROL_CMD_PLAY_PREVIOUS,
140 AVCastControlCommand::CAST_CONTROL_CMD_FAST_FORWARD,
141 AVCastControlCommand::CAST_CONTROL_CMD_REWIND,
142 AVCastControlCommand::CAST_CONTROL_CMD_SEEK,
143 AVCastControlCommand
[all...]
H A Dhw_cast_test.cpp87 AVCastControlCommand cmd; in HWTEST()
88 cmd.SetCommand(OHOS::AVSession::AVCastControlCommand::CAST_CONTROL_CMD_INVALID); in HWTEST()
105 AVCastControlCommand cmd; in HWTEST()
106 cmd.SetCommand(OHOS::AVSession::AVCastControlCommand::CAST_CONTROL_CMD_PLAY); in HWTEST()
123 AVCastControlCommand cmd; in HWTEST()
124 cmd.SetCommand(OHOS::AVSession::AVCastControlCommand::CAST_CONTROL_CMD_PAUSE); in HWTEST()
141 AVCastControlCommand cmd; in HWTEST()
142 cmd.SetCommand(OHOS::AVSession::AVCastControlCommand::CAST_CONTROL_CMD_STOP); in HWTEST()
159 AVCastControlCommand cmd; in HWTEST()
160 cmd.SetCommand(OHOS::AVSession::AVCastControlCommand in HWTEST()
[all...]
H A Davcast_controller_stub_test.cpp100 int32_t SendControlCommand(const AVCastControlCommand& cmd) override
183 sptr<AVCastControlCommand> cmd = new AVCastControlCommand(); in HWTEST_F()
H A Dhw_cast_supplement_test.cpp70 void SendControlCommand(const AVCastControlCommand cmd) {} in SendControlCommand()
/foundation/multimedia/av_session/interfaces/inner_api/native/session/include/
H A Davcast_control_command.h27 class AVCastControlCommand : public Parcelable { class
48 AVCastControlCommand();
49 ~AVCastControlCommand() override;
51 static AVCastControlCommand* Unmarshalling(Parcel& data);
H A Davcast_controller.h44 virtual int32_t SendControlCommand(const AVCastControlCommand& cmd) = 0;
H A Di_avcast_controller_proxy.h103 * @param { const AVCastControlCommand } cmd - Command to be executed at remote device.
106 virtual void SendControlCommand(const AVCastControlCommand cmd) = 0;
/foundation/multimedia/av_session/services/session/ipc/proxy/
H A Davcast_controller_proxy.cpp37 int32_t AVCastControllerProxy::SendControlCommand(const AVCastControlCommand& cmd) in SendControlCommand()
302 CHECK_AND_RETURN_RET_LOG(cmd > AVCastControlCommand::CAST_CONTROL_CMD_INVALID, AVSESSION_ERROR, "invalid cmd"); in AddAvailableCommand()
303 CHECK_AND_RETURN_RET_LOG(cmd < AVCastControlCommand::CAST_CONTROL_CMD_MAX, AVSESSION_ERROR, "invalid cmd"); in AddAvailableCommand()
325 CHECK_AND_RETURN_RET_LOG(cmd > AVCastControlCommand::CAST_CONTROL_CMD_INVALID, AVSESSION_ERROR, "invalid cmd"); in RemoveAvailableCommand()
326 CHECK_AND_RETURN_RET_LOG(cmd < AVCastControlCommand::CAST_CONTROL_CMD_MAX, AVSESSION_ERROR, "invalid cmd"); in RemoveAvailableCommand()
H A Davcast_controller_proxy.h31 int32_t SendControlCommand(const AVCastControlCommand& cmd) override;
/foundation/multimedia/av_session/services/session/ipc/stub/
H A Davcast_controller_stub.cpp69 sptr<AVCastControlCommand> cmd = data.ReadParcelable<AVCastControlCommand>(); in HandleSendControlCommand()

Completed in 19 milliseconds