Native API reverted its changes. Now we should call "lockstate" again.
With this change API can request DIM brightness again.
[Native changes]
https://review.tizen.org/gerrit/#/c/159981/
https://review.tizen.org/gerrit/#/c/159994/
https://review.tizen.org/gerrit/#/c/159993/
https://review.tizen.org/gerrit/#/c/159980/
[Verification] 100% pass rate on power manual and automatic tests
Change-Id: I2ec53da7d9f79d5f583603a0f75f3fd7ce35fb91
Signed-off-by: Michal Bistyga <m.bistyga@samsung.com>
* Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
*/
gboolean
-_auto_gen_org_tizen_system_deviced_display_call_lockstate_nopt_sync (
+_auto_gen_org_tizen_system_deviced_display_call_lockstate_sync (
_auto_genOrgTizenSystemDevicedDisplay *proxy,
const gchar *arg_state,
const gchar *arg_option1,
{
GVariant *_ret;
_ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "lockstate_nopt", //Since Tizen 4.0 we call "lockstate_nopt" method
- //because "lockstate" requires additional privilege
+ "lockstate", //We used lockstate_nopt for tizen_4.0 but privillige for
+ //lockstate has been reverted and duplicated method has been removed
g_variant_new ("(sssi)",
arg_state,
arg_option1,
_auto_genOrgTizenSystemDevicedDisplay *proxy, gint *out_result, GAsyncResult *res,
GError **error);
-gboolean _auto_gen_org_tizen_system_deviced_display_call_lockstate_nopt_sync(
+gboolean _auto_gen_org_tizen_system_deviced_display_call_lockstate_sync(
_auto_genOrgTizenSystemDevicedDisplay *proxy, const gchar *arg_state, const gchar *arg_option1,
const gchar *arg_option2, gint arg_timeout, gint *out_result, GCancellable *cancellable,
GError **error);
const gint _timeout = static_cast<gint>(timeout);
gint out_result;
- gboolean ret = _auto_gen_org_tizen_system_deviced_display_call_lockstate_nopt_sync(
+ gboolean ret = _auto_gen_org_tizen_system_deviced_display_call_lockstate_sync(
proxy_, arg_state, arg_option1, arg_option2, _timeout, &out_result, NULL, &error);
if (!ret) {
err_->ReportError(error);