From: Youngjae Cho Date: Tue, 17 Aug 2021 06:27:04 +0000 (+0900) Subject: [UTC][device][None-ACR] Check an additional feature for testing display X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8786586109db25a10b891efed01ba63a5872c5e1;p=test%2Ftct%2Fnative%2Fapi.git [UTC][device][None-ACR] Check an additional feature for testing display Change-Id: I5445f45f018009232ecf179365c588cde7e16b14 Signed-off-by: Youngjae Cho --- diff --git a/src/utc/device/utc-system-device-callback.c b/src/utc/device/utc-system-device-callback.c index 4ae18d6e5..caf301561 100755 --- a/src/utc/device/utc-system-device-callback.c +++ b/src/utc/device/utc-system-device-callback.c @@ -18,7 +18,6 @@ #include //& set: DeviceCallback -#define DISPLAY_FEATURE "http://tizen.org/feature/display" static bool is_supported(int i) { @@ -27,11 +26,15 @@ static bool is_supported(int i) switch (i) { case DEVICE_CALLBACK_DISPLAY_STATE: - ret = system_info_get_platform_bool(DISPLAY_FEATURE, &is_supported); - if (ret < 0) + ret = system_info_get_platform_bool("http://tizen.org/feature/display", &is_supported); + if (ret < 0 || !is_supported) return false; - else - return is_supported; + + ret = system_info_get_platform_bool("http://tizen.org/feature/display.state", &is_supported); + if (ret < 0 || !is_supported) + return false; + + return true; case DEVICE_CALLBACK_BATTERY_CAPACITY: case DEVICE_CALLBACK_BATTERY_LEVEL: case DEVICE_CALLBACK_BATTERY_CHARGING: