[UTC][device][None-ACR] Check an additional feature for testing display 43/262643/1
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 17 Aug 2021 06:27:04 +0000 (15:27 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 17 Aug 2021 06:29:33 +0000 (15:29 +0900)
Change-Id: I5445f45f018009232ecf179365c588cde7e16b14
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/utc/device/utc-system-device-callback.c

index 4ae18d6e57b06afa082139a09a9157e0e750b262..caf30156103c4f875552c8d46185f1a4abdaf4d8 100755 (executable)
@@ -18,7 +18,6 @@
 #include <stdbool.h>
 
 //& 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: