Home
last modified time | relevance | path

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

/device/google/felix/vibrator/cs40l26/
DVibrator.cpp313 int updateWLength(uint32_t totalDuration) { in updateWLength() argument
323 if (totalDuration > 0x7FFFF) { in updateWLength()
324 ALOGE("%s: Invalid argument: %u", __func__, totalDuration); in updateWLength()
327 totalDuration *= 8; /* Unit: 0.125 ms (since wlength played @ 8kHz). */ in updateWLength()
328 totalDuration |= in updateWLength()
330 *(f + 0) = (totalDuration >> 24) & 0xFF; in updateWLength()
331 *(f + 1) = (totalDuration >> 16) & 0xFF; in updateWLength()
332 *(f + 2) = (totalDuration >> 8) & 0xFF; in updateWLength()
333 *(f + 3) = totalDuration & 0xFF; in updateWLength()
866 uint16_t totalDuration = 0; in compose() local
[all …]