summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-05-21Add lightstatus brake ON/OFF eventsandbox/yuta-d/add_api_get_car_infoYuta Doi2-0/+5
Change-Id: I5b39168cf5a0907857e420e60710ec5f5d16b33d Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-18Add API which can get information about the car stateYuta Doi2-1/+94
getCarInfo() can get the car state informations as follows: - parking brake state : true/false - accelerator pedal position : 0-127.5 - car state : "stop"/"run" The details are described in doc/ApplicationGuide.md in project apps/agl-service-windowmanager-2017. Change-Id: Iac1052c172414b652aa94d94b386e22dff94cfdb Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-09Add parking brake ON/OFF eventYuta Doi2-0/+5
Change-Id: If80e4e6af323d280af004955d57fa32c37797c24 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-05-09Add headlamp ON/OFF and car stop/run eventYuta Doi2-34/+63
Change-Id: I65c543cfce9dcf1c4fdd21af1a3129eceec2b172 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-12-20Change Visible and InVisible event to broadcastflounder_5.99.1flounder/5.99.15.99.1zheng_wenlong1-0/+2
Visible/Invisibile event which is sent to application from window manager, becomes boardcasted in order that HomeScreen needs to know which application becomes visibile. Bug-AGL: SPEC-1214 Change-Id: Id168789f4eca9eea61fc8b671a9aeab2224694bf Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
2017-12-20Add APIs which can get information about the display and the surface areaYuta Doi2-1/+200
getDisplayInfo() can get the display information as follows: - width[pixel] - height[pixel] - width[mm] - height[mm] NOTE: It uses wl_output::geometry() for getting physical width[mm] and height[mm] of the display, but the value is different with measured value. value from wl_output::geometry(): width:320 height:520 measured value : width:193 height:343 getAreaInfo() can get the information of area drawn by the application as follows: - x-coordinate - y-coordinate - width - height The details are described in doc/ApplicationGuide.md in project apps/agl-service-windowmanager-2017. Bug-AGL: SPEC-1087 Change-Id: Icee00af4ab210b056cc67c2868ef2c594da1dbe1 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-12-19Fix the bug in error caseKazumasa Mitsunari1-10/+1
If window manager server returns fail(afb_req_fail) in requestSurface, the illegal memory access to json object happens. So fix not to access to the json object after using it in afb_wsj1_call_j. Change-Id: I1f422851b6476187f104dcc27d05ba13094b52d6 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-12-12Support XDG applicationTadao Tanikawa2-0/+53
To run XDG application on AGL HomeScreen/WindowManager, a new binding API of WindowManager is added. This api is used only by AGL XDG-Launcher and all xdg applications should be packed as wgt compatible to AGL Application framework. Bug-AGL: SPEC-1096 Change-Id: Iea43c65ce03a352773c47e125490990f32dc9695 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2017-12-04Remove exit code when the websocket connection is disconnectedKazumasa Mitsunari1-1/+0
When the websocket connection to Window Manager is disconnected due to some reason, libwindowmanager calls exit(1). Remove this not to kill applications suddenly. Change-Id: Ibab1600de0e6ea52ec7858fedcdff5a26cde4ab3 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-11-13Remove the setenveel_4.99.3eel/4.99.34.99.3Yuta Doi1-11/+1
The setenv process which sets surface_id to QT_IVI_SURFACE_ID depends on Qt, so it is removed. The setenv process was moved to qlibwindowmanager. Change-Id: I8ed6d25beb6638836fd7d54e5bf722ed14a246bc Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-11-13Add debug message macros controlled by environment variableYuta Doi2-20/+101
Add a HMI_DEBUG macro to print debug messages. It is controlled by the USE_HMI_DEBUG environment variable. Change-Id: I0cdf0069f67f561156c0f78ff322984733091002 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-11-10Remove unnecessary debug logKazumasa Mitsunari1-1/+0
Change-Id: I4cf29c7258958c8b0663a0d8ff8d3dd257867e4d Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-11-10Remove unnecessary comments and variableYuta Doi1-5/+2
Remove the comments and variable which are unnecessary and unused already. Change-Id: Id376c1d4a3b6968fed7050662fa5d42b7026bb34 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-11-08Change requestSurface() to return surface_idYuta Doi1-1/+1
libwindowmanager set surface_id to QT_IVI_SURFACE_ID for now, but the process will be removed in the future because it depends on Qt. So requestSurface() is changed to return surface_id. If requestSurface() occurs errors, negative value is returned. It is necessary to use return value of requestSurface() for the applications. Change-Id: Ice2a5fe152a3957f0132e0358ebd8a535bdfa7ce Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-11-02Merge changes from topics '11553', '(detached'eel_4.99.2eel/4.99.24.99.2Jan-Simon Moeller4-18/+47
* changes: Use a version for the library Replace json_object_object_get() with json_object_object_get_ex() Replace 'constexpr' with 'const char*'
2017-11-02Use a version for the libraryKazumasa Mitsunari2-2/+3
To prevent bitbake package_qa issue, adding version is necessary. So I added a version number of 0.1.0. Bug-AGL : SPEC-1000 Change-Id: Ic7a22fe04cdab3d323ca75f9292a09ec29fd6d07 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-11-02Replace json_object_object_get() with json_object_object_get_ex()Yuta Doi1-14/+38
json_object_object_get() is deprecated so it causes compile warning. Change-Id: Id43c3e098a58bd9a1a20e9fb55bc194babd6f48d Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-11-02Replace 'constexpr' with 'const char*'Yuta Doi2-4/+8
'constexpr' causes the warning [-Wwrite-strings]. So replace 'constexpr' with 'const char*'. Change-Id: I03e2c7b53e4db6cb5b804c66cb88ae15e2387eb8 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-11-01Merge "Change package configuration file name"Jan-Simon Moeller2-2/+2
2017-11-01Change package configuration file nameYuta Doi2-2/+2
Since libwindowmanager is split from agl-service-windowmanager-2017, I think the package configuration file should use the same name as the library, so change the file name to libwindowmanager.pc. Change-Id: I08ec3a133edfb689b0b44bba4e11f9f222bfb2ff Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-11-01Merge "Modify the enum starting point"Jan-Simon Moeller1-1/+1
2017-11-01Merge "Change parameter from char* to json_object"Jan-Simon Moeller2-47/+80
2017-11-01Remove unnecessary dependencyKazumasa Mitsunari1-2/+0
wayland-client is not used in this library (used in binder agl-service-windowmanager-2017) Bug-AGL: SPEC-1000 Change-Id: I5d5f0cafa79a09e9b34b1d81708c860b4c07a269 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-11-01Add gitreview file for masterYuta Doi1-0/+5
Change-Id: I96f99de7b5854066691897cdf838f73d3bea0276 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2017-11-01Modify the enum starting pointKazumasa Mitsunari1-1/+1
The windowmanager server treats the event list as a vector, thus it numbers the events starting from 0. Likewise we need to change the eventlist to start from 0 in this library. Related commit : https://gerrit.automotivelinux.org/gerrit/#/c/11481/ Bug-AGL: SPEC-987 Change-Id: I72a36033191b0a43fc8ab6923e2897715d02bcbd Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-11-01Change parameter from char* to json_objectKazumasa Mitsunari2-47/+80
For future extensibility, change the argument parameter to json_object Bug-AGL: SPEC-990 Conflicts: src/libwindowmanager.cpp Change-Id: I7015fe26d22489f250b67907870d2863d1e8158b Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-10-26Add library splitted from agl-service-windowmanagerKazumasa Mitsunari6-0/+862
Related commit : https://gerrit.automotivelinux.org/gerrit/#/c/11451/ [Patch Sets 2] - Remove doc/* because these documents are integtrated to agl-service-windowmanager-2017. https://gerrit.automotivelinux.org/gerrit/#/c/11507/1 - Modify the function comments to doxygen format. Bug-AGL : SPEC-993 Change-Id: Id82ee513e06f0c12eba044b8d42d8dde68063168 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2017-10-20Initial empty repositoryJan-Simon Moeller0-0/+0