Searched refs:hapticData (Results 1 – 3 of 3) sorted by relevance
165 … if ((hapticData->currentSeqIndex < 0) || (hapticData->currentSeqIndex >= hapticData->seqCount)) { in ProcessHapticTime()176 if (hapticData->currentSeqIndex >= hapticData->seqCount) { in ProcessHapticTime()180 duration = hapticData->currentEffectSeq[hapticData->currentSeqIndex] == 0 ? in ProcessHapticTime()192 …if ((hapticData->currentSeqIndex < 0) || ((hapticData->currentSeqIndex + 1) >= hapticData->seqCoun… in ProcessHapticEffect()198 effect = hapticData->currentEffectSeq[hapticData->currentSeqIndex]; in ProcessHapticEffect()202 if (hapticData->currentSeqIndex >= hapticData->seqCount) { in ProcessHapticEffect()207 duration = hapticData->currentEffectSeq[hapticData->currentSeqIndex] == 0 ? in ProcessHapticEffect()254 hapticData->seqCount = 0; in GetHapticSeqByEffect()263 hapticData->currentEffectSeq = &hapticData->duration[VIBRATOR_TIME_DELAY_INDEX]; in GetHapticSeqByEffect()354 hapticData = (struct VibratorHapticData *)OsalMemCalloc(sizeof(*hapticData)); in CreateVibratorHaptic()[all …]
120 struct VibratorHapticData *hapticData = NULL;123 hapticData = (struct VibratorHapticData *)OsalMemCalloc(sizeof(*hapticData));124 CHECK_VIBRATOR_NULL_PTR_RETURN_VALUE(hapticData, HDF_ERR_MALLOC_FAIL);125 g_vibratorHapticData = hapticData;126 hapticData->supportHaptic = false;128 if (OsalMutexInit(&hapticData->mutex) != HDF_SUCCESS) {133 DListHeadInit(&hapticData->effectSeqHead);143 OsalMemFree(hapticData);