//& set: Device
-bool bIsBATTERYFeatureSupported;
+bool bIsHAPTICFeatureSupported;
//Add related feature here
-#define BATTERY_FEATURE "http://tizen.org/feature/battery"
+#define HAPTIC_FEATURE "http://tizen.org/feature/feedback.vibration"
/**
* @function ITs_device_haptic_startup
FPRINTF("[Line : %d][%s] TEST SUIT start-up: ITs_Device_p\\n", __LINE__, API_NAMESPACE);
#endif
- bIsBATTERYFeatureSupported = false;
- IS_FEATURE_SUPPORTED(BATTERY_FEATURE, bIsBATTERYFeatureSupported, API_NAMESPACE);
+ bIsHAPTICFeatureSupported = false;
+ IS_FEATURE_SUPPORTED(HAPTIC_FEATURE, bIsHAPTICFeatureSupported, API_NAMESPACE);
return;
}
int nDeviceCount;
haptic_device_h hHapticDevice;
- if (!bIsBATTERYFeatureSupported)
+ if (!bIsHAPTICFeatureSupported)
return 0;
//Precondition
int nDeviceCount;
- if (!bIsBATTERYFeatureSupported)
+ if (!bIsHAPTICFeatureSupported)
return 0;
// Target API
haptic_device_h hHapticDevice = NULL;
- if (!bIsBATTERYFeatureSupported)
+ if (!bIsHAPTICFeatureSupported)
return 0;
//Precondition
//& set: DeviceHaptic
-#define BATTERY_FEATURE "http://tizen.org/feature/battery"
+#define HAPTIC_FEATURE "http://tizen.org/feature/feedback.vibration"
static bool is_supported;
static haptic_device_h haptic_h;
{
int cnt, ret;
- ret = system_info_get_platform_bool(BATTERY_FEATURE, &is_supported);
+ ret = system_info_get_platform_bool(HAPTIC_FEATURE, &is_supported);
if (!is_supported)
return;