Home
last modified time | relevance | path

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

/hardware/interfaces/vibrator/aidl/default/
DVibrator.cpp298 void constructActiveDefaults(std::ostringstream &pwleBuilder, const int &segmentIdx) { in constructActiveDefaults() argument
299 pwleBuilder << ",C" << segmentIdx << ":1"; in constructActiveDefaults()
300 pwleBuilder << ",B" << segmentIdx << ":0"; in constructActiveDefaults()
301 pwleBuilder << ",AR" << segmentIdx << ":0"; in constructActiveDefaults()
302 pwleBuilder << ",V" << segmentIdx << ":0"; in constructActiveDefaults()
305 void constructActiveSegment(std::ostringstream &pwleBuilder, const int &segmentIdx, int duration, in constructActiveSegment() argument
307 pwleBuilder << ",T" << segmentIdx << ":" << duration; in constructActiveSegment()
308 pwleBuilder << ",L" << segmentIdx << ":" << amplitude; in constructActiveSegment()
309 pwleBuilder << ",F" << segmentIdx << ":" << frequency; in constructActiveSegment()
310 constructActiveDefaults(pwleBuilder, segmentIdx); in constructActiveSegment()
[all …]
/hardware/google/pixel/vibrator/cs40l25/
DVibrator.cpp858 static void constructActiveDefaults(std::ostringstream &pwleBuilder, const int &segmentIdx) { in constructActiveDefaults() argument
860 pwleBuilder << ",C" << segmentIdx << ":1"; in constructActiveDefaults()
861 pwleBuilder << ",B" << segmentIdx << ":0"; in constructActiveDefaults()
862 pwleBuilder << ",AR" << segmentIdx << ":0"; in constructActiveDefaults()
863 pwleBuilder << ",V" << segmentIdx << ":0"; in constructActiveDefaults()
866 static void constructActiveSegment(std::ostringstream &pwleBuilder, const int &segmentIdx, in constructActiveSegment() argument
872 pwleBuilder << ",T" << segmentIdx << ":" << duration; in constructActiveSegment()
873 pwleBuilder << ",L" << segmentIdx << ":" << std::setprecision(1) << amplitude; in constructActiveSegment()
874 pwleBuilder << ",F" << segmentIdx << ":" << std::lroundf(frequency); in constructActiveSegment()
875 constructActiveDefaults(pwleBuilder, segmentIdx); in constructActiveSegment()
[all …]