// Target API
nRet = device_display_set_brightness(nDisplayIndex, nSetBrightness);
+ if (nRet == DEVICE_ERROR_NOT_SUPPORTED)
+ return 0;
+ else
PRINT_RESULT(DEVICE_ERROR_NONE, nRet, "device_display_set_brightness", DeviceGetError(nRet));
// Target API
for (i = 0; i < cnt; i++) {
error = device_display_get_brightness(i, &value);
- assert_eq(error, DEVICE_ERROR_NONE);
+ if (error == DEVICE_ERROR_NOT_SUPPORTED)
+ return 0;
+ else
+ assert_eq(error, DEVICE_ERROR_NONE);
}
return 0;
return -1;
error = device_display_set_brightness(i, max);
- assert_eq(error, DEVICE_ERROR_NONE);
+ if (error == DEVICE_ERROR_NOT_SUPPORTED)
+ return 0;
+ else
+ assert_eq(error, DEVICE_ERROR_NONE);
}
return 0;