Searched refs:durations (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/view/src/android/view/cts/input/ |
D | InputDeviceVibratorTest.java | 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() local 150 durations, amplitudes, -1); in testInputVibratorEvents() 152 timeoutMills = Arrays.stream(durations).sum() * 2; in testInputVibratorEvents()
|
D | InputDeviceVibratorManagerTest.java | 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() 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/ |
D | InputHidTestCase.java | 256 assertEquals(test.durations.size(), test.amplitudes.size()); in testInputVibratorEvents() 257 assertTrue(test.durations.size() > 0); in testInputVibratorEvents() 260 final long totalVibrations = test.durations.size(); in testInputVibratorEvents() 262 if (test.durations.size() == 1) { in testInputVibratorEvents() 263 long duration = test.durations.get(0); in testInputVibratorEvents() 269 long[] durations = test.durations.stream().mapToLong(Long::longValue).toArray(); in testInputVibratorEvents() local 272 durations, amplitudes, -1); in testInputVibratorEvents() 274 timeoutMills = Arrays.stream(durations).sum() * 2; in testInputVibratorEvents() 333 assertEquals(test.durations.size(), test.amplitudes.size()); in testInputVibratorManagerEvents() 334 assertTrue(test.durations.size() > 0); in testInputVibratorManagerEvents() [all …]
|
/cts/libs/input/src/com/android/cts/input/ |
D | UinputVibratorTestData.java | 26 public List<Long> durations; field in UinputVibratorTestData
|
D | UinputVibratorManagerTestData.java | 28 public List<Long> durations; field in UinputVibratorManagerTestData
|
D | HidVibratorTestData.java | 28 public List<Long> durations; field in HidVibratorTestData
|
D | InputJsonParser.java | 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()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | VibratorTest.java | 279 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()
|