Home
last modified time | relevance | path

Searched refs:amplitudes (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceVibratorManagerTest.java154 assertTrue(testData.amplitudes.size() == 1 || testData.amplitudes.size() == 2); in testInputVibratorManagerEvents()
161 for (int i = 0; i < testData.amplitudes.size(); i++) { in testInputVibratorManagerEvents()
163 assertTrue(testData.durations.size() == testData.amplitudes.valueAt(i).size()); in testInputVibratorManagerEvents()
168 int amplitude = testData.amplitudes.valueAt(i).get(0); in testInputVibratorManagerEvents()
175 int[] amplitudes = testData.amplitudes.valueAt(i).stream() in testInputVibratorManagerEvents() local
178 durations, amplitudes, -1); in testInputVibratorManagerEvents()
183 if (testData.amplitudes.size() == 1) { in testInputVibratorManagerEvents()
DInputDeviceVibratorTest.java134 assertTrue(test.durations.size() == test.amplitudes.size()); in testInputVibratorEvents()
142 int amplitude = test.amplitudes.get(0); in testInputVibratorEvents()
148 int[] amplitudes = test.amplitudes.stream().mapToInt(Integer::intValue).toArray(); in testInputVibratorEvents() local
150 durations, amplitudes, -1); in testInputVibratorEvents()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputHidTestCase.java256 assertEquals(test.durations.size(), test.amplitudes.size()); in testInputVibratorEvents()
264 int amplitude = test.amplitudes.get(0); in testInputVibratorEvents()
270 int[] amplitudes = test.amplitudes.stream().mapToInt(Integer::intValue).toArray(); in testInputVibratorEvents() local
272 durations, amplitudes, -1); in testInputVibratorEvents()
312 if (ffLeft == test.amplitudes.get(vibrationCount) in testInputVibratorEvents()
313 && ffRight == test.amplitudes.get(vibrationCount)) { in testInputVibratorEvents()
333 assertEquals(test.durations.size(), test.amplitudes.size()); in testInputVibratorManagerEvents()
341 int amplitude = test.amplitudes.get(0); in testInputVibratorManagerEvents()
347 int[] amplitudes = test.amplitudes.stream().mapToInt(Integer::intValue).toArray(); in testInputVibratorManagerEvents() local
349 durations, amplitudes, -1); in testInputVibratorManagerEvents()
[all …]
/cts/libs/input/src/com/android/cts/input/
DUinputVibratorTestData.java29 public List<Integer> amplitudes; field in UinputVibratorTestData
DUinputVibratorManagerTestData.java32 public SparseArray<List<Integer>> amplitudes; field in UinputVibratorManagerTestData
DHidVibratorTestData.java31 public List<Integer> amplitudes; field in HidVibratorTestData
DInputJsonParser.java298 testData.amplitudes = new ArrayList<Integer>(); in getHidVibratorTestData()
301 testData.amplitudes.add(amplitudesArray.getInt(i)); in getHidVibratorTestData()
407 testData.amplitudes = getIntList(amplitudesArray); in getUinputVibratorTestData()
429 testData.amplitudes = new SparseArray<>(); in getUinputVibratorManagerTestData()
434 testData.amplitudes.append(Integer.valueOf(vibratorId), in getUinputVibratorManagerTestData()
/cts/tests/tests/os/src/android/os/cts/
DVibratorTest.java181 final int[] amplitudes = new int[] {64, 128, 255, 128, 64}; in testVibrateWaveform() local
182 VibrationEffect waveform = VibrationEffect.createWaveform(timings, amplitudes, -1); in testVibrateWaveform()
186 waveform = VibrationEffect.createWaveform(timings, amplitudes, 0); in testVibrateWaveform()