[FP5-440] modify short vibrate nodes

Change-Id: I41285cca324bc5cb205aa1f58ddb61be6e7124c7
diff --git a/aidl/Vibrator.cpp b/aidl/Vibrator.cpp
index 33d0941..ec7e114 100644
--- a/aidl/Vibrator.cpp
+++ b/aidl/Vibrator.cpp
@@ -390,6 +390,36 @@
         if (ret < 0)
             goto error;
 
+	if (timeoutMs <= 50) {
+        snprintf(file, sizeof(file), "%s/%s", AW_DEVICE, "seq");
+        ret = write_value(file, "0x00 0x00");
+        if (ret < 0)
+            goto error;
+
+        snprintf(file, sizeof(file), "%s/%s", AW_DEVICE, "seq");
+        ret = write_value(file, "0x00 0x01");
+        if (ret < 0)
+            goto error;
+
+        snprintf(file, sizeof(file), "%s/%s", AW_DEVICE, "loop");
+        ret = write_value(file, "0x00 0x00");
+        if (ret < 0)
+            goto error;
+
+        snprintf(file, sizeof(file), "%s/%s", AW_DEVICE, "duration");
+        snprintf(value, sizeof(value), "%u\n", timeoutMs);
+        ret = write_value(file, value);
+        if (ret < 0)
+            goto error;
+
+        snprintf(file, sizeof(file), "%s/%s", AW_DEVICE, "brightness");
+        ret = write_value(file, "1");
+        if (ret < 0)
+            goto error;
+
+        return 0;
+
+	} else {
         snprintf(file, sizeof(file), "%s/%s", AW_DEVICE, "index");
         ret = write_value(file, "4");
         if (ret < 0)
@@ -407,6 +437,7 @@
             goto error;
 
         return 0;
+	}
     }
 
     snprintf(file, sizeof(file), "%s/%s", LED_DEVICE, "state");
@@ -442,6 +473,12 @@
         snprintf(file, sizeof(file), "%s/%s", AW_DEVICE, "activate");
         ret = write_value(file, "0");
 
+
+        snprintf(file, sizeof(file), "%s/%s", AW_DEVICE, "brightness");
+        ret = write_value(file, "0");
+        if (ret < 0)
+            return ret;
+
         snprintf(file, sizeof(file), "%s/%s", AW_DEVICE, "index");
         ret = write_value(file, "1");
         if (ret < 0)