/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | DefaultControlDispatcher.java | 53 public boolean dispatchSetPlayWhenReady(Player player, boolean playWhenReady) { in dispatchSetPlayWhenReady() argument 54 player.setPlayWhenReady(playWhenReady); in dispatchSetPlayWhenReady() 59 public boolean dispatchSeekTo(Player player, int windowIndex, long positionMs) { in dispatchSeekTo() argument 60 player.seekTo(windowIndex, positionMs); in dispatchSeekTo() 65 public boolean dispatchPrevious(Player player) { in dispatchPrevious() argument 66 Timeline timeline = player.getCurrentTimeline(); in dispatchPrevious() 67 if (timeline.isEmpty() || player.isPlayingAd()) { in dispatchPrevious() 70 int windowIndex = player.getCurrentWindowIndex(); in dispatchPrevious() 72 int previousWindowIndex = player.getPreviousWindowIndex(); in dispatchPrevious() 74 && (player.getCurrentPosition() <= MAX_POSITION_FOR_SEEK_TO_PREVIOUS in dispatchPrevious() [all …]
|
D | ControlDispatcher.java | 36 boolean dispatchSetPlayWhenReady(Player player, boolean playWhenReady); in dispatchSetPlayWhenReady() argument 47 boolean dispatchSeekTo(Player player, int windowIndex, long positionMs); in dispatchSeekTo() argument 55 boolean dispatchPrevious(Player player); in dispatchPrevious() argument 63 boolean dispatchNext(Player player); in dispatchNext() argument 71 boolean dispatchRewind(Player player); in dispatchRewind() argument 79 boolean dispatchFastForward(Player player); in dispatchFastForward() argument 88 boolean dispatchSetRepeatMode(Player player, @RepeatMode int repeatMode); in dispatchSetRepeatMode() argument 97 boolean dispatchSetShuffleModeEnabled(Player player, boolean shuffleModeEnabled); in dispatchSetShuffleModeEnabled() argument 106 boolean dispatchStop(Player player, boolean reset); in dispatchStop() argument
|
D | SimpleExoPlayer.java | 342 private final ExoPlayerImpl player; field in SimpleExoPlayer 402 player.experimental_throwWhenStuckBuffering(); in SimpleExoPlayer() 460 player = in SimpleExoPlayer() 471 analyticsCollector.setPlayer(player); in SimpleExoPlayer() 472 player.addListener(analyticsCollector); in SimpleExoPlayer() 473 player.addListener(componentListener); in SimpleExoPlayer() 533 player in setVideoScalingMode() 705 player in setAudioAttributes() 740 player in setAudioSessionId() 762 player in setAuxEffectInfo() [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/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | Action.java | 74 SimpleExoPlayer player, in doActionAndScheduleNext() argument 82 doActionAndScheduleNextImpl(player, trackSelector, surface, handler, nextAction); in doActionAndScheduleNext() 98 SimpleExoPlayer player, in doActionAndScheduleNextImpl() argument 103 doActionImpl(player, trackSelector, surface); in doActionAndScheduleNextImpl() 105 nextAction.schedule(player, trackSelector, surface, handler); in doActionAndScheduleNextImpl() 119 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface); in doActionImpl() argument 159 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument 162 player.seekTo(positionMs); in doActionImpl() 164 player.seekTo(windowIndex, positionMs); in doActionImpl() 197 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument [all …]
|
D | TestExoPlayer.java | 311 public static void runUntilPlaybackState(Player player, @Player.State int expectedState) { in runUntilPlaybackState() argument 312 verifyMainTestThread(player); in runUntilPlaybackState() 313 if (player.getPlaybackState() == expectedState) { in runUntilPlaybackState() 327 player.addListener(listener); in runUntilPlaybackState() 329 player.removeListener(listener); in runUntilPlaybackState() 337 public static void runUntilPlayWhenReady(Player player, boolean expectedPlayWhenReady) { in runUntilPlayWhenReady() argument 338 verifyMainTestThread(player); in runUntilPlayWhenReady() 339 if (player.getPlayWhenReady() == expectedPlayWhenReady) { in runUntilPlayWhenReady() 351 player.removeListener(this); in runUntilPlayWhenReady() 354 player.addListener(listener); in runUntilPlayWhenReady() [all …]
|
D | ExoHostedTest.java | 70 private @MonotonicNonNull SimpleExoPlayer player; field in ExoHostedTest 123 schedule.start(player, trackSelector, surface, actionHandler, /* callback= */ null); in setSchedule() 135 player = buildExoPlayer(host, surface, trackSelector); in onStart() 136 player.play(); in onStart() 137 player.addAnalyticsListener(this); in onStart() 138 player.addAnalyticsListener(new EventLogger(trackSelector, tag)); in onStart() 142 pendingSchedule.start(player, trackSelector, surface, actionHandler, /* callback= */ null); in onStart() 146 player.setMediaSource( in onStart() 149 player.prepare(); in onStart() 229 sourceDurationMs = player.getDuration(); in stopTest() [all …]
|
D | ActionSchedule.java | 99 SimpleExoPlayer player, in start() argument 105 rootNode.schedule(player, trackSelector, surface, mainHandler); in start() 613 @Nullable private SimpleExoPlayer player; field in ActionSchedule.PlayerTarget 626 SimpleExoPlayer player, int messageType, @Nullable Object message); in handleMessage() argument 629 /* package */ void setPlayer(SimpleExoPlayer player) { in setPlayer() argument 630 this.player = player; in setPlayer() 635 handleMessage(Assertions.checkStateNotNull(player), messageType, message); in handleMessage() 649 @Nullable private SimpleExoPlayer player; field in ActionSchedule.PlayerRunnable 652 public abstract void run(SimpleExoPlayer player); in run() argument 655 /* package */ void setPlayer(SimpleExoPlayer player) { in setPlayer() argument [all …]
|
/external/exoplayer/tree/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/ |
D | TimelineQueueNavigator.java | 88 public abstract MediaDescriptionCompat getMediaDescription(Player player, int windowIndex); in getMediaDescription() argument 91 public long getSupportedQueueNavigatorActions(Player player) { in getSupportedQueueNavigatorActions() argument 95 Timeline timeline = player.getCurrentTimeline(); in getSupportedQueueNavigatorActions() 96 if (!timeline.isEmpty() && !player.isPlayingAd()) { in getSupportedQueueNavigatorActions() 97 timeline.getWindow(player.getCurrentWindowIndex(), window); in getSupportedQueueNavigatorActions() 99 enablePrevious = window.isSeekable || !window.isDynamic || player.hasPrevious(); in getSupportedQueueNavigatorActions() 100 enableNext = window.isDynamic || player.hasNext(); in getSupportedQueueNavigatorActions() 117 public final void onTimelineChanged(Player player) { in onTimelineChanged() argument 118 publishFloatingQueueWindow(player); in onTimelineChanged() 122 public final void onCurrentWindowIndexChanged(Player player) { in onCurrentWindowIndexChanged() argument [all …]
|
D | MediaSessionConnector.java | 167 Player player, in onCommand() argument 251 long getSupportedQueueNavigatorActions(Player player); in getSupportedQueueNavigatorActions() argument 257 void onTimelineChanged(Player player); in onTimelineChanged() argument 263 void onCurrentWindowIndexChanged(Player player); in onCurrentWindowIndexChanged() argument 275 long getActiveQueueItemId(@Nullable Player player); in getActiveQueueItemId() argument 283 void onSkipToPrevious(Player player, ControlDispatcher controlDispatcher); in onSkipToPrevious() argument 291 void onSkipToQueueItem(Player player, ControlDispatcher controlDispatcher, long id); in onSkipToQueueItem() argument 299 void onSkipToNext(Player player, ControlDispatcher controlDispatcher); in onSkipToNext() argument 308 void onAddQueueItem(Player player, MediaDescriptionCompat description); in onAddQueueItem() argument 313 void onAddQueueItem(Player player, MediaDescriptionCompat description, int index); in onAddQueueItem() argument [all …]
|
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/ |
D | PlayerControlView.java | 296 @Nullable private Player player; field in PlayerControlView 482 return player; in getPlayer() 492 public void setPlayer(@Nullable Player player) { in setPlayer() argument 495 player == null || player.getApplicationLooper() == Looper.getMainLooper()); in setPlayer() 496 if (this.player == player) { in setPlayer() 499 if (this.player != null) { in setPlayer() 500 this.player.removeListener(componentListener); in setPlayer() 502 this.player = player; in setPlayer() 503 if (player != null) { in setPlayer() 504 player.addListener(componentListener); in setPlayer() [all …]
|
D | PlayerNotificationManager.java | 142 CharSequence getCurrentContentTitle(Player player); in getCurrentContentTitle() argument 152 PendingIntent createCurrentContentIntent(Player player); in createCurrentContentIntent() argument 162 CharSequence getCurrentContentText(Player player); in getCurrentContentText() argument 172 default CharSequence getCurrentSubText(Player player) { in getCurrentSubText() argument 190 Bitmap getCurrentLargeIcon(Player player, BitmapCallback callback); in getCurrentLargeIcon() argument 220 List<String> getCustomActions(Player player); in getCustomActions() argument 229 void onCustomAction(Player player, String action, Intent intent); in onCustomAction() argument 376 @Nullable private Player player; field in PlayerNotificationManager 660 public final void setPlayer(@Nullable Player player) { in setPlayer() argument 663 player == null || player.getApplicationLooper() == Looper.getMainLooper()); in setPlayer() [all …]
|
D | DebugTextViewHelper.java | 36 private final SimpleExoPlayer player; field in DebugTextViewHelper 47 public DebugTextViewHelper(SimpleExoPlayer player, TextView textView) { in DebugTextViewHelper() argument 48 Assertions.checkArgument(player.getApplicationLooper() == Looper.getMainLooper()); in DebugTextViewHelper() 49 this.player = player; in DebugTextViewHelper() 62 player.addListener(this); in start() 75 player.removeListener(this); in stop() 121 switch (player.getPlaybackState()) { in getPlayerStateString() 140 player.getPlayWhenReady(), playbackStateString, player.getCurrentWindowIndex()); in getPlayerStateString() 145 Format format = player.getVideoFormat(); in getVideoString() 146 DecoderCounters decoderCounters = player.getVideoDecoderCounters(); in getVideoString() [all …]
|
D | PlayerView.java | 308 @Nullable private Player player; field in PlayerView 520 Player player, @Nullable PlayerView oldPlayerView, @Nullable PlayerView newPlayerView) { in switchTargetView() argument 529 newPlayerView.setPlayer(player); in switchTargetView() 539 return player; in getPlayer() 555 public void setPlayer(@Nullable Player player) { in setPlayer() argument 558 player == null || player.getApplicationLooper() == Looper.getMainLooper()); in setPlayer() 559 if (this.player == player) { in setPlayer() 562 @Nullable Player oldPlayer = this.player; in setPlayer() 583 this.player = player; in setPlayer() 585 controller.setPlayer(player); in setPlayer() [all …]
|
/external/adhd/cras/src/server/ |
D | cras_bt_player.c | 38 struct cras_bt_player *player) in cras_bt_add_player() argument 54 &player->object_path); in cras_bt_add_player() 64 DBUS_TYPE_STRING_AS_STRING, &player->playback_status); in cras_bt_add_player() 66 DBUS_TYPE_STRING_AS_STRING, &player->identity); in cras_bt_add_player() 68 DBUS_TYPE_STRING_AS_STRING, &player->loop_status); in cras_bt_add_player() 70 DBUS_TYPE_INT64_AS_STRING, &player->position); in cras_bt_add_player() 72 DBUS_TYPE_BOOLEAN_AS_STRING, &player->shuffle); in cras_bt_add_player() 74 DBUS_TYPE_BOOLEAN_AS_STRING, &player->can_go_next); in cras_bt_add_player() 76 DBUS_TYPE_BOOLEAN_AS_STRING, &player->can_go_prev); in cras_bt_add_player() 78 DBUS_TYPE_BOOLEAN_AS_STRING, &player->can_play); in cras_bt_add_player() [all …]
|
/external/exoplayer/tree/extensions/leanback/src/main/java/com/google/android/exoplayer2/ext/leanback/ |
D | LeanbackPlayerAdapter.java | 50 private final Player player; field in LeanbackPlayerAdapter 71 public LeanbackPlayerAdapter(Context context, Player player, final int updatePeriodMs) { in LeanbackPlayerAdapter() argument 73 this.player = player; in LeanbackPlayerAdapter() 119 player.addListener(componentListener); in onAttachedToHost() 120 Player.VideoComponent videoComponent = player.getVideoComponent(); in onAttachedToHost() 128 player.removeListener(componentListener); in onDetachedFromHost() 129 Player.VideoComponent videoComponent = player.getVideoComponent(); in onDetachedFromHost() 154 int playbackState = player.getPlaybackState(); in isPlaying() 156 && player.getPlayWhenReady(); in isPlaying() 161 long durationMs = player.getDuration(); in getDuration() [all …]
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/ |
D | ExoPlayerTest.java | 555 public void run(SimpleExoPlayer player) { in illegalSeekPositionDoesThrow() 557 player.seekTo(/* windowIndex= */ 100, /* positionMs= */ 0); in illegalSeekPositionDoesThrow() 983 public void run(SimpleExoPlayer player) { in seekBeforePreparationCompletes_seeksToCorrectPosition() 984 positionWhenReady.set(player.getCurrentPosition()); in seekBeforePreparationCompletes_seeksToCorrectPosition() 1013 public void run(SimpleExoPlayer player) { in stopDoesNotResetPosition() 1014 positionHolder[0] = player.getCurrentPosition(); in stopDoesNotResetPosition() 1047 public void run(SimpleExoPlayer player) { in stopWithoutResetDoesNotResetPosition() 1048 positionHolder[0] = player.getCurrentPosition(); in stopWithoutResetDoesNotResetPosition() 1081 public void run(SimpleExoPlayer player) { in stopWithResetDoesResetPosition() 1082 positionHolder[0] = player.getCurrentPosition(); in stopWithResetDoesResetPosition() [all …]
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | HitPlayerComponent.java | 50 GameObject player = manager.getPlayer(); in update() local 51 if (player != null && player.life > 0) { in update() 52 mPlayerPosition.set(player.getCenteredPositionX(), player.getCenteredPositionY()); in update() 56 HitReactionComponent playerHitReact = player.findByClass(HitReactionComponent.class); in update() 60 boolean accepted = mHitReact.receivedHit(parentObject, player, mHitType); in update() 61 playerHitReact.hitVictim(player, parentObject, mHitType, accepted); in update() 64 boolean accepted = playerHitReact.receivedHit(player, parentObject, mHitType); in update() 65 mHitReact.hitVictim(parentObject, player, mHitType, accepted); in update()
|
D | PatrolComponent.java | 79 GameObject player = null; in update() local 81 player = manager.getPlayer(); in update() 85 updateAttack(player, parentObject); in update() 109 if (mTurnToFacePlayer && player != null && player.life > 0) { in update() 110 final float horizontalDelta = player.getCenteredPositionX() in update() 113 final float closestDistance = player.width / 2.0f; in update() 201 private void updateAttack(GameObject player, GameObject parentObject) { in updateAttack() argument 218 if (mAttackAtDistance > 0 && player != null && player.life > 0 in updateAttack() 221 if (Utils.sign(player.getPosition().x - parentObject.getPosition().x) in updateAttack() 225 mWorkingVector2.set(player.getPosition()); in updateAttack() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/ |
D | AnalyticsCollector.java | 78 private @MonotonicNonNull Player player; field in AnalyticsCollector 117 public void setPlayer(Player player) { in setPlayer() argument 119 this.player == null || mediaPeriodQueueTracker.mediaPeriodInfoQueue.isEmpty()); in setPlayer() 120 this.player = Assertions.checkNotNull(player); in setPlayer() 329 windowIndex, mediaPeriodId, Assertions.checkNotNull(player)); in onMediaPeriodCreated() 340 mediaPeriodId, Assertions.checkNotNull(player))) { in onMediaPeriodReleased() 432 mediaPeriodQueueTracker.onTimelineChanged(timeline, Assertions.checkNotNull(player)); in onTimelineChanged() 528 mediaPeriodQueueTracker.onPositionDiscontinuity(Assertions.checkNotNull(player)); in onPositionDiscontinuity() 644 timeline.equals(player.getCurrentTimeline()) in generateEventTime() 645 && windowIndex == player.getCurrentWindowIndex(); in generateEventTime() [all …]
|
/external/exoplayer/tree/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/ |
D | MainActivity.java | 66 @Nullable private SimpleExoPlayer player; field in MainActivity 104 if (Util.SDK_INT <= 23 || player == null) { in onResume() 177 SimpleExoPlayer player = new SimpleExoPlayer.Builder(getApplicationContext()).build(); in initializePlayer() local 178 player.setRepeatMode(Player.REPEAT_MODE_ALL); in initializePlayer() 179 player.setMediaSource(mediaSource); in initializePlayer() 180 player.prepare(); in initializePlayer() 181 player.play(); in initializePlayer() 185 Assertions.checkNotNull(player.getVideoComponent())); in initializePlayer() 186 Assertions.checkNotNull(playerView).setPlayer(player); in initializePlayer() 187 player.addAnalyticsListener(new EventLogger(/* trackSelector= */ null)); in initializePlayer() [all …]
|
/external/skia/experimental/wasm-skp-debugger/tests/ |
D | mskp_playback.spec.js | 32 const player = Debugger.SkpFilePlayer(fileContents); 33 const bounds = player.getBounds(); 40 const numFrames = player.getFrameCount(); 43 let cmd = JSON.parse(player.jsonCommandList(surface)); 47 player.drawTo(surface, cmd.commands.length); 51 player.changeFrame(1); 52 cmd = JSON.parse(player.jsonCommandList(surface)); 55 player.drawTo(surface, 100);
|
/external/exoplayer/tree/demos/main/src/main/java/com/google/android/exoplayer2/demo/ |
D | PlayerActivity.java | 95 private SimpleExoPlayer player; field in PlayerActivity 191 if (Util.SDK_INT <= 23 || player == null) { in onResume() 283 player.prepare(); in preparePlayback() 296 if (player == null) { in initializePlayer() 325 player = in initializePlayer() 332 player.addListener(new PlayerEventListener()); in initializePlayer() 333 player.setAudioAttributes(AudioAttributes.DEFAULT, /* handleAudioFocus= */ true); in initializePlayer() 334 player.setPlayWhenReady(startAutoPlay); in initializePlayer() 335 player.addAnalyticsListener(new EventLogger(trackSelector)); in initializePlayer() 336 playerView.setPlayer(player); in initializePlayer() [all …]
|
/external/exoplayer/tree/extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/ |
D | ImaAdsLoader.java | 46 import com.google.ads.interactivemedia.v3.api.player.ContentProgressProvider; 47 import com.google.ads.interactivemedia.v3.api.player.VideoAdPlayer; 48 import com.google.ads.interactivemedia.v3.api.player.VideoProgressUpdate; 330 @Nullable private Player player; field in ImaAdsLoader 556 public void setPlayer(@Nullable Player player) { in setPlayer() argument 559 player == null || player.getApplicationLooper() == Looper.getMainLooper()); in setPlayer() 560 nextPlayer = player; in setPlayer() 591 player = nextPlayer; in start() 592 if (player == null) { in start() 605 player.addListener(this); in start() [all …]
|
/external/exoplayer/tree/demos/surface/src/main/java/com/google/android/exoplayer2/surfacedemo/ |
D | MainActivity.java | 68 @Nullable private static SimpleExoPlayer player; field in MainActivity 142 if (isOwner && player == null) { in onResume() 149 playerControlView.setPlayer(player); in onResume() 172 if (player != null) { in onDestroy() 173 player.release(); in onDestroy() 174 player = null; in onDestroy() 221 SimpleExoPlayer player = new SimpleExoPlayer.Builder(getApplicationContext()).build(); in initializePlayer() local 222 player.setMediaSource(mediaSource); in initializePlayer() 223 player.prepare(); in initializePlayer() 224 player.play(); in initializePlayer() [all …]
|