/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackTest.java | 95 AudioTrack track = null; in constructorTestMultiSampleRate() local 97 track = new AudioTrack(_inTest_streamType, testSampleRates[i], _inTest_config, in constructorTestMultiSampleRate() 105 if (track != null) { in constructorTestMultiSampleRate() 106 localRes = (track.getState() == _expected_stateForMode); in constructorTestMultiSampleRate() 107 track.release(); in constructorTestMultiSampleRate() 262 AudioTrack track = null; in testConstructorStreamType() local 267 track = new AudioTrack(STREAM_TYPES[i], TYPE_TEST_SR, TYPE_TEST_CONF, in testConstructorStreamType() 276 if (track != null) { in testConstructorStreamType() 277 if (track.getState() != AudioTrack.STATE_INITIALIZED) { in testConstructorStreamType() 284 track.release(); in testConstructorStreamType() [all …]
|
D | AudioTrackLatencyTest.java | 82 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 …]
|
D | AudioTrackOffloadTest.java | 77 AudioTrack track = null; in testAudioTrackOffload() local 91 track = new AudioTrack.Builder() in testAudioTrackOffload() 97 assertNotNull("Couldn't create offloaded AudioTrack", track); in testAudioTrackOffload() 98 assertEquals("Unexpected track sample rate", 44100, track.getSampleRate()); in testAudioTrackOffload() 100 track.getChannelConfiguration()); in testAudioTrackOffload() 103 track.registerStreamEventCallback(mExec, null); in testAudioTrackOffload() 106 track.registerStreamEventCallback(mExec, mCallback); in testAudioTrackOffload() 111 track.play(); in testAudioTrackOffload() 114 int wrote = track.write(data, written, read - written, in testAudioTrackOffload() 124 track.stop(); in testAudioTrackOffload() [all …]
|
D | AudioTrack_ListenerTest.java | 96 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 …]
|
D | AudioTrackNative.java | 151 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 …]
|
D | AudioNativeTest.java | 108 AudioTrackNative track = new AudioTrackNative(); in testPlayStreamData() local 110 track.open(TEST_CHANNELS, TEST_SR, TEST_FLOAT, 1 /* numBuffers */)); in testPlayStreamData() 111 assertTrue(TEST_NAME, track.start()); in testPlayStreamData() 121 track.write(data, 0 /* offset */, sourceSamples, in testPlayStreamData() 128 track.write(data, 0 /* offset */, sourceSamples, in testPlayStreamData() 135 long position = track.getPositionInMsec(); in testPlayStreamData() 142 if (track.getBuffersPending() == 0) { in testPlayStreamData() 147 track.stop(); in testPlayStreamData() 149 track.close(); in testPlayStreamData() 220 AudioTrackNative track = new AudioTrackNative(); in testOutputChannelMasks() local [all …]
|
D | AudioTrackSurroundTest.java | 203 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
|
D | AudioEffectTest.java | 247 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()
|
D | AudioRecordTest.java | 701 AudioTrack track = null; in testSynchronizedRecord() local 715 track = new AudioTrack.Builder() in testSynchronizedRecord() 725 track.write(vab, 0 /* offsetInBytes */, vab.length, in testSynchronizedRecord() 727 final int trackSessionId = track.getAudioSessionId(); in testSynchronizedRecord() 763 track.play(); in testSynchronizedRecord() 827 if (track != null) { in testSynchronizedRecord() 828 track.release(); in testSynchronizedRecord() 829 track = null; in testSynchronizedRecord()
|
D | JetPlayerTest.java | 203 public void onJetEvent(JetPlayer player, short segment, byte track, byte channel, in onJetEvent() argument
|
D | VideoEncoderTest.java | 334 int track = mExtractor.getSampleTrackIndex(); in fillDecoderInputBuffer() local 335 if (track >= 0 && track != mTrackIndex) { in fillDecoderInputBuffer()
|
D | .goutputstream-9KZYJZ | 683 assertTrue("Stream has no timed ID3 track", i >= 0);
|
/cts/tests/tests/media/libaudiojni/ |
D | audio-track-native.cpp | 349 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 …]
|
D | Android.mk | 27 audio-track-native.cpp \
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvViewTest.java | 271 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 …]
|
D | StubTunerTvInputService.java | 146 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/ |
D | playlist2.m3u | 3 # first track 6 # second track
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 347 public static boolean hasCodecForTrack(MediaExtractor ex, int track) { in hasCodecForTrack() argument 349 if (track < 0 || track >= count) { in hasCodecForTrack() 350 throw new IndexOutOfBoundsException(track + " not in [0.." + (count - 1) + "]"); in hasCodecForTrack() 352 return canDecode(ex.getTrackFormat(track)); in hasCodecForTrack() 392 Context context, int resourceId, int track, String mimePrefix) { in hasCodecsForResourceCombo() argument 402 } else if (track == ALL_AV_TRACKS) { in hasCodecsForResourceCombo() 405 return hasCodecForTrack(ex, track); in hasCodecsForResourceCombo() 435 public static boolean hasCodecForResource(Context context, int resourceId, int track) { in hasCodecForResource() argument 436 return hasCodecsForResourceCombo(context, resourceId, track, null /* mimePrefix */); in hasCodecForResource() 439 public static boolean checkCodecForResource(Context context, int resourceId, int track) { in checkCodecForResource() argument [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 345 public static boolean hasCodecForTrack(MediaExtractor ex, int track) { in hasCodecForTrack() argument 347 if (track < 0 || track >= count) { in hasCodecForTrack() 348 throw new IndexOutOfBoundsException(track + " not in [0.." + (count - 1) + "]"); in hasCodecForTrack() 350 return canDecode(ex.getTrackFormat(track)); in hasCodecForTrack() 390 Context context, int resourceId, int track, String mimePrefix) { in hasCodecsForResourceCombo() argument 400 } else if (track == ALL_AV_TRACKS) { in hasCodecsForResourceCombo() 403 return hasCodecForTrack(ex, track); in hasCodecsForResourceCombo() 433 public static boolean hasCodecForResource(Context context, int resourceId, int track) { in hasCodecForResource() argument 434 return hasCodecsForResourceCombo(context, resourceId, track, null /* mimePrefix */); in hasCodecForResource() 437 public static boolean checkCodecForResource(Context context, int resourceId, int track) { in checkCodecForResource() argument [all …]
|
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/ |
D | AudioProtocol.java | 113 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/ |
D | AudioFrequencySpeakerActivity.java | 695 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
|
D | AudioFrequencyLineActivity.java | 676 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
|
D | AudioFrequencyMicActivity.java | 904 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
|
D | AudioFrequencyUnprocessedActivity.java | 1146 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
|