Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DAudioTrackNative.java45 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
46 if (nativeOpen(mNativeTrackInJavaObj, numChannels, sampleRate, useFloat, numBuffers) in open()
112 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument
114 return nativeTest(numChannels, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
142 long track, int numChannels, int sampleRate, boolean useFloat, int numBuffers); in nativeOpen() argument
159 int numChannels, int sampleRate, boolean useFloat, int msecPerBuffer, int numBuffers); in nativeTest() argument
DAudioRecordNative.java42 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
43 if (nativeOpen(mNativeRecordInJavaObj, numChannels, sampleRate, useFloat, numBuffers) in open()
105 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument
107 return nativeTest(numChannels, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
135 long record, int numChannels, int sampleRate, boolean useFloat, int numBuffers); in nativeOpen() argument
152 int numChannels, int sampleRate, boolean useFloat, int msecPerBuffer, int numBuffers); in nativeTest() argument
DAudioNativeTest.java199 int numChannels, int sampleRate, boolean useFloat, in doRecordTest() argument
204 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest()
211 if (useFloat) { in doRecordTest()
DAudioHelper.java425 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
426 if (super.open(numChannels, sampleRate, useFloat, numBuffers)) { in open()
427 if (!mTrack.open(numChannels, sampleRate, useFloat, 2 /* numBuffers */)) { in open()
/cts/tests/tests/media/libaudiojni/
Daudio-track-native.cpp73 status_t open(uint32_t numChannels, uint32_t sampleRate, bool useFloat, 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()
380 jint numChannels, jint sampleRate, jboolean useFloat, in Java_android_media_cts_AudioTrackNative_nativeTest() argument
384 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioTrackNative_nativeTest()
390 res = track.open(numChannels, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioTrackNative_nativeTest()
429 jint numChannels, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_cts_AudioTrackNative_nativeOpen() argument
435 return (jint)track->open(numChannels, sampleRate, useFloat == JNI_TRUE, in Java_android_media_cts_AudioTrackNative_nativeOpen()
Daudio-record-native.cpp78 status_t open(uint32_t numChannels, uint32_t sampleRate, bool useFloat, uint32_t numBuffers) { in open() argument
117 pcm.formatType = useFloat ? SL_ANDROID_DATAFORMAT_PCM_EX : SL_DATAFORMAT_PCM; in open()
120 pcm.bitsPerSample = useFloat ? in open()
126 pcm.representation = useFloat ? SL_ANDROID_PCM_REPRESENTATION_FLOAT in open()
168 * numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in open()
438 jint numChannels, jint sampleRate, jboolean useFloat, in Java_android_media_cts_AudioRecordNative_nativeTest() argument
442 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioRecordNative_nativeTest()
448 res = record.open(numChannels, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioRecordNative_nativeTest()
486 jint numChannels, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_cts_AudioRecordNative_nativeOpen() argument
492 return (jint)record->open(numChannels, sampleRate, useFloat == JNI_TRUE, in Java_android_media_cts_AudioRecordNative_nativeOpen()