"org.enlightenment.wm.Test");
EINA_SAFETY_ON_NULL_RETURN_VAL(dbus.ds_proxy, EINA_FALSE);
+ dbus.deviced_obj = eldbus_object_get(dbus.conn,
+ "org.tizen.system.deviced",
+ "/Org/Tizen/System/DeviceD/Display");
+ EINA_SAFETY_ON_NULL_RETURN_VAL(dbus.deviced_obj, EINA_FALSE);
+
+ dbus.deviced_proxy = eldbus_proxy_get(dbus.deviced_obj,
+ "org.tizen.system.deviced.display");
+ EINA_SAFETY_ON_NULL_RETURN_VAL(dbus.deviced_proxy, EINA_FALSE);
+
// reset registered window of e_test_helper
res = resetRegisterWin();
EINA_SAFETY_ON_FALSE_RETURN_VAL(res, EINA_FALSE);
}
// deinit eldbus
+ eldbus_proxy_unref(dbus.deviced_proxy);
+ eldbus_object_unref(dbus.deviced_obj);
eldbus_proxy_unref(dbus.ds_proxy);
eldbus_object_unref(dbus.ds_obj);
eldbus_connection_unref(dbus.conn);
}
Eina_Bool
+etRunner::setDevctlDisplayStop(Eina_Bool on)
+{
+ Eldbus_Pending *p = NULL;
+ if (on)
+ {
+ p = eldbus_proxy_call(dbus.deviced_proxy,
+ "stop",
+ NULL,
+ NULL,
+ -1,
+ "");
+ }
+ else
+ {
+ p = eldbus_proxy_call(dbus.deviced_proxy,
+ "start",
+ NULL,
+ NULL,
+ -1,
+ "");
+ }
+ EINA_SAFETY_ON_NULL_RETURN_VAL(p != NULL, EINA_FALSE);
+ return EINA_TRUE;
+}
+
+Eina_Bool
etRunner::feedMouseDown(int x, int y)
{
Eldbus_Pending *p = NULL;
dbus.conn = NULL;
dbus.ds_proxy = NULL;
dbus.ds_obj = NULL;
+ dbus.deviced_proxy = NULL;
+ dbus.deviced_obj = NULL;
listWinInfo = NULL;
output = {0,};
};
Eldbus_Connection *conn;
Eldbus_Proxy *ds_proxy; // display server proxy
Eldbus_Object *ds_obj; // display server obj
+ Eldbus_Proxy *deviced_proxy; // deviced proxy
+ Eldbus_Object *deviced_obj; // deviced obj
} dbus;
struct tizen_policy *tzPolicy;
Ecore_Window getWinId(Evas_Object *elm_win);
struct wl_surface *getWlSurface(Evas_Object *elm_win);
Eina_Bool setDpms(Eina_Bool on);
+ Eina_Bool setDevctlDisplayStop(Eina_Bool on);
Eina_Bool feedMouseDown(int x, int y);
Eina_Bool feedMouseMove(int x, int y);
Eina_Bool feedMouseUp(int x, int y);
res = etRunner::get().init();
EINA_SAFETY_ON_FALSE_RETURN_VAL(res, 1);
+ // display on
+ etRunner::get().setDevctlDisplayStop(EINA_TRUE);
+ etRunner::get().work(0.5);
+ etRunner::get().setDevctlDisplayStop(EINA_FALSE);
+ etRunner::get().work(0.5);
+
+ // keep display on
+ etRunner::get().setDevctlDisplayStop(EINA_TRUE);
+
// kill Lockscreen
etRunner::get().requestKillWinByName("LOCKSCREEN");