Searched refs:amount (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/cts/utils/ |
D | ColorUtils.java | 60 private static float constrain(float amount, float low, float high) { in constrain() argument 61 return amount < low ? low : (amount > high ? high : amount); in constrain()
|
D | MathUtils.java | 28 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/ |
D | AudioRecordTest.java | 633 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 …]
|
D | MediaSyncEventTest.java | 144 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/ |
D | FileUtil.java | 222 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/ |
D | audio-record-native.cpp | 486 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()
|