Home
last modified time | relevance | path

Searched refs:Player (Results 1 – 25 of 104) sorted by relevance

12345

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DExoPlayerTest.java35 import com.google.android.exoplayer2.Player.DiscontinuityReason;
36 import com.google.android.exoplayer2.Player.EventListener;
145 Player.TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED, in playEmptyTimeline()
146 Player.TIMELINE_CHANGE_REASON_SOURCE_UPDATE); in playEmptyTimeline()
169 Player.TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED, in playSinglePeriodTimeline()
170 Player.TIMELINE_CHANGE_REASON_SOURCE_UPDATE); in playSinglePeriodTimeline()
191 Player.DISCONTINUITY_REASON_PERIOD_TRANSITION, in playMultiPeriodTimeline()
192 Player.DISCONTINUITY_REASON_PERIOD_TRANSITION); in playMultiPeriodTimeline()
195 Player.TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED, in playMultiPeriodTimeline()
196 Player.TIMELINE_CHANGE_REASON_SOURCE_UPDATE); in playMultiPeriodTimeline()
[all …]
DAudioFocusManagerTest.java72 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ false, Player.STATE_IDLE)) in setAudioAttributes_withNullUsage_doesNotManageAudioFocus()
74 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_READY)) in setAudioAttributes_withNullUsage_doesNotManageAudioFocus()
88 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_READY)) in setAudioAttributes_withNullUsage_abandonsAudioFocus()
97 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_READY)) in setAudioAttributes_withNullUsage_abandonsAudioFocus()
111 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_READY)) in setAudioAttributes_withNullUsage_abandonsAudioFocus_v26()
119 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_READY)) in setAudioAttributes_withNullUsage_abandonsAudioFocus_v26()
147 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_READY)) in setAudioAttributes_withUsageMedia_usesAudioFocusGain()
160 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_ENDED)) in setAudioAttributes_inEndedState_requestsAudioFocus()
173 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_IDLE)) in updateAudioFocus_idleToBuffering_setsPlayerCommandPlayWhenReady()
177 audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_BUFFERING)) in updateAudioFocus_idleToBuffering_setsPlayerCommandPlayWhenReady()
[all …]
DTimelineTest.java42 timeline, Player.REPEAT_MODE_OFF, false, C.INDEX_UNSET); in singlePeriodTimeline()
43 TimelineAsserts.assertPreviousWindowIndices(timeline, Player.REPEAT_MODE_ONE, false, 0); in singlePeriodTimeline()
44 TimelineAsserts.assertPreviousWindowIndices(timeline, Player.REPEAT_MODE_ALL, false, 0); in singlePeriodTimeline()
45 TimelineAsserts.assertNextWindowIndices(timeline, Player.REPEAT_MODE_OFF, false, C.INDEX_UNSET); in singlePeriodTimeline()
46 TimelineAsserts.assertNextWindowIndices(timeline, Player.REPEAT_MODE_ONE, false, 0); in singlePeriodTimeline()
47 TimelineAsserts.assertNextWindowIndices(timeline, Player.REPEAT_MODE_ALL, false, 0); in singlePeriodTimeline()
56 timeline, Player.REPEAT_MODE_OFF, false, C.INDEX_UNSET); in multiPeriodTimeline()
57 TimelineAsserts.assertPreviousWindowIndices(timeline, Player.REPEAT_MODE_ONE, false, 0); in multiPeriodTimeline()
58 TimelineAsserts.assertPreviousWindowIndices(timeline, Player.REPEAT_MODE_ALL, false, 0); in multiPeriodTimeline()
59 TimelineAsserts.assertNextWindowIndices(timeline, Player.REPEAT_MODE_OFF, false, C.INDEX_UNSET); in multiPeriodTimeline()
[all …]
DDefaultMediaClockTest.java113 assertThat(mediaClock.getPlaybackSpeed()).isEqualTo(Player.DEFAULT_PLAYBACK_SPEED); in standaloneGetPlaybackSpeed_initializedWithDefaultPlaybackSpeed()
139 mediaClock.setPlaybackSpeed(Player.DEFAULT_PLAYBACK_SPEED); in standaloneSetOtherPlaybackSpeed_getPlaybackSpeedShouldReturnSameValue()
140 assertThat(mediaClock.getPlaybackSpeed()).isEqualTo(Player.DEFAULT_PLAYBACK_SPEED); in standaloneSetOtherPlaybackSpeed_getPlaybackSpeedShouldReturnSameValue()
149 assertThat(mediaClock.getPlaybackSpeed()).isEqualTo(Player.DEFAULT_PLAYBACK_SPEED); in enableRendererMediaClock_shouldOverwriteRendererPlaybackSpeedIfPossible()
176 new MediaClockRenderer(Player.DEFAULT_PLAYBACK_SPEED, /* playbackSpeedIsMutable= */ false); in enableRendererMediaClockWithFixedButSamePlaybackSpeed_shouldNotTriggerCallback()
197 new MediaClockRenderer(Player.DEFAULT_PLAYBACK_SPEED, /* playbackSpeedIsMutable= */ true); in rendererClockSetPlaybackSpeed_getPlaybackSpeedShouldReturnSameValue()
207 new MediaClockRenderer(Player.DEFAULT_PLAYBACK_SPEED, /* playbackSpeedIsMutable= */ true); in rendererClockSetPlaybackSpeed_shouldNotTriggerCallback()
218 new MediaClockRenderer(Player.DEFAULT_PLAYBACK_SPEED, /* playbackSpeedIsMutable= */ false); in rendererClockSetPlaybackSpeedOverwrite_getPlaybackSpeedShouldReturnSameValue()
222 assertThat(mediaClock.getPlaybackSpeed()).isEqualTo(Player.DEFAULT_PLAYBACK_SPEED); in rendererClockSetPlaybackSpeedOverwrite_getPlaybackSpeedShouldReturnSameValue()
269 new MediaClockRenderer(Player.DEFAULT_PLAYBACK_SPEED, /* playbackSpeedIsMutable= */ true); in getPositionWithPlaybackSpeedChange_shouldTriggerCallback()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DControlDispatcher.java18 import com.google.android.exoplayer2.Player.RepeatMode;
36 boolean dispatchSetPlayWhenReady(Player player, boolean playWhenReady); in dispatchSetPlayWhenReady()
47 boolean dispatchSeekTo(Player player, int windowIndex, long positionMs); in dispatchSeekTo()
55 boolean dispatchPrevious(Player player); in dispatchPrevious()
63 boolean dispatchNext(Player player); in dispatchNext()
71 boolean dispatchRewind(Player player); in dispatchRewind()
79 boolean dispatchFastForward(Player player); in dispatchFastForward()
88 boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode); in dispatchSetRepeatMode()
97 boolean dispatchSetShuffleModeEnabled(Player player, boolean shuffleModeEnabled); in dispatchSetShuffleModeEnabled()
106 boolean dispatchStop(Player player, boolean reset); in dispatchStop()
DDefaultControlDispatcher.java53 public boolean dispatchSetPlayWhenReady(Player player, boolean playWhenReady) { in dispatchSetPlayWhenReady()
59 public boolean dispatchSeekTo(Player player, int windowIndex, long positionMs) { in dispatchSeekTo()
65 public boolean dispatchPrevious(Player player) { in dispatchPrevious()
84 public boolean dispatchNext(Player player) { in dispatchNext()
100 public boolean dispatchRewind(Player player) { in dispatchRewind()
108 public boolean dispatchFastForward(Player player) { in dispatchFastForward()
116 public boolean dispatchSetRepeatMode(Player player, @Player.RepeatMode int repeatMode) { in dispatchSetRepeatMode()
122 public boolean dispatchSetShuffleModeEnabled(Player player, boolean shuffleModeEnabled) { in dispatchSetShuffleModeEnabled()
128 public boolean dispatchStop(Player player, boolean reset) { in dispatchStop()
173 private static void seekToOffset(Player player, long offsetMs) { in seekToOffset()
DAbstractConcatenatedTimeline.java78 int windowIndex, @Player.RepeatMode int repeatMode, boolean shuffleModeEnabled) { in getNextWindowIndex()
81 repeatMode = repeatMode == Player.REPEAT_MODE_ONE ? Player.REPEAT_MODE_ALL : repeatMode; in getNextWindowIndex()
91 repeatMode == Player.REPEAT_MODE_ALL ? Player.REPEAT_MODE_OFF : repeatMode, in getNextWindowIndex()
106 if (repeatMode == Player.REPEAT_MODE_ALL) { in getNextWindowIndex()
114 int windowIndex, @Player.RepeatMode int repeatMode, boolean shuffleModeEnabled) { in getPreviousWindowIndex()
117 repeatMode = repeatMode == Player.REPEAT_MODE_ONE ? Player.REPEAT_MODE_ALL : repeatMode; in getPreviousWindowIndex()
127 repeatMode == Player.REPEAT_MODE_ALL ? Player.REPEAT_MODE_OFF : repeatMode, in getPreviousWindowIndex()
143 if (repeatMode == Player.REPEAT_MODE_ALL) { in getPreviousWindowIndex()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DLoopingMediaSourceTest.java20 import com.google.android.exoplayer2.Player;
56 timeline, Player.REPEAT_MODE_OFF, shuffled, C.INDEX_UNSET, 0, 1); in singleLoopTimeline()
58 timeline, Player.REPEAT_MODE_ONE, shuffled, 0, 1, 2); in singleLoopTimeline()
60 timeline, Player.REPEAT_MODE_ALL, shuffled, 2, 0, 1); in singleLoopTimeline()
62 timeline, Player.REPEAT_MODE_OFF, shuffled, 1, 2, C.INDEX_UNSET); in singleLoopTimeline()
63 TimelineAsserts.assertNextWindowIndices(timeline, Player.REPEAT_MODE_ONE, shuffled, 0, 1, 2); in singleLoopTimeline()
64 TimelineAsserts.assertNextWindowIndices(timeline, Player.REPEAT_MODE_ALL, shuffled, 1, 2, 0); in singleLoopTimeline()
75 timeline, Player.REPEAT_MODE_OFF, shuffled, C.INDEX_UNSET, 0, 1, 2, 3, 4, 5, 6, 7, 8); in multiLoopTimeline()
77 timeline, Player.REPEAT_MODE_ONE, shuffled, 0, 1, 2, 3, 4, 5, 6, 7, 8); in multiLoopTimeline()
79 timeline, Player.REPEAT_MODE_ALL, shuffled, 8, 0, 1, 2, 3, 4, 5, 6, 7); in multiLoopTimeline()
[all …]
DConcatenatingMediaSourceTest.java24 import com.google.android.exoplayer2.Player;
144 timeline, Player.REPEAT_MODE_OFF, false, 1, 2, C.INDEX_UNSET); in playlistChangesAfterPreparation()
145 TimelineAsserts.assertNextWindowIndices(timeline, Player.REPEAT_MODE_ONE, false, 0, 1, 2); in playlistChangesAfterPreparation()
146 TimelineAsserts.assertNextWindowIndices(timeline, Player.REPEAT_MODE_ALL, false, 1, 2, 0); in playlistChangesAfterPreparation()
148 timeline, Player.REPEAT_MODE_OFF, false, C.INDEX_UNSET, 0, 1); in playlistChangesAfterPreparation()
149 TimelineAsserts.assertPreviousWindowIndices(timeline, Player.REPEAT_MODE_ONE, false, 0, 1, 2); in playlistChangesAfterPreparation()
150 TimelineAsserts.assertPreviousWindowIndices(timeline, Player.REPEAT_MODE_ALL, false, 2, 0, 1); in playlistChangesAfterPreparation()
154 timeline, Player.REPEAT_MODE_OFF, true, C.INDEX_UNSET, 0, 1); in playlistChangesAfterPreparation()
155 TimelineAsserts.assertNextWindowIndices(timeline, Player.REPEAT_MODE_ONE, true, 0, 1, 2); in playlistChangesAfterPreparation()
156 TimelineAsserts.assertNextWindowIndices(timeline, Player.REPEAT_MODE_ALL, true, 2, 0, 1); in playlistChangesAfterPreparation()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/analytics/
DPlaybackStatsListenerTest.java29 import com.google.android.exoplayer2.Player;
70 EMPTY_TIMELINE_EVENT_TIME, Player.DISCONTINUITY_REASON_SEEK); in events_duringInitialIdleState_dontCreateNewPlaybackStats()
76 Player.PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST); in events_duringInitialIdleState_dontCreateNewPlaybackStats()
86 playbackStatsListener.onPlaybackStateChanged(EMPTY_TIMELINE_EVENT_TIME, Player.STATE_BUFFERING); in stateChangeEvent_toNonIdle_createsInitialPlaybackStats()
97 TEST_EVENT_TIME, Player.TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED); in timelineChangeEvent_toNonEmpty_createsInitialPlaybackStats()
107 playbackStatsListener.onPlaybackStateChanged(TEST_EVENT_TIME, Player.STATE_BUFFERING); in playback_withKeepHistory_updatesStats()
108 playbackStatsListener.onPlaybackStateChanged(TEST_EVENT_TIME, Player.STATE_READY); in playback_withKeepHistory_updatesStats()
109 playbackStatsListener.onPlaybackStateChanged(TEST_EVENT_TIME, Player.STATE_ENDED); in playback_withKeepHistory_updatesStats()
121 playbackStatsListener.onPlaybackStateChanged(TEST_EVENT_TIME, Player.STATE_BUFFERING); in playback_withoutKeepHistory_updatesStats()
122 playbackStatsListener.onPlaybackStateChanged(TEST_EVENT_TIME, Player.STATE_READY); in playback_withoutKeepHistory_updatesStats()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DRepeatModeUtil.java19 import com.google.android.exoplayer2.Player;
64 public static @Player.RepeatMode int getNextRepeatMode(@Player.RepeatMode int currentMode, in getNextRepeatMode()
67 @Player.RepeatMode int proposedMode = (currentMode + offset) % 3; in getNextRepeatMode()
82 public static boolean isRepeatModeEnabled(@Player.RepeatMode int repeatMode, int enabledModes) { in isRepeatModeEnabled()
84 case Player.REPEAT_MODE_OFF: in isRepeatModeEnabled()
86 case Player.REPEAT_MODE_ONE: in isRepeatModeEnabled()
88 case Player.REPEAT_MODE_ALL: in isRepeatModeEnabled()
DEventLogger.java26 import com.google.android.exoplayer2.Player;
27 import com.google.android.exoplayer2.Player.PlaybackSuppressionReason;
100 public void onPlaybackStateChanged(EventTime eventTime, @Player.State int state) { in onPlaybackStateChanged()
106 EventTime eventTime, boolean playWhenReady, @Player.PlayWhenReadyChangeReason int reason) { in onPlayWhenReadyChanged()
128 public void onRepeatModeChanged(EventTime eventTime, @Player.RepeatMode int repeatMode) { in onRepeatModeChanged()
138 public void onPositionDiscontinuity(EventTime eventTime, @Player.DiscontinuityReason int reason) { in onPositionDiscontinuity()
162 public void onTimelineChanged(EventTime eventTime, @Player.TimelineChangeReason int reason) { in onTimelineChanged()
567 case Player.STATE_BUFFERING: in getStateString()
569 case Player.STATE_ENDED: in getStateString()
571 case Player.STATE_IDLE: in getStateString()
[all …]
/external/exoplayer/tree/extensions/ima/src/test/java/com/google/android/exoplayer2/ext/ima/
DFakePlayer.java20 import com.google.android.exoplayer2.Player;
29 private final ArrayList<Player.EventListener> listeners;
33 @Player.State private int state;
44 state = Player.STATE_IDLE; in FakePlayer()
51 for (Player.EventListener listener : listeners) { in updateTimeline()
68 for (Player.EventListener listener : listeners) { in setPlayingContentPosition()
88 for (Player.EventListener listener : listeners) { in setPlayingAdPosition()
96 public void setState(@Player.State int state, boolean playWhenReady) { in setState()
102 for (Player.EventListener listener : listeners) { in setState()
128 public void addListener(Player.EventListener listener) { in addListener()
[all …]
/external/exoplayer/tree/extensions/leanback/src/main/java/com/google/android/exoplayer2/ext/leanback/
DLeanbackPlayerAdapter.java34 import com.google.android.exoplayer2.Player;
35 import com.google.android.exoplayer2.Player.DiscontinuityReason;
36 import com.google.android.exoplayer2.Player.TimelineChangeReason;
50 private final Player player;
71 public LeanbackPlayerAdapter(Context context, Player player, final int updatePeriodMs) { in LeanbackPlayerAdapter()
120 Player.VideoComponent videoComponent = player.getVideoComponent(); in onAttachedToHost()
129 Player.VideoComponent videoComponent = player.getVideoComponent(); in onDetachedFromHost()
155 return playbackState != Player.STATE_IDLE && playbackState != Player.STATE_ENDED in isPlaying()
167 return player.getPlaybackState() == Player.STATE_IDLE ? -1 : player.getCurrentPosition(); in getCurrentPosition()
172 if (player.getPlaybackState() == Player.STATE_IDLE) { in play()
[all …]
/external/exoplayer/tree/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/
DMediaSessionConnector.java41 import com.google.android.exoplayer2.Player;
167 Player player, in onCommand()
251 long getSupportedQueueNavigatorActions(Player player); in getSupportedQueueNavigatorActions()
257 void onTimelineChanged(Player player); in onTimelineChanged()
263 void onCurrentWindowIndexChanged(Player player); in onCurrentWindowIndexChanged()
275 long getActiveQueueItemId(@Nullable Player player); in getActiveQueueItemId()
283 void onSkipToPrevious(Player player, ControlDispatcher controlDispatcher); in onSkipToPrevious()
291 void onSkipToQueueItem(Player player, ControlDispatcher controlDispatcher, long id); in onSkipToQueueItem()
299 void onSkipToNext(Player player, ControlDispatcher controlDispatcher); in onSkipToNext()
308 void onAddQueueItem(Player player, MediaDescriptionCompat description); in onAddQueueItem()
[all …]
DTimelineQueueNavigator.java26 import com.google.android.exoplayer2.Player;
88 public abstract MediaDescriptionCompat getMediaDescription(Player player, int windowIndex); in getMediaDescription()
91 public long getSupportedQueueNavigatorActions(Player player) { in getSupportedQueueNavigatorActions()
117 public final void onTimelineChanged(Player player) { in onTimelineChanged()
122 public final void onCurrentWindowIndexChanged(Player player) { in onCurrentWindowIndexChanged()
132 public final long getActiveQueueItemId(@Nullable Player player) { in getActiveQueueItemId()
137 public void onSkipToPrevious(Player player, ControlDispatcher controlDispatcher) { in onSkipToPrevious()
142 public void onSkipToQueueItem(Player player, ControlDispatcher controlDispatcher, long id) { in onSkipToQueueItem()
154 public void onSkipToNext(Player player, ControlDispatcher controlDispatcher) { in onSkipToNext()
162 Player player, in onCommand()
[all …]
DRepeatModeActionProvider.java23 import com.google.android.exoplayer2.Player;
69 Player player, ControlDispatcher controlDispatcher, String action, @Nullable Bundle extras) { in onCustomAction()
78 public PlaybackStateCompat.CustomAction getCustomAction(Player player) { in getCustomAction()
82 case Player.REPEAT_MODE_ONE: in getCustomAction()
86 case Player.REPEAT_MODE_ALL: in getCustomAction()
90 case Player.REPEAT_MODE_OFF: in getCustomAction()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DTestExoPlayer.java28 import com.google.android.exoplayer2.Player;
311 public static void runUntilPlaybackState(Player player, @Player.State int expectedState) { in runUntilPlaybackState()
318 Player.EventListener listener = in runUntilPlaybackState()
319 new Player.EventListener() { in runUntilPlaybackState()
337 public static void runUntilPlayWhenReady(Player player, boolean expectedPlayWhenReady) { in runUntilPlayWhenReady()
344 Player.EventListener listener = in runUntilPlayWhenReady()
345 new Player.EventListener() { in runUntilPlayWhenReady()
368 Player player, @Nullable Timeline expectedTimeline) { in runUntilTimelineChanged()
376 Player.EventListener listener = in runUntilTimelineChanged()
377 new Player.EventListener() { in runUntilTimelineChanged()
[all …]
DExoPlayerTestRunner.java29 import com.google.android.exoplayer2.Player;
51 public final class ExoPlayerTestRunner implements Player.EventListener, ActionSchedule.Callback {
82 private Player.EventListener eventListener;
285 public Builder setEventListener(Player.EventListener eventListener) { in setEventListener()
350 @Nullable private final Player.EventListener eventListener;
376 @Nullable Player.EventListener eventListener, in ExoPlayerTestRunner()
610 public void onTimelineChanged(Timeline timeline, @Player.TimelineChangeReason int reason) { in onTimelineChanged()
626 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged()
628 playerWasPrepared |= playbackState != Player.STATE_IDLE; in onPlaybackStateChanged()
629 if (playbackState == Player.STATE_ENDED in onPlaybackStateChanged()
[all …]
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DDebugTextViewHelper.java22 import com.google.android.exoplayer2.Player;
32 public class DebugTextViewHelper implements Player.EventListener, Runnable {
82 public final void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged()
88 boolean playWhenReady, @Player.PlayWhenReadyChangeReason int playbackState) { in onPlayWhenReadyChanged()
93 public final void onPositionDiscontinuity(@Player.DiscontinuityReason int reason) { in onPositionDiscontinuity()
122 case Player.STATE_BUFFERING: in getPlayerStateString()
125 case Player.STATE_ENDED: in getPlayerStateString()
128 case Player.STATE_IDLE: in getPlayerStateString()
131 case Player.STATE_READY: in getPlayerStateString()
DPlayerControlView.java40 import com.google.android.exoplayer2.Player;
296 @Nullable private Player player;
481 public Player getPlayer() { in getPlayer()
492 public void setPlayer(@Nullable Player player) { in setPlayer()
664 @Player.RepeatMode int currentMode = player.getRepeatMode(); in setRepeatToggleModes()
666 && currentMode != Player.REPEAT_MODE_OFF) { in setRepeatToggleModes()
667 controlDispatcher.dispatchSetRepeatMode(player, Player.REPEAT_MODE_OFF); in setRepeatToggleModes()
669 && currentMode == Player.REPEAT_MODE_ALL) { in setRepeatToggleModes()
670 controlDispatcher.dispatchSetRepeatMode(player, Player.REPEAT_MODE_ONE); in setRepeatToggleModes()
672 && currentMode == Player.REPEAT_MODE_ONE) { in setRepeatToggleModes()
[all …]
DPlayerNotificationManager.java41 import com.google.android.exoplayer2.Player;
142 CharSequence getCurrentContentTitle(Player player); in getCurrentContentTitle()
152 PendingIntent createCurrentContentIntent(Player player); in createCurrentContentIntent()
162 CharSequence getCurrentContentText(Player player); in getCurrentContentText()
172 default CharSequence getCurrentSubText(Player player) { in getCurrentSubText()
190 Bitmap getCurrentLargeIcon(Player player, BitmapCallback callback); in getCurrentLargeIcon()
220 List<String> getCustomActions(Player player); in getCustomActions()
229 void onCustomAction(Player player, String action, Intent intent); in onCustomAction()
366 private final Player.EventListener playerListener;
376 @Nullable private Player player;
[all …]
/external/exoplayer/tree/extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/
DCastPlayerTest.java31 import com.google.android.exoplayer2.Player;
72 @Mock private Player.EventListener mockListener;
111 verify(mockListener).onPlayerStateChanged(true, Player.STATE_IDLE); in setPlayWhenReady_masksRemoteState()
113 .onPlayWhenReadyChanged(true, Player.PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST); in setPlayWhenReady_masksRemoteState()
136 verify(mockListener).onPlayerStateChanged(true, Player.STATE_IDLE); in setPlayWhenReadyMasking_updatesUponResultChange()
138 .onPlayWhenReadyChanged(true, Player.PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST); in setPlayWhenReadyMasking_updatesUponResultChange()
144 verify(mockListener).onPlayerStateChanged(false, Player.STATE_IDLE); in setPlayWhenReadyMasking_updatesUponResultChange()
145 verify(mockListener).onPlayWhenReadyChanged(false, Player.PLAY_WHEN_READY_CHANGE_REASON_REMOTE); in setPlayWhenReadyMasking_updatesUponResultChange()
156 verify(mockListener).onPlayerStateChanged(true, Player.STATE_IDLE); in setPlayWhenReady_correctChangeReasonOnPause()
158 .onPlayWhenReadyChanged(true, Player.PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST); in setPlayWhenReady_correctChangeReasonOnPause()
[all …]
/external/drrickorang/LoopbackApp/app/src/main/cpp/lb2/
Dsound_system_aaudio.cpp203 class Player { class
207 Player() {} in Player() function in __anone6a372e40111::Player
208 Player(const Player&) = delete;
209 Player& operator=(const Player&) = delete;
210 ~Player() { shutdown(); } in ~Player()
244 std::unique_ptr<StreamBuilder> Player::createBuilder(PerformanceMode performanceMode) { in createBuilder()
252 builder->setCallbacks(&Player::aaudioDataCallback, &Player::aaudioErrorCallback, this); in createBuilder()
257 bool Player::probeDefaults( in probeDefaults()
269 bool Player::init(const TestContext *testCtx, in init()
286 void Player::shutdown() { in shutdown()
[all …]
/external/exoplayer/tree/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/
DPlayerManager.java24 import com.google.android.exoplayer2.Player;
25 import com.google.android.exoplayer2.Player.DiscontinuityReason;
26 import com.google.android.exoplayer2.Player.EventListener;
27 import com.google.android.exoplayer2.Player.TimelineChangeReason;
75 private Player currentPlayer;
230 public void onPlaybackStateChanged(@Player.State int playbackState) { in onPlaybackStateChanged()
281 playbackState != Player.STATE_IDLE && playbackState != Player.STATE_ENDED in updateCurrentItemIndex()
286 private void setCurrentPlayer(Player currentPlayer) { in setCurrentPlayer()
305 Player previousPlayer = this.currentPlayer; in setCurrentPlayer()
309 if (playbackState != Player.STATE_ENDED) { in setCurrentPlayer()

12345