diff --git a/display/composer/v1_0/BUILD.gn b/display/composer/v1_0/BUILD.gn
index d6f2c1e8f9eda22b90a7f5a0ad7dc28d12685880..1e3eb0bca644e0b7540c2f26f60f843e75a58a64 100644
--- a/display/composer/v1_0/BUILD.gn
+++ b/display/composer/v1_0/BUILD.gn
@@ -29,6 +29,6 @@ hdi("display_composer") {
language = "cpp"
subsystem_name = "hdf"
part_name = "drivers_interface_display"
-
+
public_configs = [ "../hdifd_parcelable/" ]
}
diff --git a/display/composer/v1_1/BUILD.gn b/display/composer/v1_1/BUILD.gn
index 34b1aa8520929b6286b4f40d7ecf6dab61a5f234..e5bb7a3e3573e627233bdf02192dcb0c1b9f08e7 100644
--- a/display/composer/v1_1/BUILD.gn
+++ b/display/composer/v1_1/BUILD.gn
@@ -31,7 +31,6 @@ hdi("display_composer") {
language = "cpp"
subsystem_name = "hdf"
part_name = "drivers_interface_display"
-
public_configs = [ "../hdifd_parcelable/" ]
}
diff --git a/display/composer/v1_2/BUILD.gn b/display/composer/v1_2/BUILD.gn
index 2fb8b8542072411e6a9787f6d165d053e70ca319..47b426968d1cb09372ed257df153d736d4caa220 100644
--- a/display/composer/v1_2/BUILD.gn
+++ b/display/composer/v1_2/BUILD.gn
@@ -36,7 +36,6 @@ hdi("display_composer") {
language = "cpp"
subsystem_name = "hdf"
part_name = "drivers_interface_display"
-
public_configs = [ "../hdifd_parcelable/" ]
}
diff --git a/vibrator/v2_0/IVibratorInterface.idl b/vibrator/v2_0/IVibratorInterface.idl
index 0e97f748db9c6fe8eb484aed3aae8525669455d8..68b6e30af5c8008c21b04146c307be114d9b26d0 100644
--- a/vibrator/v2_0/IVibratorInterface.idl
+++ b/vibrator/v2_0/IVibratorInterface.idl
@@ -273,7 +273,7 @@ interface IVibratorInterface {
*/
RegVibratorPlugCallback([in] IVibratorPlugCallback callbackObj);
- /**
+ /**
* @brief UnRegisters the callback for reporting vibrator plug state.
*
* The deviceId means which pluged in this device.
@@ -283,8 +283,49 @@ interface IVibratorInterface {
* @param callbackObj Indicates the callback to register. For details, see {@link IVibratorPlugCallback}.
* @return Returns 0 if the callback is successfully registered; returns a negative value otherwise.
*
- * @since 5.1
+ * @since 5.1
* @version 2.0
*/
UnRegVibratorPlugCallback([in] IVibratorPlugCallback callbackObj);
+
+ /**
+ * @brief HD vibration data packet delivery.
+ *
+ * @param Indecates the Hd vibration data packet.
+ *
+ * @return Returns 0 if the operation is successful.
+ * @return Returns negative value if the get failed.
+ *
+ * @sensor 6.0
+ * @version 1.0
+ */
+ PlayPatternBySessionId([in] DeviceVibratorInfo deviceVibratorInfo, [in] unsigned int sessionId, [in] struct HapticPaket hapticPaket);
+
+ /**
+ * @brief HD vibration data packet delivery.
+ *
+ * @param Indecates the Hd vibration data packet.
+ *
+ * @return Returns 0 if the operation is successful.
+ * @return Returns negative value if the get failed.
+ *
+ * @sensor 6.0
+ * @version 1.0
+ */
+ PlayPackageBySession([in] DeviceVibratorInfo deviceVibratorInfo, [in] unsigned int sessionId, [in] struct VibratorPackage vibratorPackage);
+
+ /**
+ * @brief Stops the vibration.
+ *
+ * Before the vibrator starts, it must stop vibrating in any mode. This function can be used during
+ * and after the vibrating process.
+ *
+ * @param mode Indicates the vibration mode, which can be one-shot or periodic. For details,
+ * see {@link HdfVibratorMode}.
+ * @return Returns 0 if the operation is successful; returns a negative value otherwise.
+ *
+ * @sensor 6.0
+ * @version 1.0
+ */
+ StopVibrateBySessionId([in] DeviceVibratorInfo deviceVibratorInfo, [in] unsigned int sessionId);
}
\ No newline at end of file
diff --git a/vibrator/v2_0/VibratorTypes.idl b/vibrator/v2_0/VibratorTypes.idl
index 6a4aa3b4ff2b5885ad58bd088bd449d8aef410bc..71ac3d21800b037759fbc41a24b886b659f7d897 100644
--- a/vibrator/v2_0/VibratorTypes.idl
+++ b/vibrator/v2_0/VibratorTypes.idl
@@ -226,6 +226,22 @@ struct HapticPaket {
struct HapticEvent[] events;
};
+/**
+ * @brief Defines the vibration data delivery packet.
+ *
+ * The information include the different trypes of vibrationsr;
+ *
+ * @sensor 6.0
+ */
+struct VibratorPackage {
+ /** Indicates the pattern number of data to be delivered. */
+ int patternNum;
+ /** Indicates the vibration duration of data to be delivered. */
+ int packageduration;
+ /** Indicates the vibration data delivery pattern array. */
+ struct HapticPaket[] patterns;
+};
+
/**
* @brief Defines the vibration capability data package.
*