/external/skia/tests/ |
D | SkVMDebugTracePlayerTest.cpp | 57 const SkSL::SkVMDebugTracePlayer& player) { in make_stack_string() argument 58 std::vector<int> callStack = player.getCallStack(); in make_stack_string() 100 const SkSL::SkVMDebugTracePlayer& player) { in make_local_vars_string() argument 101 int frame = player.getStackDepth() - 1; in make_local_vars_string() 102 return make_vars_string(trace, player.getLocalVariables(frame)); in make_local_vars_string() 106 const SkSL::SkVMDebugTracePlayer& player) { in make_global_vars_string() argument 107 return make_vars_string(trace, player.getGlobalVariables()); in make_global_vars_string() 111 SkSL::SkVMDebugTracePlayer player; in DEF_TEST() local 112 player.reset(nullptr); in DEF_TEST() 115 REPORTER_ASSERT(r, player.cursor() == 0); in DEF_TEST() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/robolectricutils/src/main/java/com/google/android/exoplayer2/robolectric/ |
D | TestPlayerRunHelper.java | 53 public static void runUntilPlaybackState(Player player, @Player.State int expectedState) in runUntilPlaybackState() argument 55 verifyMainTestThread(player); in runUntilPlaybackState() 57 () -> player.getPlaybackState() == expectedState || player.getPlayerError() != null); in runUntilPlaybackState() 58 if (player.getPlayerError() != null) { in runUntilPlaybackState() 59 throw new IllegalStateException(player.getPlayerError()); in runUntilPlaybackState() 74 public static void runUntilPlayWhenReady(Player player, boolean expectedPlayWhenReady) in runUntilPlayWhenReady() argument 76 verifyMainTestThread(player); in runUntilPlayWhenReady() 79 player.getPlayWhenReady() == expectedPlayWhenReady || player.getPlayerError() != null); in runUntilPlayWhenReady() 80 if (player.getPlayerError() != null) { in runUntilPlayWhenReady() 81 throw new IllegalStateException(player.getPlayerError()); in runUntilPlayWhenReady() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/robolectricutils/src/main/java/com/google/android/exoplayer2/robolectric/ |
D | TestPlayerRunHelper.java | 53 public static void runUntilPlaybackState(Player player, @Player.State int expectedState) in runUntilPlaybackState() argument 55 verifyMainTestThread(player); in runUntilPlaybackState() 57 () -> player.getPlaybackState() == expectedState || player.getPlayerError() != null); in runUntilPlaybackState() 58 if (player.getPlayerError() != null) { in runUntilPlaybackState() 59 throw new IllegalStateException(player.getPlayerError()); in runUntilPlaybackState() 74 public static void runUntilPlayWhenReady(Player player, boolean expectedPlayWhenReady) in runUntilPlayWhenReady() argument 76 verifyMainTestThread(player); in runUntilPlayWhenReady() 79 player.getPlayWhenReady() == expectedPlayWhenReady || player.getPlayerError() != null); in runUntilPlayWhenReady() 80 if (player.getPlayerError() != null) { in runUntilPlayWhenReady() 81 throw new IllegalStateException(player.getPlayerError()); in runUntilPlayWhenReady() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/main/java/com/google/android/exoplayer2/ |
D | ForwardingPlayer.java | 39 private final Player player; field in ForwardingPlayer 42 public ForwardingPlayer(Player player) { in ForwardingPlayer() argument 43 this.player = player; in ForwardingPlayer() 48 return player.getApplicationLooper(); in getApplicationLooper() 53 player.addListener(new ForwardingListener(this, listener)); in addListener() 58 player.removeListener(new ForwardingListener(this, listener)); in removeListener() 63 player.setMediaItems(mediaItems); in setMediaItems() 68 player.setMediaItems(mediaItems, resetPosition); in setMediaItems() 73 player.setMediaItems(mediaItems, startIndex, startPositionMs); in setMediaItems() 78 player.setMediaItem(mediaItem); in setMediaItem() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/main/java/com/google/android/exoplayer2/ |
D | ForwardingPlayer.java | 37 private final Player player; field in ForwardingPlayer 40 public ForwardingPlayer(Player player) { in ForwardingPlayer() argument 41 this.player = player; in ForwardingPlayer() 47 return player.getApplicationLooper(); in getApplicationLooper() 53 player.addListener(new ForwardingListener(this, listener)); in addListener() 59 player.removeListener(new ForwardingListener(this, listener)); in removeListener() 65 player.setMediaItems(mediaItems); in setMediaItems() 71 player.setMediaItems(mediaItems, resetPosition); in setMediaItems() 77 player.setMediaItems(mediaItems, startIndex, startPositionMs); in setMediaItems() 83 player.setMediaItem(mediaItem); in setMediaItem() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/ |
D | SimpleExoPlayer.java | 356 private final ExoPlayerImpl player; field in SimpleExoPlayer 401 player = new ExoPlayerImpl(builder, /* wrappingPlayer= */ this); in SimpleExoPlayer() 410 player.experimentalSetOffloadSchedulingEnabled(offloadSchedulingEnabled); in experimentalSetOffloadSchedulingEnabled() 416 return player.experimentalIsSleepingForOffload(); in experimentalIsSleepingForOffload() 446 player.setVideoScalingMode(videoScalingMode); in setVideoScalingMode() 452 return player.getVideoScalingMode(); in getVideoScalingMode() 459 player.setVideoChangeFrameRateStrategy(videoChangeFrameRateStrategy); in setVideoChangeFrameRateStrategy() 465 return player.getVideoChangeFrameRateStrategy(); in getVideoChangeFrameRateStrategy() 471 return player.getVideoSize(); in getVideoSize() 477 player.clearVideoSurface(); in clearVideoSurface() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/test/java/com/google/android/exoplayer2/analytics/ |
D | PlaybackStatsListenerTest.java | 52 private ExoPlayer player; field in PlaybackStatsListenerTest 56 player = new TestExoPlayerBuilder(ApplicationProvider.getApplicationContext()).build(); in setUp() 61 player.release(); in tearDown() 68 player.addAnalyticsListener(playbackStatsListener); in events_duringInitialIdleState_dontCreateNewPlaybackStats() 70 player.seekTo(/* positionMs= */ 1234); in events_duringInitialIdleState_dontCreateNewPlaybackStats() 71 runUntilPendingCommandsAreFullyHandled(player); in events_duringInitialIdleState_dontCreateNewPlaybackStats() 72 player.setPlaybackParameters(new PlaybackParameters(/* speed= */ 2f)); in events_duringInitialIdleState_dontCreateNewPlaybackStats() 73 runUntilPendingCommandsAreFullyHandled(player); in events_duringInitialIdleState_dontCreateNewPlaybackStats() 74 player.play(); in events_duringInitialIdleState_dontCreateNewPlaybackStats() 75 runUntilPendingCommandsAreFullyHandled(player); in events_duringInitialIdleState_dontCreateNewPlaybackStats() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/test/java/com/google/android/exoplayer2/analytics/ |
D | PlaybackStatsListenerTest.java | 52 private ExoPlayer player; field in PlaybackStatsListenerTest 56 player = new TestExoPlayerBuilder(ApplicationProvider.getApplicationContext()).build(); in setUp() 61 player.release(); in tearDown() 68 player.addAnalyticsListener(playbackStatsListener); in events_duringInitialIdleState_dontCreateNewPlaybackStats() 70 player.seekTo(/* positionMs= */ 1234); in events_duringInitialIdleState_dontCreateNewPlaybackStats() 71 runUntilPendingCommandsAreFullyHandled(player); in events_duringInitialIdleState_dontCreateNewPlaybackStats() 72 player.setPlaybackParameters(new PlaybackParameters(/* speed= */ 2f)); in events_duringInitialIdleState_dontCreateNewPlaybackStats() 73 runUntilPendingCommandsAreFullyHandled(player); in events_duringInitialIdleState_dontCreateNewPlaybackStats() 74 player.play(); in events_duringInitialIdleState_dontCreateNewPlaybackStats() 75 runUntilPendingCommandsAreFullyHandled(player); in events_duringInitialIdleState_dontCreateNewPlaybackStats() [all …]
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/ |
D | MediaPlayerFacade.java | 100 private void putMp(String tag, MediaPlayer player, String url) { in putMp() argument 102 mPlayers.put(tag, player); in putMp() 108 MediaPlayer player = mPlayers.get(tag); in removeMp() local 109 if (player != null) { in removeMp() 110 player.stop(); in removeMp() 111 player.release(); in removeMp() 126 MediaPlayer player = getPlayer(tag); in mediaPlayOpen() local 127 player = MediaPlayer.create(mService, Uri.parse(url)); in mediaPlayOpen() 128 if (player != null) { in mediaPlayOpen() 129 putMp(tag, player, url); in mediaPlayOpen() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | Action.java | 77 ExoPlayer player, in doActionAndScheduleNext() argument 85 doActionAndScheduleNextImpl(player, trackSelector, surface, handler, nextAction); in doActionAndScheduleNext() 101 ExoPlayer player, in doActionAndScheduleNextImpl() argument 106 doActionImpl(player, trackSelector, surface); in doActionAndScheduleNextImpl() 108 nextAction.schedule(player, trackSelector, surface, handler); in doActionAndScheduleNextImpl() 122 ExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface); in doActionImpl() argument 163 ExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument 166 player.seekTo(positionMs); in doActionImpl() 168 player.seekTo(mediaItemIndex, positionMs); in doActionImpl() 201 ExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | Action.java | 77 ExoPlayer player, in doActionAndScheduleNext() argument 85 doActionAndScheduleNextImpl(player, trackSelector, surface, handler, nextAction); in doActionAndScheduleNext() 101 ExoPlayer player, in doActionAndScheduleNextImpl() argument 106 doActionImpl(player, trackSelector, surface); in doActionAndScheduleNextImpl() 108 nextAction.schedule(player, trackSelector, surface, handler); in doActionAndScheduleNextImpl() 122 ExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface); in doActionImpl() argument 163 ExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument 166 player.seekTo(positionMs); in doActionImpl() 168 player.seekTo(mediaItemIndex, positionMs); in doActionImpl() 201 ExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/test/java/com/google/android/exoplayer2/ |
D | ExoPlayerTest.java | 210 ExoPlayer player = new TestExoPlayerBuilder(context).setRenderers(renderer).build(); in playEmptyTimeline() local 212 player.addListener(mockListener); in playEmptyTimeline() 214 player.setMediaSource(new FakeMediaSource(timeline, ExoPlayerTestRunner.VIDEO_FORMAT)); in playEmptyTimeline() 215 player.prepare(); in playEmptyTimeline() 216 player.play(); in playEmptyTimeline() 217 runUntilPlaybackState(player, Player.STATE_ENDED); in playEmptyTimeline() 241 ExoPlayer player = new TestExoPlayerBuilder(context).setRenderers(renderer).build(); in playSinglePeriodTimeline() local 243 player.addListener(mockListener); in playSinglePeriodTimeline() 245 player.setMediaSource(new FakeMediaSource(timeline, ExoPlayerTestRunner.VIDEO_FORMAT)); in playSinglePeriodTimeline() 246 player.prepare(); in playSinglePeriodTimeline() [all …]
|
D | SimpleExoPlayerTest.java | 68 SimpleExoPlayer player = in onPlaylistMetadataChanged_calledWhenPlaylistMetadataSet() local 71 player.addListener(playerListener); in onPlaylistMetadataChanged_calledWhenPlaylistMetadataSet() 73 player.addAnalyticsListener(analyticsListener); in onPlaylistMetadataChanged_calledWhenPlaylistMetadataSet() 76 player.setPlaylistMetadata(mediaMetadata); in onPlaylistMetadataChanged_calledWhenPlaylistMetadataSet() 84 SimpleExoPlayer player = in release_triggersAllPendingEventsInAnalyticsListeners() local 92 player.addAnalyticsListener(listener); in release_triggersAllPendingEventsInAnalyticsListeners() 94 player.setMediaSource( in release_triggersAllPendingEventsInAnalyticsListeners() 96 player.prepare(); in release_triggersAllPendingEventsInAnalyticsListeners() 97 player.play(); in release_triggersAllPendingEventsInAnalyticsListeners() 98 runUntilPlaybackState(player, Player.STATE_READY); in release_triggersAllPendingEventsInAnalyticsListeners() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/test/java/com/google/android/exoplayer2/ |
D | ExoPlayerTest.java | 218 ExoPlayer player = new TestExoPlayerBuilder(context).setRenderers(renderer).build(); in playEmptyTimeline() local 220 player.addListener(mockListener); in playEmptyTimeline() 222 player.setMediaSource(new FakeMediaSource(timeline, ExoPlayerTestRunner.VIDEO_FORMAT)); in playEmptyTimeline() 223 player.prepare(); in playEmptyTimeline() 224 player.play(); in playEmptyTimeline() 225 runUntilPlaybackState(player, Player.STATE_ENDED); in playEmptyTimeline() 249 ExoPlayer player = new TestExoPlayerBuilder(context).setRenderers(renderer).build(); in playSinglePeriodTimeline() local 251 player.addListener(mockListener); in playSinglePeriodTimeline() 253 player.setMediaSource(new FakeMediaSource(timeline, ExoPlayerTestRunner.VIDEO_FORMAT)); in playSinglePeriodTimeline() 254 player.prepare(); in playSinglePeriodTimeline() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/media2/src/main/java/com/google/android/exoplayer2/ext/media2/ |
D | PlayerWrapper.java | 114 private final Player player; field in PlayerWrapper 137 public PlayerWrapper(Listener listener, Player player, MediaItemConverter mediaItemConverter) { in PlayerWrapper() argument 139 this.player = player; in PlayerWrapper() 143 player.addListener(componentListener); in PlayerWrapper() 145 handler = new Handler(player.getApplicationLooper()); in PlayerWrapper() 151 updatePlaylist(player.getCurrentTimeline()); in PlayerWrapper() 154 @Player.State int playbackState = player.getPlaybackState(); in PlayerWrapper() 182 player.setMediaItems(exoPlayerMediaItems, /* resetPosition= */ true); in setPlaylist() 194 player.addMediaItem(index, exoPlayerMediaItem); in addPlaylistItem() 199 if (player.getMediaItemCount() <= index) { in removePlaylistItem() [all …]
|
D | SessionPlayerConnector.java | 70 private final PlayerWrapper player; field in SessionPlayerConnector 92 public SessionPlayerConnector(Player player) { in SessionPlayerConnector() argument 93 this(player, new DefaultMediaItemConverter()); in SessionPlayerConnector() 102 public SessionPlayerConnector(Player player, MediaItemConverter mediaItemConverter) { in SessionPlayerConnector() argument 103 Assertions.checkNotNull(player); in SessionPlayerConnector() 107 taskHandler = new Handler(player.getApplicationLooper()); in SessionPlayerConnector() 110 this.player = new PlayerWrapper(new ExoPlayerWrapperListener(), player, mediaItemConverter); in SessionPlayerConnector() 111 playerCommandQueue = new PlayerCommandQueue(this.player, taskHandler); in SessionPlayerConnector() 117 PlayerCommandQueue.COMMAND_CODE_PLAYER_PLAY, /* command= */ player::play); in play() 123 PlayerCommandQueue.COMMAND_CODE_PLAYER_PAUSE, /* command= */ player::pause); in pause() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/media2/src/main/java/com/google/android/exoplayer2/ext/media2/ |
D | PlayerWrapper.java | 114 private final Player player; field in PlayerWrapper 137 public PlayerWrapper(Listener listener, Player player, MediaItemConverter mediaItemConverter) { in PlayerWrapper() argument 139 this.player = player; in PlayerWrapper() 143 player.addListener(componentListener); in PlayerWrapper() 145 handler = new Handler(player.getApplicationLooper()); in PlayerWrapper() 151 updatePlaylist(player.getCurrentTimeline()); in PlayerWrapper() 154 @Player.State int playbackState = player.getPlaybackState(); in PlayerWrapper() 182 player.setMediaItems(exoPlayerMediaItems, /* resetPosition= */ true); in setPlaylist() 194 player.addMediaItem(index, exoPlayerMediaItem); in addPlaylistItem() 199 if (player.getMediaItemCount() <= index) { in removePlaylistItem() [all …]
|
D | SessionPlayerConnector.java | 70 private final PlayerWrapper player; field in SessionPlayerConnector 92 public SessionPlayerConnector(Player player) { in SessionPlayerConnector() argument 93 this(player, new DefaultMediaItemConverter()); in SessionPlayerConnector() 102 public SessionPlayerConnector(Player player, MediaItemConverter mediaItemConverter) { in SessionPlayerConnector() argument 103 Assertions.checkNotNull(player); in SessionPlayerConnector() 107 taskHandler = new Handler(player.getApplicationLooper()); in SessionPlayerConnector() 110 this.player = new PlayerWrapper(new ExoPlayerWrapperListener(), player, mediaItemConverter); in SessionPlayerConnector() 111 playerCommandQueue = new PlayerCommandQueue(this.player, taskHandler); in SessionPlayerConnector() 117 PlayerCommandQueue.COMMAND_CODE_PLAYER_PLAY, /* command= */ player::play); in play() 123 PlayerCommandQueue.COMMAND_CODE_PLAYER_PAUSE, /* command= */ player::pause); in pause() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/ |
D | TimelineQueueNavigator.java | 92 public abstract MediaDescriptionCompat getMediaDescription(Player player, int windowIndex); in getMediaDescription() argument 95 public long getSupportedQueueNavigatorActions(Player player) { in getSupportedQueueNavigatorActions() argument 99 Timeline timeline = player.getCurrentTimeline(); in getSupportedQueueNavigatorActions() 100 if (!timeline.isEmpty() && !player.isPlayingAd()) { in getSupportedQueueNavigatorActions() 101 timeline.getWindow(player.getCurrentMediaItemIndex(), window); in getSupportedQueueNavigatorActions() 104 player.isCommandAvailable(COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM) in getSupportedQueueNavigatorActions() 106 || player.isCommandAvailable(COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM); in getSupportedQueueNavigatorActions() 109 || player.isCommandAvailable(COMMAND_SEEK_TO_NEXT_MEDIA_ITEM); in getSupportedQueueNavigatorActions() 126 public final void onTimelineChanged(Player player) { in onTimelineChanged() argument 127 publishFloatingQueueWindow(player); in onTimelineChanged() [all …]
|
D | MediaSessionConnector.java | 179 Player player, String command, @Nullable Bundle extras, @Nullable ResultReceiver cb); in onCommand() argument 259 long getSupportedQueueNavigatorActions(Player player); in getSupportedQueueNavigatorActions() argument 265 void onTimelineChanged(Player player); in onTimelineChanged() argument 272 default void onCurrentMediaItemIndexChanged(Player player) {} in onCurrentMediaItemIndexChanged() argument 284 long getActiveQueueItemId(@Nullable Player player); in getActiveQueueItemId() argument 290 void onSkipToPrevious(Player player); in onSkipToPrevious() argument 296 void onSkipToQueueItem(Player player, long id); in onSkipToQueueItem() argument 302 void onSkipToNext(Player player); in onSkipToNext() argument 311 void onAddQueueItem(Player player, MediaDescriptionCompat description); in onAddQueueItem() argument 316 void onAddQueueItem(Player player, MediaDescriptionCompat description, int index); in onAddQueueItem() argument [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/ |
D | TimelineQueueNavigator.java | 92 public abstract MediaDescriptionCompat getMediaDescription(Player player, int windowIndex); in getMediaDescription() argument 95 public long getSupportedQueueNavigatorActions(Player player) { in getSupportedQueueNavigatorActions() argument 99 Timeline timeline = player.getCurrentTimeline(); in getSupportedQueueNavigatorActions() 100 if (!timeline.isEmpty() && !player.isPlayingAd()) { in getSupportedQueueNavigatorActions() 101 timeline.getWindow(player.getCurrentMediaItemIndex(), window); in getSupportedQueueNavigatorActions() 104 player.isCommandAvailable(COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM) in getSupportedQueueNavigatorActions() 106 || player.isCommandAvailable(COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM); in getSupportedQueueNavigatorActions() 109 || player.isCommandAvailable(COMMAND_SEEK_TO_NEXT_MEDIA_ITEM); in getSupportedQueueNavigatorActions() 126 public final void onTimelineChanged(Player player) { in onTimelineChanged() argument 127 publishFloatingQueueWindow(player); in onTimelineChanged() [all …]
|
D | MediaSessionConnector.java | 179 Player player, String command, @Nullable Bundle extras, @Nullable ResultReceiver cb); in onCommand() argument 259 long getSupportedQueueNavigatorActions(Player player); in getSupportedQueueNavigatorActions() argument 265 void onTimelineChanged(Player player); in onTimelineChanged() argument 272 default void onCurrentMediaItemIndexChanged(Player player) {} in onCurrentMediaItemIndexChanged() argument 284 long getActiveQueueItemId(@Nullable Player player); in getActiveQueueItemId() argument 290 void onSkipToPrevious(Player player); in onSkipToPrevious() argument 296 void onSkipToQueueItem(Player player, long id); in onSkipToQueueItem() argument 302 void onSkipToNext(Player player); in onSkipToNext() argument 311 void onAddQueueItem(Player player, MediaDescriptionCompat description); in onAddQueueItem() argument 316 void onAddQueueItem(Player player, MediaDescriptionCompat description, int index); in onAddQueueItem() argument [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/ui/src/main/java/com/google/android/exoplayer2/ui/ |
D | PlayerControlView.java | 321 @Nullable private Player player; field in PlayerControlView 516 return player; in getPlayer() 526 public void setPlayer(@Nullable Player player) { in setPlayer() argument 529 player == null || player.getApplicationLooper() == Looper.getMainLooper()); in setPlayer() 530 if (this.player == player) { in setPlayer() 533 if (this.player != null) { in setPlayer() 534 this.player.removeListener(componentListener); in setPlayer() 536 this.player = player; in setPlayer() 537 if (player != null) { in setPlayer() 538 player.addListener(componentListener); in setPlayer() [all …]
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/ui/src/main/java/com/google/android/exoplayer2/ui/ |
D | PlayerControlView.java | 321 @Nullable private Player player; field in PlayerControlView 516 return player; in getPlayer() 526 public void setPlayer(@Nullable Player player) { in setPlayer() argument 529 player == null || player.getApplicationLooper() == Looper.getMainLooper()); in setPlayer() 530 if (this.player == player) { in setPlayer() 533 if (this.player != null) { in setPlayer() 534 this.player.removeListener(componentListener); in setPlayer() 536 this.player = player; in setPlayer() 537 if (player != null) { in setPlayer() 538 player.addListener(componentListener); in setPlayer() [all …]
|
D | PlayerNotificationManager.java | 183 CharSequence getCurrentContentTitle(Player player); in getCurrentContentTitle() argument 194 PendingIntent createCurrentContentIntent(Player player); in createCurrentContentIntent() argument 206 CharSequence getCurrentContentText(Player player); in getCurrentContentText() argument 218 default CharSequence getCurrentSubText(Player player) { in getCurrentSubText() argument 238 Bitmap getCurrentLargeIcon(Player player, BitmapCallback callback); in getCurrentLargeIcon() argument 268 List<String> getCustomActions(Player player); in getCustomActions() argument 277 void onCustomAction(Player player, String action, Intent intent); in onCustomAction() argument 688 @Nullable private Player player; field in PlayerNotificationManager 801 public final void setPlayer(@Nullable Player player) { in setPlayer() argument 803 checkArgument(player == null || player.getApplicationLooper() == Looper.getMainLooper()); in setPlayer() [all …]
|