/cts/tests/tests/view/src/android/view/cts/input/ |
D | InputDeviceVibratorTest.java | 135 assertTrue(test.durations.size() == test.amplitudes.size()); in testInputVibratorEvents() 136 assertTrue(test.durations.size() > 0); in testInputVibratorEvents() 139 final long totalVibrations = test.durations.size(); in testInputVibratorEvents() 141 if (test.durations.size() == 1) { in testInputVibratorEvents() 142 long duration = test.durations.get(0); in testInputVibratorEvents() 148 long[] durations = test.durations.stream().mapToLong(Long::longValue).toArray(); in testInputVibratorEvents() local 151 durations, amplitudes, -1); in testInputVibratorEvents() 153 timeoutMills = Arrays.stream(durations).sum() * 2; in testInputVibratorEvents()
|
D | InputDeviceVibratorManagerTest.java | 158 assertTrue(testData.durations.size() > 0); in testInputVibratorManagerEvents() 162 final long totalVibrations = testData.durations.size(); in testInputVibratorManagerEvents() 169 assertTrue(testData.durations.size() == testData.amplitudes.valueAt(i).size()); in testInputVibratorManagerEvents() 172 if (testData.durations.size() == 1) { in testInputVibratorManagerEvents() 173 long duration = testData.durations.get(0); in testInputVibratorManagerEvents() 179 long[] durations = testData.durations.stream() in testInputVibratorManagerEvents() local 184 durations, amplitudes, -1); in testInputVibratorManagerEvents() 186 timeoutMills = Arrays.stream(durations).sum() * 2; in testInputVibratorManagerEvents()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | InputHidTestCase.java | 247 assertEquals(test.durations.size(), test.amplitudes.size()); in testInputVibratorEvents() 248 assertTrue(test.durations.size() > 0); in testInputVibratorEvents() 251 final long totalVibrations = test.durations.size(); in testInputVibratorEvents() 253 if (test.durations.size() == 1) { in testInputVibratorEvents() 254 long duration = test.durations.get(0); in testInputVibratorEvents() 260 long[] durations = test.durations.stream().mapToLong(Long::longValue).toArray(); in testInputVibratorEvents() local 263 durations, amplitudes, -1); in testInputVibratorEvents() 265 timeoutMills = Arrays.stream(durations).sum() * 2; in testInputVibratorEvents() 324 assertEquals(test.durations.size(), test.amplitudes.size()); in testInputVibratorManagerEvents() 325 assertTrue(test.durations.size() > 0); in testInputVibratorManagerEvents() [all …]
|
/cts/hostsidetests/adpf/app/hintsession/src/cpp/ |
D | Renderer.cpp | 409 FrameStats Renderer::getFrameStats(std::vector<int64_t> &durations, std::vector<int64_t> &intervals, in getFrameStats() argument 413 double sum = std::accumulate(durations.begin(), durations.end(), 0); in getFrameStats() 414 double mean = static_cast<double>(sum) / static_cast<double>(durations.size()); in getFrameStats() 417 for (int64_t &duration : durations) { in getFrameStats() 423 if (durations.size() > 0) { in getFrameStats() 424 stats.medianWorkDuration = getMedian(durations); in getFrameStats() 429 stats.deviation = std::sqrt(varianceSum / static_cast<double>(durations.size() - 1)); in getFrameStats() 433 static_cast<double>(dropCount) / static_cast<double>(durations.size()); in getFrameStats() 435 static_cast<double>(durations.size() * std::min(lastTarget_, baselineMedian_)); in getFrameStats()
|
D | main.cpp | 67 std::vector<int64_t> durations{}; in drawFrames() local 95 durations.push_back(spinTime); in drawFrames() 104 getRenderer(pApp)->addResult(testName + "_durations", serializeValues(durations)); in drawFrames() 108 return getRenderer(pApp)->getFrameStats(durations, intervals, testName); in drawFrames()
|
D | Renderer.h | 116 FrameStats getFrameStats(std::vector<int64_t> &durations, std::vector<int64_t> &intervals,
|
/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 | 298 testData.durations = new ArrayList<Long>(); in getHidVibratorTestData() 301 testData.durations.add(durationsArray.getLong(i)); in getHidVibratorTestData() 407 testData.durations = getLongList(durationsArray); in getUinputVibratorTestData() 429 testData.durations = getLongList(durationsArray); in getUinputVibratorManagerTestData()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | HapticsDeviceInfo.java | 143 int[] durations = null; in collectPrimitivesSupport() local 145 durations = vibrator.getPrimitiveDurations(primitivesToCheck); in collectPrimitivesSupport() 152 if (durations != null) { in collectPrimitivesSupport() 153 store.addResult("duration_ms", durations[i]); in collectPrimitivesSupport()
|
/cts/tests/vibrator/src/android/os/cts/ |
D | VibratorTest.java | 401 int[] durations = mVibrator.getPrimitiveDurations(PRIMITIVE_EFFECTS); in testVibrateComposed() local 410 durations[i] * 3 + 10, "primitive id=" + PRIMITIVE_EFFECTS[i]); in testVibrateComposed() 481 int[] durations = mVibrator.getPrimitiveDurations(PRIMITIVE_EFFECTS); in testVibratorPrimitivesDurations() local 483 assertThat(durations).hasLength(PRIMITIVE_EFFECTS.length); in testVibratorPrimitivesDurations() 484 for (int i = 0; i < durations.length; i++) { in testVibratorPrimitivesDurations() 488 .that(durations[i]).isGreaterThan(0); in testVibratorPrimitivesDurations() 492 .that(durations[i]).isEqualTo(0); in testVibratorPrimitivesDurations()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyPairGeneratorTest.java | 658 List<Pair<Date, Date>> durations, boolean useStrongbox) in generateKeyWithDifferentValidityPeriods() argument 660 for (Pair<Date, Date> pair : durations) { in generateKeyWithDifferentValidityPeriods()
|