summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-08-09Bug fixsandbox/knimitz/simple_apiKazumasa Mitsunari1-4/+3
Change-Id: I9ae70f13e91f9444a215bec72ff9752ab6c334b5 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-09Extract constant variables from classKazumasa Mitsunari1-17/+21
Change-Id: If1a3e18dd6467622165437ba4c975ddea188b0e5 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-09Remove setErrorHandlerKazumasa Mitsunari2-31/+1
This function will not be added. Change-Id: I205692e5de6a1a6332d9ad32554744a1fdc0dc52 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-09Move the old APIs using json_object* to deprecatid codeKazumasa Mitsunari1-13/+10
To be easy to use, these APIs will be deprecated on GG. Change-Id: Ie550415247ef185f53e0429edb79cf5577a22755 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-09Clean source code and bug fixKazumasa Mitsunari2-45/+61
Change-Id: Ie933b68b11830d37d9a58e673e9d50bfdc49a4be Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-09Revert "Compile together with sample code"Kazumasa Mitsunari2-6/+2
This reverts commit a1fc65266653056f211eebfd610c64fa5af70ad5.
2018-08-09Use static_castKazumasa Mitsunari1-1/+1
Change-Id: I7dd7513f6b667b10fce8ca4272eae7cfbe7b9107 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-09Split gettng json and parseKazumasa Mitsunari1-2/+3
Change-Id: Ie340727ad44db9d1db4eaf92ef7c4bf878f47c6d Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-09Use this pointerKazumasa Mitsunari1-1/+1
Change-Id: I5e56c893beb9950a4d15e1826715e7040924d19b Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-08Compile together with sample codeKazumasa Mitsunari2-2/+6
Change-Id: Ib5c9f141091da9b8c5e9c477f3cd6176aae31322 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-08Fix simple-egl because of update libwindowmanager APIKazumasa Mitsunari2-23/+25
Change-Id: Ic4f8435eab9ad054c75bef668a3b05373d17f712 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-08Fix API getArea and syncDraw handlerKazumasa Mitsunari2-14/+24
Change-Id: Ib614f90c68f63977e4c6bdac5962a34cf7ff193a Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-07Add activateWindow(const char* role)Kazumasa Mitsunari2-5/+9
Default area is used in this function. Change-Id: I93aae681ca04e77a23c23bb10b62c31f082b5227 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-06Don't use invisible/inactive handlerKazumasa Mitsunari2-58/+15
* More simple * Get attribute in handler argument with bool Change-Id: I1f028a3692404d57675c1d356486ecca8cd6cfce Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-06Clean: fix typoKazumasa Mitsunari2-13/+13
Change-Id: I3ca30e5be6c313a5ac624a58bfa62a965469edbe Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-06Fix getDisplayInfo(AGLScreenInfo*) to getScreenInfo(strcut Screen*)Kazumasa Mitsunari2-60/+69
Change-Id: I4ed94b76c63d4fd784da2e4be2fd28508ff62c39 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-03Use new libwindowmanager APIKazumasa Mitsunari2-43/+56
Change-Id: I7239b6ef7034c4982a7e17c5bbbff57c9bd7dce4 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-03Add simple-egl using old API from libhomescreenKazumasa Mitsunari13-0/+2089
Change-Id: Ifd61188593f66ec38e132200ef10e23796227ab8 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-03Add error eventKazumasa Mitsunari2-0/+34
Change-Id: I774a364cdb3cb1bce38ceab43c5abdab1434dae8 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-03Add overload function "init"Kazumasa Mitsunari2-0/+5
Change-Id: Ibf83e6a50cd3d89d4e595bd30fcd06cc5884edae Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-03Remove unnecessary headersKazumasa Mitsunari1-10/+0
Change-Id: I0010da5729004abab1ad4bae56f6106758435fd7 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-03Simple API[2/2]Kazumasa Mitsunari2-1/+305
Change-Id: I3e56ee8ddcf396ea6d4c4e9d942de3b38c7f9914 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-03Simple API [1/2]Kazumasa Mitsunari2-0/+39
Change-Id: If6b4d5588183ab3c6bccd670d6dd251652d00587 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-08-02Add new parameter 'scale' for multiple resolutionflounder_5.99.4flounder_5.99.3flounder/5.99.4flounder/5.99.35.99.45.99.3Tadao Tanikawa1-1/+11
To support rendering which fits screen resolution, new parameter 'scale' is added to API, getDisplayInfo If window manager doesn't support multi-resolution, scale is set 1.0 for backward compatibility. Bug-AGL: SPEC-1611 Change-Id: I1050dd6b3ac919ce5f495ca8ea0bf13c7240b501 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2018-07-25Change .gitreviewKazumasa Mitsunari1-1/+1
Change-Id: I75ca65bd46ef5ea4d503839bf83e2ffc24d2bb30 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-07-13Bug fix: Enable screenUpdated and error eventflounder_5.99.2flounder/5.99.25.99.2Kazumasa Mitsunari1-2/+4
This patch fixes the bug that application can't get the screenUpdated and error events. Bug-AGL: SPEC-1532 Change-Id: I260179916ea487faf761c40efc473ae415707050 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-07-09Rename event names to lower camel caseYuta Doi1-3/+3
Change-Id: I8c506bc85941bcae59835f7a5dc443cadab044fe Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-07-09Rename APIsYuta Doi2-12/+26
rename WindowManager APIs as follows: - activateSurface -> activateWindow - deactivateSurface -> deactivateWindow The "surface" means information of display material frame buffer anaged by Graphics Subsystem (Weston). And the "window" means the right to draw on display. The "surface" is physical information and used inside WindowManager. So we think it is not good for "surface" to be included in API name. These APIs provide the function which is to activate/deactivate the right to draw for the applications. So we change to "activateWindow/deactivateWindow". We plan to delete the old API by GG. Therefore the applications can use old APIs until GG, but the warning "-Wdeprecated-declarations" is occured when compile. After GG, old APIs can not be used. If use it, the error is occured when compile. Bug-AGL: SPEC-1565 Change-Id: I8a4aa5b8b43e1d90fe28964a41257b1947ab5174 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
2018-06-29Revert "Change Visible and InVisible event to broadcast"Kazumasa Mitsunari1-2/+0
This reverts commit 026af4256b9b69ffd52972d6da0cb394dff2b0e6. The events should be only sent to each application, so revert this commits. Use "screen_updated" instead. Bug-AGL: SPEC-1532 Change-Id: I42ba2812a0b8b9f04614f6668c5b925f55111659 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-06-29Add screen_updated and error eventKazumasa Mitsunari2-1/+9
Add events screen_updated * emitted when the displayed application changed. error * emitted when a error happens after request is accepted. Related commit: https://gerrit.automotivelinux.org/gerrit/#/c/14761/ Change-Id: I3c91c053668490fe68e45121a34e1fae5cd403fc Signed-off-by: Kazumasa Mitsunari <knimitz@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>