cs40l26: Show internal parameters at dumpsys
The setion and new paremeters are as follows:
AIDL:
Global Gain: 1.00
Active Effect ID: -1
F0: 146.54
Redc: 12.43
HAL State: 0
Bug: 289189911
Test: dumpsys android.hardware.vibrator.IVibrator/default
Change-Id: I364ac4627ea0273ee9d9e9b9cabf556efe995c91
diff --git a/vibrator/cs40l26/Vibrator.cpp b/vibrator/cs40l26/Vibrator.cpp
index 440cc9d..a2949b6 100644
--- a/vibrator/cs40l26/Vibrator.cpp
+++ b/vibrator/cs40l26/Vibrator.cpp
@@ -1461,7 +1461,12 @@
dprintf(fd, "AIDL:\n");
+ dprintf(fd, " Global Gain: %0.2f\n", mLongEffectScale);
+ dprintf(fd, " Active Effect ID: %" PRId32 "\n", mActiveId);
+ dprintf(fd, " F0: %.02f\n", mResonantFrequency);
dprintf(fd, " F0 Offset: %" PRIu32 "\n", mF0Offset);
+ dprintf(fd, " Redc: %.02f\n", mRedc);
+ dprintf(fd, " HAL State: %" PRIu32 "\n", halState);
dprintf(fd, " Voltage Levels:\n");
dprintf(fd, " Tick Effect Min: %" PRIu32 " Max: %" PRIu32 "\n", mTickEffectVol[0],
@@ -1471,15 +1476,15 @@
dprintf(fd, " Long Effect Min: %" PRIu32 " Max: %" PRIu32 "\n", mLongEffectVol[0],
mLongEffectVol[1]);
- dprintf(fd, " FF effect:\n");
- dprintf(fd, " Physical waveform:\n");
+ dprintf(fd, " FF Effect:\n");
+ dprintf(fd, " Physical Waveform:\n");
dprintf(fd, "\tId\tIndex\tt ->\tt'\n");
for (uint8_t effectId = 0; effectId < WAVEFORM_MAX_PHYSICAL_INDEX; effectId++) {
dprintf(fd, "\t%d\t%d\t%d\t%d\n", mFfEffects[effectId].id,
mFfEffects[effectId].u.periodic.custom_data[1], mEffectDurations[effectId],
mFfEffects[effectId].replay.length);
}
- dprintf(fd, " OWT waveform:\n");
+ dprintf(fd, " OWT Waveform:\n");
dprintf(fd, "\tId\tBytes\tData\n");
for (uint8_t effectId = WAVEFORM_MAX_PHYSICAL_INDEX; effectId < WAVEFORM_MAX_INDEX;
effectId++) {