Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceVibratorManagerTest.java160 assertTrue(testData.amplitudes.size() == 1 || testData.amplitudes.size() == 2); in testInputVibratorManagerEvents()
167 for (int i = 0; i < testData.amplitudes.size(); i++) { in testInputVibratorManagerEvents()
169 assertTrue(testData.durations.size() == testData.amplitudes.valueAt(i).size()); in testInputVibratorManagerEvents()
174 int amplitude = testData.amplitudes.valueAt(i).get(0); in testInputVibratorManagerEvents()
181 int[] amplitudes = testData.amplitudes.valueAt(i).stream() in testInputVibratorManagerEvents() local
184 durations, amplitudes, -1); in testInputVibratorManagerEvents()
189 if (testData.amplitudes.size() == 1) { in testInputVibratorManagerEvents()
DInputDeviceVibratorTest.java135 assertTrue(test.durations.size() == test.amplitudes.size()); in testInputVibratorEvents()
143 int amplitude = test.amplitudes.get(0); in testInputVibratorEvents()
149 int[] amplitudes = test.amplitudes.stream().mapToInt(Integer::intValue).toArray(); in testInputVibratorEvents() local
151 durations, amplitudes, -1); in testInputVibratorEvents()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputHidTestCase.java247 assertEquals(test.durations.size(), test.amplitudes.size()); in testInputVibratorEvents()
255 int amplitude = test.amplitudes.get(0); in testInputVibratorEvents()
261 int[] amplitudes = test.amplitudes.stream().mapToInt(Integer::intValue).toArray(); in testInputVibratorEvents() local
263 durations, amplitudes, -1); in testInputVibratorEvents()
303 if (ffLeft == test.amplitudes.get(vibrationCount) in testInputVibratorEvents()
304 && ffRight == test.amplitudes.get(vibrationCount)) { in testInputVibratorEvents()
324 assertEquals(test.durations.size(), test.amplitudes.size()); in testInputVibratorManagerEvents()
332 int amplitude = test.amplitudes.get(0); in testInputVibratorManagerEvents()
338 int[] amplitudes = test.amplitudes.stream().mapToInt(Integer::intValue).toArray(); in testInputVibratorManagerEvents() local
340 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.java299 testData.amplitudes = new ArrayList<Integer>(); in getHidVibratorTestData()
302 testData.amplitudes.add(amplitudesArray.getInt(i)); in getHidVibratorTestData()
408 testData.amplitudes = getIntList(amplitudesArray); in getUinputVibratorTestData()
430 testData.amplitudes = new SparseArray<>(); in getUinputVibratorManagerTestData()
435 testData.amplitudes.append(Integer.valueOf(vibratorId), in getUinputVibratorManagerTestData()
/cts/tests/vibrator/src/android/os/cts/
DVibratorManagerTest.java192 final int[] amplitudes = new int[]{64, 128, 255, 128, 64}; in testCombinedVibrationWaveformStartsAndFinishesVibration() local
193 VibrationEffect waveform = VibrationEffect.createWaveform(timings, amplitudes, -1); in testCombinedVibrationWaveformStartsAndFinishesVibration()
202 final int[] amplitudes = new int[]{64, 128, 255, 128, 64}; in testCombinedVibrationWaveformRepeats() local
203 VibrationEffect waveform = VibrationEffect.createWaveform(timings, amplitudes, 0); in testCombinedVibrationWaveformRepeats()
DVibratorTest.java316 final int[] amplitudes = new int[]{64, 128, 255, 128, 64}; in testVibrateWaveformStartsAndFinishesVibration() local
317 VibrationEffect waveform = VibrationEffect.createWaveform(timings, amplitudes, -1); in testVibrateWaveformStartsAndFinishesVibration()
326 final int[] amplitudes = new int[] {64, 128, 255, 128, 64}; in testVibrateWaveformRepeats() local
327 VibrationEffect waveform = VibrationEffect.createWaveform(timings, amplitudes, 0); in testVibrateWaveformRepeats()