[Verification] - TCT results of Power module are 100%
Change-Id: I7eff4ec46a1c0b9329fdd6956042ad6f55ff4176
Signed-off-by: Andrzej Popowski <a.popowski@samsung.com>
int brightness = 0;
- int is_custom_mode = 0;
- vconf_get_int(VCONFKEY_PM_CUSTOM_BRIGHTNESS_STATUS, &is_custom_mode);
+ int is_custom_mode = PowerPlatformProxy::GetInstance().IsCustomBrightness();
if ((is_custom_mode && current_brightness_ != -1) || should_be_read_from_cache_) {
LoggerD("return custom brightness %d", current_brightness_);
return current_brightness_;
return dbus_op_.InvokeSyncGetInt("CurrentBrightness", NULL);
}
+int PowerPlatformProxy::IsCustomBrightness() {
+ LoggerD("Entered");
+ return dbus_op_.InvokeSyncGetInt("CustomBrightness", NULL);
+}
+
} // namespace power
} // namespace extension
int SetBrightness(int val);
int GetBrightness();
+ int IsCustomBrightness();
static PowerPlatformProxy& GetInstance();