Home
last modified time | relevance | path

Searched refs:durations (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceVibratorTest.java134 assertTrue(test.durations.size() == test.amplitudes.size()); in testInputVibratorEvents()
135 assertTrue(test.durations.size() > 0); in testInputVibratorEvents()
138 final long totalVibrations = test.durations.size(); in testInputVibratorEvents()
140 if (test.durations.size() == 1) { in testInputVibratorEvents()
141 long duration = test.durations.get(0); in testInputVibratorEvents()
147 long[] durations = test.durations.stream().mapToLong(Long::longValue).toArray(); in testInputVibratorEvents() local
150 durations, amplitudes, -1); in testInputVibratorEvents()
152 timeoutMills = Arrays.stream(durations).sum() * 2; in testInputVibratorEvents()
DInputDeviceVibratorManagerTest.java152 assertTrue(testData.durations.size() > 0); in testInputVibratorManagerEvents()
156 final long totalVibrations = testData.durations.size(); in testInputVibratorManagerEvents()
163 assertTrue(testData.durations.size() == testData.amplitudes.valueAt(i).size()); in testInputVibratorManagerEvents()
166 if (testData.durations.size() == 1) { in testInputVibratorManagerEvents()
167 long duration = testData.durations.get(0); in testInputVibratorManagerEvents()
173 long[] durations = testData.durations.stream() in testInputVibratorManagerEvents() local
178 durations, amplitudes, -1); in testInputVibratorManagerEvents()
180 timeoutMills = Arrays.stream(durations).sum() * 2; in testInputVibratorManagerEvents()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputHidTestCase.java251 assertEquals(test.durations.size(), test.amplitudes.size()); in testInputVibratorEvents()
252 assertTrue(test.durations.size() > 0); in testInputVibratorEvents()
255 final long totalVibrations = test.durations.size(); in testInputVibratorEvents()
257 if (test.durations.size() == 1) { in testInputVibratorEvents()
258 long duration = test.durations.get(0); in testInputVibratorEvents()
264 long[] durations = test.durations.stream().mapToLong(Long::longValue).toArray(); in testInputVibratorEvents() local
267 durations, amplitudes, -1); in testInputVibratorEvents()
269 timeoutMills = Arrays.stream(durations).sum() * 2; in testInputVibratorEvents()
328 assertEquals(test.durations.size(), test.amplitudes.size()); in testInputVibratorManagerEvents()
329 assertTrue(test.durations.size() > 0); in testInputVibratorManagerEvents()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DVibratorTest.java279 int[] durations = mVibrator.getPrimitiveDurations(PRIMITIVE_EFFECTS); in testVibratorPrimitivesDurations() local
281 assertEquals(PRIMITIVE_EFFECTS.length, durations.length); in testVibratorPrimitivesDurations()
282 for (int i = 0; i < durations.length; i++) { in testVibratorPrimitivesDurations()
285 + " duration, found " + durations[i] + "ms", in testVibratorPrimitivesDurations()
286 supported[i], durations[i] > 0); in testVibratorPrimitivesDurations()
/cts/libs/input/src/com/android/cts/input/
DUinputVibratorTestData.java26 public List<Long> durations; field in UinputVibratorTestData
DUinputVibratorManagerTestData.java28 public List<Long> durations; field in UinputVibratorManagerTestData
DHidVibratorTestData.java28 public List<Long> durations; field in HidVibratorTestData
DInputJsonParser.java297 testData.durations = new ArrayList<Long>(); in getHidVibratorTestData()
300 testData.durations.add(durationsArray.getLong(i)); in getHidVibratorTestData()
406 testData.durations = getLongList(durationsArray); in getUinputVibratorTestData()
428 testData.durations = getLongList(durationsArray); in getUinputVibratorManagerTestData()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DAImageDecoderTest.kt656 fun testDurations(image: String, durations: LongArray) = testFrameInfo(image) { in <lambda>()
658 assertEquals(durations[i], nGetDuration(frameInfo)) in <lambda>()