vibrator: fix log format and level issue

1.fix log format issue to improve readability
2.change log level to Slog.d

Example:
    old: "Stopping external vibrationExternalVibration..."
    new: "Stopping external vibration: ExternalVibration..."

Test: N/A

Change-Id: Id1e0f81e2db86107c7d5f6f7022700ea84176124
Signed-off-by: shenyanfeng <shenyanfeng@xiaomi.com>
This commit is contained in:
shenyanfeng
2022-12-27 14:25:00 +08:00
parent ffeb11af1c
commit 6c91f60902

View File

@@ -1733,7 +1733,7 @@ public class VibratorManagerService extends IVibratorManagerService.Stub {
setExternalControl(true, vibHolder.stats);
}
if (DEBUG) {
Slog.e(TAG, "Playing external vibration: " + vib);
Slog.d(TAG, "Playing external vibration: " + vib);
}
// Vibrator will start receiving data from external channels after this point.
// Report current time as the vibration start time, for debugging.
@@ -1747,7 +1747,7 @@ public class VibratorManagerService extends IVibratorManagerService.Stub {
if (mCurrentExternalVibration != null
&& mCurrentExternalVibration.isHoldingSameVibration(vib)) {
if (DEBUG) {
Slog.e(TAG, "Stopping external vibration" + vib);
Slog.d(TAG, "Stopping external vibration: " + vib);
}
endExternalVibrateLocked(
new Vibration.EndInfo(Vibration.Status.FINISHED),