/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackNative.java | 46 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument 47 return open(numChannels, 0, sampleRate, useFloat, numBuffers); in open() 51 boolean useFloat, int numBuffers) { in open() argument 53 sampleRate, useFloat, numBuffers) == STATUS_OK) { in open() 118 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument 120 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test() 123 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument 125 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test() 154 int sampleRate, boolean useFloat, int numBuffers); in nativeOpen() argument 172 boolean useFloat, int msecPerBuffer, int numBuffers); in nativeTest() argument
|
D | AudioRecordNative.java | 44 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument 45 return open(numChannels, 0, sampleRate, useFloat,numBuffers); in open() 49 boolean useFloat, int numBuffers) { in open() argument 51 sampleRate, useFloat, numBuffers) == STATUS_OK) { in open() 116 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument 118 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test() 121 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument 123 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test() 152 int sampleRate, boolean useFloat, int numBuffers); in nativeOpen() argument 171 boolean useFloat, int msecPerBuffer, int numBuffers); in nativeTest() argument
|
D | AudioNativeTest.java | 340 int numChannels, int sampleRate, boolean useFloat, in doRecordTest() argument 345 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest() 352 if (useFloat) { in doRecordTest()
|
D | AudioHelper.java | 616 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument 617 if (super.open(numChannels, sampleRate, useFloat, numBuffers)) { in open() 618 if (!mTrack.open(numChannels, sampleRate, useFloat, 2 /* numBuffers */)) { in open()
|
D | MediaCodecTest.java | 2254 int samples, int sampleRate, double frequency, double sweep, boolean useFloat) { in PcmAudioBufferStream() argument 2255 final int sampleSize = useFloat ? 4 : 2; in PcmAudioBufferStream() 2259 if (useFloat) { in PcmAudioBufferStream() 2341 final boolean useFloat = (i == 1); in testFlacIdentity() 2343 SAMPLES, sampleRate, 1000 /* frequency */, 100 /* sweep */, useFloat); in testFlacIdentity() 2345 if (useFloat) { in testFlacIdentity() 2355 if (useFloat) { // ensure float precision supported at the sample rate. in testFlacIdentity()
|
/cts/tests/tests/media/libaudiojni/ |
D | audio-record-native.cpp | 83 bool useFloat, in open() argument 123 pcm.formatType = useFloat ? SL_ANDROID_DATAFORMAT_PCM_EX : SL_DATAFORMAT_PCM; in open() 126 pcm.bitsPerSample = useFloat ? in open() 132 pcm.representation = useFloat ? SL_ANDROID_PCM_REPRESENTATION_FLOAT in open() 174 * numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in open() 469 jboolean useFloat, jint msecPerBuffer, jint numBuffers) { in Java_android_media_cts_AudioRecordNative_nativeTest() argument 471 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioRecordNative_nativeTest() 477 res = record.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioRecordNative_nativeTest() 515 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_cts_AudioRecordNative_nativeOpen() argument 521 return (jint) record->open(numChannels, channelMask, sampleRate, useFloat == JNI_TRUE, in Java_android_media_cts_AudioRecordNative_nativeOpen()
|
D | audio-track-native.cpp | 74 jint sampleRate, jboolean useFloat, jint numBuffers) { in open() argument 108 pcm.formatType = useFloat ? SL_ANDROID_DATAFORMAT_PCM_EX : SL_DATAFORMAT_PCM; in open() 111 pcm.bitsPerSample = useFloat ? in open() 117 pcm.representation = useFloat ? SL_ANDROID_PCM_REPRESENTATION_FLOAT in open() 379 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, in Java_android_media_cts_AudioTrackNative_nativeTest() argument 383 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioTrackNative_nativeTest() 389 res = track.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioTrackNative_nativeTest() 429 jboolean useFloat, jint numBuffers) in Java_android_media_cts_AudioTrackNative_nativeOpen() argument 438 useFloat == JNI_TRUE, in Java_android_media_cts_AudioTrackNative_nativeOpen()
|