Home
last modified time | relevance | path

Searched refs:AVPlaybackState (Results 1 - 25 of 97) sorted by relevance

1234

/foundation/multimedia/av_session/frameworks/common/src/
H A Davplayback_state.cpp20 AVPlaybackState::AVPlaybackState() in AVPlaybackState() function in OHOS::AVSession::AVPlaybackState
24 bool AVPlaybackState::Marshalling(Parcel& parcel) const in Marshalling()
44 AVPlaybackState *AVPlaybackState::Unmarshalling(Parcel& parcel) in Unmarshalling()
50 auto *result = new (std::nothrow) AVPlaybackState(); in Unmarshalling()
51 CHECK_AND_RETURN_RET_LOG(result != nullptr, nullptr, "new AVPlaybackState failed"); in Unmarshalling()
67 SLOGE("Read AVPlaybackState failed"); in Unmarshalling()
74 SLOGD("Read AVPlaybackState with no extras"); in Unmarshalling()
79 bool AVPlaybackState
[all...]
/foundation/multimedia/av_session/interfaces/inner_api/native/session/include/
H A Davplayback_state.h24 class AVPlaybackState : public Parcelable { class
76 AVPlaybackState();
77 ~AVPlaybackState() override = default;
79 static AVPlaybackState* Unmarshalling(Parcel& parcel);
128 bool CopyToByMask(PlaybackStateMaskType& mask, AVPlaybackState& out) const;
129 bool CopyFrom(const AVPlaybackState& in);
165 static void CloneState(const AVPlaybackState& from, AVPlaybackState& to);
166 static void CloneSpeed(const AVPlaybackState& from, AVPlaybackState
[all...]
H A Davcast_controller.h60 virtual int32_t GetCastAVPlaybackState(AVPlaybackState& avPlaybackState) = 0;
68 virtual int32_t SetCastPlaybackFilter(const AVPlaybackState::PlaybackStateMaskType& filter) = 0;
H A Davsession_controller.h56 * @param state Current playing status infos {@link AVPlaybackState}.
60 virtual int32_t GetAVPlaybackState(AVPlaybackState& state) = 0;
65 * @param state Current playing status infos {@link AVPlaybackState}.
169 virtual int32_t SetPlaybackFilter(const AVPlaybackState::PlaybackStateMaskType& filter) = 0;
/foundation/multimedia/av_session/frameworks/js/napi/session/include/
H A Dnapi_playback_state.h28 static napi_status ConvertFilter(napi_env env, napi_value filter, AVPlaybackState::PlaybackStateMaskType& mask);
30 static napi_status GetValue(napi_env env, napi_value in, AVPlaybackState& out);
31 static napi_status SetValue(napi_env env, const AVPlaybackState& in, napi_value& out);
33 using GetterType = std::function<napi_status(napi_env, napi_value in, AVPlaybackState& out)>;
34 using SetterType = std::function<napi_status(napi_env env, const AVPlaybackState& in, napi_value& out)>;
37 static napi_status GetState(napi_env env, napi_value in, AVPlaybackState& out);
38 static napi_status SetState(napi_env env, const AVPlaybackState& in, napi_value& out);
40 static napi_status GetSpeed(napi_env env, napi_value in, AVPlaybackState& out);
41 static napi_status SetSpeed(napi_env env, const AVPlaybackState& in, napi_value& out);
43 static napi_status GetPosition(napi_env env, napi_value in, AVPlaybackState
[all...]
/foundation/multimedia/av_session/frameworks/native/session/test/unittest/
H A Davplayback_state_test.cpp52 auto *avp = new (std::nothrow) AVPlaybackState(); in HWTEST_F()
75 AVPlaybackState avPlaybackState; in HWTEST_F()
95 AVPlaybackState avPlaybackState; in HWTEST_F()
117 AVPlaybackState::PlaybackStateMaskType mask; in HWTEST_F()
135 AVPlaybackState *result = AVPlaybackState::Unmarshalling(*parcel); in HWTEST_F()
148 auto *avp = new (std::nothrow) AVPlaybackState(); in HWTEST_F()
155 AVPlaybackState *result = AVPlaybackState::Unmarshalling(*parcel); in HWTEST_F()
168 AVPlaybackState avPlaybackStat in HWTEST_F()
[all...]
H A Davcontroller_callback_client_test.cpp53 void OnPlaybackStateChange(const AVPlaybackState& state) override {}
86 AVPlaybackState avplaybackState; in HWTEST_F()
102 AVPlaybackState avplaybackState; in HWTEST_F()
103 aVControllerCallbackClient->AddListenerForPlaybackState([](const AVPlaybackState& state) {}); in HWTEST_F()
H A Davsession_controller_test.cpp143 void OnPlaybackStateChange(const AVPlaybackState& state) override;
166 AVPlaybackState state_;
182 void AVControllerCallbackImpl::OnPlaybackStateChange(const AVPlaybackState& state) in OnPlaybackStateChange()
202 bool IsAVPlaybackStateEqual(AVPlaybackState& state1, AVPlaybackState& state2) in IsAVPlaybackStateEqual()
218 int32_t GetAVPlaybackState(AVPlaybackState& state) override;
227 int32_t SetPlaybackFilter(const AVPlaybackState::PlaybackStateMaskType& filter) override;
254 int32_t AVSessionControllerStubTest::GetAVPlaybackState(AVPlaybackState& state) in GetAVPlaybackState()
300 int32_t AVSessionControllerStubTest::SetPlaybackFilter(const AVPlaybackState::PlaybackStateMaskType& filter) in SetPlaybackFilter()
385 * @tc.desc: Return AVPlaybackState
[all...]
H A Davcast_controller_test.cpp46 static AVPlaybackState g_playbackState;
154 void OnCastPlaybackStateChange(const AVPlaybackState& state) override;
172 AVPlaybackState state_;
185 void AVCastControllerCallbackImpl::OnCastPlaybackStateChange(const AVPlaybackState& state) in OnCastPlaybackStateChange()
254 EXPECT_EQ(command.SetLoopMode(AVPlaybackState::LOOP_MODE_SEQUENCE), AVSESSION_SUCCESS); in HWTEST_F()
260 EXPECT_EQ(mode, AVPlaybackState::LOOP_MODE_SEQUENCE); in HWTEST_F()
456 AVPlaybackState avPlaybackState; in HWTEST_F()
517 AVPlaybackState::PlaybackStateMaskType filter; in HWTEST_F()
575 AVPlaybackState state; in HWTEST_F()
/foundation/multimedia/av_session/frameworks/js/napi/session/src/
H A Dnapi_playback_state.cpp38 { AVPlaybackState::PLAYBACK_KEY_STATE, SetState },
39 { AVPlaybackState::PLAYBACK_KEY_SPEED, SetSpeed },
40 { AVPlaybackState::PLAYBACK_KEY_POSITION, SetPosition },
41 { AVPlaybackState::PLAYBACK_KEY_BUFFERED_TIME, SetBufferedTime },
42 { AVPlaybackState::PLAYBACK_KEY_LOOP_MODE, SetLoopMode },
43 { AVPlaybackState::PLAYBACK_KEY_IS_FAVORITE, SetIsFavorite },
44 { AVPlaybackState::PLAYBACK_KEY_ACTIVE_ITEM_ID, SetActiveItemId },
45 { AVPlaybackState::PLAYBACK_KEY_VOLUME, SetVolume },
46 { AVPlaybackState::PLAYBACK_KEY_MAX_VOLUME, SetMaxVolume },
47 { AVPlaybackState
[all...]
H A Dnapi_avsession_enum.cpp46 (void)SetNamedProperty(env, result, "LOOP_MODE_SEQUENCE", AVPlaybackState::LOOP_MODE_SEQUENCE); in ExportLoopMode()
47 (void)SetNamedProperty(env, result, "LOOP_MODE_SINGLE", AVPlaybackState::LOOP_MODE_SINGLE); in ExportLoopMode()
48 (void)SetNamedProperty(env, result, "LOOP_MODE_LIST", AVPlaybackState::LOOP_MODE_LIST); in ExportLoopMode()
49 (void)SetNamedProperty(env, result, "LOOP_MODE_SHUFFLE", AVPlaybackState::LOOP_MODE_SHUFFLE); in ExportLoopMode()
50 (void)SetNamedProperty(env, result, "LOOP_MODE_CUSTOM", AVPlaybackState::LOOP_MODE_CUSTOM); in ExportLoopMode()
127 (void)SetNamedProperty(env, result, "PLAYBACK_STATE_INITIAL", AVPlaybackState::PLAYBACK_STATE_INITIAL); in ExportPlaybackState()
128 (void)SetNamedProperty(env, result, "PLAYBACK_STATE_PREPARE", AVPlaybackState::PLAYBACK_STATE_PREPARE); in ExportPlaybackState()
129 (void)SetNamedProperty(env, result, "PLAYBACK_STATE_PLAY", AVPlaybackState::PLAYBACK_STATE_PLAY); in ExportPlaybackState()
130 (void)SetNamedProperty(env, result, "PLAYBACK_STATE_PAUSE", AVPlaybackState::PLAYBACK_STATE_PAUSE); in ExportPlaybackState()
131 (void)SetNamedProperty(env, result, "PLAYBACK_STATE_FAST_FORWARD", AVPlaybackState in ExportPlaybackState()
[all...]
/foundation/multimedia/av_session/services/session/server/
H A Dhw_cast_stream_player.h42 int32_t GetCastAVPlaybackState(AVPlaybackState& avPlaybackState) override;
88 {CastEngine::PlayerStates::PLAYER_STATE_ERROR, AVPlaybackState::PLAYBACK_STATE_ERROR},
89 {CastEngine::PlayerStates::PLAYER_IDLE, AVPlaybackState::PLAYBACK_STATE_INITIAL},
90 {CastEngine::PlayerStates::PLAYER_INITIALIZED, AVPlaybackState::PLAYBACK_STATE_INITIAL},
91 {CastEngine::PlayerStates::PLAYER_PREPARING, AVPlaybackState::PLAYBACK_STATE_PREPARE},
92 {CastEngine::PlayerStates::PLAYER_PREPARED, AVPlaybackState::PLAYBACK_STATE_PREPARE},
93 {CastEngine::PlayerStates::PLAYER_STARTED, AVPlaybackState::PLAYBACK_STATE_PLAY},
94 {CastEngine::PlayerStates::PLAYER_PAUSED, AVPlaybackState::PLAYBACK_STATE_PAUSE},
95 {CastEngine::PlayerStates::PLAYER_STOPPED, AVPlaybackState::PLAYBACK_STATE_STOP},
96 {CastEngine::PlayerStates::PLAYER_PLAYBACK_COMPLETE, AVPlaybackState
[all...]
H A Davsession_dumper.cpp41 { AVPlaybackState::PLAYBACK_STATE_INITIAL, "initial" },
42 { AVPlaybackState::PLAYBACK_STATE_PREPARE, "preparing" },
43 { AVPlaybackState::PLAYBACK_STATE_PLAY, "playing" },
44 { AVPlaybackState::PLAYBACK_STATE_PAUSE, "paused" },
45 { AVPlaybackState::PLAYBACK_STATE_FAST_FORWARD, "fast_forward" },
46 { AVPlaybackState::PLAYBACK_STATE_REWIND, "rewind" },
47 { AVPlaybackState::PLAYBACK_STATE_STOP, "stop" },
48 { AVPlaybackState::PLAYBACK_STATE_COMPLETED, "complete" },
49 { AVPlaybackState::PLAYBACK_STATE_RELEASED, "released" },
50 { AVPlaybackState
[all...]
H A Davcast_controller_item.h35 void OnCastPlaybackStateChange(const AVPlaybackState& state) override;
65 int32_t GetCastAVPlaybackState(AVPlaybackState& avPlaybackState) override;
73 int32_t SetCastPlaybackFilter(const AVPlaybackState::PlaybackStateMaskType& filter) override;
95 AVPlaybackState::PlaybackStateMaskType castPlaybackMask_;
98 int32_t currentState_ = AVPlaybackState::PLAYBACK_STATE_INITIAL;
H A Davcontroller_item.h40 int32_t GetAVPlaybackState(AVPlaybackState& state) override;
70 int32_t SetPlaybackFilter(const AVPlaybackState::PlaybackStateMaskType& filter) override;
82 void HandlePlaybackStateChange(const AVPlaybackState& state);
123 AVPlaybackState::PlaybackStateMaskType playbackMask_;
/foundation/multimedia/av_session/frameworks/native/session/include/
H A Davcontroller_callback_client.h34 void OnPlaybackStateChange(const AVPlaybackState& state) override;
44 void AddListenerForPlaybackState(const std::function<void(const AVPlaybackState&)>& listener);
56 std::function<void(const AVPlaybackState&)> playbackStateListener_;
H A Davcast_controller_callback_client.h28 void OnCastPlaybackStateChange(const AVPlaybackState& state) override;
50 void AddListenerForCastPlaybackState(const std::function<void(const AVPlaybackState&)>& listener);
53 std::function<void(const AVPlaybackState&)> castPlaybackStateListener_;
/foundation/multimedia/av_session/services/session/ipc/proxy/
H A Davcast_controller_proxy.h37 int32_t SetCastPlaybackFilter(const AVPlaybackState::PlaybackStateMaskType& filter) override;
43 int32_t GetCastAVPlaybackState(AVPlaybackState& state) override;
64 AVPlaybackState currentState_;
H A Davsession_controller_proxy.h35 int32_t GetAVPlaybackState(AVPlaybackState& state) override;
59 int32_t SetPlaybackFilter(const AVPlaybackState::PlaybackStateMaskType& filter) override;
84 AVPlaybackState currentState_;
/foundation/multimedia/av_session/frameworks/native/session/test/benchmarktest/avsession_controller_test/
H A Davsession_controller_test.cpp99 void OnPlaybackStateChange(const AVPlaybackState& state) override;
121 AVPlaybackState state_;
136 void AVControllerCallbackImpl::OnPlaybackStateChange(const AVPlaybackState& state) in OnPlaybackStateChange()
177 AVPlaybackState backState; in BENCHMARK_F()
186 AVPlaybackState resultState; in BENCHMARK_F()
291 command.SetLoopMode(AVPlaybackState::LOOP_MODE_SEQUENCE); in BENCHMARK_F()
309 AVPlaybackState::PlaybackStateMaskType filter; in BENCHMARK_F()
340 AVPlaybackState backState; in BENCHMARK_F()
341 AVPlaybackState::Position position; in BENCHMARK_F()
346 AVPlaybackState resultStat in BENCHMARK_F()
[all...]
/foundation/multimedia/av_session/frameworks/native/session/test/fuzztest/avcontrollercallbackstub_fuzzer/
H A Davcontroller_callbackclient_fuzzer.cpp44 void OnPlaybackStateChange(const AVPlaybackState& state) override;
78 void TestAVControllerCallback::OnPlaybackStateChange(const AVPlaybackState& state) in OnPlaybackStateChange()
179 if ((state >= AVPlaybackState::PLAYBACK_STATE_INITIAL) && (state <= AVPlaybackState::PLAYBACK_STATE_MAX)) { in FuzzTestInner1()
180 AVPlaybackState playbackState; in FuzzTestInner1()
/foundation/multimedia/av_session/services/session/server/remote/
H A Dremote_session_source_impl.h39 int32_t SetAVPlaybackState(const AVPlaybackState& state) override;
53 AVPlaybackState::PlaybackStateMaskType GetSinkPlaybackStateMaskType(const std::string& sinkDevice);
H A Dremote_session_syncer.h38 virtual int32_t PutAVPlaybackState(const AVPlaybackState& state) = 0;
40 virtual int32_t GetAVPlaybackState(AVPlaybackState& state) = 0;
H A Dremote_session_source_impl.cpp153 int32_t RemoteSessionSourceImpl::SetAVPlaybackState(const AVPlaybackState& state) in SetAVPlaybackState()
159 AVPlaybackState sinkState; in SetAVPlaybackState()
282 AVPlaybackState::PlaybackStateMaskType RemoteSessionSourceImpl::GetSinkPlaybackStateMaskType( in GetSinkPlaybackStateMaskType()
285 std::vector<int32_t> capability = AVPlaybackState::localCapability; in GetSinkPlaybackStateMaskType()
286 AVPlaybackState::PlaybackStateMaskType mask; in GetSinkPlaybackStateMaskType()
/foundation/multimedia/av_session/services/session/server/migrate/
H A Dmigrate_avsession_server.cpp102 AVPlaybackState::PlaybackStateMaskType playFilter(PLAYBACK_MASK_ALL); in CreateController()
371 AVPlaybackState state; in ConvertControllerToJson()
408 case AVPlaybackState::PLAYBACK_STATE_PLAY: in ConvertStateFromSingleToDouble()
410 case AVPlaybackState::PLAYBACK_STATE_PAUSE: in ConvertStateFromSingleToDouble()
412 case AVPlaybackState::PLAYBACK_STATE_STOP: in ConvertStateFromSingleToDouble()
414 case AVPlaybackState::PLAYBACK_STATE_ERROR: in ConvertStateFromSingleToDouble()
423 std::string MigrateAVSessionServer::RebuildPlayState(const AVPlaybackState &playbackState) in RebuildPlayState()
620 void MigrateAVSessionServer::OnPlaybackStateChanged(const std::string &playerId, const AVPlaybackState &state) in OnPlaybackStateChanged()
639 void AVControllerObserver::OnPlaybackStateChange(const AVPlaybackState &state) in OnPlaybackStateChange()
642 if (server != nullptr && state.GetState() != AVPlaybackState in OnPlaybackStateChange()
[all...]

Completed in 11 milliseconds

1234