Home
last modified time | relevance | path

Searched refs:useFloat (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackNative.java43 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
44 return open(numChannels, 0, sampleRate, useFloat, numBuffers); in open()
48 boolean useFloat, int numBuffers) { in open() argument
50 sampleRate, useFloat, numBuffers) == STATUS_OK) { in open()
115 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument
117 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test()
120 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument
122 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
151 int sampleRate, boolean useFloat, int numBuffers); in nativeOpen() argument
169 boolean useFloat, int msecPerBuffer, int numBuffers); in nativeTest() argument
DAudioRecordNative.java41 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
42 return open(numChannels, 0, sampleRate, useFloat,numBuffers); in open()
46 boolean useFloat, int numBuffers) { in open() argument
48 sampleRate, useFloat, numBuffers) == STATUS_OK) { in open()
113 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument
115 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test()
118 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument
120 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
149 int sampleRate, boolean useFloat, int numBuffers); in nativeOpen() argument
168 boolean useFloat, int msecPerBuffer, int numBuffers); in nativeTest() argument
DAudioNativeTest.java351 int numChannels, int sampleRate, boolean useFloat, in doRecordTest() argument
356 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest()
363 if (useFloat) { in doRecordTest()
409 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
410 if (super.open(numChannels, sampleRate, useFloat, numBuffers)) { in open()
411 if (!mTrack.open(numChannels, sampleRate, useFloat, 2 /* numBuffers */)) { in open()
/cts/tests/tests/media/audio/jni/
Daudio-record-native.cpp83 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_audio_cts_AudioRecordNative_nativeTest() argument
471 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_audio_cts_AudioRecordNative_nativeTest()
477 res = record.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_audio_cts_AudioRecordNative_nativeTest()
515 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_audio_cts_AudioRecordNative_nativeOpen() argument
521 return (jint) record->open(numChannels, channelMask, sampleRate, useFloat == JNI_TRUE, in Java_android_media_audio_cts_AudioRecordNative_nativeOpen()
Daudio-track-native.cpp74 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_audio_cts_AudioTrackNative_nativeTest() argument
383 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_audio_cts_AudioTrackNative_nativeTest()
389 res = track.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_audio_cts_AudioTrackNative_nativeTest()
429 jboolean useFloat, jint numBuffers) in Java_android_media_audio_cts_AudioTrackNative_nativeOpen() argument
438 useFloat == JNI_TRUE, in Java_android_media_audio_cts_AudioTrackNative_nativeOpen()
/cts/tests/tests/media/common/src/android/media/cts/
DStreamUtils.java270 int samples, int sampleRate, double frequency, double sweep, boolean useFloat) { in PcmAudioBufferStream() argument
271 final int sampleSize = useFloat ? 4 : 2; in PcmAudioBufferStream()
275 if (useFloat) { in PcmAudioBufferStream()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecTest.java2214 final boolean useFloat = (i == 1); in testFlacIdentity()
2217 100 /* sweep */, useFloat); in testFlacIdentity()
2219 if (useFloat) { in testFlacIdentity()
2229 if (useFloat) { // ensure float precision supported at the sample rate. in testFlacIdentity()