/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/ |
D | MpegTsSampleSource.java | 96 public MediaFormat getFormat(int track) { in getFormat() argument 98 return mSampleExtractor.getTrackFormats().get(track); in getFormat() 102 public void enable(int track, long positionUs) { in enable() argument 104 Assertions.checkState(mTrackStates.get(track) == TRACK_STATE_DISABLED); in enable() 105 mTrackStates.set(track, TRACK_STATE_ENABLED); in enable() 106 mSampleExtractor.selectTrack(track); in enable() 111 public void disable(int track) { in disable() argument 113 Assertions.checkState(mTrackStates.get(track) != TRACK_STATE_DISABLED); in disable() 114 mSampleExtractor.deselectTrack(track); in disable() 115 mPendingDiscontinuities.set(track, false); in disable() [all …]
|
D | MpegTsSampleExtractor.java | 197 public void getTrackMediaFormat(int track, MediaFormatHolder outMediaFormatHolder) { in getTrackMediaFormat() argument 198 if (track != mCea708TextTrackIndex) { in getTrackMediaFormat() 199 mSampleExtractor.getTrackMediaFormat(track, outMediaFormatHolder); in getTrackMediaFormat() 204 public int readSample(int track, SampleHolder sampleHolder) { in readSample() argument 205 if (track == mCea708TextTrackIndex) { in readSample() 220 int result = mSampleExtractor.readSample(track, sampleHolder); in readSample() 224 mReachedEos.set(track, true); in readSample() 230 && track == mVideoTrackIndex in readSample()
|
D | ExoPlayerSampleExtractor.java | 367 private int fetchSample(int track, ConditionVariable conditionVariable) { in fetchSample() argument 370 int ret = mStreams[track].readData(dummyFormatHolder, mDecoderInputBuffer, false); in fetchSample() 381 Long lastExtractedPositionUs = mLastExtractedPositionUsMap.get(track); in fetchSample() 383 mLastExtractedPositionUsMap.put(track, mDecoderInputBuffer.timeUs); in fetchSample() 386 track, in fetchSample() 389 queueSample(track, conditionVariable); in fetchSample() 396 mTrackMetEos[track] = true; in fetchSample() 512 public void getTrackMediaFormat(int track, MediaFormatHolder outMediaFormatHolder) { in getTrackMediaFormat() argument 513 outMediaFormatHolder.format = mTrackFormats.get(track); in getTrackMediaFormat() 543 public int readSample(int track, SampleHolder sampleHolder) { in readSample() argument [all …]
|
D | FileSampleExtractor.java | 110 public void getTrackMediaFormat(int track, MediaFormatHolder outMediaFormatHolder) { in getTrackMediaFormat() argument 111 outMediaFormatHolder.format = mTrackFormats.get(track); in getTrackMediaFormat() 150 public int readSample(int track, SampleHolder sampleHolder) { in readSample() argument 151 return mSampleBuffer.readSample(track, sampleHolder); in readSample()
|
D | Cea708TextTrackRenderer.java | 101 protected void onEnabled(int track, long positionUs, boolean joining) { in onEnabled() argument 102 Assertions.checkArgument(mTrackIndex != -1 && track == 0); in onEnabled() 138 protected MediaFormat getFormat(int track) { in getFormat() argument 139 Assertions.checkArgument(mTrackIndex != -1 && track == 0); in getFormat()
|
D | SampleExtractor.java | 87 void getTrackMediaFormat(int track, MediaFormatHolder outMediaFormatHolder); in getTrackMediaFormat() argument 103 int readSample(int track, SampleHolder sampleHolder); in readSample() argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | VideoUtils.java | 92 for (Track track : tracks) { in startMuteUsingMp4Parser() 93 if (track.getHandler().equals("vide")) { in startMuteUsingMp4Parser() 94 movie.addTrack(track); in startMuteUsingMp4Parser() 247 for (Track track : tracks) { in trimUsingMp4Parser() 248 if (track.getSyncSamples() != null && track.getSyncSamples().length > 0) { in trimUsingMp4Parser() 259 startTime = correctTimeToSyncSample(track, startTime, false); in trimUsingMp4Parser() 260 endTime = correctTimeToSyncSample(track, endTime, true); in trimUsingMp4Parser() 265 for (Track track : tracks) { in trimUsingMp4Parser() 271 for (int i = 0; i < track.getDecodingTimeEntries().size(); i++) { in trimUsingMp4Parser() 272 TimeToSampleBox.Entry entry = track.getDecodingTimeEntries().get(i); in trimUsingMp4Parser() [all …]
|
/packages/apps/TV/src/com/android/tv/util/ |
D | TvTrackInfoUtils.java | 133 for (TvTrackInfo track : tracks) { 134 if (comparator.compare(track, best) > 0) { 135 best = track; 143 for (TvTrackInfo track : tracks) { 144 String multiAudioString = getMultiAudioString(context, track, false); 154 Context context, TvTrackInfo track, boolean showSampleRate) { 155 if (track.getType() != TvTrackInfo.TYPE_AUDIO) { 156 throw new IllegalArgumentException("Not an audio track: " + toString(track)); 159 if (!TextUtils.isEmpty(track.getLanguage())) { 160 language = new Locale(track.getLanguage()).getDisplayName(); [all …]
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
D | ClosedCaptionFragment.java | 128 private String getLabel(TvTrackInfo track, Integer trackIndex) { in getLabel() argument 129 if (track == null) { in getLabel() 131 } else if (track.getLanguage() != null) { in getLabel() 132 return new Locale(track.getLanguage()).getDisplayName(); in getLabel() 141 private ClosedCaptionOptionItem(TvTrackInfo track, Integer trackIndex) { in ClosedCaptionOptionItem() argument 142 super(getLabel(track, trackIndex)); in ClosedCaptionOptionItem() 143 if (track == null) { in ClosedCaptionOptionItem() 148 mTrackId = track.getId(); in ClosedCaptionOptionItem()
|
D | MultiAudioFragment.java | 57 for (final TvTrackInfo track : tracks) { in getItemList() 61 getActivity(), track, needToShowSampleRate), in getItemList() 62 track.getId()); in getItemList() 63 if (track.getId().equals(mSelectedTrackId)) { in getItemList() 66 mSelectedTrackId = mFocusedTrackId = track.getId(); in getItemList()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/ |
D | MpegTsSampleExtractor.java | 197 public void getTrackMediaFormat(int track, MediaFormatHolder outMediaFormatHolder) { in getTrackMediaFormat() argument 198 if (track != mCea708TextTrackIndex) { in getTrackMediaFormat() 199 mSampleExtractor.getTrackMediaFormat(track, outMediaFormatHolder); in getTrackMediaFormat() 204 public int readSample(int track, SampleHolder sampleHolder) { in readSample() argument 205 if (track == mCea708TextTrackIndex) { in readSample() 220 int result = mSampleExtractor.readSample(track, sampleHolder); in readSample() 224 mReachedEos.set(track, true); in readSample() 230 && track == mVideoTrackIndex in readSample()
|
D | ExoPlayerSampleExtractor.java | 367 private int fetchSample(int track, ConditionVariable conditionVariable) { in fetchSample() argument 370 int ret = mStreams[track].readData(dummyFormatHolder, mDecoderInputBuffer, false); in fetchSample() 381 Long lastExtractedPositionUs = mLastExtractedPositionUsMap.get(track); in fetchSample() 383 mLastExtractedPositionUsMap.put(track, mDecoderInputBuffer.timeUs); in fetchSample() 386 track, in fetchSample() 389 queueSample(track, conditionVariable); in fetchSample() 396 mTrackMetEos[track] = true; in fetchSample() 512 public void getTrackMediaFormat(int track, MediaFormatHolder outMediaFormatHolder) { in getTrackMediaFormat() argument 513 outMediaFormatHolder.format = mTrackFormats.get(track); in getTrackMediaFormat() 543 public int readSample(int track, SampleHolder sampleHolder) { in readSample() argument [all …]
|
D | FileSampleExtractor.java | 110 public void getTrackMediaFormat(int track, MediaFormatHolder outMediaFormatHolder) { in getTrackMediaFormat() argument 111 outMediaFormatHolder.format = mTrackFormats.get(track); in getTrackMediaFormat() 150 public int readSample(int track, SampleHolder sampleHolder) { in readSample() argument 151 return mSampleBuffer.readSample(track, sampleHolder); in readSample()
|
D | SampleExtractor.java | 87 void getTrackMediaFormat(int track, MediaFormatHolder outMediaFormatHolder); in getTrackMediaFormat() argument 103 int readSample(int track, SampleHolder sampleHolder); in readSample() argument
|
/packages/apps/TV/src/com/android/tv/ |
D | TvOptionsManager.java | 89 public void onClosedCaptionsChanged(TvTrackInfo track, int trackIndex) { in onClosedCaptionsChanged() argument 91 (track == null) in onClosedCaptionsChanged() 93 : (track.getLanguage() != null) in onClosedCaptionsChanged() 94 ? track.getLanguage() in onClosedCaptionsChanged()
|
D | MainActivity.java | 1938 for (TvTrackInfo track : tracks) { 1939 if (trackId.equals(track.getId())) { 1940 bestTrack = track; 2560 TvTrackInfo track = tracks.get(i); 2561 if (Utils.isEqualLanguage(track.getLanguage(), selectedLanguage)) { 2562 if (track.getId().equals(selectedTrackId)) { 2575 if (Utils.isEqualLanguage(track.getLanguage(), preferredLanguages.get(j))) { 2591 private void selectTrack(int type, TvTrackInfo track, int trackIndex) { 2592 mTvView.selectTrack(type, track == null ? null : track.getId()); 2595 track == null [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/ |
D | MpegTsDefaultAudioTrackRenderer.java | 191 protected MediaFormat getFormat(int track) { in getFormat() argument 192 Assertions.checkArgument(track >= 0 && track < mTracksIndex.size()); in getFormat() 193 return mSource.getFormat(mTracksIndex.get(track)); in getFormat() 197 protected void onEnabled(int track, long positionUs, boolean joining) { in onEnabled() argument 198 Assertions.checkArgument(track >= 0 && track < mTracksIndex.size()); in onEnabled() 199 mTrackIndex = mTracksIndex.get(track); in onEnabled()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/ |
D | RecordingSampleBuffer.java | 245 public int readSample(int track, DecoderInputBuffer outSample) { in readSample() argument 246 Assertions.checkState(mTrackSelected[track]); in readSample() 247 maybeReadSample(mReadSampleQueues.get(track), track); in readSample() local 248 int result = mReadSampleQueues.get(track).dequeueSample(outSample); in readSample()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerStateMachine.java | 501 AvrcpItem track = (AvrcpItem) msg.obj; in processMessage() local 503 downloadImageIfNeeded(track); in processMessage() 504 mAddressedPlayer.updateCurrentTrack(track); in processMessage() 506 BluetoothMediaBrowserService.trackChanged(track); in processMessage() 761 for (AvrcpItem track : folderList) { in processMessage() 763 downloadImageIfNeeded(track); in processMessage() 765 track.setCoverArtUuid(null); in processMessage() 1040 private void downloadImageIfNeeded(AvrcpItem track) { in downloadImageIfNeeded() argument 1042 String uuid = track.getCoverArtUuid(); in downloadImageIfNeeded() 1047 track.setCoverArtLocation(imageUri); in downloadImageIfNeeded()
|
D | BluetoothMediaBrowserService.java | 193 static synchronized void trackChanged(AvrcpItem track) { in trackChanged() argument 194 if (DBG) Log.d(TAG, "trackChanged setMetadata=" + track); in trackChanged() 196 if (track != null) { in trackChanged() 197 sBluetoothMediaBrowserService.mSession.setMetadata(track.toMediaMetadata()); in trackChanged()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/ |
D | RecordingSampleBuffer.java | 245 public int readSample(int track, SampleHolder outSample) { in readSample() argument 246 Assertions.checkState(mTrackSelected[track]); in readSample() 247 maybeReadSample(mReadSampleQueues.get(track), track); in readSample() local 248 int result = mReadSampleQueues.get(track).dequeueSample(outSample); in readSample()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlaybackSideFragment.java | 130 private String getTrackLabel(TvTrackInfo track, int trackIndex) { 131 if (track.getLanguage() != null) { 132 return new Locale(track.getLanguage()).getDisplayName(); 134 return track.getType() == TvTrackInfo.TYPE_SUBTITLE
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
D | StatePanel.java | 35 private StatePanelTrack track; field in StatePanel 50 track = (StatePanelTrack) panel; in onCreateView() 51 track.setAdapter(MasterImage.getImage().getState()); in onCreateView()
|
/packages/apps/TV/tuner/proto/ |
D | track.proto | 24 // Represents a AC3 audio track. 32 // Enum describing the types of a audio track. 42 // Represents a CEA-708 caption track.
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TunableTvView.java | 253 for (TvTrackInfo track : tracks) { 254 if (track.getType() == TvTrackInfo.TYPE_SUBTITLE) { 281 for (TvTrackInfo track : tracks) { 282 if (track.getId().equals(trackId)) { 284 mVideoWidth = track.getVideoWidth(); 285 mVideoHeight = track.getVideoHeight(); 289 mVideoFrameRate = track.getVideoFrameRate(); 294 track.getVideoPixelAspectRatio(); 301 mAudioChannelCount = track.getAudioChannelCount();
|