Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DAudioTrackTest.java77 AudioTrack track = null; in constructorTestMultiSampleRate() local
79 track = new AudioTrack(_inTest_streamType, testSampleRates[i], _inTest_config, in constructorTestMultiSampleRate()
87 if (track != null) { in constructorTestMultiSampleRate()
88 localRes = (track.getState() == _expected_stateForMode); in constructorTestMultiSampleRate()
89 track.release(); in constructorTestMultiSampleRate()
235 AudioTrack track = null; in testConstructorStreamType() local
240 track = new AudioTrack(STREAM_TYPES[i], TYPE_TEST_SR, TYPE_TEST_CONF, in testConstructorStreamType()
249 if (track != null) { in testConstructorStreamType()
250 if (track.getState() != AudioTrack.STATE_INITIALIZED) { in testConstructorStreamType()
257 track.release(); in testConstructorStreamType()
[all …]
DAudioTrackNative.java140 private static native void nativeDestroyTrack(long track); in nativeDestroyTrack() argument
142 long track, int numChannels, int sampleRate, boolean useFloat, int numBuffers); in nativeOpen() argument
143 private static native void nativeClose(long track); in nativeClose() argument
144 private static native int nativeStart(long track); in nativeStart() argument
145 private static native int nativeStop(long track); in nativeStop() argument
146 private static native int nativePause(long track); in nativePause() argument
147 private static native int nativeFlush(long track); in nativeFlush() argument
148 private static native int nativeGetPositionInMsec(long track, @NonNull long[] position); in nativeGetPositionInMsec() argument
149 private static native int nativeGetBuffersPending(long track); in nativeGetBuffersPending() argument
150 private static native int nativeWriteByteArray(long track, @NonNull byte[] byteArray, in nativeWriteByteArray() argument
[all …]
DAudioTrack_ListenerTest.java95 final AudioTrack track; in doTest() local
99 track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, in doTest()
113 track = makeSomething.make(); in doTest()
117 listener = new MockOnPlaybackPositionUpdateListener(track, mHandler); in doTest()
119 listener = new MockOnPlaybackPositionUpdateListener(track); in doTest()
130 assertEquals(0, track.getNotificationMarkerPosition()); in doTest()
132 track.setNotificationMarkerPosition(mMarkerPosition)); in doTest()
133 assertEquals(mMarkerPosition, track.getNotificationMarkerPosition()); in doTest()
141 assertEquals(0, track.getPositionNotificationPeriod()); in doTest()
143 track.setPositionNotificationPeriod(updatePeriodInFrames)); in doTest()
[all …]
DAudioNativeTest.java90 AudioTrackNative track = new AudioTrackNative(); in testPlayStreamData() local
92 track.open(TEST_CHANNELS, TEST_SR, TEST_FLOAT, 1 /* numBuffers */)); in testPlayStreamData()
93 assertTrue(TEST_NAME, track.start()); in testPlayStreamData()
103 track.write(data, 0 /* offset */, sourceSamples, in testPlayStreamData()
110 track.write(data, 0 /* offset */, sourceSamples, in testPlayStreamData()
117 long position = track.getPositionInMsec(); in testPlayStreamData()
124 if (track.getBuffersPending() == 0) { in testPlayStreamData()
129 track.stop(); in testPlayStreamData()
130 track.close(); in testPlayStreamData()
DAudioEffectTest.java238 AudioTrack track = null; in test1_7AuxiliaryOnAudioTrack() local
241 track = new AudioTrack( in test1_7AuxiliaryOnAudioTrack()
250 assertNotNull("could not create AudioTrack", track); in test1_7AuxiliaryOnAudioTrack()
252 int status = track.attachAuxEffect(mEffect.getId()); in test1_7AuxiliaryOnAudioTrack()
256 status = track.setAuxEffectSendLevel(1.0f); in test1_7AuxiliaryOnAudioTrack()
265 if (track != null) { in test1_7AuxiliaryOnAudioTrack()
266 track.release(); in test1_7AuxiliaryOnAudioTrack()
DAudioRecordTest.java469 AudioTrack track = null; in testSynchronizedRecord() local
483 track = new AudioTrack.Builder() in testSynchronizedRecord()
493 track.write(vab, 0 /* offsetInBytes */, vab.length, in testSynchronizedRecord()
495 final int trackSessionId = track.getAudioSessionId(); in testSynchronizedRecord()
531 track.play(); in testSynchronizedRecord()
593 if (track != null) { in testSynchronizedRecord()
594 track.release(); in testSynchronizedRecord()
595 track = null; in testSynchronizedRecord()
DJetPlayerTest.java192 public void onJetEvent(JetPlayer player, short segment, byte track, byte channel, in onJetEvent() argument
DVideoEncoderTest.java281 int track = mExtractor.getSampleTrackIndex(); in fillDecoderInputBuffer() local
282 if (track >= 0 && track != mTrackIndex) { in fillDecoderInputBuffer()
/cts/tests/tests/media/libaudiojni/
Daudio-track-native.cpp350 AudioTrackNative *track = (AudioTrackNative *)pContext; in BufferQueueCallback() local
351 track->bufferQueueCallback(queueItf); in BufferQueueCallback()
383 AudioTrackNative track; in Java_android_media_cts_AudioTrackNative_nativeTest() local
390 res = track.open(numChannels, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioTrackNative_nativeTest()
394 track.write((char *)buffer + i * (framesPerBuffer * frameSize), in Java_android_media_cts_AudioTrackNative_nativeTest()
398 track.logBufferState(); in Java_android_media_cts_AudioTrackNative_nativeTest()
399 res = track.start(); in Java_android_media_cts_AudioTrackNative_nativeTest()
403 while ((buffers = track.getBuffersPending()) > 0) { in Java_android_media_cts_AudioTrackNative_nativeTest()
407 res = track.stop(); in Java_android_media_cts_AudioTrackNative_nativeTest()
410 track.close(); in Java_android_media_cts_AudioTrackNative_nativeTest()
[all …]
DAndroid.mk27 audio-track-native.cpp \
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvViewTest.java239 private void selectTrackAndVerify(final int type, final TvTrackInfo track, in selectTrackAndVerify() argument
244 mTvView.selectTrack(type, track == null ? null : track.getId()); in selectTrackAndVerify()
246 if ((track == null && selectedTrackId != null) in selectTrackAndVerify()
247 || (track != null && !track.getId().equals(selectedTrackId))) { in selectTrackAndVerify()
259 assertEquals(selectedTrackId, track == null ? null : track.getId()); in selectTrackAndVerify()
269 assertEquals(track.getType(), selectedTrack.getType()); in selectTrackAndVerify()
270 assertEquals(track.getExtra(), selectedTrack.getExtra()); in selectTrackAndVerify()
271 switch (track.getType()) { in selectTrackAndVerify()
273 assertEquals(track.getVideoHeight(), selectedTrack.getVideoHeight()); in selectTrackAndVerify()
274 assertEquals(track.getVideoWidth(), selectedTrack.getVideoWidth()); in selectTrackAndVerify()
[all …]
DStubTunerTvInputService.java146 for (TvTrackInfo track : mTrackList) { in onTune()
147 if (track.getType() == TvTrackInfo.TYPE_VIDEO) { in onTune()
148 notifyTrackSelected(TvTrackInfo.TYPE_VIDEO, track.getId()); in onTune()
152 for (TvTrackInfo track : mTrackList) { in onTune()
153 if (track.getType() == TvTrackInfo.TYPE_AUDIO) { in onTune()
154 notifyTrackSelected(TvTrackInfo.TYPE_AUDIO, track.getId()); in onTune()
/cts/tests/tests/media/res/raw/
Dplaylist2.m3u3 # first track
6 # second track
/cts/libs/deviceutil/src/android/cts/util/
DMediaUtils.java205 public static boolean hasCodecForTrack(MediaExtractor ex, int track) { in hasCodecForTrack() argument
207 if (track < 0 || track >= count) { in hasCodecForTrack()
208 throw new IndexOutOfBoundsException(track + " not in [0.." + (count - 1) + "]"); in hasCodecForTrack()
210 return canDecode(ex.getTrackFormat(track)); in hasCodecForTrack()
250 Context context, int resourceId, int track, String mimePrefix) { in hasCodecsForResourceCombo() argument
260 } else if (track == ALL_AV_TRACKS) { in hasCodecsForResourceCombo()
263 return hasCodecForTrack(ex, track); in hasCodecsForResourceCombo()
293 public static boolean hasCodecForResource(Context context, int resourceId, int track) { in hasCodecForResource() argument
294 return hasCodecsForResourceCombo(context, resourceId, track, null /* mimePrefix */); in hasCodecForResource()
297 public static boolean checkCodecForResource(Context context, int resourceId, int track) { in checkCodecForResource() argument
[all …]
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/
DAudioProtocol.java113 public void onMarkerReached(AudioTrack track) { in onMarkerReached() argument
115 track.stop(); in onMarkerReached()
116 track.flush(); in onMarkerReached()
117 track.release(); in onMarkerReached()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyLineActivity.java646 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
DAudioFrequencySpeakerActivity.java698 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
DAudioFrequencyMicActivity.java806 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
/cts/tests/expectations/
Dknownfailures.txt300 description: "New assist tests that do not yet have a track record.",