/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackLatencyTest.java | 79 AudioTrack track = new AudioTrack(TEST_STREAM_TYPE, TEST_SR, TEST_CONF, TEST_FORMAT, in testSetBufferSize() local 84 int bufferCapacity = track.getBufferCapacityInFrames(); in testSetBufferSize() 85 int initialBufferSize = track.getBufferSizeInFrames(); in testSetBufferSize() 91 int resultNegative = track.setBufferSizeInFrames(-1); in testSetBufferSize() 94 initialBufferSize, track.getBufferSizeInFrames()); in testSetBufferSize() 96 int resultZero = track.setBufferSizeInFrames(0); in testSetBufferSize() 101 resultZero, track.getBufferSizeInFrames()); in testSetBufferSize() 103 int resultMax = track.setBufferSizeInFrames(Integer.MAX_VALUE); in testSetBufferSize() 107 resultMax, track.getBufferSizeInFrames()); in testSetBufferSize() 109 int resultMiddle = track.setBufferSizeInFrames(bufferCapacity / 2); in testSetBufferSize() [all …]
|
D | AudioTrackTest.java | 79 AudioTrack track = null; in constructorTestMultiSampleRate() local 81 track = new AudioTrack(_inTest_streamType, testSampleRates[i], _inTest_config, in constructorTestMultiSampleRate() 89 if (track != null) { in constructorTestMultiSampleRate() 90 localRes = (track.getState() == _expected_stateForMode); in constructorTestMultiSampleRate() 91 track.release(); in constructorTestMultiSampleRate() 237 AudioTrack track = null; in testConstructorStreamType() local 242 track = new AudioTrack(STREAM_TYPES[i], TYPE_TEST_SR, TYPE_TEST_CONF, in testConstructorStreamType() 251 if (track != null) { in testConstructorStreamType() 252 if (track.getState() != AudioTrack.STATE_INITIALIZED) { in testConstructorStreamType() 259 track.release(); in testConstructorStreamType() [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 | 150 private static native void nativeDestroyTrack(long track); in nativeDestroyTrack() argument 152 long track, int numChannels, int channelMask, in nativeOpen() argument 154 private static native void nativeClose(long track); in nativeClose() argument 155 private static native int nativeStart(long track); in nativeStart() argument 156 private static native int nativeStop(long track); in nativeStop() argument 157 private static native int nativePause(long track); in nativePause() argument 158 private static native int nativeFlush(long track); in nativeFlush() argument 159 private static native int nativeGetPositionInMsec(long track, @NonNull long[] position); in nativeGetPositionInMsec() argument 160 private static native int nativeGetBuffersPending(long track); in nativeGetBuffersPending() argument 161 private static native int nativeWriteByteArray(long track, @NonNull byte[] byteArray, in nativeWriteByteArray() argument [all …]
|
D | AudioNativeTest.java | 98 AudioTrackNative track = new AudioTrackNative(); in testPlayStreamData() local 100 track.open(TEST_CHANNELS, TEST_SR, TEST_FLOAT, 1 /* numBuffers */)); in testPlayStreamData() 101 assertTrue(TEST_NAME, track.start()); in testPlayStreamData() 111 track.write(data, 0 /* offset */, sourceSamples, in testPlayStreamData() 118 track.write(data, 0 /* offset */, sourceSamples, in testPlayStreamData() 125 long position = track.getPositionInMsec(); in testPlayStreamData() 132 if (track.getBuffersPending() == 0) { in testPlayStreamData() 137 track.stop(); in testPlayStreamData() 138 track.close(); in testPlayStreamData() 204 AudioTrackNative track = new AudioTrackNative(); in testOutputChannelMasks() local [all …]
|
D | AudioTrackSurroundTest.java | 204 AudioTrack track = new AudioTrack(AudioManager.STREAM_MUSIC, in createAudioTrack() local 208 return track; in createAudioTrack() 222 void addTimestamp(AudioTrack track) { in addTimestamp() argument 224 boolean gotTimestamp = track.getTimestamp(timestamp); in addTimestamp() 535 AudioTrack track = createAudioTrack(48000, AudioFormat.ENCODING_IEC61937, in testIEC61937_Errors() local 543 AudioTrack track = createAudioTrack(48000, AudioFormat.ENCODING_IEC61937, in testIEC61937_Errors() local
|
D | AudioEffectTest.java | 245 AudioTrack track = null; in test1_7AuxiliaryOnAudioTrack() local 248 track = new AudioTrack( in test1_7AuxiliaryOnAudioTrack() 257 assertNotNull("could not create AudioTrack", track); in test1_7AuxiliaryOnAudioTrack() 259 int status = track.attachAuxEffect(mEffect.getId()); in test1_7AuxiliaryOnAudioTrack() 263 status = track.setAuxEffectSendLevel(1.0f); in test1_7AuxiliaryOnAudioTrack() 272 if (track != null) { in test1_7AuxiliaryOnAudioTrack() 273 track.release(); in test1_7AuxiliaryOnAudioTrack()
|
D | AudioRecordTest.java | 570 AudioTrack track = null; in testSynchronizedRecord() local 584 track = new AudioTrack.Builder() in testSynchronizedRecord() 594 track.write(vab, 0 /* offsetInBytes */, vab.length, in testSynchronizedRecord() 596 final int trackSessionId = track.getAudioSessionId(); in testSynchronizedRecord() 632 track.play(); in testSynchronizedRecord() 694 if (track != null) { in testSynchronizedRecord() 695 track.release(); in testSynchronizedRecord() 696 track = null; in testSynchronizedRecord()
|
D | JetPlayerTest.java | 201 public void onJetEvent(JetPlayer player, short segment, byte track, byte channel, in onJetEvent() argument
|
D | VideoEncoderTest.java | 325 int track = mExtractor.getSampleTrackIndex(); in fillDecoderInputBuffer() local 326 if (track >= 0 && track != mTrackIndex) { in fillDecoderInputBuffer()
|
/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 | 270 private void selectTrackAndVerify(final int type, final TvTrackInfo track, in selectTrackAndVerify() argument 275 mTvView.selectTrack(type, track == null ? null : track.getId()); in selectTrackAndVerify() 277 if ((track == null && selectedTrackId != null) in selectTrackAndVerify() 278 || (track != null && !track.getId().equals(selectedTrackId))) { in selectTrackAndVerify() 290 assertEquals(selectedTrackId, track == null ? null : track.getId()); in selectTrackAndVerify() 300 assertEquals(track.getType(), selectedTrack.getType()); in selectTrackAndVerify() 301 assertEquals(track.getExtra(), selectedTrack.getExtra()); in selectTrackAndVerify() 302 switch (track.getType()) { in selectTrackAndVerify() 304 assertEquals(track.getVideoHeight(), selectedTrack.getVideoHeight()); in selectTrackAndVerify() 305 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/libs/deviceutil/src/android/cts/util/ |
D | MediaUtils.java | 315 public static boolean hasCodecForTrack(MediaExtractor ex, int track) { in hasCodecForTrack() argument 317 if (track < 0 || track >= count) { in hasCodecForTrack() 318 throw new IndexOutOfBoundsException(track + " not in [0.." + (count - 1) + "]"); in hasCodecForTrack() 320 return canDecode(ex.getTrackFormat(track)); in hasCodecForTrack() 360 Context context, int resourceId, int track, String mimePrefix) { in hasCodecsForResourceCombo() argument 370 } else if (track == ALL_AV_TRACKS) { in hasCodecsForResourceCombo() 373 return hasCodecForTrack(ex, track); in hasCodecsForResourceCombo() 403 public static boolean hasCodecForResource(Context context, int resourceId, int track) { in hasCodecForResource() argument 404 return hasCodecsForResourceCombo(context, resourceId, track, null /* mimePrefix */); in hasCodecForResource() 407 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 | AudioFrequencyLineActivity.java | 676 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
|
D | AudioFrequencySpeakerActivity.java | 695 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
|
D | AudioFrequencyUnprocessedActivity.java | 668 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
|
D | AudioFrequencyMicActivity.java | 828 public void onMarkerReached(AudioRecord track) { in onMarkerReached() argument
|
/cts/tests/expectations/ |
D | knownfailures.txt | 247 description: "New assist tests that do not yet have a track record.",
|
/cts/tools/dex-tools/dex/ |
D | classes.out.dex | 141352 private java.lang.String track
|