Lines Matching refs:trackIndex
658 int32_t trackIndex; in onMessageReceived() local
659 CHECK(msg->findInt32("trackIndex", &trackIndex)); in onMessageReceived()
660 const sp<IMediaSource> source = mSources.itemAt(trackIndex); in onMessageReceived()
684 track->mIndex = trackIndex; in onMessageReceived()
958 sp<AMessage> NuPlayer::GenericSource::getTrackInfo(size_t trackIndex) const { in getTrackInfo()
961 if (trackIndex >= trackCount) { in getTrackInfo()
966 sp<MetaData> meta = mSources.itemAt(trackIndex)->getFormat(); in getTrackInfo()
968 ALOGE("no metadata for track %zu", trackIndex); in getTrackInfo()
1039 status_t NuPlayer::GenericSource::selectTrack(size_t trackIndex, bool select, int64_t timeUs) { in selectTrack() argument
1041 ALOGV("%s track: %zu", select ? "select" : "deselect", trackIndex); in selectTrack()
1043 if (trackIndex >= mSources.size()) { in selectTrack()
1049 if (mSubtitleTrack.mSource != NULL && trackIndex == mSubtitleTrack.mIndex) { in selectTrack()
1052 } else if (mTimedTextTrack.mSource != NULL && trackIndex == mTimedTextTrack.mIndex) { in selectTrack()
1065 const sp<IMediaSource> source = mSources.itemAt(trackIndex); in selectTrack()
1072 if (track->mSource != NULL && track->mIndex == trackIndex) { in selectTrack()
1075 track->mIndex = trackIndex; in selectTrack()
1079 track->mSource = mSources.itemAt(trackIndex); in selectTrack()
1120 if (track->mSource != NULL && track->mIndex == trackIndex) { in selectTrack()
1125 msg->setInt32("trackIndex", trackIndex); in selectTrack()