gIco_Dic_JS_Input = (Ico_Dic_JS_Input *)malloc(sizeof(Ico_Dic_JS_Input) * length);
if (! gIco_Dic_JS_Input) {
ICO_ERR("joystick_gtforce: No Memory");
+ ICO_INF("END_MODULE GtForce device input controller(Error: No Memory)");
exit(1);
}
memset((char *)gIco_Dic_JS_Input, 0, sizeof(Ico_Dic_JS_Input) * length);
iMng->code[kk].appid[ll] = *p;
p++;
}
+ if ((ll == 0) || (iMng->code[kk].appid[0] == '@')) {
+ iMng->code[kk].appid[0] = ' ';
+ iMng->code[kk].appid[1] = 0;
+ }
if (*p) {
p ++;
if (strncasecmp(p, "key=", 4) == 0) p += 4;
iMng->code[0].appid[ll] = *p;
p++;
}
+ if ((ll == 0) || (iMng->code[kk].appid[0] == '@')) {
+ iMng->code[kk].appid[0] = ' ';
+ iMng->code[kk].appid[1] = 0;
+ }
if (*p) {
p ++;
if (strncasecmp(p, "key=", 4) == 0) p += 4;
char devName[64];
int ii, jj, kk;
- ICO_TRA("ico_dic_js_open: Enter(device=%s, conf=%s)", dicDevName,
+ ICO_TRA("ico_dic_js_open: Enter(device=%s, conf=%s)",
+ dicDevName ? dicDevName : "(null)",
*confpath ? *confpath : "(null)");
char *pdev = getenv(ICO_DIC_INPUT_DEV);
if (conf_fd < 0) continue;
close(conf_fd);
}
+ else {
+ strncpy(fixconfpath, *confpath, sizeof(fixconfpath));
+ }
break;
}
/* not match, close */
return;
}
ICO_ERR("ico_dic_js_read: read error[%d]", ii)
+ ICO_INF("END_MODULE GtForce device input controller(Error: Device Read Error)");
exit(9);
}
for (ii = 0; ii < (rSize / (int)sizeof(struct js_event)); ii++) {
/* event input log */
mEventLog = 1;
}
+ else if (strcasecmp( argv[ii], "--user") == 0) {
+ ii ++;
+ if (ii < argc) {
+ if (strcmp(argv[ii], cuserid(NULL)) != 0) {
+ printf("ico_dic-gtforce: abort(cannot run in a '%s')\n", cuserid(NULL));
+ exit(9);
+ }
+ }
+ }
else {
dicDevName = argv[ii];
}
/* set log name */
ico_log_open(mDebug != 3 ? "ico_dic-gtforce" : NULL);
+ ICO_INF("START_MODULE GtForce device input controller");
/* read conf file */
confpath = getenv(ICO_DIC_CONF_ENV);
JSfd = ico_dic_js_open(dicDevName, &confpath);
if (JSfd < 0) {
ICO_ERR("main: Leave(Error device open)");
+ ICO_INF("END_MODULE GtForce device input controller(Error: Device Open Error)");
exit(1);
}
gIco_Dic_JS.fd = JSfd;
/* read conf file */
if (ico_dic_read_conf(confpath) == ICO_DIC_ERR) {
ICO_ERR("main: Leave(Error can not read configfile(%s))", confpath);
+ ICO_INF("END_MODULE GtForce device input controller(Error: config file Read Error");
exit(1);
}
/* initialize wayland */
if (ico_dic_wayland_init(NULL, NULL) == ICO_DIC_ERR) {
ICO_ERR("main: Leave(Error can not connect to wayland)");
+ ICO_INF("END_MODULE GtForce device input controller(Error: Can not connect to wayland)");
exit(1);
}
ico_dic_add_fd(JSfd);
}
}
ico_dic_wayland_finish();
+
+ ICO_INF("END_MODULE GtForce device input controller");
ico_log_close();
exit(0);
fprintf( stderr, " ex)\n");
fprintf( stderr, " %s \"Driving Force GT\"\n", pName);
}
-
}
#endif
#endif /* _ICO_DIC_GTFORCE_H_ */
-
errcount ++;
if (errcount > 50) {
ICO_ERR("ico_dic_wayland_iterate: Error wayland disconnect");
+ ICO_INF("END_MODULE GtForce device input controller"
+ "(Error: wayland disconnect)");
exit(9);
}
if ((errcount % 5) == 0) {
ICO_DBG("ico_dic_wayland_finish: Leave");
}
-
--- /dev/null
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
+* Thu Dec 26 2013 Shibata Makoto <shibata@mac.tec.toyota.co.jp> submit/tizen/20131219.041510@b8c013a
+- 0.9.05 release
+-- revise: add manifest file for SMACK label setting
+-- revise: add process start/end log
+
* Fri Nov 29 2013 Shibata Makoto <shibata@mac.tec.toyota.co.jp> accepted/tizen_ivi_stable/20131119.040206@f02120b
- 0.9.04 release
-- bug fix: A package test script(tests/input-controller-test) becomes the error by a timing
Name: ico-uxf-device-input-controller
Summary: Device Input Controller
-Version: 0.9.04
+Version: 0.9.05
Release: 1.1
Group: System/GUI
License: Apache License, Version 2.0
install -m 644 settings/ico-device-input-controller.service %{buildroot}%{_unitdir_user}/ico-device-input-controller.service
%files
+%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_bindir}/ico_dic-gtforce
%{ictl_conf}/drivingforcegt.conf
After=weston.service
[Service]
-ExecStart=/usr/bin/ico_dic-gtforce -d
+Environment=XDG_RUNTIME_DIR=/run/user/5000
+ExecStart=/usr/bin/ico_dic-gtforce -d --user app
# 2 set weston environment
export XDG_RUNTIME_DIR=/run/user/5000
+export XDG_CONFIG_HOME="../tests"
# 3 Start Device Input Controllers
export DIC_GTFORCE_CONF="./testdata/g27racingwheel.conf"
sleep 0.5
# 4 Start Weston
-/usr/bin/weston --tty=1 --idle-time=0 $WESTON_BACKEND --log=../tests/testlog/weston.log &
+/usr/bin/weston --tty=2 --idle-time=0 $WESTON_BACKEND --log=../tests/testlog/weston.log &
sleep 180
# 5 End of Test
if [ "$?" != "1" ] ; then
FOUND_ERR=1
fi
-/bin/grep "error" testlog/*
+/bin/grep "error" testlog/* | /bin/grep -v "error_but_no_problem_for_test" | /bin/grep -v "failed to restore kb mode:" | /bin/grep -v "failed to set KD_TEXT mode on tty:"
if [ "$?" != "1" ] ; then
- FOUND_ERR=1
+ FOUND_ERR=1
fi
/bin/grep "Fail" testlog/* | /bin/grep -v "error_but_no_problem_for_test" | /bin/grep -v "initialize backlight" | /bin/grep -v "disconnect"
if [ "$?" != "1" ] ; then
# 2 set weston environment
export XDG_RUNTIME_DIR=/run/user/5000
+export XDG_CONFIG_HOME="../tests"
# 3 Start Device Input Controllers
export DIC_GTFORCE_CONF="./testdata/drivingforcegt.conf"
sleep 0.5
# 4 Start Weston
-/usr/bin/weston --tty=1 --idle-time=0 $WESTON_BACKEND --log=../tests/testlog/weston.log &
+/usr/bin/weston --tty=2 --idle-time=0 $WESTON_BACKEND --log=../tests/testlog/weston.log &
sleep 180
# 5 End of Test
if [ "$?" != "1" ] ; then
FOUND_ERR=1
fi
-/bin/grep "error" testlog/*
+/bin/grep "error" testlog/* | /bin/grep -v "error_but_no_problem_for_test" | /bin/grep -v "failed to restore kb mode:" | /bin/grep -v "failed to set KD_TEXT mode on tty:"
if [ "$?" != "1" ] ; then
- FOUND_ERR=1
+ FOUND_ERR=1
fi
/bin/grep "Fail" testlog/* | /bin/grep -v "error_but_no_problem_for_test" | /bin/grep -v "initialize backlight" | /bin/grep -v "disconnect"
if [ "$?" != "1" ] ; then
--- /dev/null
+[core]
+shell=
+modules=ico_plugin_loader.so
+# This is Error for Test(No Problem)
+
+[shell]
+num-workspaces=1
+shell-exe=
+locking=false
+animation=zoom
+startup-animation=fade
+
+[input-method]
+#path=/bin/weekeyboard
+path=
+
+#[output]
+#name=HDMI1
+#transform=90
+
+#[output]
+#name=HDMI3
+#transform=90
+
+#[output]
+#name=VGA1
+#mode=off
+
+[ivi-plugin]
+modules=ico_ivi_shell.so,ico_window_mgr.so,ico_window_animation.so,ico_input_mgr.so
+
+[ivi-display]
+# logical display number list
+displayno=1,0
+# default input panel display
+inputpanel=0
+
+[ivi-layer]
+# background layer id
+background=0
+# default(panel) layer id
+default=1
+# touch panel layer id
+touch=101
+# cursor layer id
+cursor=102
+# layer id at the time of the system startup
+startup=103
+# input panel layer decoration (magnification rate(%);difference from the bottom)
+inputpaneldeco=120;132
+
+[ivi-animation]
+# default animation name;time;rate(frame/sec)
+default=fade;500;30
+# input panel surface animation(name;time)
+inputpanel=fade;200
+
+[ivi-option]
+# option flags
+# 0x0001 1=show surface at screen create if HomeScreen exist/0=not show surface at create
+# 0x0002 1=1=show if display not exist/0=not show if display not exist
+# 0x0004 1=show input panel automatically/0=not show automaticaly
+# 0x0080 1=surface fixed aspect rate/0=not fixed aspect rate
+# 0x8000 1=no use GPU dependent acceleration
+# 0x1000 1=force use Intel Sandybridge Mobile GPU dependent acceleration
+flag=0x0004
+
+# debug log output level and debug flag
+# lower 16 bit: log level(0=no/1=err/2=warn/3=info/4=trace/5=debug)
+# upper 16 bit: debug flag(0x00010000: performance log)
+log=0x00010005