Home
last modified time | relevance | path

Searched refs:track (Results 1 – 25 of 96) 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/av/media/libaudioprocessing/
DAudioMixer.cpp76 const std::shared_ptr<Track> &track = getTrack(name); in setChannelMasks() local
78 if (trackChannelMask == (track->channelMask | track->mHapticChannelMask) in setChannelMasks()
79 && mixerChannelMask == (track->mMixerChannelMask | track->mMixerHapticChannelMask)) { in setChannelMasks()
96 track->channelMask = trackChannelMask; in setChannelMasks()
97 track->channelCount = trackChannelCount; in setChannelMasks()
98 track->mMixerChannelMask = mixerChannelMask; in setChannelMasks()
99 track->mMixerChannelCount = mixerChannelCount; in setChannelMasks()
100 track->mHapticChannelMask = hapticChannelMask; in setChannelMasks()
101 track->mHapticChannelCount = hapticChannelCount; in setChannelMasks()
102 track->mMixerHapticChannelMask = mixerHapticChannelMask; in setChannelMasks()
[all …]
DAudioMixerBase.cpp164 const std::shared_ptr<TrackBase> &track = mTracks[name]; in setChannelMasks() local
166 if (trackChannelMask == track->channelMask && mixerChannelMask == track->mMixerChannelMask) { in setChannelMasks()
174 track->channelMask = trackChannelMask; in setChannelMasks()
175 track->channelCount = trackChannelCount; in setChannelMasks()
176 track->mMixerChannelMask = mixerChannelMask; in setChannelMasks()
177 track->mMixerChannelCount = mixerChannelCount; in setChannelMasks()
180 track->recreateResampler(mSampleRate); in setChannelMasks()
198 const std::shared_ptr<TrackBase> &track = mTracks[name]; in enable() local
200 if (!track->enabled) { in enable()
201 track->enabled = true; in enable()
[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/base/media/java/android/media/
DSubtitleController.java156 public boolean selectTrack(SubtitleTrack track) { in selectTrack() argument
157 if (track != null && !mTracks.contains(track)) { in selectTrack()
161 processOnAnchor(mHandler.obtainMessage(WHAT_SELECT_TRACK, track)); in selectTrack()
165 private void doSelectTrack(SubtitleTrack track) { in doSelectTrack() argument
167 if (mSelectedTrack == track) { in doSelectTrack()
176 mSelectedTrack = track; in doSelectTrack()
187 mListener.onSubtitleTrackSelected(track); in doSelectTrack()
226 for (SubtitleTrack track: mTracks) { in getDefaultTrack()
227 MediaFormat format = track.getFormat(); in getDefaultTrack()
256 bestTrack = track; in getDefaultTrack()
[all …]
/frameworks/av/media/extractors/tests/
DExtractorUnitTest.cpp171 void getSeekablePoints(vector<int64_t> &seekablePoints, MediaTrackHelper *track) { in getSeekablePoints() argument
179 status = track->read(&buffer); in getSeekablePoints()
231 MediaTrackHelper *track = mExtractor->getTrack(idx); in TEST_P() local
232 ASSERT_NE(track, nullptr) << "Failed to get track for index " << idx; in TEST_P()
234 CMediaTrack *cTrack = wrap(track); in TEST_P()
238 status = cTrack->start(track, bufferGroup->wrap()); in TEST_P()
248 status = track->read(&buffer); in TEST_P()
258 status = cTrack->stop(track); in TEST_P()
261 delete track; in TEST_P()
286 MediaTrackHelper *track = mExtractor->getTrack(idx); in TEST_P() local
[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/services/audioflinger/
DThreads.cpp1662 ssize_t AudioFlinger::ThreadBase::ActiveTracks<T>::add(const sp<T> &track) { in add() argument
1663 ssize_t index = mActiveTracks.indexOf(track); in add()
1665 ALOGW("ActiveTracks<T>::add track %p already there", track.get()); in add()
1668 logTrack("add", track); in add()
1670 mLatestActiveTrack = track; in add()
1671 ++mBatteryCounter[track->uid()].second; in add()
1673 return mActiveTracks.add(track); in add()
1677 ssize_t AudioFlinger::ThreadBase::ActiveTracks<T>::remove(const sp<T> &track) { in remove() argument
1678 ssize_t index = mActiveTracks.remove(track); in remove()
1680 ALOGW("ActiveTracks<T>::remove nonexistent track %p", track.get()); in remove()
[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 …]
Dc2_9pf.cpp999 Word16 track; in build_code() local
1030 track = i - (5 * index); /* track = pos%5 */ in build_code()
1032 first = *(pt + track); in build_code()
1037 track = 0; in build_code()
1046 track = 1; in build_code()
1054 rsign += (1 << track); in build_code()
/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.cpp209 sp<IMediaSource> track = extractor->getTrack(i); in initFromDataSource() local
210 if (track == NULL) { in initFromDataSource()
232 mAudioTrack.mSource = track; in initFromDataSource()
247 mVideoTrack.mSource = track; in initFromDataSource()
256 mSources.push(track); in initFromDataSource()
650 Track* track; in onMessageReceived() local
656 track = &mAudioTrack; in onMessageReceived()
661 track = &mVideoTrack; in onMessageReceived()
667 if (track->mSource != NULL) { in onMessageReceived()
668 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()
164 bool isDefaultAuto = track.mTrackType == kTrackTypeCEA608 in getTrackInfo()
165 && track.mTrackChannel == 0; in getTrackInfo()
167 bool isDefaultOnly = track.mTrackType == kTrackTypeCEA708 in getTrackInfo()
168 && track.mTrackChannel == 1; in getTrackInfo()
205 CCTrack track = mTracks[mSelectedTrack]; in getSelectedTrack() local
206 if (track.mTrackType == kTrackTypeCEA608 || track.mTrackType == kTrackTypeCEA708) { in getSelectedTrack()
516 CCTrack track(trackType, channel); in getTrackIndex() local
[all …]
/frameworks/av/media/libaudioclient/tests/
Dtest_create_audiotrack.cpp42 sp<AudioTrack> track = new AudioTrack(AUDIO_STREAM_DEFAULT, in testTrack() local
46 if (track == 0 || track->initCheck() != NO_ERROR) { in testTrack()
50 track->dump(outputFileFd, args); in testTrack()
112 sp<AudioTrack> track = new AudioTrack(); in testTrack() local
114 track->set(AUDIO_STREAM_DEFAULT, in testTrack()
135 status = track->initCheck(); in testTrack()
141 track->dump(outputFileFd, args); in testTrack()
/frameworks/av/media/libstagefright/rtsp/
DMyHandler.h671 TrackInfo *track = NULL; in onMessageReceived() local
674 track = &mTracks.editItemAt(trackIndex); in onMessageReceived()
684 CHECK(track != NULL); in onMessageReceived()
738 if (track->mRTPSocket != -1 && track->mRTCPSocket != -1) { in onMessageReceived()
739 if (!track->mUsingInterleavedTCP) { in onMessageReceived()
745 track->mRTPSocket, in onMessageReceived()
746 track->mRTCPSocket, in onMessageReceived()
751 track->mRTPSocket, track->mRTCPSocket, in onMessageReceived()
753 notify, track->mUsingInterleavedTCP); in onMessageReceived()
763 if (track) { in onMessageReceived()
[all …]
/frameworks/base/core/java/android/widget/
DScrollBarDrawable.java196 final Drawable track; in drawTrack() local
198 track = mVerticalTrack; in drawTrack()
200 track = mHorizontalTrack; in drawTrack()
203 if (track != null) { in drawTrack()
205 track.setBounds(bounds); in drawTrack()
207 track.draw(canvas); in drawTrack()
280 public void setVerticalTrackDrawable(Drawable track) { in setVerticalTrackDrawable() argument
285 propagateCurrentState(track); in setVerticalTrackDrawable()
286 mVerticalTrack = track; in setVerticalTrackDrawable()
302 public void setHorizontalTrackDrawable(Drawable track) { in setHorizontalTrackDrawable() argument
[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
DLeakDetector.java61 mTrackedObjects.track(object); in trackInstance()
79 mTrackedCollections.track(collection, tag); in trackCollection()
94 mTrackedGarbage.track(o); in trackGarbage()
/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/extractors/mp4/
DMPEG4Extractor.cpp422 Track *track = mFirstTrack; in ~MPEG4Extractor() local
423 while (track) { in ~MPEG4Extractor()
424 Track *next = track->next; in ~MPEG4Extractor()
426 delete track; in ~MPEG4Extractor()
427 track = next; in ~MPEG4Extractor()
463 Track *track = mFirstTrack; in countTracks() local
464 while (track) { in countTracks()
466 track = track->next; in countTracks()
481 Track *track = mFirstTrack; in getTrackMetaData() local
483 if (track == NULL) { in getTrackMetaData()
[all …]

1234