Home
last modified time | relevance | path

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

/hardware/google/pixel/vibrator/cs40l26/
DDspMemChunk.cpp131 int DspMemChunk::fToU16(float input, uint16_t *output, float scale, float min, float max) { in fToU16() function in aidl::android::hardware::vibrator::DspMemChunk
191 if ((fToU16(duration, &delay, 4, 0.0f, COMPOSE_PWLE_PRIMITIVE_DURATION_MAX_MS) < 0) || in constructActiveSegment()
192 (fToU16(amplitude, &amp, 2048, CS40L26_PWLE_LEVEL_MIN, CS40L26_PWLE_LEVEL_MAX) < 0) || in constructActiveSegment()
193 (fToU16(frequency, &freq, 4, PWLE_FREQUENCY_MIN_HZ, PWLE_FREQUENCY_MAX_HZ) < 0)) { in constructActiveSegment()
213 if (fToU16(duration, &delay, 4, 0.0f, COMPOSE_PWLE_PRIMITIVE_DURATION_MAX_MS) < 0) { in constructBrakingSegment()
217 fToU16(PWLE_FREQUENCY_MIN_HZ, &freq, 4, PWLE_FREQUENCY_MIN_HZ, PWLE_FREQUENCY_MAX_HZ); in constructBrakingSegment()
DDspMemChunk.h99 int fToU16(float input, uint16_t *output, float scale, float min, float max);