Searched refs:track (Results 1 - 25 of 50) 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...]
/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
488 onSubtitleTrackSelected(SubtitleTrack track) argument
[all...]
H A DAudioTrack.java251 * If track's creation mode is {@link #MODE_STREAM}, you can write data into
254 * If the track's creation mode is {@link #MODE_STATIC},
280 * will be created for this track if none is supplied.
602 * If track's creation mode is {@link #MODE_STATIC},
604 * If track's creation mode is {@link #MODE_STREAM},
646 * Returns this track's estimated latency in milliseconds. This includes the latency due
851 * Sets the playback sample rate for this track. This sets the sampling rate at which
907 * The track must be stopped or paused for the position to be changed,
929 * the track must be stopped or paused for the loop points to be changed,
977 * If track'
1224 onMarkerReached(AudioTrack track) argument
1230 onPeriodicNotification(AudioTrack track) argument
1244 NativeEventHandlerDelegate(final AudioTrack track, final OnPlaybackPositionUpdateListener listener, Handler handler) argument
[all...]
H A DMediaPlayer.java221 * This callback allows applications to keep track of the buffering status
274 * track of the playback progress.</li>
674 * when playing back a video will result in only the audio track being played.
675 * A null surface holder or surface will result in only the audio track being
697 * A null surface will result in only the audio track being played.
1552 * Class for MediaPlayer to return each audio/video/subtitle track's metadata.
1558 * Gets the track type.
1559 * @return TrackType which indicates if the track is video, audio, timed text.
1566 * Gets the language code of the track.
1577 * Gets the {@link MediaFormat} of the track
1766 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/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp77 sp<MediaSource> track; local
81 mAudioTrack.mSource = track = extractor->getTrack(i);
91 mVideoTrack.mSource = track = extractor->getTrack(i);
95 if (track != NULL) {
167 Track *track = audio ? &mAudioTrack : &mVideoTrack; local
169 if (track->mSource == NULL) {
174 if (!track->mPackets->hasBufferAvailable(&finalResult)) {
178 status_t result = track->mPackets->dequeueAccessUnit(accessUnit);
207 Track *track = audio ? &mAudioTrack : &mVideoTrack; local
208 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/services/audioflinger/
H A DThreads.cpp112 // Offloaded output thread standby delay: allows track transition without going to standby
122 FastMixer_Dynamic, // initialize if needed, then use dynamically depending on track load,
137 // for the track. The client then sub-divides this into smaller buffers for its use.
1098 sp<Track> track = mTracks[i]; local
1099 if (track != 0) {
1100 track->dump(buffer, SIZE);
1109 sp<Track> track = mActiveTracks[i].promote(); local
1110 if (track != 0) {
1111 track->dump(buffer, SIZE);
1147 fdprintf(fd, "Fast track availMas
1193 sp<Track> track; local
1427 addTrack_l(const sp<Track>& track) argument
1484 destroyTrack_l(const sp<Track>& track) argument
1499 removeTrack_l(const sp<Track>& track) argument
1754 sp<Track> track = mTracks[i]; local
1772 sp<Track> track = mTracks[i]; local
1823 sp<Track> track = mTracks[i]; local
1844 const sp<Track>& track = tracksToRemove.itemAt(i); local
2027 sp<Track> track = mTracks[i]; local
2038 sp<Track> track = mActiveTracks[i].promote(); local
2085 sp<Track> track = mActiveTracks[i].promote(); local
2098 sp<Track> track = mTracks[i]; local
2110 attachAuxEffect( const sp<AudioFlinger::PlaybackThread::Track> track, int EffectId) argument
2117 attachAuxEffect_l( const sp<AudioFlinger::PlaybackThread::Track> track, int EffectId) argument
2143 sp<Track> track = mTracks[i]; local
2412 const sp<Track>& track = tracksToRemove.itemAt(i); local
2857 Track* const track = t.get(); local
3542 processVolume_l(Track *track, bool lastTrack) argument
3602 Track* const track = t.get(); local
3977 Track* const track = t.get(); local
4637 sp<RecordTrack> track = mTracks[i]; local
4675 sp<RecordTrack> track; local
4929 destroyTrack_l(const sp<RecordTrack>& track) argument
4939 removeTrack_l(const sp<RecordTrack>& track) argument
4991 sp<RecordTrack> track = mTracks[i]; local
5115 sp<RecordTrack> track = mTracks[i]; local
5282 sp<RecordThread::RecordTrack> track = mTracks[j]; local
[all...]
H A DAudioMixer.cpp77 ALOGE("DownmixerBufferProvider::getNextBuffer() error: NULL track buffer provider");
87 ALOGE("DownmixerBufferProvider::releaseBuffer() error: NULL track buffer provider");
110 // AudioMixer is not yet capable of more than 32 active track inputs
184 ALOGV("add track (%d)", n);
186 // assume default parameters for the track, except where noted below
224 ALOGE("AudioMixer::getTrackName(0x%x) failed, error preparing track for downmix",
246 ALOGV("initTrackDownmix(track=%d, mask=0x%x) calls prepareTrackForDownmix()",
259 // this track had previously been configured with a downmixer, delete it
292 // channel input configuration will be overridden per-track
317 ALOGE("error %d while configuring downmixer for track
396 track_t& track = mState.tracks[name]; local
409 track_t& track = mState.tracks[name]; local
422 track_t& track = mState.tracks[name]; 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/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/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/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.cpp339 // this track suspended for the time being.
497 const sp<Track> &track = mTracks.valueFor(trackIndex); local
500 track->mediaSenderTrackIndex(),
510 ALOGI("output EOS on track %d", trackIndex);
585 sp<Track> track = mTracks.valueFor(trackIndex); local
586 looper()->unregisterHandler(track->id());
588 track.clear();
790 sp<Track> track = new Track(notify, format); local
791 looper()->registerHandler(track);
793 mTracks.add(trackIndex, track);
984 sp<Track> track = new Track( local
1085 const sp<Track> &track = mTracks.valueAt(i); local
[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/rtsp/
H A DMyHandler.h552 // The first "track" is merely session meta
598 // The first "track" is merely session meta
622 TrackInfo *track = NULL; local
624 if (msg->findSize("track-index", &trackIndex)) {
625 track = &mTracks.editItemAt(trackIndex);
635 CHECK(track != NULL);
684 notify->setSize("track-index", trackIndex);
689 if (!track->mUsingInterleavedTCP) {
695 track->mRTPSocket,
696 track
984 TrackInfo *track = &mTracks.editItemAt(trackIndex); local
1674 TrackInfo *track; local
1710 TrackInfo *track = &mTracks.editItemAt(trackIndex); local
1723 TrackInfo *track = &mTracks.editItemAt(i); local
1765 TrackInfo *track = &mTracks.editItemAt(trackIndex); local
1772 TrackInfo *track = &mTracks.editItemAt(trackIndex); local
1799 addMediaTimestamp( int32_t trackIndex, const TrackInfo *track, const sp<ABuffer> &accessUnit) argument
[all...]

Completed in 612 milliseconds

12