/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaAudioTrackTest.java | 87 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/ |
D | IOutputMixExt.c | 45 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 …]
|
D | IMIDIMuteSolo.c | 126 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/ |
D | AVIExtractor.cpp | 652 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 …]
|
D | MPEG4Extractor.cpp | 367 Track *track = mFirstTrack; in ~MPEG4Extractor() local 368 while (track) { in ~MPEG4Extractor() 369 Track *next = track->next; in ~MPEG4Extractor() 371 delete track; in ~MPEG4Extractor() 372 track = next; in ~MPEG4Extractor() 413 Track *track = mFirstTrack; in countTracks() local 414 while (track) { in countTracks() 416 track = track->next; in countTracks() 430 Track *track = mFirstTrack; in getTrackMetaData() local 432 if (track == NULL) { in getTrackMetaData() [all …]
|
/frameworks/av/services/audioflinger/ |
D | Threads.cpp | 1287 sp<Track> track = mTracks[i]; in dumpTracks() local 1288 if (track != 0) { in dumpTracks() 1289 bool active = mActiveTracks.indexOf(track) >= 0; in dumpTracks() 1293 track->dump(buffer, SIZE, active); in dumpTracks() 1307 sp<Track> track = mActiveTracks[i].promote(); in dumpTracks() local 1308 if (track != 0 && mTracks.indexOf(track) < 0) { in dumpTracks() 1309 track->dump(buffer, SIZE, true); in dumpTracks() 1367 sp<Track> track; in createTrack_l() local 1510 track = new Track(this, client, streamType, sampleRate, format, in createTrack_l() 1514 track = TimedTrack::create(this, client, streamType, sampleRate, format, in createTrack_l() [all …]
|
D | AudioMixer.cpp | 533 track_t &track = mState.tracks[name]; in setChannelMasks() local 535 if (trackChannelMask == track.channelMask in setChannelMasks() 536 && mixerChannelMask == track.mMixerChannelMask) { in setChannelMasks() 542 const bool mixerChannelCountChanged = track.mMixerChannelCount != mixerChannelCount; in setChannelMasks() 547 track.channelMask = trackChannelMask; in setChannelMasks() 548 track.channelCount = trackChannelCount; in setChannelMasks() 549 track.mMixerChannelMask = mixerChannelMask; in setChannelMasks() 550 track.mMixerChannelCount = mixerChannelCount; in setChannelMasks() 554 const audio_format_t prevMixerInFormat = track.mMixerInFormat; in setChannelMasks() 555 track.mMixerInFormat = kUseFloat && kUseNewMixer in setChannelMasks() [all …]
|
/frameworks/base/media/java/android/media/ |
D | SubtitleController.java | 152 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 …]
|
D | MediaPlayer.java | 1866 for (SubtitleTrack track: mOutOfBandSubtitleTracks) { in getTrackInfo() 1867 int type = track.isTimedText() in getTrackInfo() 1870 allTrackInfo[i] = new TrackInfo(type, track.getFormat()); in getTrackInfo() 1945 SubtitleTrack track = mInbandSubtitleTracks[index]; 1946 if (track != null) { 1947 track.onData(data); 1954 public void onSubtitleTrackSelected(SubtitleTrack track) { in onSubtitleTrackSelected() argument 1963 if (track == null) { in onSubtitleTrackSelected() 1967 if (mInbandSubtitleTracks[i] == track) { in onSubtitleTrackSelected() 2005 SubtitleTrack track = mSubtitleController.addTrack(fFormat); in addSubtitleSource() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | c4t64fx.c | 75 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/ |
D | c8_31pf.cpp | 202 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 …]
|
D | c2_11pf.cpp | 627 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 …]
|
D | c4_17pf.cpp | 404 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 …]
|
D | c3_14pf.cpp | 681 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 …]
|
D | c2_9pf.cpp | 999 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/ |
D | GenericSource.cpp | 170 sp<MediaSource> track = extractor->getTrack(i); in initFromDataSource() local 184 mAudioTrack.mSource = track; in initFromDataSource() 197 mVideoTrack.mSource = track; in initFromDataSource() 213 if (track != NULL) { in initFromDataSource() 214 mSources.push(track); in initFromDataSource() 623 Track* track; in onMessageReceived() local 629 track = &mAudioTrack; in onMessageReceived() 634 track = &mVideoTrack; in onMessageReceived() 640 if (track->mSource != NULL) { in onMessageReceived() 641 track->mSource->stop(); in onMessageReceived() [all …]
|
/frameworks/base/core/java/android/speech/tts/ |
D | BlockingAudioTrack.java | 96 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/ |
D | TSPacketizer.cpp | 422 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 …]
|
D | PlaybackSession.cpp | 498 const sp<Track> &track = mTracks.valueFor(trackIndex); in onMessageReceived() local 501 track->mediaSenderTrackIndex(), in onMessageReceived() 586 sp<Track> track = mTracks.valueFor(trackIndex); in onMessageReceived() local 587 looper()->unregisterHandler(track->id()); in onMessageReceived() 589 track.clear(); in onMessageReceived() 792 sp<Track> track = new Track(notify, format); in setupMediaPacketizer() local 793 looper()->registerHandler(track); in setupMediaPacketizer() 795 mTracks.add(trackIndex, track); in setupMediaPacketizer() 809 track->setMediaSenderTrackIndex(mediaSenderTrackIndex); in setupMediaPacketizer() 986 sp<Track> track = new Track( in addSource() local [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ScrollBarDrawable.java | 148 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() 196 public void setVerticalTrackDrawable(Drawable track) { in setVerticalTrackDrawable() argument 197 mVerticalTrack = track; in setVerticalTrackDrawable() 206 public void setHorizontalTrackDrawable(Drawable track) { in setHorizontalTrackDrawable() argument 207 mHorizontalTrack = track; in setHorizontalTrackDrawable()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | MyHandler.h | 645 TrackInfo *track = NULL; in onMessageReceived() local 648 track = &mTracks.editItemAt(trackIndex); in onMessageReceived() 658 CHECK(track != NULL); in onMessageReceived() 712 if (track->mRTPSocket != -1 && track->mRTCPSocket != -1) { in onMessageReceived() 713 if (!track->mUsingInterleavedTCP) { in onMessageReceived() 719 track->mRTPSocket, in onMessageReceived() 720 track->mRTCPSocket, in onMessageReceived() 725 track->mRTPSocket, track->mRTCPSocket, in onMessageReceived() 727 notify, track->mUsingInterleavedTCP); in onMessageReceived() 737 if (track) { in onMessageReceived() [all …]
|
/frameworks/base/media/tests/audiotests/ |
D | shared_mem_test.cpp | 98 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/ |
D | CAudioPlayer.c | 80 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/matroska/ |
D | MatroskaExtractor.cpp | 174 const mkvparser::Track* track = getTrack(); in find() local 176 return cp->Find(track); in find() 203 return cp->Find(track); in find() 425 MatroskaExtractor::TrackInfo& track = mExtractor->mTracks.editItemAt(index); in seek() local 426 track.mCuePoints.push_back(pCP); in seek() 439 MatroskaExtractor::TrackInfo& track = mExtractor->mTracks.editItemAt(mIndex); in seek() local 440 pTP = track.find(seekTimeNs); in seek() 926 const mkvparser::Track *track = tracks->GetTrackByIndex(index); in addTracks() local 928 if (track == NULL) { in addTracks() 934 const char *const codecID = track->GetCodecId(); in addTracks() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | dec_acelp_4p_in_64.cpp | 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[]) in add_pulses() argument 253 i = ((pos[k] & (NB_POS - 1)) << 2) + track; in add_pulses()
|