Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DAudioTrackLatencyTest.java82 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testSetBufferSize() local
87 int bufferCapacity = track.getBufferCapacityInFrames(); in testSetBufferSize()
88 int initialBufferSize = track.getBufferSizeInFrames(); in testSetBufferSize()
94 int resultNegative = track.setBufferSizeInFrames(-1); in testSetBufferSize()
97 initialBufferSize, track.getBufferSizeInFrames()); in testSetBufferSize()
99 int resultZero = track.setBufferSizeInFrames(0); in testSetBufferSize()
104 resultZero, track.getBufferSizeInFrames()); in testSetBufferSize()
106 int resultMax = track.setBufferSizeInFrames(Integer.MAX_VALUE); in testSetBufferSize()
110 resultMax, track.getBufferSizeInFrames()); in testSetBufferSize()
112 int resultMiddle = track.setBufferSizeInFrames(bufferCapacity / 2); in testSetBufferSize()
[all …]
DAudioTrackTest.java84 AudioTrack track = null; in constructorTestMultiSampleRate() local
86 track = new AudioTrack(_inTest_streamType, testSampleRates[i], _inTest_config, in constructorTestMultiSampleRate()
94 if (track != null) { in constructorTestMultiSampleRate()
95 localRes = (track.getState() == _expected_stateForMode); in constructorTestMultiSampleRate()
96 track.release(); in constructorTestMultiSampleRate()
242 AudioTrack track = null; in testConstructorStreamType() local
247 track = new AudioTrack(STREAM_TYPES[i], TYPE_TEST_SR, TYPE_TEST_CONF, in testConstructorStreamType()
256 if (track != null) { in testConstructorStreamType()
257 if (track.getState() != AudioTrack.STATE_INITIALIZED) { in testConstructorStreamType()
264 track.release(); in testConstructorStreamType()
[all …]
DAudioTrack_ListenerTest.java96 final AudioTrack track; in doTest() local
100 track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, in doTest()
114 track = makeSomething.make(); in doTest()
118 listener = new MockOnPlaybackPositionUpdateListener(track, mHandler); in doTest()
120 listener = new MockOnPlaybackPositionUpdateListener(track); in doTest()
131 assertEquals(0, track.getNotificationMarkerPosition()); in doTest()
133 track.setNotificationMarkerPosition(mMarkerPosition)); in doTest()
134 assertEquals(mMarkerPosition, track.getNotificationMarkerPosition()); in doTest()
142 assertEquals(0, track.getPositionNotificationPeriod()); in doTest()
144 track.setPositionNotificationPeriod(updatePeriodInFrames)); in doTest()
[all …]
DAudioTrackNative.java151 private static native void nativeDestroyTrack(long track); in nativeDestroyTrack() argument
153 long track, int numChannels, int channelMask, in nativeOpen() argument
155 private static native void nativeClose(long track); in nativeClose() argument
156 private static native int nativeStart(long track); in nativeStart() argument
157 private static native int nativeStop(long track); in nativeStop() argument
158 private static native int nativePause(long track); in nativePause() argument
159 private static native int nativeFlush(long track); in nativeFlush() argument
160 private static native int nativeGetPositionInMsec(long track, @NonNull long[] position); in nativeGetPositionInMsec() argument
161 private static native int nativeGetBuffersPending(long track); in nativeGetBuffersPending() argument
162 private static native int nativeWriteByteArray(long track, @NonNull byte[] byteArray, in nativeWriteByteArray() argument
[all …]
DAudioNativeTest.java104 AudioTrackNative track = new AudioTrackNative(); in testPlayStreamData() local
106 track.open(TEST_CHANNELS, TEST_SR, TEST_FLOAT, 1 /* numBuffers */)); in testPlayStreamData()
107 assertTrue(TEST_NAME, track.start()); in testPlayStreamData()
117 track.write(data, 0 /* offset */, sourceSamples, in testPlayStreamData()
124 track.write(data, 0 /* offset */, sourceSamples, in testPlayStreamData()
131 long position = track.getPositionInMsec(); in testPlayStreamData()
138 if (track.getBuffersPending() == 0) { in testPlayStreamData()
143 track.stop(); in testPlayStreamData()
145 track.close(); in testPlayStreamData()
216 AudioTrackNative track = new AudioTrackNative(); in testOutputChannelMasks() local
[all …]
DAudioTrackSurroundTest.java203 AudioTrack track = new AudioTrack(AudioManager.STREAM_MUSIC, in createAudioTrack() local
207 return track; in createAudioTrack()
221 void addTimestamp(AudioTrack track) { in addTimestamp() argument
223 boolean gotTimestamp = track.getTimestamp(timestamp); in addTimestamp()
574 AudioTrack track = createAudioTrack(48000, AudioFormat.ENCODING_IEC61937, in testIEC61937_Errors() local
582 AudioTrack track = createAudioTrack(48000, AudioFormat.ENCODING_IEC61937, in testIEC61937_Errors() local
DAudioEffectTest.java247 AudioTrack track = null; in test1_7AuxiliaryOnAudioTrack() local
250 track = new AudioTrack( in test1_7AuxiliaryOnAudioTrack()
259 assertNotNull("could not create AudioTrack", track); in test1_7AuxiliaryOnAudioTrack()
261 int status = track.attachAuxEffect(mEffect.getId()); in test1_7AuxiliaryOnAudioTrack()
265 status = track.setAuxEffectSendLevel(1.0f); in test1_7AuxiliaryOnAudioTrack()
274 if (track != null) { in test1_7AuxiliaryOnAudioTrack()
275 track.release(); in test1_7AuxiliaryOnAudioTrack()
DAudioRecordTest.java682 AudioTrack track = null; in testSynchronizedRecord() local
696 track = new AudioTrack.Builder() in testSynchronizedRecord()
706 track.write(vab, 0 /* offsetInBytes */, vab.length, in testSynchronizedRecord()
708 final int trackSessionId = track.getAudioSessionId(); in testSynchronizedRecord()
744 track.play(); in testSynchronizedRecord()
808 if (track != null) { in testSynchronizedRecord()
809 track.release(); in testSynchronizedRecord()
810 track = null; in testSynchronizedRecord()
DJetPlayerTest.java203 public void onJetEvent(JetPlayer player, short segment, byte track, byte channel, in onJetEvent() argument
DVideoEncoderTest.java331 int track = mExtractor.getSampleTrackIndex(); in fillDecoderInputBuffer() local
332 if (track >= 0 && track != mTrackIndex) { in fillDecoderInputBuffer()
D.goutputstream-9KZYJZ683 assertTrue("Stream has no timed ID3 track", i >= 0);
/cts/tests/tests/media/libaudiojni/
Daudio-track-native.cpp349 AudioTrackNative *track = (AudioTrackNative *)pContext; in BufferQueueCallback() local
350 track->bufferQueueCallback(queueItf); in BufferQueueCallback()
382 AudioTrackNative track; in Java_android_media_cts_AudioTrackNative_nativeTest() local
389 res = track.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioTrackNative_nativeTest()
393 track.write((char *)buffer + i * (framesPerBuffer * frameSize), in Java_android_media_cts_AudioTrackNative_nativeTest()
397 track.logBufferState(); in Java_android_media_cts_AudioTrackNative_nativeTest()
398 res = track.start(); in Java_android_media_cts_AudioTrackNative_nativeTest()
402 while ((buffers = track.getBuffersPending()) > 0) { in Java_android_media_cts_AudioTrackNative_nativeTest()
406 res = track.stop(); in Java_android_media_cts_AudioTrackNative_nativeTest()
409 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.java271 private void selectTrackAndVerify(final int type, final TvTrackInfo track, in selectTrackAndVerify() argument
276 mTvView.selectTrack(type, track == null ? null : track.getId()); in selectTrackAndVerify()
278 if ((track == null && selectedTrackId != null) in selectTrackAndVerify()
279 || (track != null && !track.getId().equals(selectedTrackId))) { in selectTrackAndVerify()
291 assertEquals(selectedTrackId, track == null ? null : track.getId()); in selectTrackAndVerify()
301 assertEquals(track.getType(), selectedTrack.getType()); in selectTrackAndVerify()
302 assertEquals(track.getExtra(), selectedTrack.getExtra()); in selectTrackAndVerify()
303 switch (track.getType()) { in selectTrackAndVerify()
305 assertEquals(track.getVideoHeight(), selectedTrack.getVideoHeight()); in selectTrackAndVerify()
306 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/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java344 public static boolean hasCodecForTrack(MediaExtractor ex, int track) { in hasCodecForTrack() argument
346 if (track < 0 || track >= count) { in hasCodecForTrack()
347 throw new IndexOutOfBoundsException(track + " not in [0.." + (count - 1) + "]"); in hasCodecForTrack()
349 return canDecode(ex.getTrackFormat(track)); in hasCodecForTrack()
389 Context context, int resourceId, int track, String mimePrefix) { in hasCodecsForResourceCombo() argument
399 } else if (track == ALL_AV_TRACKS) { in hasCodecsForResourceCombo()
402 return hasCodecForTrack(ex, track); in hasCodecsForResourceCombo()
432 public static boolean hasCodecForResource(Context context, int resourceId, int track) { in hasCodecForResource() argument
433 return hasCodecsForResourceCombo(context, resourceId, track, null /* mimePrefix */); in hasCodecForResource()
436 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/hostsidetests/jvmti/run-tests/
DAndroid.mk98 src/1900-track-alloc/src/art/Test1900.java \
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencySpeakerActivity.java695 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
DAudioFrequencyMicActivity.java904 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
DAudioFrequencyUnprocessedActivity.java1146 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument