Home
last modified time | relevance | path

Searched refs:track (Results 1 – 25 of 85) sorted by relevance

1234

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioTrackTest.java87 AudioTrack track = null; in constructorTestMultiSampleRate() local
89 track = new AudioTrack( in constructorTestMultiSampleRate()
102 if (track != null) { in constructorTestMultiSampleRate()
103 localRes = (track.getState() == _expected_stateForMode); in constructorTestMultiSampleRate()
104 track.release(); in constructorTestMultiSampleRate()
262 AudioTrack track = null; in testConstructorStreamType() local
268 track = new AudioTrack(STREAM_TYPES[i], in testConstructorStreamType()
278 if (track != null) { in testConstructorStreamType()
279 if (track.getState() != AudioTrack.STATE_INITIALIZED) { in testConstructorStreamType()
285 track.release(); in testConstructorStreamType()
[all …]
/frameworks/wilhelm/src/itf/
DIOutputMixExt.cpp45 static SLboolean track_check(Track *track) in track_check() argument
47 assert(NULL != track); in track_check()
50 CAudioPlayer *audioPlayer = track->mAudioPlayer; in track_check()
58 assert(audioPlayer->mTrack == track); in track_check()
60 SLuint32 framesMixed = track->mFramesMixed; in track_check()
62 track->mFramesMixed = 0; in track_check()
78 track->mReader = NULL; in track_check()
79 track->mAvail = 0; in track_check()
87 unsigned i = track - outputMix->mOutputMixExt.mTracks; in track_check()
90 track->mAudioPlayer = NULL; in track_check()
[all …]
DIMIDIMuteSolo.cpp126 static SLresult IMIDIMuteSolo_SetTrackMute(SLMIDIMuteSoloItf self, SLuint16 track, SLboolean mute) in IMIDIMuteSolo_SetTrackMute() argument
132 if (!(track < thiz->mTrackCount)) { in IMIDIMuteSolo_SetTrackMute()
135 SLuint32 mask = 1 << track; in IMIDIMuteSolo_SetTrackMute()
149 static SLresult IMIDIMuteSolo_GetTrackMute(SLMIDIMuteSoloItf self, SLuint16 track, SLboolean *pMute) in IMIDIMuteSolo_GetTrackMute() argument
155 if (!(track < thiz->mTrackCount) || NULL == pMute) { in IMIDIMuteSolo_GetTrackMute()
161 *pMute = (mask >> track) & 1; in IMIDIMuteSolo_GetTrackMute()
169 static SLresult IMIDIMuteSolo_SetTrackSolo(SLMIDIMuteSoloItf self, SLuint16 track, SLboolean solo) in IMIDIMuteSolo_SetTrackSolo() argument
175 if (!(track < thiz->mTrackCount)) { in IMIDIMuteSolo_SetTrackSolo()
178 SLuint32 mask = 1 << track; interface_lock_exclusive(thiz); in IMIDIMuteSolo_SetTrackSolo()
191 static SLresult IMIDIMuteSolo_GetTrackSolo(SLMIDIMuteSoloItf self, SLuint16 track, SLboolean *pSolo) in IMIDIMuteSolo_GetTrackSolo() argument
[all …]
/frameworks/av/services/audioflinger/
DThreads.cpp1541 ssize_t AudioFlinger::ThreadBase::ActiveTracks<T>::add(const sp<T> &track) { in add() argument
1542 ssize_t index = mActiveTracks.indexOf(track); in add()
1544 ALOGW("ActiveTracks<T>::add track %p already there", track.get()); in add()
1547 logTrack("add", track); in add()
1549 mLatestActiveTrack = track; in add()
1550 ++mBatteryCounter[track->uid()].second; in add()
1551 return mActiveTracks.add(track); in add()
1555 ssize_t AudioFlinger::ThreadBase::ActiveTracks<T>::remove(const sp<T> &track) { in remove() argument
1556 ssize_t index = mActiveTracks.remove(track); in remove()
1558 ALOGW("ActiveTracks<T>::remove nonexistent track %p", track.get()); in remove()
[all …]
/frameworks/base/media/java/android/media/
DSubtitleController.java153 public boolean selectTrack(SubtitleTrack track) { in selectTrack() argument
154 if (track != null && !mTracks.contains(track)) { in selectTrack()
158 processOnAnchor(mHandler.obtainMessage(WHAT_SELECT_TRACK, track)); in selectTrack()
162 private void doSelectTrack(SubtitleTrack track) { in doSelectTrack() argument
164 if (mSelectedTrack == track) { in doSelectTrack()
173 mSelectedTrack = track; in doSelectTrack()
184 mListener.onSubtitleTrackSelected(track); in doSelectTrack()
223 for (SubtitleTrack track: mTracks) { in getDefaultTrack()
224 MediaFormat format = track.getFormat(); in getDefaultTrack()
253 bestTrack = track; in getDefaultTrack()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dc4t64fx.c79 Word16 track, /* (i) track to use */
89 Word16 track, /* (i) track to use */
99 Word16 track, /* (i) track to use */
140 Word16 st, ix, iy, pos, index, track, nb_pulse, nbiter, j_temp; in ACELP_4t64_fx() local
738 track = (Word16) (i & 0x03); /* track = i % NB_TRACK (0..3) */ in ACELP_4t64_fx()
750 i = (Word16)((vo_L_mult(track, NPMAXPT) >> 1)); in ACELP_4t64_fx()
759 ALOGE("b/132647222, OOB access in ind array track=%d i=%d", track, i); in ACELP_4t64_fx()
768 for (track = 0; track < NB_TRACK; track++) in ACELP_4t64_fx()
770 _index[track] = (Word16)(quant_1p_N1(ind[k], 4)); in ACELP_4t64_fx()
775 for (track = 0; track < NB_TRACK; track++) in ACELP_4t64_fx()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dc8_31pf.cpp202 Word16 track; in build_code() local
241 track = i & 3; /* track = pos%4 */ in build_code()
259 if (pos_indx[track] < 0) in build_code()
261 pos_indx[track] = pos_index; in build_code()
262 sign_indx[track] = sign_index; in build_code()
266 if (((sign_index ^ sign_indx[track]) & 1) == 0) in build_code()
270 if (pos_indx[track] <= pos_index) in build_code()
272 pos_indx[track + NB_TRACK_MR102] = pos_index; in build_code()
276 pos_indx[track + NB_TRACK_MR102] = pos_indx[track]; in build_code()
278 pos_indx[track] = pos_index; in build_code()
[all …]
Dc2_11pf.cpp627 Word16 track; in build_code() local
677 track = i - tempWord; in build_code()
679 tempWord = track; in build_code()
683 track = 1; in build_code()
692 else if (track == 1) in build_code()
698 track = 0; in build_code()
708 track = 1; in build_code()
725 else if (track == 2) in build_code()
727 track = 1; in build_code()
743 else if (track == 3) in build_code()
[all …]
Dc4_17pf.cpp404 Word16 track; in search_4i40() local
432 for (track = 3; track < 5; track++) in search_4i40()
439 ipos[3] = track; in search_4i40()
751 Word16 track; in build_code() local
790 track = i - (Word16) s; in build_code()
794 if (track == 1) in build_code()
799 else if (track == 2) in build_code()
804 else if (track == 3) in build_code()
809 else if (track == 4) in build_code()
811 track = 3; in build_code()
[all …]
Dc3_14pf.cpp681 Word16 track; in build_code() local
718 track = i - (Word16) s; in build_code()
720 if (track == 1) in build_code()
725 else if (track == 2) in build_code()
727 track = 2; in build_code()
732 else if (track == 3) in build_code()
734 track = 1; in build_code()
742 else if (track == 4) in build_code()
744 track = 2; in build_code()
759 track = 1 << track; in build_code()
[all …]
/frameworks/av/media/libstagefright/wifi-display/source/
DTSPacketizer.cpp422 const sp<Track> &track = mTracks.itemAt(i); in addTrack() local
424 if (track->streamType() == streamType) { in addTrack()
428 if ((isAudio && track->isAudio()) || (isVideo && track->isVideo())) { in addTrack()
438 sp<Track> track = new Track(format, PID, streamType, streamID); in addTrack() local
439 return mTracks.add(track); in addTrack()
447 const sp<Track> &track = mTracks.itemAt(trackIndex); in extractCSDIfNecessary() local
448 track->extractCSDIfNecessary(); in extractCSDIfNecessary()
471 const sp<Track> &track = mTracks.itemAt(trackIndex); in packetize() local
473 if (track->isH264() && (flags & PREPEND_SPS_PPS_TO_IDR_FRAMES) in packetize()
476 accessUnit = track->prependCSD(accessUnit); in packetize()
[all …]
DPlaybackSession.cpp499 const sp<Track> &track = mTracks.valueFor(trackIndex); in onMessageReceived() local
502 track->mediaSenderTrackIndex(), in onMessageReceived()
587 sp<Track> track = mTracks.valueFor(trackIndex); in onMessageReceived() local
588 looper()->unregisterHandler(track->id()); in onMessageReceived()
590 track.clear(); in onMessageReceived()
791 sp<Track> track = new Track(notify, format); in setupMediaPacketizer() local
792 looper()->registerHandler(track); in setupMediaPacketizer()
794 mTracks.add(trackIndex, track); in setupMediaPacketizer()
808 track->setMediaSenderTrackIndex(mediaSenderTrackIndex); in setupMediaPacketizer()
994 sp<Track> track = new Track( in addSource() local
[all …]
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java95 AudioTrack track = createStreamingAudioTrack(); in init() local
97 mAudioTrack = track; in init()
100 if (track == null) { in init()
117 AudioTrack track = null; in write() local
119 track = mAudioTrack; in write()
122 if (track == null || mStopped) { in write()
125 final int bytesWritten = writeToAudioTrack(track, data); in write()
132 AudioTrack track = null; in waitAndRelease() local
134 track = mAudioTrack; in waitAndRelease()
136 if (track == null) { in waitAndRelease()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp183 sp<IMediaSource> track = extractor->getTrack(i); in initFromDataSource() local
184 if (track == NULL) { in initFromDataSource()
206 mAudioTrack.mSource = track; in initFromDataSource()
221 mVideoTrack.mSource = track; in initFromDataSource()
230 mSources.push(track); in initFromDataSource()
600 Track* track; in onMessageReceived() local
606 track = &mAudioTrack; in onMessageReceived()
611 track = &mVideoTrack; in onMessageReceived()
617 if (track->mSource != NULL) { in onMessageReceived()
618 track->mSource->stop(); in onMessageReceived()
[all …]
DNuPlayerCCDecoder.cpp144 CCTrack track = mTracks[index]; in getTrackInfo() local
149 switch (track.mTrackType) { in getTrackInfo()
157 ALOGE("Unknown track type: %d", track.mTrackType); in getTrackInfo()
162 bool isDefaultAuto = track.mTrackType == kTrackTypeCEA608 in getTrackInfo()
163 && track.mTrackChannel == 0; in getTrackInfo()
165 bool isDefaultOnly = track.mTrackType == kTrackTypeCEA708 in getTrackInfo()
166 && track.mTrackChannel == 1; in getTrackInfo()
502 CCTrack track(trackType, channel); in getTrackIndex() local
503 ssize_t index = mTrackIndices.indexOfKey(track); in getTrackIndex()
508 mTrackIndices.add(track, index); in getTrackIndex()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DMyHandler.h658 TrackInfo *track = NULL; in onMessageReceived() local
661 track = &mTracks.editItemAt(trackIndex); in onMessageReceived()
671 CHECK(track != NULL); in onMessageReceived()
725 if (track->mRTPSocket != -1 && track->mRTCPSocket != -1) { in onMessageReceived()
726 if (!track->mUsingInterleavedTCP) { in onMessageReceived()
732 track->mRTPSocket, in onMessageReceived()
733 track->mRTCPSocket, in onMessageReceived()
738 track->mRTPSocket, track->mRTCPSocket, in onMessageReceived()
740 notify, track->mUsingInterleavedTCP); in onMessageReceived()
750 if (track) { in onMessageReceived()
[all …]
/frameworks/base/core/java/android/widget/
DScrollBarDrawable.java187 final Drawable track; in drawTrack() local
189 track = mVerticalTrack; in drawTrack()
191 track = mHorizontalTrack; in drawTrack()
194 if (track != null) { in drawTrack()
196 track.setBounds(bounds); in drawTrack()
198 track.draw(canvas); in drawTrack()
236 public void setVerticalTrackDrawable(Drawable track) { in setVerticalTrackDrawable() argument
241 propagateCurrentState(track); in setVerticalTrackDrawable()
242 mVerticalTrack = track; in setVerticalTrackDrawable()
254 public void setHorizontalTrackDrawable(Drawable track) { in setHorizontalTrackDrawable() argument
[all …]
/frameworks/av/media/libaudioprocessing/
DAudioMixer.cpp258 track_t &track = mState.tracks[name]; in setChannelMasks() local
260 if (trackChannelMask == track.channelMask in setChannelMasks()
261 && mixerChannelMask == track.mMixerChannelMask) { in setChannelMasks()
267 const bool mixerChannelCountChanged = track.mMixerChannelCount != mixerChannelCount; in setChannelMasks()
272 track.channelMask = trackChannelMask; in setChannelMasks()
273 track.channelCount = trackChannelCount; in setChannelMasks()
274 track.mMixerChannelMask = mixerChannelMask; in setChannelMasks()
275 track.mMixerChannelCount = mixerChannelCount; in setChannelMasks()
279 const audio_format_t prevDownmixerFormat = track.mDownmixRequiresFormat; in setChannelMasks()
283 status, track.channelMask, track.mMixerChannelMask); in setChannelMasks()
[all …]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DMediaBrowserServiceSupport.java340 MediaMetadataCompat track = tracks.get(i); in loadChildrenImpl() local
347 track.getDescription().getMediaId(), MEDIA_ID_MUSICS_BY_GENRE, genre); in loadChildrenImpl()
348 MediaMetadataCompat trackCopy = new MediaMetadataCompat.Builder(track) in loadChildrenImpl()
482 MediaMetadataCompat track = getCurrentPlayingMusic(); in onCustomAction() local
483 if (track != null) { in onCustomAction()
484 String musicId = track.getString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID); in onCustomAction()
586 MediaMetadataCompat track = mMusicProvider.getMusic(musicId); in updateMetadata() local
587 final String trackId = track.getString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID); in updateMetadata()
593 + " mediaId from track=" + track.getDescription().getMediaId() in updateMetadata()
594 + " title from track=" + track.getDescription().getTitle() in updateMetadata()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DTrackedObjects.java37 public synchronized <T> void track(T object) { in track() method in TrackedObjects
47 trackedClass.track(object); in track()
48 mTrackedCollections.track(trackedClass, clazz.getName()); in track()
58 void track(T object) { in track() method in TrackedObjects.TrackedClass
/frameworks/base/media/tests/audiotests/
Dshared_mem_test.cpp98 sp<AudioTrack> track = new AudioTrack(AUDIO_STREAM_MUSIC,// stream type in Test01() local
104 status_t status = track->initCheck(); in Test01()
106 track.clear(); in Test01()
113 track->start(); in Test01()
118 track->stop(); in Test01()
/frameworks/wilhelm/src/objects/
DCAudioPlayer.cpp80 Track *track = thiz->mTrack; in CAudioPlayer_PreDestroy() local
81 if (NULL == track) { in CAudioPlayer_PreDestroy()
84 CAudioPlayer *audioPlayer = track->mAudioPlayer; in CAudioPlayer_PreDestroy()
/frameworks/av/media/libstagefright/
DMPEG4Extractor.cpp361 Track *track = mFirstTrack; in release() local
362 while (track) { in release()
363 Track *next = track->next; in release()
365 delete track; in release()
366 track = next; in release()
413 Track *track = mFirstTrack; in countTracks() local
414 while (track) { in countTracks()
416 track = track->next; in countTracks()
430 Track *track = mFirstTrack; in getTrackMetaData() local
432 if (track == NULL) { in getTrackMetaData()
[all …]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/model/
DMusicProvider.java122 for (MutableMediaMetadata track : mMusicListById.values()) { in searchMusic()
123 if (track.metadata.getString(MediaMetadataCompat.METADATA_KEY_TITLE).toLowerCase() in searchMusic()
125 result.add(track.metadata); in searchMusic()
141 MutableMediaMetadata track = mMusicListById.get(musicId); in updateMusic() local
142 if (track == null) { in updateMusic()
146 String oldGenre = track.metadata.getString(MediaMetadataCompat.METADATA_KEY_GENRE); in updateMusic()
149 track.metadata = metadata; in updateMusic()
/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp180 const mkvparser::Track* track = getTrack(); in find() local
182 return cp->Find(track); in find()
209 return cp->Find(track); in find()
448 MatroskaExtractor::TrackInfo& track = mExtractor->mTracks.editItemAt(index); in seek() local
449 const mkvparser::Track *pTrack = pTracks->GetTrackByNumber(track.mTrackNum); in seek()
451 track.mCuePoints.push_back(pCP); in seek()
464 MatroskaExtractor::TrackInfo& track = mExtractor->mTracks.editItemAt(mIndex); in seek() local
465 pTP = track.find(seekTimeNs); in seek()
1221 const mkvparser::Track *track, const sp<MetaData> &meta, TrackInfo *trackInfo) { in initTrackInfo() argument
1222 trackInfo->mTrackNum = track->GetNumber(); in initTrackInfo()
[all …]

1234