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

12

/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.cpp96 // This is used to cache the full sampletable metadata for a single track,
98 // Each MPEG4DataSource caches the sampletable metadata for a single track.
278 Track *track = mFirstTrack; local
279 while (track) {
280 Track *next = track->next;
282 delete track;
283 track = next;
313 Track *track = mFirstTrack; local
314 while (track) {
316 track
329 Track *track = mFirstTrack; local
710 Track *track = new Track; local
1746 Track *track = mFirstTrack; local
1765 verifyTrack(Track *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/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp73 sp<MediaSource> track; local
77 mAudioTrack.mSource = track = extractor->getTrack(i);
87 mVideoTrack.mSource = track = extractor->getTrack(i);
91 if (track != NULL) {
143 Track *track = audio ? &mAudioTrack : &mVideoTrack; local
145 if (track->mSource == NULL) {
150 if (!track->mPackets->hasBufferAvailable(&finalResult)) {
154 status_t result = track->mPackets->dequeueAccessUnit(accessUnit);
183 Track *track = audio ? &mAudioTrack : &mVideoTrack; local
184 CHECK(track
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DBlockingAudioTrack.java34 * The maximum amount of time to wait for an audio track to make progress while
57 * track buffer size (mAudioBufferSize). In this case, we need to call
59 * 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/av/media/libstagefright/wifi-display/source/
H A DTSPacketizer.cpp371 const sp<Track> &track = mTracks.itemAt(i); local
373 if (track->streamType() == streamType) {
377 if ((isAudio && track->isAudio()) || (isVideo && track->isVideo())) {
387 sp<Track> track = new Track(format, PID, streamType, streamID); local
388 return mTracks.add(track);
409 const sp<Track> &track = mTracks.itemAt(trackIndex); local
411 if (track->isH264() && (flags & PREPEND_SPS_PPS_TO_IDR_FRAMES)
414 accessUnit = track->prependCSD(accessUnit);
415 } else if (track
604 const sp<Track> &track = mTracks.itemAt(i); local
850 const sp<Track> &track = mTracks.itemAt(trackIndex); local
[all...]
H A DPlaybackSession.cpp307 // this track suspended for the time being.
441 const sp<Track> &track = mTracks.valueFor(trackIndex); local
443 ssize_t packetizerTrackIndex = track->packetizerTrackIndex();
447 mPacketizer->addTrack(track->getFormat());
451 track->setPacketizerTrackIndex(packetizerTrackIndex);
467 track->queueAccessUnit(accessUnit);
471 track->queueOutputBuffer(accessUnit);
478 ALOGI("output EOS on track %d", trackIndex);
538 sp<Track> track = mTracks.valueFor(trackIndex); local
539 looper()->unregisterHandler(track
664 sp<Track> track = new Track( local
747 const sp<Track> &track = mTracks.valueAt(i); local
772 const sp<Track> &track = mTracks.valueFor(trackIndex); local
885 const sp<Track> &track = mTracks.valueAt(i); local
925 const sp<Track> &track = mTracks.valueAt(i); local
945 const sp<Track> &track = mTracks.valueFor(minTrackIndex); local
[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/base/core/java/android/widget/
H A DScrollBarDrawable.java50 * Indicate whether the horizontal scrollbar track should always be drawn regardless of the
53 * @param alwaysDrawTrack Set to true if the track should always be drawn
60 * Indicate whether the vertical scrollbar track should always be drawn regardless of the
63 * @param alwaysDrawTrack Set to true if the track should always be drawn
70 * Indicates whether the vertical scrollbar track should always be drawn regardless of the
78 * Indicates whether the horizontal scrollbar track should always be drawn regardless of the
148 Drawable track;
150 track = mVerticalTrack;
152 track = mHorizontalTrack;
154 if (track !
192 setVerticalTrackDrawable(Drawable track) argument
202 setHorizontalTrackDrawable(Drawable track) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DMyHandler.h469 // The first "track" is merely session meta
494 TrackInfo *track = NULL; local
496 if (msg->findSize("track-index", &trackIndex)) {
497 track = &mTracks.editItemAt(trackIndex);
507 CHECK(track != NULL);
556 notify->setSize("track-index", trackIndex);
561 if (!track->mUsingInterleavedTCP) {
567 track->mRTPSocket,
568 track->mRTCPSocket,
573 track
849 TrackInfo *track = &mTracks.editItemAt(trackIndex); local
1381 TrackInfo *track = &mTracks.editItemAt(trackIndex); local
1394 TrackInfo *track = &mTracks.editItemAt(i); local
1429 TrackInfo *track = &mTracks.editItemAt(trackIndex); local
1451 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/services/audioflinger/
H A DAudioMixer.cpp76 ALOGE("DownmixerBufferProvider::getNextBuffer() error: NULL track buffer provider");
86 ALOGE("DownmixerBufferProvider::releaseBuffer() error: NULL track buffer provider");
124 // FIXME redundant per track
171 ALOGV("add track (%d)", n);
173 // assume default parameters for the track, except where noted below
212 ALOGE("AudioMixer::getTrackName(0x%x) failed, error preparing track for downmix",
234 ALOGV("initTrackDownmix(track=%d, mask=0x%x) calls prepareTrackForDownmix()",
247 // this track had previously been configured with a downmixer, delete it
280 // channel input configuration will be overridden per-track
305 ALOGE("error %d while configuring downmixer for track
384 track_t& track = mState.tracks[name]; local
397 track_t& track = mState.tracks[name]; local
410 track_t& track = mState.tracks[name]; local
[all...]
H A DAudioFlinger.cpp151 FastMixer_Dynamic, // initialize if needed, then use dynamically depending on track load,
169 // for the track. The client then sub-divides this into smaller buffers for its use.
455 sp<PlaybackThread::Track> track; local
505 track = thread->createTrack_l(client, streamType, sampleRate, format,
509 // for a track to be created
521 (void) track->setSyncEvent(mPendingSyncEvents[i]);
532 trackHandle = new TrackHandle(track);
537 track.clear();
1631 sp<Track> track = mTracks[i]; local
1632 if (track !
1642 sp<Track> track = mActiveTracks[i].promote(); local
1722 sp<Track> track; local
1945 addTrack_l(const sp<Track>& track) argument
1977 destroyTrack_l(const sp<Track>& track) argument
1986 removeTrack_l(const sp<Track>& track) argument
2152 sp<Track> track = mTracks[i]; local
2171 sp<Track> track = mTracks[i]; local
2223 sp<Track> track = mTracks[i]; local
2243 const sp<Track>& track = tracksToRemove.itemAt(i); local
2943 Track* const track = t.get(); local
3360 const sp<Track>& track = tracksToRemove->itemAt(i); local
3720 Track* const track = t.get(); local
5795 TrackHandle(const sp<AudioFlinger::PlaybackThread::Track>& track) argument
6252 sp<RecordTrack> track; local
6463 destroyTrack_l(const sp<RecordTrack>& track) argument
6472 removeTrack_l(const sp<RecordTrack>& track) argument
6524 sp<RecordTrack> track = mTracks[i]; local
6643 sp<RecordTrack> track = mTracks[i]; local
6807 sp<RecordThread::RecordTrack> track = mTracks[j]; local
8004 sp<Track> track = mTracks[i]; local
8014 sp<Track> track = mActiveTracks[i].promote(); local
8057 sp<Track> track = mActiveTracks[i].promote(); local
8068 sp<Track> track = mTracks[i]; local
8080 attachAuxEffect( const sp<AudioFlinger::PlaybackThread::Track> track, int EffectId) argument
8087 attachAuxEffect_l( const sp<AudioFlinger::PlaybackThread::Track> track, int EffectId) argument
8113 sp<Track> track = mTracks[i]; local
[all...]
/frameworks/base/media/java/android/media/
H A DAudioTrack.java282 * will be created for this track if none is supplied.
782 * Sets the playback sample rate for this track. This sets the sampling rate at which
831 * Sets the playback head position. The track must be stopped for the position to be changed.
1042 * Attaches an auxiliary effect to the audio track. A typical auxiliary
1050 * this method to attach the audio track to the effect.
1051 * <p>To detach the effect from the audio track, call this method with a
1066 * Sets the send level of the audio track to the attached auxiliary effect
1107 void onMarkerReached(AudioTrack track); argument
1113 void onPeriodicNotification(AudioTrack track); argument
1128 NativeEventHandlerDelegate(AudioTrack track, Handle argument
[all...]
/frameworks/av/include/media/stagefright/
H A DMPEG4Writer.h75 bool mStarted; // Writer thread + track threads started successfully
113 Chunk(Track *track, int64_t timeUs, List<MediaBuffer *> samples) argument
114 : mTrack(track), mTimeStampUs(timeUs), mSamples(samples) {
155 // Adjust other track media clock (presumably wall clock)
156 // based on audio track media clock with the drift time.
/frameworks/av/media/libstagefright/include/
H A DMPEG4Extractor.h79 static status_t verifyTrack(Track *track);

Completed in 312 milliseconds

12