Searched refs:track (Results 1 - 25 of 56) sorted by relevance

123

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaAudioTrackTest.java87 AudioTrack track = null;
89 track = new AudioTrack(
102 if (track != null) {
103 localRes = (track.getState() == _expected_stateForMode);
104 track.release();
262 AudioTrack track = null;
268 track = new AudioTrack(STREAM_TYPES[i],
278 if (track != null) {
279 if (track.getState() != AudioTrack.STATE_INITIALIZED) {
285 track
[all...]
/frameworks/wilhelm/src/itf/
H A DIOutputMixExt.c43 /** \brief Check whether a track has any data for us to read */
45 static SLboolean track_check(Track *track) argument
47 assert(NULL != track);
50 CAudioPlayer *audioPlayer = track->mAudioPlayer;
53 // track is initialized
58 assert(audioPlayer->mTrack == track);
60 SLuint32 framesMixed = track->mFramesMixed;
62 track->mFramesMixed = 0;
78 track->mReader = NULL;
79 track
200 Track *track = &thiz->mTracks[i]; local
344 Track *track = &thiz->mTracks[0]; local
383 Track *track = NULL; local
[all...]
H A DIMIDIMuteSolo.c126 static SLresult IMIDIMuteSolo_SetTrackMute(SLMIDIMuteSoloItf self, SLuint16 track, SLboolean mute) argument
132 if (!(track < thiz->mTrackCount)) {
135 SLuint32 mask = 1 << track;
149 static SLresult IMIDIMuteSolo_GetTrackMute(SLMIDIMuteSoloItf self, SLuint16 track, SLboolean *pMute) argument
155 if (!(track < thiz->mTrackCount) || NULL == pMute) {
161 *pMute = (mask >> track) & 1;
169 static SLresult IMIDIMuteSolo_SetTrackSolo(SLMIDIMuteSoloItf self, SLuint16 track, SLboolean solo) argument
175 if (!(track < thiz->mTrackCount)) {
178 SLuint32 mask = 1 << track; interface_lock_exclusive(thiz);
191 static SLresult IMIDIMuteSolo_GetTrackSolo(SLMIDIMuteSoloItf self, SLuint16 track, SLboolea argument
[all...]
/frameworks/av/media/libstagefright/
H A DAVIExtractor.cpp652 Track *track = &mTracks.editItemAt(mTracks.size() - 1); local
654 track->mMeta = meta;
655 track->mRate = rate;
656 track->mScale = scale;
657 track->mBytesPerSample = sampleSize;
658 track->mKind = kind;
659 track->mNumSyncSamples = 0;
660 track->mThumbnailSampleSize = 0;
661 track->mThumbnailSampleIndex = -1;
662 track
674 Track *track = &mTracks.editItemAt(mTracks.size() - 1); local
797 Track *track = &mTracks.editItemAt(trackIndex); local
865 Track *track = &mTracks.editItemAt(i); local
1000 Track *track = &mTracks.editItemAt(trackIndex); local
1048 Track *track = &mTracks.editItemAt(trackIndex); local
1112 const Track &track = mTracks.itemAt(trackIndex); local
1180 const Track &track = mTracks.itemAt(trackIndex); local
[all...]
H A DMPEG4Extractor.cpp165 // This is used to cache the full sampletable metadata for a single track,
167 // Each MPEG4DataSource caches the sampletable metadata for a single track.
367 Track *track = mFirstTrack; local
368 while (track) {
369 Track *next = track->next;
371 delete track;
372 track = next;
413 Track *track = mFirstTrack; local
414 while (track) {
416 track
430 Track *track = mFirstTrack; local
888 Track *track = new Track; local
2573 Track *track = mFirstTrack; local
2608 verifyTrack(Track *track) argument
[all...]
/frameworks/base/media/java/android/media/
H A DSubtitleController.java128 * @return the currently selected subtitle track
142 * Selects a subtitle track. As a result, this track will receive
148 * @param track The subtitle track to select. This must be one of the
150 * @return true if the track was successfully selected.
152 public boolean selectTrack(SubtitleTrack track) { argument
153 if (track != null && !mTracks.contains(track)) {
157 processOnAnchor(mHandler.obtainMessage(WHAT_SELECT_TRACK, track));
161 doSelectTrack(SubtitleTrack track) argument
501 onSubtitleTrackSelected(SubtitleTrack track) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dc8_31pf.cpp202 Word16 track; local
241 track = i & 3; /* track = pos%4 */
259 if (pos_indx[track] < 0)
261 pos_indx[track] = pos_index;
262 sign_indx[track] = sign_index;
266 if (((sign_index ^ sign_indx[track]) & 1) == 0)
270 if (pos_indx[track] <= pos_index)
272 pos_indx[track + NB_TRACK_MR102] = pos_index;
276 pos_indx[track
[all...]
H A Dc2_11pf.cpp627 Word16 track; local
656 /* track = pos%5 */
672 /* track =
677 track = i - tempWord;
679 tempWord = track;
683 track = 1;
692 else if (track == 1)
698 track = 0;
708 track = 1;
725 else if (track
[all...]
H A Dc4_17pf.cpp102 Word16 dn2[], /* i : maximum of corr. in each track. */
329 dn2[] Array of type Word16 -- maximum of corr. in each track.
388 Word16 dn2[], /* i : maximum of corr. in each track. */
404 Word16 track; local
432 for (track = 3; track < 5; track++)
439 ipos[3] = track;
751 Word16 track; local
782 /* track
[all...]
H A Dc3_14pf.cpp93 Word16 dn2[], /* i : maximum of corr. in each track. */
317 dn2[] Array of type Word16 -- maximum of corr. in each track.
375 Word16 dn2[], /* i : maximum of corr. in each track. */
681 Word16 track; local
710 /* track = pos%5 */
717 /* track = sub(i, (Word16) s, pOverflow); */
718 track = i - (Word16) s;
720 if (track == 1)
725 else if (track == 2)
727 track
[all...]
H A Dc2_9pf.cpp146 0, 1, 0, 1, -1, /* subframe 1; track to code;
199 pulse i1 can have 8 positions. Also coded is which track pair should be used,
891 Word16 i, j, k, track, first, index, _sign[NB_PULSE], indx, rsign;
895 0, 1, 0, 1, -1, // subframe 1; track to code; -1 do not code this position
913 // track = pos%5
914 track = sub(i, extract_l(L_shr(L_mult(index, 5), 1)));
916 first = pt[track];
920 track = 0;
922 track = 1;
927 track
999 register Word16 track; local
[all...]
H A Dc1035pf.cpp271 Word16 i, j, k, track, index, _sign[NB_PULSE];
292 // track = pos%5
293 track = sub (i, extract_l (L_shr (L_mult (index, 5), 1)));
308 if (indx[track] < 0)
310 indx[track] = index;
314 if (((index ^ indx[track]) & 8) == 0)
318 if (sub (indx[track], index) <= 0)
320 indx[track + 5] = index;
324 indx[track + 5] = indx[track];
409 Word16 i, k, track, index, _sign[NB_PULSE]; local
[all...]
/frameworks/base/core/java/android/widget/
H A DScrollBarDrawable.java53 * Indicate whether the horizontal scrollbar track should always be drawn regardless of the
56 * @param alwaysDrawTrack Set to true if the track should always be drawn
63 * Indicate whether the vertical scrollbar track should always be drawn regardless of the
66 * @param alwaysDrawTrack Set to true if the track should always be drawn
73 * Indicates whether the vertical scrollbar track should always be drawn regardless of the
81 * Indicates whether the horizontal scrollbar track should always be drawn regardless of the
151 Drawable track;
153 track = mVerticalTrack;
155 track = mHorizontalTrack;
157 if (track !
203 setVerticalTrackDrawable(Drawable track) argument
223 setHorizontalTrackDrawable(Drawable track) argument
[all...]
/frameworks/av/services/audioflinger/
H A DThreads.cpp119 // Offloaded output thread standby delay: allows track transition without going to standby
129 FastMixer_Dynamic, // initialize if needed, then use dynamically depending on track load,
152 // for the track. The client then sub-divides this into smaller buffers for its use.
1285 sp<Track> track = mTracks[i]; local
1286 if (track != 0) {
1287 bool active = mActiveTracks.indexOf(track) >= 0;
1291 track->dump(buffer, SIZE, active);
1301 " not in the track list\n");
1305 sp<Track> track = mActiveTracks[i].promote(); local
1306 if (track !
1365 sp<Track> track; local
1613 addTrack_l(const sp<Track>& track) argument
1670 destroyTrack_l(const sp<Track>& track) argument
1685 removeTrack_l(const sp<Track>& track) argument
1984 sp<Track> track = mTracks[i]; local
2002 sp<Track> track = mTracks[i]; local
2053 sp<Track> track = mTracks[i]; local
2074 const sp<Track>& track = tracksToRemove.itemAt(i); local
2200 sp<Track> track = mTracks[i]; local
2268 sp<Track> track = mTracks[i]; local
2279 sp<Track> track = mActiveTracks[i].promote(); local
2327 sp<Track> track = mActiveTracks[i].promote(); local
2340 sp<Track> track = mTracks[i]; local
2352 attachAuxEffect( const sp<AudioFlinger::PlaybackThread::Track> track, int EffectId) argument
2359 attachAuxEffect_l( const sp<AudioFlinger::PlaybackThread::Track> track, int EffectId) argument
2385 sp<Track> track = mTracks[i]; local
2687 const sp<Track>& track = tracksToRemove.itemAt(i); local
2764 addPatchTrack(const sp<PatchTrack>& track) argument
2770 deletePatchTrack(const sp<PatchTrack>& track) argument
3220 Track* const track = t.get(); local
3953 processVolume_l(Track *track, bool lastTrack) argument
4020 Track* const track = t.get(); local
4510 Track* const track = t.get(); local
[all...]
H A DAudioMixer.cpp56 /* VERY_VERY_VERBOSE_LOGGING will show exactly which process hook and track hook is
207 // channel input configuration will be overridden per-track
388 // AudioMixer is not yet capable of more than 32 active track inputs
443 ALOGV("add track (%d)", n);
444 // assume default parameters for the track, except where noted below
528 // Called when channel masks have changed for a track name
533 track_t &track = mState.tracks[name]; local
535 if (trackChannelMask == track.channelMask
536 && mixerChannelMask == track.mMixerChannelMask) {
542 const bool mixerChannelCountChanged = track
701 track_t& track = mState.tracks[name]; local
714 track_t& track = mState.tracks[name]; local
794 track_t& track = mState.tracks[name]; local
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DBlockingAudioTrack.java36 * The maximum amount of time to wait for an audio track to make progress while
58 * track buffer size (mAudioBufferSize). In this case, we need to call
60 * different logic is required to wait for the track to finish.
96 AudioTrack track = createStreamingAudioTrack();
98 mAudioTrack = track;
101 if (track == null) {
118 AudioTrack track = null;
120 track = mAudioTrack;
123 if (track == null || mStopped) {
126 final int bytesWritten = writeToAudioTrack(track, dat
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dc4t64fx.c28 * 4 tracks x 16 positions per track = 64 samples. *
75 Word16 track, /* (i) track to use */
85 Word16 track, /* (i) track to use */
95 Word16 track, /* (i) track to use */
104 Word16 track_x, /* (i) track of pulse 1 */
105 Word16 track_y, /* (i) track of pulse 2 */
136 Word16 st, ix, iy, pos, index, track, nb_puls local
826 cor_h_vec_30( Word16 h[], Word16 vec[], Word16 track, Word16 sign[], Word16 rrixix[][NB_POS], Word16 cor_1[], Word16 cor_2[] ) argument
898 cor_h_vec_012( Word16 h[], Word16 vec[], Word16 track, Word16 sign[], Word16 rrixix[][NB_POS], Word16 cor_1[], Word16 cor_2[] ) argument
[all...]
/frameworks/wilhelm/src/objects/
H A DCAudioPlayer.c79 // Safe to proceed immediately if a track has not yet been assigned
80 Track *track = thiz->mTrack; local
81 if (NULL == track) {
84 CAudioPlayer *audioPlayer = track->mAudioPlayer;
89 // Request the mixer thread to unlink this audio player's track
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp204 sp<MediaSource> track = extractor->getTrack(i); local
218 mAudioTrack.mSource = track;
231 mVideoTrack.mSource = track;
247 if (track != NULL) {
248 mSources.push(track);
276 ALOGE("failed to start audio track!");
281 ALOGE("failed to start video track!");
819 Track* track; local
825 track = &mAudioTrack;
830 track
1040 Track *track = audio ? &mAudioTrack : &mVideoTrack; local
1192 const Track *track = NULL; local
1255 Track* track = NULL; local
1278 Track *track = isSubtitle ? &mSubtitleTrack : &mTimedTextTrack; local
1322 Track *track = audio ? &mAudioTrack : &mVideoTrack; local
1502 Track *track; local
[all...]
/frameworks/base/media/tests/audiotests/
H A Dshared_mem_test.cpp98 sp<AudioTrack> track = new AudioTrack(AUDIO_STREAM_MUSIC,// stream type local
104 status_t status = track->initCheck();
106 track.clear();
113 track->start();
118 track->stop();
/frameworks/av/media/libstagefright/wifi-display/source/
H A DTSPacketizer.cpp422 const sp<Track> &track = mTracks.itemAt(i); local
424 if (track->streamType() == streamType) {
428 if ((isAudio && track->isAudio()) || (isVideo && track->isVideo())) {
438 sp<Track> track = new Track(format, PID, streamType, streamID); local
439 return mTracks.add(track);
447 const sp<Track> &track = mTracks.itemAt(trackIndex); local
448 track->extractCSDIfNecessary();
471 const sp<Track> &track = mTracks.itemAt(trackIndex); local
473 if (track
785 const sp<Track> &track = mTracks.itemAt(i); local
1041 const sp<Track> &track = mTracks.itemAt(trackIndex); local
[all...]
H A DPlaybackSession.cpp340 // this track suspended for the time being.
498 const sp<Track> &track = mTracks.valueFor(trackIndex); local
501 track->mediaSenderTrackIndex(),
511 ALOGI("output EOS on track %d", trackIndex);
586 sp<Track> track = mTracks.valueFor(trackIndex); local
587 looper()->unregisterHandler(track->id());
589 track.clear();
792 sp<Track> track = new Track(notify, format); local
793 looper()->registerHandler(track);
795 mTracks.add(trackIndex, track);
986 sp<Track> track = new Track( local
1087 const sp<Track> &track = mTracks.valueAt(i); local
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DMyHandler.h575 // The first "track" is merely session meta
621 // The first "track" is merely session meta
645 TrackInfo *track = NULL; local
647 if (msg->findSize("track-index", &trackIndex)) {
648 track = &mTracks.editItemAt(trackIndex);
658 CHECK(track != NULL);
707 notify->setSize("track-index", trackIndex);
712 if (track->mRTPSocket != -1 && track->mRTCPSocket != -1) {
713 if (!track
1011 TrackInfo *track = &mTracks.editItemAt(trackIndex); local
1703 TrackInfo *track; local
1739 TrackInfo *track = &mTracks.editItemAt(trackIndex); local
1752 TrackInfo *track = &mTracks.editItemAt(i); local
1794 TrackInfo *track = &mTracks.editItemAt(trackIndex); local
1801 TrackInfo *track = &mTracks.editItemAt(trackIndex); local
1828 addMediaTimestamp( int32_t trackIndex, const TrackInfo *track, const sp<ABuffer> &accessUnit) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Ddec_acelp_4p_in_64.cpp61 4 tracks x 16 positions per track = 64 samples.
111 #define NB_TRACK 4 /* number of track */
123 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[]) argument
252 /* i = ((pos[k] & (NB_POS-1))*NB_TRACK) + track; */
253 i = ((pos[k] & (NB_POS - 1)) << 2) + track;
/frameworks/av/media/libstagefright/matroska/
H A DMatroskaExtractor.cpp164 // searches in our own track based vectors. We should not need this once mkvparser
174 const mkvparser::Track* track = getTrack(); local
176 return cp->Find(track);
203 return cp->Find(track);
423 MatroskaExtractor::TrackInfo& track = mExtractor->mTracks.editItemAt(index); local
424 const mkvparser::Track *pTrack = pTracks->GetTrackByNumber(track.mTrackNum);
426 track.mCuePoints.push_back(pCP);
439 MatroskaExtractor::TrackInfo& track = mExtractor->mTracks.editItemAt(mIndex); local
440 pTP = track.find(seekTimeNs);
447 ALOGV("Video track locate
927 const mkvparser::Track *track = tracks->GetTrackByIndex(index); local
[all...]

Completed in 464 milliseconds

123