Home
last modified time | relevance | path

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

12345

/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.c45 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.c126 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/media/libstagefright/
DAVIExtractor.cpp652 Track *track = &mTracks.editItemAt(mTracks.size() - 1); in parseStreamHeader() local
654 track->mMeta = meta; in parseStreamHeader()
655 track->mRate = rate; in parseStreamHeader()
656 track->mScale = scale; in parseStreamHeader()
657 track->mBytesPerSample = sampleSize; in parseStreamHeader()
658 track->mKind = kind; in parseStreamHeader()
659 track->mNumSyncSamples = 0; in parseStreamHeader()
660 track->mThumbnailSampleSize = 0; in parseStreamHeader()
661 track->mThumbnailSampleIndex = -1; in parseStreamHeader()
662 track->mMaxSampleSize = 0; in parseStreamHeader()
[all …]
DMPEG4Extractor.cpp353 Track *track = mFirstTrack; in ~MPEG4Extractor() local
354 while (track) { in ~MPEG4Extractor()
355 Track *next = track->next; in ~MPEG4Extractor()
357 delete track; in ~MPEG4Extractor()
358 track = next; in ~MPEG4Extractor()
399 Track *track = mFirstTrack; in countTracks() local
400 while (track) { in countTracks()
402 track = track->next; in countTracks()
416 Track *track = mFirstTrack; in getTrackMetaData() local
418 if (track == NULL) { in getTrackMetaData()
[all …]
/frameworks/av/services/audioflinger/
DThreads.cpp1098 sp<Track> track = mTracks[i]; in dumpTracks() local
1099 if (track != 0) { in dumpTracks()
1100 track->dump(buffer, SIZE); in dumpTracks()
1109 sp<Track> track = mActiveTracks[i].promote(); in dumpTracks() local
1110 if (track != 0) { in dumpTracks()
1111 track->dump(buffer, SIZE); in dumpTracks()
1193 sp<Track> track; in createTrack_l() local
1323 track = new Track(this, client, streamType, sampleRate, format, in createTrack_l()
1326 track = TimedTrack::create(this, client, streamType, sampleRate, format, in createTrack_l()
1330 if (track == 0 || track->getCblk() == NULL || track->name() < 0) { in createTrack_l()
[all …]
DAudioMixer.cpp378 track_t& track(mState.tracks[ name ]); in deleteTrackName() local
379 if (track.enabled) { in deleteTrackName()
380 track.enabled = false; in deleteTrackName()
384 delete track.resampler; in deleteTrackName()
385 track.resampler = NULL; in deleteTrackName()
396 track_t& track = mState.tracks[name]; in enable() local
398 if (!track.enabled) { in enable()
399 track.enabled = true; in enable()
409 track_t& track = mState.tracks[name]; in disable() local
411 if (track.enabled) { in disable()
[all …]
/frameworks/base/media/java/android/media/
DSubtitleController.java152 public boolean selectTrack(SubtitleTrack track) { in selectTrack() argument
153 if (track != null && !mTracks.contains(track)) { in selectTrack()
157 processOnAnchor(mHandler.obtainMessage(WHAT_SELECT_TRACK, track)); in selectTrack()
161 private void doSelectTrack(SubtitleTrack track) { in doSelectTrack() argument
163 if (mSelectedTrack == track) { in doSelectTrack()
172 mSelectedTrack = track; in doSelectTrack()
183 mListener.onSubtitleTrackSelected(track); in doSelectTrack()
222 for (SubtitleTrack track: mTracks) { in getDefaultTrack()
223 MediaFormat format = track.getFormat(); in getDefaultTrack()
252 bestTrack = track; in getDefaultTrack()
[all …]
DAudioTrack.java1224 void onMarkerReached(AudioTrack track); in onMarkerReached() argument
1230 void onPeriodicNotification(AudioTrack track); in onPeriodicNotification() argument
1244 NativeEventHandlerDelegate(final AudioTrack track, in NativeEventHandlerDelegate() argument
1262 if (track == null) { in NativeEventHandlerDelegate()
1268 listener.onMarkerReached(track); in NativeEventHandlerDelegate()
1273 listener.onPeriodicNotification(track); in NativeEventHandlerDelegate()
1300 AudioTrack track = (AudioTrack)((WeakReference)audiotrack_ref).get(); in postEventFromNative() local
1301 if (track == null) { in postEventFromNative()
1305 NativeEventHandlerDelegate delegate = track.mEventHandlerDelegate; in postEventFromNative()
DMediaPlayer.java1679 for (SubtitleTrack track: mOutOfBandSubtitleTracks) { in getTrackInfo()
1680 allTrackInfo[i] = new TrackInfo(TrackInfo.MEDIA_TRACK_TYPE_SUBTITLE, track.getFormat()); in getTrackInfo()
1748 SubtitleTrack track = mInbandSubtitleTracks[index];
1749 if (track != null) {
1753 track.onData(new String(data.getData(), "UTF-8"), true /* eos */, runID);
1754 track.setRunDiscardTimeMs(
1766 public void onSubtitleTrackSelected(SubtitleTrack track) { in onSubtitleTrackSelected() argument
1775 if (track == null) { in onSubtitleTrackSelected()
1779 if (mInbandSubtitleTracks[i] == track) { in onSubtitleTrackSelected()
1817 SubtitleTrack track = mSubtitleController.addTrack(fFormat); in addSubtitleSource()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dc4t64fx.c75 Word16 track, /* (i) track to use */
85 Word16 track, /* (i) track to use */
95 Word16 track, /* (i) track to use */
136 Word16 st, ix, iy, pos, index, track, nb_pulse, nbiter, j_temp; in ACELP_4t64_fx() local
726 track = (Word16) (i & 0x03); /* track = i % NB_TRACK (0..3) */ in ACELP_4t64_fx()
738 i = (Word16)((vo_L_mult(track, NPMAXPT) >> 1)); in ACELP_4t64_fx()
751 for (track = 0; track < NB_TRACK; track++) in ACELP_4t64_fx()
753 _index[track] = (Word16)(quant_1p_N1(ind[k], 4)); in ACELP_4t64_fx()
758 for (track = 0; track < NB_TRACK; track++) in ACELP_4t64_fx()
760 _index[track] = (Word16)(quant_2p_2N1(ind[k], ind[k + 1], 4)); 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 …]
Dc2_9pf.cpp999 register 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/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp77 sp<MediaSource> track; in initFromDataSource() local
81 mAudioTrack.mSource = track = extractor->getTrack(i); in initFromDataSource()
91 mVideoTrack.mSource = track = extractor->getTrack(i); in initFromDataSource()
95 if (track != NULL) { in initFromDataSource()
167 Track *track = audio ? &mAudioTrack : &mVideoTrack; in dequeueAccessUnit() local
169 if (track->mSource == NULL) { in dequeueAccessUnit()
174 if (!track->mPackets->hasBufferAvailable(&finalResult)) { in dequeueAccessUnit()
178 status_t result = track->mPackets->dequeueAccessUnit(accessUnit); in dequeueAccessUnit()
207 Track *track = audio ? &mAudioTrack : &mVideoTrack; in readBuffer() local
208 CHECK(track->mSource != NULL); in readBuffer()
[all …]
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java96 AudioTrack track = createStreamingAudioTrack(); in init() local
98 mAudioTrack = track; in init()
101 if (track == null) { in init()
118 AudioTrack track = null; in write() local
120 track = mAudioTrack; in write()
123 if (track == null || mStopped) { in write()
126 final int bytesWritten = writeToAudioTrack(track, data); in write()
133 AudioTrack track = null; in waitAndRelease() local
135 track = mAudioTrack; in waitAndRelease()
137 if (track == null) { in waitAndRelease()
[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.cpp497 const sp<Track> &track = mTracks.valueFor(trackIndex); in onMessageReceived() local
500 track->mediaSenderTrackIndex(), in onMessageReceived()
585 sp<Track> track = mTracks.valueFor(trackIndex); in onMessageReceived() local
586 looper()->unregisterHandler(track->id()); in onMessageReceived()
588 track.clear(); in onMessageReceived()
790 sp<Track> track = new Track(notify, format); in setupMediaPacketizer() local
791 looper()->registerHandler(track); in setupMediaPacketizer()
793 mTracks.add(trackIndex, track); in setupMediaPacketizer()
807 track->setMediaSenderTrackIndex(mediaSenderTrackIndex); in setupMediaPacketizer()
984 sp<Track> track = new Track( in addSource() local
[all …]
/frameworks/base/core/java/android/widget/
DScrollBarDrawable.java148 Drawable track; in drawTrack() local
150 track = mVerticalTrack; in drawTrack()
152 track = mHorizontalTrack; in drawTrack()
154 if (track != null) { in drawTrack()
156 track.setBounds(bounds); in drawTrack()
158 track.draw(canvas); in drawTrack()
192 public void setVerticalTrackDrawable(Drawable track) { in setVerticalTrackDrawable() argument
193 mVerticalTrack = track; in setVerticalTrackDrawable()
202 public void setHorizontalTrackDrawable(Drawable track) { in setHorizontalTrackDrawable() argument
203 mHorizontalTrack = track; in setHorizontalTrackDrawable()
/frameworks/av/media/libstagefright/rtsp/
DMyHandler.h622 TrackInfo *track = NULL; in onMessageReceived() local
625 track = &mTracks.editItemAt(trackIndex); in onMessageReceived()
635 CHECK(track != NULL); in onMessageReceived()
689 if (!track->mUsingInterleavedTCP) { in onMessageReceived()
695 track->mRTPSocket, in onMessageReceived()
696 track->mRTCPSocket, in onMessageReceived()
701 track->mRTPSocket, track->mRTCPSocket, in onMessageReceived()
703 notify, track->mUsingInterleavedTCP); in onMessageReceived()
710 if (track) { in onMessageReceived()
711 if (!track->mUsingInterleavedTCP) { in onMessageReceived()
[all …]
/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.c80 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/codecs/amrwb/src/
Ddec_acelp_4p_in_64.cpp123 void add_pulses(int16 pos[], int16 nb_pulse, int16 track, int16 code[]);
246 void add_pulses(int16 pos[], int16 nb_pulse, int16 track, int16 code[]) in add_pulses() argument
253 i = ((pos[k] & (NB_POS - 1)) << 2) + track; in add_pulses()

12345