Home
last modified time | relevance | path

Searched refs:segmentIdx (Results 1 – 5 of 5) 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/cs40l26/
DDspMemChunk.cpp253 int DspMemChunk::updateNSection(int segmentIdx) { in updateNSection() argument
254 VFTRACE(segmentIdx); in updateNSection()
262 if (segmentIdx > COMPOSE_SIZE_MAX + 1 /*1st effect may have a delay*/) { in updateNSection()
263 ALOGE("%s: Invalid argument: %d", __func__, segmentIdx); in updateNSection()
266 *(f + 2) = (0xFF & segmentIdx); in updateNSection()
268 if (segmentIdx > COMPOSE_PWLE_SIZE_MAX_DEFAULT) { in updateNSection()
269 ALOGE("%s: Invalid argument: %d", __func__, segmentIdx); in updateNSection()
275 *(f + 7) |= (0xF0 & segmentIdx) >> 4; /* Bit 4 to 7 */ in updateNSection()
276 *(f + 9) |= (0x0F & segmentIdx) << 4; /* Bit 3 to 0 */ in updateNSection()
DDspMemChunk.h82 int updateNSection(int segmentIdx);
DVibrator.cpp1078 int segmentIdx = 0; in composePwle() local
1137 incrementIndex(&segmentIdx); in composePwle()
1151 incrementIndex(&segmentIdx); in composePwle()
1184 incrementIndex(&segmentIdx); in composePwle()
1192 incrementIndex(&segmentIdx); in composePwle()
1200 if (segmentIdx > COMPOSE_PWLE_SIZE_MAX_DEFAULT) { in composePwle()
1222 if (ch.updateWCount(segmentIdx) < 0) { in composePwle()
1236 if (ch.updateNSection(segmentIdx) < 0) { in composePwle()
/hardware/google/pixel/vibrator/cs40l25/
DVibrator.cpp858 static void constructActiveDefaults(std::ostringstream &pwleBuilder, const int &segmentIdx) { in constructActiveDefaults() argument
859 HAPTICS_TRACE("constructActiveDefaults(pwleBuilder, segmentIdx:%d)", segmentIdx); in constructActiveDefaults()
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
871 segmentIdx, duration, amplitude, frequency); in constructActiveSegment()
872 pwleBuilder << ",T" << segmentIdx << ":" << duration; in constructActiveSegment()
873 pwleBuilder << ",L" << segmentIdx << ":" << std::setprecision(1) << amplitude; in constructActiveSegment()
[all …]