Yuta Doi [Fri, 22 Jun 2018 09:04:16 +0000 (18:04 +0900)]
Add none event and category
Change-Id: I02bab5812170d867b4e144c8c2ec926cedccd27c
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 22 Jun 2018 08:27:56 +0000 (17:27 +0900)]
Move process for deciding area when correct area is not set
Change-Id: I6ca3751e0a02ba62a66e770572e86da321ce2e5d
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 22 Jun 2018 07:24:59 +0000 (16:24 +0900)]
Modify file name from app.db to drawing_name.db
Change-Id: Idbe7bc37c549c759a74559cffdd6b5c2d1a1e11b
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 22 Jun 2018 03:59:57 +0000 (12:59 +0900)]
Modify error process for setInputEventData
Change-Id: I5853de459ba572ac702ef5f3e3b332bdc516d6fb
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 22 Jun 2018 02:26:20 +0000 (11:26 +0900)]
Remove the roles which have name written by pascal case
Change-Id: Ie66b4c6593b75d42e53a9f2426bd37823ec48991
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 22 Jun 2018 01:56:03 +0000 (10:56 +0900)]
Modify data type of changed flag
Change-Id: I43f260e7c854a6b5be78f860d55b813937af975f
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 22 Jun 2018 01:41:25 +0000 (10:41 +0900)]
Move layout.db
Change-Id: I38e008245173fd4a7c2d4ae19e8baab85fbbb27d
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 22 Jun 2018 01:34:09 +0000 (10:34 +0900)]
Modify layout name
Change-Id: Ia58664efc1924e04a026ed0dd6c16c8a90e4c2e0
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 22 Jun 2018 00:48:21 +0000 (09:48 +0900)]
Modify role definition
Change-Id: I1598af88fbe0fa84bccad299a26175650ba058e8
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 22 Jun 2018 00:30:26 +0000 (09:30 +0900)]
Separate area.db from layout.db
Change-Id: I556d3acb292fa79c45aee25f47170d66d76b1448
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 21 Jun 2018 07:32:14 +0000 (16:32 +0900)]
Bug fix: Always changed flag becomes true when restriction mode is changed
Change-Id: I4812af0b1afd81fb8f1323ca416063e5d5d9ba70
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 21 Jun 2018 05:40:06 +0000 (14:40 +0900)]
OnScreen app can be displayed for pop_up role
Change-Id: I53cdcd010c9e0b87cd4207d8bb81bb5784202f18
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 21 Jun 2018 01:23:26 +0000 (10:23 +0900)]
Modify comment
Change-Id: I95b9ccb8465d52c973e940bf5603694ba29c4cdd
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 21 Jun 2018 01:10:06 +0000 (10:10 +0900)]
Modify debug log
Change-Id: Idca7758b7f86a6004546ba37713360d9bac864db
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 13:26:57 +0000 (22:26 +0900)]
Use default area when area is not requested
Change-Id: I397987d15b17a7fe0049362e998dee12afa894ca
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 13:21:27 +0000 (22:21 +0900)]
Modify car info name
Change-Id: I81939c5e981b6fb2f15257d40331d328a3bb55af
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 13:17:03 +0000 (22:17 +0900)]
Replace word "is_changed" to "changed"
Change-Id: I86a64c98f97ba9f7c2fd8ee294c29b073329be25
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 13:12:58 +0000 (22:12 +0900)]
Modify string of car state
Change-Id: I91b43b01571f0597de4064d46d68c9049bc3d407
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 12:56:36 +0000 (21:56 +0900)]
Modify process of analyzing current state in ResourceManager
Change-Id: I29115b7b5edbe66849de928a5b58e595c16fadaa
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 12:26:13 +0000 (21:26 +0900)]
Move event info queue into PolicyManager
Change-Id: I54a1bd129f396937c3e89bebf02b47c8f610db77
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 12:17:41 +0000 (21:17 +0900)]
Modify member variable name
Change-Id: Ic9100cfc33c664d3dfa935c4c7131efd8dd2f1f7
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 12:07:49 +0000 (21:07 +0900)]
Integrate car element state
Change-Id: Idcbf6a186628553fa5118ba7238ae4a2e3bf87e2
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 08:44:29 +0000 (17:44 +0900)]
Segment process for control timer event
Change-Id: Ie13b7067095c7be0f2cac26150b9cc37650c374e
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 08:26:25 +0000 (17:26 +0900)]
Add calling callback for onError
Change-Id: I462759f3fe1f826bfd45e15c9b9416cf53486ed2
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 07:07:42 +0000 (16:07 +0900)]
Segment process
Change-Id: Ib25c5ed69624f7cc5c560e9f87531fe1af3bfd4c
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 05:51:21 +0000 (14:51 +0900)]
Remove unnecessary code
Change-Id: Iaeb0ca411269f3371dbd813e7b6095a7069be79d
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 20 Jun 2018 05:30:52 +0000 (14:30 +0900)]
Use enum instead of constant macro
Change-Id: I36542efd33e92204188777092e2d7c31118dc033
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Tue, 12 Jun 2018 21:50:09 +0000 (06:50 +0900)]
Add layout "system" to layout.db
Change-Id: I86fa81e892cefa0273549a8e23b00be59a755e69
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Tue, 12 Jun 2018 16:37:46 +0000 (01:37 +0900)]
Add category "system" for showing specific app on restriction mode ON
Change-Id: Ic4d63045f98cd18b33876e4cde8d1d0a315706f0
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Tue, 12 Jun 2018 04:29:23 +0000 (13:29 +0900)]
Bug fix: Refer removed surface id in vector of pending_end_draw
Change-Id: I76d86bb19388334dd640fbe07e8d307dec9b61cc
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Tue, 19 Jun 2018 09:33:31 +0000 (18:33 +0900)]
Bug fix: nullptr access
Change-Id: Idb64e91729c566dfb006bb71c82cf695e68945d2
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 18 Jun 2018 10:25:31 +0000 (19:25 +0900)]
Remove unnecesarry member variable: role2surfaceid_
Change-Id: Ia90c9f903e818ab9791648627206f39483be9fdc
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 18 Jun 2018 09:54:57 +0000 (18:54 +0900)]
Modify API of PolicyManager
Change-Id: Iae45cc7c34560396490722b2cc4570a04d806ae7
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 15 Jun 2018 11:40:22 +0000 (20:40 +0900)]
Modify format of layout information and process for updating layout
and delete unnecessary process
Change-Id: I266cbc684c28b49d9855db851a56afbff3588b35
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 15 Jun 2018 02:42:37 +0000 (11:42 +0900)]
Add new addStateToJson()
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 14 Jun 2018 03:16:40 +0000 (12:16 +0900)]
Modify the process for updating layer state
Change-Id: Iccfc332f996f2bc01cd5c6b9cad46229758c6212
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 11 Jun 2018 10:44:27 +0000 (19:44 +0900)]
Update managing layout information
Change-Id: I9e1e3f5c7d0f1815ef3d4ea1045eb67db35ad787
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 11 Jun 2018 04:32:38 +0000 (13:32 +0900)]
Update managing layout information
Change-Id: I57d7281afc000f4c4c22b54bedd4e61bdd91872b
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 8 Jun 2018 13:32:39 +0000 (22:32 +0900)]
PolicyManager manage layout information (area, category, role)
Change-Id: I0841819ef73a20308223414bca8d74f5b26215f5
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 8 Jun 2018 01:15:52 +0000 (10:15 +0900)]
PolicyManager uses layout information
Change-Id: I6628c5614d0ed28d9c60a9d6f792a31c805178dd
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 7 Jun 2018 09:09:45 +0000 (18:09 +0900)]
Modify struct stm_state_t
Change-Id: I4f9861d22439270200e202b1c365bbd1d055e900
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Tue, 5 Jun 2018 04:47:25 +0000 (13:47 +0900)]
Add new roles and remove unnecessary role definition
Change-Id: I228ffab3810675789dc9cf90a0e4683466f79b2f
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Tue, 5 Jun 2018 04:34:09 +0000 (13:34 +0900)]
Add the role "launcher"
Change-Id: Ied50062946952ccad265e496a038ca3394d9245b
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Tue, 5 Jun 2018 04:23:02 +0000 (13:23 +0900)]
Bug fix: refer the released memory of role name
Change-Id: I67aa440a37f8955da2d7daaf1f6ace95016b763d
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 1 Jun 2018 09:44:35 +0000 (18:44 +0900)]
Modify request_surface for XDG app
Change-Id: I91ac5d09f985e2dda1b0ed6274f01106c87807be
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 1 Jun 2018 05:27:14 +0000 (14:27 +0900)]
Modify API of PolicyManager
and change the process for stopping timer
Change-Id: Id7f9ba1c25adc188b01d8407f7043ea22da113d9
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 31 May 2018 06:34:38 +0000 (15:34 +0900)]
Use sd_event_add_defer() for dispatching checkPolicy
and modify the format of the logs
Change-Id: Ic6e4a74c03e9fc74277ce4da0d3fd726c81a4a95
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Tue, 29 May 2018 14:14:11 +0000 (23:14 +0900)]
Add timer for restriction mode
When car state is changed stop -> run,
the timer for switching restriction mode off -> on is set.
When car state is changed run -> stop,
restriction mode is changed on -> off.
Change-Id: I6a8af9b45c7631db59cb78c41d07af118346a331
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Tue, 29 May 2018 08:10:03 +0000 (17:10 +0900)]
PolicyManager uses sd_event loop for the process of check policy
Change-Id: I1e7f7c2085ec30e09a53a67c0ad9c51b2bf53578
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 25 May 2018 05:27:58 +0000 (14:27 +0900)]
Use afb_service_call instead of afb_service_call_sync
because initializing of WindowManager is dispatched
when starting low-can service is late.
Change-Id: I081aeda5dcd2a815467e6d19c51deec63d6303f4
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 25 May 2018 08:01:36 +0000 (17:01 +0900)]
The surfaces are managed by using the roles instead of the drawing names
Change-Id: I7373a54f2df334ac223b51a6cb9a643a88e7c33c
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 25 May 2018 02:53:43 +0000 (11:53 +0900)]
Delete label "role" for the API activateSurface and deactivateSurface
Change-Id: Ia59c0f3ad9d44e0836520abc50419d0be006acdf
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 24 May 2018 01:54:46 +0000 (10:54 +0900)]
Use $ORIGIN for rpath
Change-Id: I33e1faa842ce881f56a8734b2463f650510929da
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 23 May 2018 05:03:31 +0000 (14:03 +0900)]
Bugfix: Restriction app is displayed on Dashboard app when steping on foot brake
Change-Id: Ic4b2cd4769abf90c07d2c7e9c7961d3cae40202e
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 23 May 2018 04:34:13 +0000 (13:34 +0900)]
Bugfix: Occur segmentation fault when steping on the accelerator before navi app is started
Change-Id: I5d1218c5eee9001725c14e7f20d05466b073bcfb
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 23 May 2018 04:16:16 +0000 (13:16 +0900)]
Loads libpolicy_manager.so from the directory where WindowManager is installed
Change-Id: Ie581e361323dd267a51f2c6e72807ad712e4dca9
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 21 May 2018 10:58:50 +0000 (19:58 +0900)]
Add lightstatus brake ON/OFF event
Change-Id: Id2c61fc6e102394f5ba08effe0cfac448b337176
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 21 May 2018 07:05:37 +0000 (16:05 +0900)]
Modify the definition of role:phone for ALS
Change-Id: If759a879898e829c73e4ec1a3f3efd1f2a55ff6c
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 21 May 2018 05:10:05 +0000 (14:10 +0900)]
Waiting for the surface of new app is created before setting the size
Change-Id: I7e60330739388b5b5dc339076f432e6ca77f12b4
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 21 May 2018 01:44:38 +0000 (10:44 +0900)]
Bug Fix: When restriction app gets invisible event, other app also gets it
Change-Id: Id72543fa86007bbff7c3e77f7df78e4162bfa269
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 17 May 2018 07:48:33 +0000 (16:48 +0900)]
App (ResourceManager) class has the current car info
and LowCanClient does not check whether CAN signal value is changed
Change-Id: I41dfd0772f8fb4db70c4b5c0caa35791600abc54
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 16 May 2018 07:26:13 +0000 (16:26 +0900)]
Modify the policy of restriction
for when the restricted app becomes invisible.
Change-Id: I7519078844bd90855f69472bce042ce0bd8e52e5
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 14 May 2018 09:39:23 +0000 (18:39 +0900)]
Add transmission gear position event in PolicyManager
Change-Id: Ibf528b5ab3877d2cf094920fd0723873fb12647c
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 14 May 2018 08:22:57 +0000 (17:22 +0900)]
PolicyManager can judge the current car state
and remove judgement process of it from LowCanClient
because it should be judged by PolicyManager
Change-Id: I94467332665e34b751604cafe5d43f3abd4d7cfd
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 14 May 2018 08:04:28 +0000 (17:04 +0900)]
Change the policy of switchng car run/stop in dummy stm
Change-Id: Ie3770060828f32749e7c47076d901263454e43c2
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Mon, 14 May 2018 04:10:00 +0000 (13:10 +0900)]
Add policy of switchng accel pedal status to dummy stm
Change-Id: Iea389d3899f2d01430400374ed0ab0f2fe882ec8
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 11 May 2018 09:33:38 +0000 (18:33 +0900)]
Remove unnecessary header from policy_manager.hpp
Change-Id: Ic7135e8ab7ae668c71ea83f5b87df3f741739f28
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 11 May 2018 06:42:29 +0000 (15:42 +0900)]
LowCanClient can set filter
Change-Id: I9464b631a5b36cdfeba28ebd146fce3f5ca7f879
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 11 May 2018 04:23:53 +0000 (13:23 +0900)]
LowCanClient can receive accelerator.pedal.position signal
Change-Id: Ia6d4ad7888ec764fcd8dec696f6eda9d826cb62d
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Fri, 11 May 2018 01:09:24 +0000 (10:09 +0900)]
The role "video" can be shown in split area for ALS
and the role "restriction" can use the areas other than "restriction.split.sub"
Change-Id: I5aab163409cf5284b876dc9e44102ee620344472
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 10 May 2018 05:57:44 +0000 (14:57 +0900)]
Fix switching visibility when deactivating
commit_change for ivi-wm was not called when deactibating,
therefore added it.
Change-Id: I4558ddaace0f63c6ecbc652d8af29074454decac
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 10 May 2018 05:44:21 +0000 (14:44 +0900)]
Replace json_object_from_file to inputJsonFilie
and remove unnecessary header
Change-Id: Ia4200a9742d62933328d0518731710413caa1a5c
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 10 May 2018 04:10:28 +0000 (13:10 +0900)]
Modify for restriction role
- Add policy for restriction to dummy stm.
- Add the function which inputs json file
because json_object_from_file can not allows up to only 4KB file.
- Bug fix in json files.
- Delete unexpected characters.
- Delete description because it does not follow the format of json array.
Change-Id: I2f8fba1d1001cf244e2531fe3a1a738d5a48091b
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 9 May 2018 08:15:42 +0000 (17:15 +0900)]
Add conversion map role2app
Change-Id: I1e194ecc9fb90ccb4c24e114ac1513ed19f0c0a3
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 9 May 2018 07:09:40 +0000 (16:09 +0900)]
Add policy of switching parking brake state to dummy stm for validation
Change-Id: I547e578526d6ce934c9fa8aa86170cea5a2f17e7
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Wed, 9 May 2018 04:34:19 +0000 (13:34 +0900)]
Add parking brake ON/OFF event
Change-Id: I3b9face35972a275918ac4f95f4a97df035ee924
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 8 May 2018 09:57:48 +0000 (18:57 +0900)]
Modify layers.json and layout.db
layers.json
* Forgot to change the layer name
layout.db
* Change the name of area and layer
* Modify the size of area
Change-Id: I9edd547419d894aef0142e9ef9668e08987549dc
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 8 May 2018 09:12:57 +0000 (18:12 +0900)]
Change the role and layout
role
* upper homescreen -> near_homescreen
* lower homescreen -> far_homescreen
* restriction.* -> restriction
Change-Id: I5d53a66b8dc3d3b9cb761b27b7b388661853fd32
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 8 May 2018 04:40:53 +0000 (13:40 +0900)]
Change layout.db
* Undo the changes, revert to the original layout.db for test
* Add ALS test case
Change-Id: I8ca89e0455fb0d429d41b2f3a9d3f9341fda551c
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 8 May 2018 02:04:57 +0000 (11:04 +0900)]
Add launcher role to the role.db
Change-Id: Ibdf275b528678abbfa1771bf0e9ec389c540fbfa
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 8 May 2018 02:03:36 +0000 (11:03 +0900)]
Change the size of restriction layer
Change-Id: Ibf2e5f46a95a8c84c7baa513798a685c00e8338d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 7 May 2018 06:54:36 +0000 (15:54 +0900)]
Add restriction and software keyboard layers
Change-Id: I9133faa840f6feaec3f2b6f88a6e1b33be29639c
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 7 May 2018 07:41:38 +0000 (16:41 +0900)]
Packaging with libpolicy_manager.so
LD_LIBRARY_PATH is set in ${AFM_APP_INSTALL_DIR}/lib,
so Window Manager can load own library from them.
Change-Id: I5bd62fac6c8661b681a4f617e882548d6da7f336
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Yuta Doi [Fri, 27 Apr 2018 10:01:36 +0000 (19:01 +0900)]
Add PolicyManager, related classes and some config files
- PolicyManager
Decide next layout by using occured event and current state
based on policy table.
This PolicyManger is reference and the OEMs can replace it.
- LayoutManager
Change the current layout to the layout
which decided by PolicyManager.
NOTE:
The functions of this class had been included in App class.
The part of function of this class remain there yet.
- LowCanClient
Receive the CAN signal from low level CAN service.
- app.db
Define the applications name and its role.
This file will be deleted
when the names and roles can be given by other module.
- layout.cb
Define the layouts and areas which are included by the layout.
- role.db
Define the roles of the applications.
Change-Id: I2f84bdf5e68355e022f516cee9a1db88efe58825
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 27 Feb 2018 01:35:08 +0000 (10:35 +0900)]
Update document
* Change version to 0.5
* Remove code generation. It is not used anymore
* Fix inconsistent spellings
* Add "Fallback" description
* Fix dependency package
* Add description of requestSurfaceXDG
Change-Id: I134c521b0d413780e496e9477c4901431eb72ae5
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 19 Mar 2018 08:06:05 +0000 (17:06 +0900)]
Change reply timing
Some events were emitted in a function before it replies.
This patch changes
* The function checks parameter then reply error if it is incorrect.
* After checking parameters, the function continues to process.
The exeption is the syncronous functions such as requestSurface.
Change-Id: I168eba3e2b70d53615a4221bcbbba6bc6096c1db
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 19 Mar 2018 10:17:06 +0000 (19:17 +0900)]
Send visible event after commit change
Visible event was emitted before commit change of ivi-controller.
This patch changes the event emitted after commit change.
Bug-AGL: SPEC-1332
Change-Id: Ib8a6d3a513c1fe4a28111b2ad256122289fc5cc0
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Fri, 9 Mar 2018 04:45:36 +0000 (13:45 +0900)]
Enable fallback, then display applications
This patch enables the app to show if it is not registered in layers.json.
The original installed app was not shown because the role of app is not
registered in WM as default.
[Patch set2]
Add the same process into requestSurface for RunXDG
Bug-AGL : SPEC-1331
Change-Id: Ie99b971023a95a1924795b1ffc7311a630940b1d
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Yuta Doi [Fri, 22 Dec 2017 12:00:10 +0000 (21:00 +0900)]
Add APIs which can get information about the display and the surface area
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.
Bug-AGL: SPEC-1087
Change-Id: I9e6d64ff04e0845b83c69db374d06af17a6d6b66
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Yuta Doi [Thu, 11 Jan 2018 02:08:47 +0000 (11:08 +0900)]
Change the protocol from ivi-controller to ivi-wm
This patch is for master branch only.
For using wayland-ivi-extension version 2.x,
the wayland protocol in WindowManager is changed
from ivi-controller to ivi-wm.
NOTE:
If using this patch,
the modification for AGL/meta-agl
which described in SPEC-1244 is necessary.
Bug-AGL: SPEC-1244
Change-Id: I5489db202dfeec8f4626aee53bd1f86c145b95d9
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Kazumasa Mitsunari [Mon, 8 Jan 2018 07:50:50 +0000 (16:50 +0900)]
Fix screen flicker
If the app is on background layer for CES hack such like Navigation,
when the user push "Home" shortcut botton quickly many times,
the app on background layer appears with flickering.
So fix the issue.
Bug-AGL: SPEC-1247
Change-Id: I777607a99914f0141886e817cb6a5e486f1105f0
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Jan-Simon Moeller [Wed, 27 Dec 2017 20:24:20 +0000 (20:24 +0000)]
Merge "Fix build error in gcc 7.2"
Kazumasa Mitsunari [Fri, 22 Dec 2017 03:28:21 +0000 (12:28 +0900)]
Enable an application re-launch
When an application dies after requestSurface,
the application can't be launched because
Window Manager doesn't know the application is dead and doesn't
clean up its database.
In other case, when Mixer app dies due to pulse audio crash
just before Window Manager handles surface memory,
the connection between weston and Window Manager is dead.
So add following
* Add context setting with window manager clients.
Terminate the context and clean up WM database
if a client application is dead.
* Add layout_commit() after add surfaces to layer.
[PatchSet 2]
* Add layout_commit() after add surfaces to layer
in api_request_surface
Bug-AGL: SPEC-1086
Change-Id: I6ecae2606ac644e49a3383ba849390f8c235f187
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Changhyeok Bae [Fri, 22 Dec 2017 15:46:24 +0000 (15:46 +0000)]
Fix build error in gcc 7.2
error "Never include <bits/signum.h> directly; use <signal.h> instead."
Bug-AGL: SPEC-1181
Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Tadao Tanikawa [Fri, 22 Dec 2017 12:57:44 +0000 (21:57 +0900)]
Enable to show Video and WebBrowser
Adding new applications (Video player and Web browser) to
be managed by window manager properly.
Releated introducing Video player, old name, 'MediaPlayer' for
apps/mediaplayer has been renamed 'Music'.
Old name,'MediaPlayer' keeps alive in layers.json for backward
compatibility.
Change-Id: I2b5e267f4015a4ed128ff5b55ba709faf1914b61
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Kazumasa Mitsunari [Wed, 20 Dec 2017 07:54:53 +0000 (16:54 +0900)]
Clean up source code
To reduce the files and redundant code,
* Remove afb_binding_api.* files and generate-binding-glue.py.
* Merge them into other source codes.
Change-Id: Ib61350ee6a42d73efc3fa29fa0c4868145a88e2e
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 19 Dec 2017 04:35:55 +0000 (13:35 +0900)]
Remove automatic code generation
To handle the request from binder(applications) more flexibly,
we have to remove automatic code generation.
Change-Id: Id14ab749cca68b5aa30376ba3ac543372df87233
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Kazumasa Mitsunari [Tue, 19 Dec 2017 04:56:22 +0000 (13:56 +0900)]
Exclude execusion bit
Change-Id: I8eee96305be1c8808442af92b254fce857e3dfd6
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Yuta Doi [Thu, 14 Dec 2017 06:03:45 +0000 (15:03 +0900)]
Add background layer for CES DEMO
MediaPlayer and Radio can not sound
when their surface have visibility=0.
And Navigation can not be displayed correctly
when the application is switched from visibility=0 to 1.
Because when visibility=0, weston event can not be catched.
So when the applications is not displayed,
they have visibility=1 and are moved to background layer.
Change-Id: Idf236e703a1e74cf564a1b213e6e15fcfa42a29e
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Tadao Tanikawa [Tue, 12 Dec 2017 12:44:57 +0000 (21:44 +0900)]
Support XDG application
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: I33dd3b056c736ef374e2251e818541ddd699877b
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>