Lines Matching refs:trackIndex

784           int32_t trackIndex;  in onMessageReceived()  local
785 CHECK(msg->findInt32("trackIndex", &trackIndex)); in onMessageReceived()
786 const sp<MediaSource> source = mSources.itemAt(trackIndex); in onMessageReceived()
810 track->mIndex = trackIndex; in onMessageReceived()
1077 sp<AMessage> NuPlayer::GenericSource::getTrackInfo(size_t trackIndex) const { in getTrackInfo()
1079 if (trackIndex >= trackCount) { in getTrackInfo()
1084 sp<MetaData> meta = mSources.itemAt(trackIndex)->getFormat(); in getTrackInfo()
1178 status_t NuPlayer::GenericSource::selectTrack(size_t trackIndex, bool select, int64_t timeUs) { in selectTrack() argument
1179 ALOGV("%s track: %zu", select ? "select" : "deselect", trackIndex); in selectTrack()
1181 msg->setInt32("trackIndex", trackIndex); in selectTrack()
1195 int32_t trackIndex, select; in onSelectTrack() local
1197 CHECK(msg->findInt32("trackIndex", &trackIndex)); in onSelectTrack()
1202 status_t err = doSelectTrack(trackIndex, select, timeUs); in onSelectTrack()
1210 status_t NuPlayer::GenericSource::doSelectTrack(size_t trackIndex, bool select, int64_t timeUs) { in doSelectTrack() argument
1211 if (trackIndex >= mSources.size()) { in doSelectTrack()
1217 if (mSubtitleTrack.mSource != NULL && trackIndex == mSubtitleTrack.mIndex) { in doSelectTrack()
1220 } else if (mTimedTextTrack.mSource != NULL && trackIndex == mTimedTextTrack.mIndex) { in doSelectTrack()
1233 const sp<MediaSource> source = mSources.itemAt(trackIndex); in doSelectTrack()
1240 if (track->mSource != NULL && track->mIndex == trackIndex) { in doSelectTrack()
1243 track->mIndex = trackIndex; in doSelectTrack()
1247 track->mSource = mSources.itemAt(trackIndex); in doSelectTrack()
1284 if (track->mSource != NULL && track->mIndex == trackIndex) { in doSelectTrack()
1289 msg->setInt32("trackIndex", trackIndex); in doSelectTrack()