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/src/android/media/cts/
DAudioRecordTest.java633 final int amount = samplesRead == 0 ? numChannels : in testTimestamp() local
635 final int ret = record.read(shortData, 0, amount); in testTimestamp()
636 assertEquals("read incorrect amount", amount, ret); in testTimestamp()
1128 int amount = samplesRead == 0 ? numChannels : in doTest() local
1130 amount *= bytesPerSample; // in bytes in doTest()
1138 int ret = blocking ? record.read(byteBuffer, amount) : in doTest()
1139 record.read(byteBuffer, amount, AudioRecord.READ_NON_BLOCKING); in doTest()
1144 assertEquals(amount, ret); in doTest()
1146 assertTrue("0 <= " + ret + " <= " + amount, in doTest()
1147 0 <= ret && ret <= amount); in doTest()
[all …]
DMediaSyncEventTest.java144 int amount = samplesRead == 0 ? numChannels : in testSynchronizedRecord() local
146 int ret = record.read(shortData, 0, amount); in testSynchronizedRecord()
147 assertEquals(TEST_NAME, amount, ret); in testSynchronizedRecord()
/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/libaudiojni/
Daudio-record-native.cpp486 ssize_t amount = record.read((char *)buffer + offset, size -offset); in Java_android_media_cts_AudioRecordNative_nativeTest() local
488 if (amount < 0) break; in Java_android_media_cts_AudioRecordNative_nativeTest()
489 offset += amount; in Java_android_media_cts_AudioRecordNative_nativeTest()
/cts/apps/CtsVerifier/
DNOTICE.txt10055 into account in determining the amount or value of any payment or