Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/utils/
DColorUtils.java60 private static float constrain(float amount, float low, float high) { in constrain() argument
61 return amount < low ? low : (amount > high ? high : amount); in constrain()
DMathUtils.java28 public static float lerp(float start, float stop, float amount) { in lerp() argument
29 return start + (stop - start) * amount; in lerp()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DMediaSyncEventTest.java172 int amount = samplesRead == 0 ? numChannels : in testSynchronizedRecord() local
174 int ret = record.read(shortData, 0, amount); in testSynchronizedRecord()
175 assertEquals(TEST_NAME, amount, ret); in testSynchronizedRecord()
DAudioRecordTest.java732 final int amount = samplesRead == 0 ? numChannels : in testTimestamp() local
734 final int ret = record.read(shortData, 0, amount); in testTimestamp()
737 .isEqualTo(amount); in testTimestamp()
1192 final int amount = samples * bytesPerSample; // in bytes in doTest()
1200 final int ret = blockForData ? record.read(byteBuffer, amount) : in doTest()
1201 record.read(byteBuffer, amount, AudioRecord.READ_NON_BLOCKING); in doTest()
1233 final int amount = samplesRead == 0 ? numChannels : in doTest() local
1235 final int ret = reader.apply(amount, blocking); in doTest()
1238 .that(amount).isEqualTo(ret); in doTest()
1241 + "0 <= " + ret + " <= " + amount) in doTest()
[all …]
/cts/tests/filesystem/src/android/filesystem/cts/
DFileUtil.java222 RWAmount amount = new RWAmount(); in getRWAmount() local
228 amount.mRd = Double.parseDouble(line.split(" ")[1]); in getRWAmount()
230 amount.mWr = Double.parseDouble(line.split(" ")[1]); in getRWAmount()
234 return amount; in getRWAmount()
/cts/tests/tests/media/audio/jni/
Daudio-record-native.cpp486 ssize_t amount = record.read((char *)buffer + offset, size -offset); in Java_android_media_audio_cts_AudioRecordNative_nativeTest() local
488 if (amount < 0) break; in Java_android_media_audio_cts_AudioRecordNative_nativeTest()
489 offset += amount; in Java_android_media_audio_cts_AudioRecordNative_nativeTest()
/cts/tests/tests/media/
DREADME.md42 considerable amount of time (30 minutes or more) to download and push the media files.