Searched refs:durations (Results 1 – 9 of 9) sorted by relevance
134 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() local150 durations, amplitudes, -1); in testInputVibratorEvents()152 timeoutMills = Arrays.stream(durations).sum() * 2; in testInputVibratorEvents()
152 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() local178 durations, amplitudes, -1); in testInputVibratorManagerEvents()180 timeoutMills = Arrays.stream(durations).sum() * 2; in testInputVibratorManagerEvents()
251 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() local267 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 …]
279 int[] durations = mVibrator.getPrimitiveDurations(PRIMITIVE_EFFECTS); in testVibratorPrimitivesDurations() local281 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()
26 public List<Long> durations; field in UinputVibratorTestData
28 public List<Long> durations; field in UinputVibratorManagerTestData
28 public List<Long> durations; field in HidVibratorTestData
297 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()
656 fun testDurations(image: String, durations: LongArray) = testFrameInfo(image) { in <lambda>()658 assertEquals(durations[i], nGetDuration(frameInfo)) in <lambda>()