#define LED_FEATURE "http://tizen.org/feature/led"
#define IR_FEATURE "http://tizen.org/feature/consumer_ir"
#define BATTERY_FEATURE "http://tizen.org/feature/battery"
+#define DISPLAY_FEATURE_MAIN "http://tizen.org/feature/display"
#define DISPLAY_STATE_FEATURE "http://tizen.org/feature/display.state"
/**
int CTc_Device_PrivilegePower_request_release(void)
{
START_TEST;
+ static bool bIsDisplayFeatureSupported;
+ static bool bIsDisplayStateFeatureSupported;
+
+ IS_FEATURE_SUPPORTED(DISPLAY_FEATURE_MAIN, bIsDisplayFeatureSupported, API_NAMESPACE);
+ IS_FEATURE_SUPPORTED(DISPLAY_STATE_FEATURE, bIsDisplayStateFeatureSupported, API_NAMESPACE);
+
+ if ((bIsDisplayFeatureSupported == false) || (bIsDisplayStateFeatureSupported == false))
+ {
+ FPRINTF("[Line : %d][%s] Feature is not supported\\n", __LINE__, API_NAMESPACE);
+ return 0;
+ }
+
int nRet = device_power_request_lock(POWER_LOCK_DISPLAY, 10);
if(nRet == DEVICE_ERROR_NONE)
- device_power_release_lock(POWER_LOCK_DISPLAY);
- PRINT_RESULT(TIZEN_ERROR_PERMISSION_DENIED, nRet, "device_haptic_get_count", DeviceGetError(nRet));
+ device_power_release_lock(POWER_LOCK_DISPLAY);
+ PRINT_RESULT(TIZEN_ERROR_PERMISSION_DENIED, nRet, "device_power_release_lock", DeviceGetError(nRet));
return 0;
}