platform/core/system/deviced.git
7 years agodisplay: remove unnecessary vconf setting 93/99593/1
Jeong Donghwan [Wed, 23 Nov 2016 10:21:26 +0000 (19:21 +0900)]
display: remove unnecessary vconf setting

This value was set long ago. Now it is not used.

Change-Id: I7522d0a4ec6a0ca49a1edd3cee46c2682d061e0b
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
7 years agodisplay: launch power lock expired popup 98/98998/3 accepted/tizen/3.0/common/20161123.140939 accepted/tizen/3.0/ivi/20161123.083937 accepted/tizen/3.0/mobile/20161123.083837 accepted/tizen/3.0/tv/20161123.083904 accepted/tizen/3.0/wearable/20161123.083920 submit/tizen_3.0/20161122.133614
taeyoung [Mon, 21 Nov 2016 10:39:19 +0000 (19:39 +0900)]
display: launch power lock expired popup

If apps lock power permanently, the lock needs
to be released to decrease battery consumption.
Thus deviced launches the power lock expired popup
to get the user's choice
  - kill app
  - release lock
  - continue to lock

Change-Id: I4dec7541c79ededd72a4083c58c11f2cecfe71a4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agothermal: add thermal information handling module 83/98883/4
Kunhoon Baik [Mon, 21 Nov 2016 05:54:58 +0000 (14:54 +0900)]
thermal: add thermal information handling module

Thermal module needs to know the temparature of the AP
and need to launch popup for notice and turn off
the target to avoid the target damage.

Change-Id: Ia4c54984618697954d371e2e405af93a774f875f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: remove unused codes for SIM 62/98862/2
taeyoung [Mon, 21 Nov 2016 05:33:48 +0000 (14:33 +0900)]
display: remove unused codes for SIM

Change-Id: I29433531f0e1eb6011e49b514dcb37197ef1d1da
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoevent handler: add event handler to turn on/off event handling 50/98850/5
taeyoung [Mon, 21 Nov 2016 04:54:05 +0000 (13:54 +0900)]
event handler: add event handler to turn on/off event handling

- deviced receives uevents directly for block and usb host module.
  In addition, deviced receives events by HAL for battery and extcon module.

- The event handling operation can be turned on/off manually
  for testing and debugging.

Change-Id: I7a6b3479ee8a43738bd3d2165ffc0c24126a3605
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agolibdeviced: fix param indexing about bytes array control of "ay" type 00/99000/1 accepted/tizen/3.0/common/20161123.140508 accepted/tizen/3.0/ivi/20161123.082809 accepted/tizen/3.0/mobile/20161123.082712 accepted/tizen/3.0/tv/20161123.082736 accepted/tizen/3.0/wearable/20161123.082747 submit/tizen_3.0/20161121.105249
pr.jung [Mon, 21 Nov 2016 10:49:16 +0000 (19:49 +0900)]
libdeviced: fix param indexing about bytes array control of "ay" type

Change-Id: Ib5f6b9ec5dc9ba9154a4bb8612feabd79756c454
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMerge "display: fix get/set brightness functions to be normalized" into tizen_3.0
taeyoung [Mon, 21 Nov 2016 05:00:01 +0000 (21:00 -0800)]
Merge "display: fix get/set brightness functions to be normalized" into tizen_3.0

7 years agoextcon: support usage count about extcon-related devices 81/98781/2
Kunhoon Baik [Sat, 19 Nov 2016 02:55:13 +0000 (11:55 +0900)]
extcon: support usage count about extcon-related devices

 - earjack connection count
 - charger conneciton count
 - battery full charging count (exception)

Change-Id: Id3956708bfb373939553165bd1f7f85087721a7a
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay : remove dependency from X 71/98771/2
Kunhoon Baik [Fri, 18 Nov 2016 15:39:22 +0000 (00:39 +0900)]
display : remove dependency from X

Change-Id: Ibc784b2c996f659bf62311bb52e4981b02ed2004

7 years agodisplay: fix get/set brightness functions to be normalized 13/98613/2
taeyoung [Fri, 4 Nov 2016 03:13:30 +0000 (12:13 +0900)]
display: fix get/set brightness functions to be normalized

- All function to get/set brightness should normilize
  the brightness value to 0~100 since deviced handles
  the brightness from 0 to 100

Change-Id: Ic74c8f65f7d56ddaafbf39697deffc95ad29480b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoapps: change popup and noti launch interface from sync to async 70/98770/1
Kunhoon Baik [Fri, 18 Nov 2016 15:35:23 +0000 (00:35 +0900)]
apps: change popup and noti launch interface from sync to async

no need daemon dbus sync call to launch popup or notifications so change them to async call

Change-Id: I80a94b0126cc88aaf931445b8bc23fbbc13e788c

7 years agoblock: make file as /run/external-storage/id for mounted sdcard 82/97882/7
pr.jung [Tue, 15 Nov 2016 01:56:33 +0000 (10:56 +0900)]
block: make file as /run/external-storage/id for mounted sdcard

- make file before sending DeviceChanged signal for mount.
- remove file before sending DeviceBlocked signal for unmount

Change-Id: I365f228cb44b8f07da09b23c2968669d24bc88b7
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agohaptic: Add signal to notify when haptic initialization is finished 49/98449/2
pr.jung [Thu, 17 Nov 2016 05:52:44 +0000 (14:52 +0900)]
haptic: Add signal to notify when haptic initialization is finished

Change-Id: Ib94edf74bddd53ebdfb99fdd2f109fa40b5f78fd
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoshared-dbus: fix param indexing about bytes array control of "ay" type 02/98302/2
Giyeol Ok [Thu, 17 Nov 2016 04:00:22 +0000 (13:00 +0900)]
shared-dbus: fix param indexing about bytes array control of "ay" type

"ay"type signal have 2 integer type filed so we should be approached 1 increased access

Change-Id: I629b34e467b01dbbc87ae2f1e0b3f87f78e23688
Signed-off-by: Giyeol Ok <giyeol.ok@samsung.com>
7 years agocommon: add comment for the experimental macros 99/97899/4
taeyoung [Tue, 15 Nov 2016 08:48:26 +0000 (17:48 +0900)]
common: add comment for the experimental macros

Change-Id: Ie80959f6fd6aab0a721c64b8a6136e7094800c7b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agocommon: sync core modules with previous released platform 39/98039/3
Giyeol Ok [Wed, 16 Nov 2016 03:57:05 +0000 (12:57 +0900)]
common: sync core modules with previous released platform

sync core modules with previous released platform

Change-Id: I623799ac4f5f4030cd7e338cf9f2932eaea1dbcc
Signed-off-by: Giyeol Ok <giyeol.ok@samsung.com>
7 years agoMerge "Only modify op->done between lock and unlock of mutex" into tizen_3.0
pr.jung [Wed, 16 Nov 2016 05:12:16 +0000 (21:12 -0800)]
Merge "Only modify op->done between lock and unlock of mutex" into tizen_3.0

7 years agohatpic: enable haptic configuration 38/98038/2
Giyeol Ok [Wed, 16 Nov 2016 03:22:32 +0000 (12:22 +0900)]
hatpic: enable haptic configuration

haptic need vibration level configuration to control vibrator strength

Change-Id: I6cecc2660b4c14630bc72744e614d01d37ffc936
Signed-off-by: Giyeol Ok <giyeol.ok@samsung.com>
7 years agoOnly modify op->done between lock and unlock of mutex 34/98034/1
pr.jung [Wed, 16 Nov 2016 02:28:20 +0000 (11:28 +0900)]
Only modify op->done between lock and unlock of mutex

Change-Id: I718e34aa55772739e4427c37589fe409d30cdf3b
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agodevice-notifier: add device-notifier enum types 35/97935/2
Giyeol Ok [Tue, 15 Nov 2016 11:03:43 +0000 (20:03 +0900)]
device-notifier: add device-notifier enum types

sync with previous released device notifiers

Change-Id: I4c1ea77e207ced286bf69f388d9def32f24226bb
Signed-off-by: Giyeol Ok <giyeol.ok@samsung.com>
7 years agodbus: add dbus interface defines and async call api 79/97879/1
Giyeol Ok [Tue, 15 Nov 2016 07:39:34 +0000 (16:39 +0900)]
dbus: add dbus interface defines and async call api

add previous released dbus interface reference name and define async call api

Signed-off-by: Giyeol Ok <giyeol.ok@samsung.com>
Change-Id: Ic3ca85ec52faaade9fb3d41530a0e3ac6e9f6113

7 years agodevice-notifier : add udev stop and start device-notifier 32/97832/1
Giyeol Ok [Tue, 15 Nov 2016 05:17:57 +0000 (14:17 +0900)]
device-notifier : add udev stop and start device-notifier

uevent register modules into the hal layer needs notify to check start and stop request

Signed-off-by: Giyeol Ok <giyeol.ok@samsung.com>
Change-Id: Id2ab9c1dd088be746bc2d8e56ab9f4bb8efba281

7 years agopoll: modify internal poll request id 54/96554/3
Jeong Donghwan [Tue, 8 Nov 2016 05:26:25 +0000 (14:26 +0900)]
poll: modify internal poll request id

It does not know change or lock reason of logdump.
Also, if the moudle requested lock using deviced pid, it can be released
by another module.
So all request should be assigned internal value.

Change-Id: I98028bd2fbf876c48549e89b8fb5ef33458da69d
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
7 years agokey-filter: extend key combination 55/96555/2
Jeong Donghwan [Wed, 9 Nov 2016 09:38:08 +0000 (18:38 +0900)]
key-filter: extend key combination

extend key combination and refactoring

Change-Id: I85117238ab50693a1d803b09c5f3b211bae4f695
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
7 years agobattery: change macros to configurable values 16/97516/2 accepted/tizen/3.0/common/20161116.143408 accepted/tizen/3.0/ivi/20161116.021817 accepted/tizen/3.0/mobile/20161116.021709 accepted/tizen/3.0/tv/20161116.021728 accepted/tizen/3.0/wearable/20161116.021753 submit/tizen_3.0/20161115.023516
taeyoung [Mon, 14 Nov 2016 10:35:18 +0000 (19:35 +0900)]
battery: change macros to configurable values

- Hard coded macros are changed to the configurable values.
  The values are defined in battery.conf

- Initial battery capacity is set to -1 to avoid
  real power off situation.

Change-Id: I54664266c45a3f5286eba82f617198c5a92dedd5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge "power: handle user session done signal from systemd" into tizen_3.0
taeyoung [Mon, 14 Nov 2016 08:28:37 +0000 (00:28 -0800)]
Merge "power: handle user session done signal from systemd" into tizen_3.0

7 years agopower: handle user session done signal from systemd 40/97440/2
taeyoung [Mon, 14 Nov 2016 07:32:20 +0000 (16:32 +0900)]
power: handle user session done signal from systemd

- Previously, booting-done signal was broadcated
  if system session is done.

- Now, deviced receives the user session done signal
  from systemd. Thus booting-done signal is broadcasted
  if both system and user session are done.

Change-Id: I92b5c5ca4ef992f282c5824c5e3f0b82a4b6129d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge remote-tracking branch 'origin/tizen' into tizen_3.0 39/97439/1
pr.jung [Mon, 14 Nov 2016 07:33:09 +0000 (16:33 +0900)]
Merge remote-tracking branch 'origin/tizen' into tizen_3.0

Change-Id: I7767bf03e4627be7f451a6052234782b81d6f110
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoblock: Check devlink for sdcard uevent on emulator 64/95464/3
pr.jung [Thu, 3 Nov 2016 09:35:08 +0000 (18:35 +0900)]
block: Check devlink for sdcard uevent on emulator

Change-Id: I369e162ab612e86c7abfd9edc35fca5faa676bf6
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agousb: fix bitwise operation error 78/97378/2
taeyoung [Mon, 14 Nov 2016 04:57:38 +0000 (13:57 +0900)]
usb: fix bitwise operation error

- The routine is for checking MTP is enabled.
  Thus '|' needs to be changed to '&'.

Change-Id: I9e41e95cc26cda47b41872d0fe148452555ff034
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agousb: change selected mode update position 66/97366/2
taeyoung [Mon, 14 Nov 2016 04:26:55 +0000 (13:26 +0900)]
usb: change selected mode update position

- Selected mode update operation is separated from
  the gadget change operation. The operation needs
  to be executed even if real gadget change operation
  is not executed in emulator.

- Gadget enable operation does not check the previous
  usb mode. It just enables usb gadget which is
  currently set.

Change-Id: I6e252109812ea7842a9c156a11bd18884946ea10
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge branch 'tizen' into tizen_3.0 82/97282/1
taeyoung [Sat, 12 Nov 2016 10:03:05 +0000 (19:03 +0900)]
Merge branch 'tizen' into tizen_3.0

Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: I2f4fb4820ff3ac83427f381dc0d57ff85782443f

7 years agousb: do not set usb gadget on emulator 59/95659/7
taeyoung [Sat, 12 Nov 2016 09:49:43 +0000 (18:49 +0900)]
usb: do not set usb gadget on emulator

Emulator kernel does not have the usb module. Thus there is
no need to enable gadgets. Just state updating is required

Change-Id: Ib547932752182caeaeae194b07a4bc3171c56e9f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agousb: change usb mode value of vconf like Tizen 2.4 80/97280/3
taeyoung [Sat, 12 Nov 2016 09:31:48 +0000 (18:31 +0900)]
usb: change usb mode value of vconf like Tizen 2.4

- vconf value for usb mode is changed to SET_USB_XXXXX
  like Tizen 2.4

Change-Id: I2e6263a8949ab0d9ebc59e9d4bfb84894464a1d3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agousb: usb tethering is enabled 73/97273/4
taeyoung [Sat, 12 Nov 2016 07:56:54 +0000 (16:56 +0900)]
usb: usb tethering is enabled

- Previously, usb gadget is not enabled when usb tethering is turned on.
  The issue is also related with usb mode change.

- Now, usb mode change function disables, reconfigures, and enables
  the usb gadget. Thus usb tethering can be enabled.

- The positions of the usb state change operation are changed
  for physical and logical usb mode changes

Change-Id: I336a43a75bc03c831be61b80b09498c054efb7d1
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoblock: change not to skip permission set operation 29/94829/3
taeyoung [Tue, 1 Nov 2016 10:33:27 +0000 (19:33 +0900)]
block: change not to skip permission set operation

- The codes were applied in case that a removable storage
  is used as an internal storage. The permission of the
  storage should not be changed to use as a rootfs.

- Now, block module does not try to mount the storage
  if it is mounted as rootfs. Thus the codes for skipping
  permission change is not necessary.

Change-Id: If5626d81e7f962c9ff358bcb1664226e7c283645
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoemulator: move emulator check function to common function 58/95658/4
taeyoung [Fri, 4 Nov 2016 06:35:27 +0000 (15:35 +0900)]
emulator: move emulator check function to common function

Emulator check operation can be used other modules.

Change-Id: I6be8d1f1312573e82fd5e83c273c5e990c3d1394
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoPM state dump: fix bug 21/96721/1
Sunmin Lee [Thu, 10 Nov 2016 04:22:30 +0000 (13:22 +0900)]
PM state dump: fix bug

Change-Id: Id3e35c708ec5dcb421c160b1df955bd32061e883
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoPM state dump: change target directory 03/96203/2
Sunmin Lee [Tue, 8 Nov 2016 06:23:42 +0000 (15:23 +0900)]
PM state dump: change target directory

Change target directory of pm_state.log.
In addition, the script that dumps pm state is installed to
dump script directory (TZ_SYS_DUMPGEN).

Change-Id: I65a7647a738354b6a062fff502af4cebd0f25f2b

7 years agoMerge branch 'tizen' into tizen_3.0 55/95055/1 accepted/tizen/3.0/common/20161114.082748 accepted/tizen/3.0/ivi/20161103.001945 accepted/tizen/3.0/mobile/20161103.001855 accepted/tizen/3.0/tv/20161103.001912 accepted/tizen/3.0/wearable/20161103.001927 submit/tizen_3.0/20161102.073456 submit/tizen_3.0_common/20161110.084657
pr.jung [Wed, 2 Nov 2016 07:33:49 +0000 (16:33 +0900)]
Merge branch 'tizen' into tizen_3.0

Change-Id: I628fc311e4f5618de00beafc234fce2898eb76f8
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMerge "Check whether internal storage when sdcard is inserted(emulator)" into tizen accepted/tizen/common/20161102.122135 accepted/tizen/ivi/20161102.235659 accepted/tizen/mobile/20161102.235611 accepted/tizen/tv/20161102.235628 accepted/tizen/wearable/20161102.235639 submit/tizen/20161102.071942
pr.jung [Wed, 2 Nov 2016 07:14:31 +0000 (00:14 -0700)]
Merge "Check whether internal storage when sdcard is inserted(emulator)" into tizen

7 years agoCheck whether internal storage when sdcard is inserted(emulator) 81/93481/9
pr.jung [Mon, 24 Oct 2016 11:44:22 +0000 (20:44 +0900)]
Check whether internal storage when sdcard is inserted(emulator)

Change-Id: I026fb9b2f0b4e948580ceca7c0d2effa8aeb8031
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agopower: systemd dbus method and signal are used to check if booting is done 93/94793/4
taeyoung [Tue, 1 Nov 2016 07:33:05 +0000 (16:33 +0900)]
power: systemd dbus method and signal are used to check if booting is done

- Previously, zbooting-done.service was used to check if booting is done.
  The zbooting-done.service had dependency to the default target
  which is linked to graphical target in Mobile and Wearable profiles.
  However Headless target (without display) does not have graphical target,
  and IVI profile has different default target which is linked to
  other target. Thus zbooting-done.service had problems to all profiles
  and targets.

- Now, systemd dbus method and signal are used to check if booting is done.
  The signal is delivered when system session is done, and the method
  returns "running" or "degraded" if the system session is done.

  ** Method
     - bus: org.freedesktop.systemd1
     - object path: /org/freedesktop/systemd1
     - interface: org.freedesktop.DBus.Properties
     - method name: Get
     - parameter: 2 strings
             "org.freedesktop.systemd1.Manager"
             "SystemState"
  ** Signal
     - object path: /org/freedesktop/systemd1
     - interface: org.freedesktop.systemd1.Manager
     - signal name: StartupFinished

Change-Id: Ib0de90d81577d2376c065cca44edebfcf236956b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoNull check for ir_device 29/94729/2
pr.jung [Tue, 1 Nov 2016 02:25:52 +0000 (11:25 +0900)]
Null check for ir_device

Change-Id: I6915e46cc8799a75440b4176f59f6c899d7418ff
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMerge "Remove notifier for haptic and add signal handler" into tizen
pr.jung [Mon, 31 Oct 2016 04:18:07 +0000 (21:18 -0700)]
Merge "Remove notifier for haptic and add signal handler" into tizen

7 years agoRemove notifier for haptic and add signal handler 66/94166/3
pr.jung [Wed, 26 Oct 2016 08:20:22 +0000 (17:20 +0900)]
Remove notifier for haptic and add signal handler

- deviced-vibrator can't not be notified by deviced
- So, deviced-vibrator handle signal instead

Change-Id: Idbe290588ef5c771685147c979c7094ea63e14b1
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMerge "display: remove unused variable" into tizen accepted/tizen/common/20161031.121757 accepted/tizen/ivi/20161101.004615 accepted/tizen/mobile/20161101.004524 accepted/tizen/tv/20161101.004539 accepted/tizen/wearable/20161101.004557 submit/tizen/20161031.024122
taeyoung [Fri, 28 Oct 2016 11:33:50 +0000 (04:33 -0700)]
Merge "display: remove unused variable" into tizen

7 years agoMerge "display: fix sensor codes for multiple sensors" into tizen
taeyoung [Fri, 28 Oct 2016 11:33:46 +0000 (04:33 -0700)]
Merge "display: fix sensor codes for multiple sensors" into tizen

7 years agodisplay: remove unused variable 81/94281/2
taeyoung [Fri, 28 Oct 2016 04:10:04 +0000 (13:10 +0900)]
display: remove unused variable

Change-Id: I8f27f03f6df96de00e187acea426fe48e5edd17d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: fix sensor codes for multiple sensors 52/94252/5
taeyoung [Fri, 28 Oct 2016 01:33:37 +0000 (10:33 +0900)]
display: fix sensor codes for multiple sensors

Multiple sensors can be supported for the Light sensing.
Thus we need to choice one sensor to get the light value.

Change-Id: I81bf18552211259c1fb0f9b8d5947ff95e4c8e1f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge "Fix tzip problem with hybrid packages made by Tizen IDE" into tizen
Taeyoung Kim [Fri, 28 Oct 2016 03:38:21 +0000 (20:38 -0700)]
Merge "Fix tzip problem with hybrid packages made by Tizen IDE" into tizen

7 years agoFix tzip problem with hybrid packages made by Tizen IDE 60/92560/7
Bartlomiej Kunikowski [Fri, 14 Oct 2016 07:31:57 +0000 (09:31 +0200)]
Fix tzip problem with hybrid packages made by Tizen IDE

There are some problems when tzip tried mount hybrid package form
Tizen IDE. There are problems when package has different entries
than package created by default Linux's zip.

Change-Id: Iafeff67746af09cb9afc6318299eb6a64cbc2d42
Signed-off-by: Bartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
7 years agoMerge "display: modify display frame rate operation to use HAL" into tizen
taeyoung [Thu, 27 Oct 2016 11:25:26 +0000 (04:25 -0700)]
Merge "display: modify display frame rate operation to use HAL" into tizen

7 years agoModify VibrateEffect operation 55/94155/3
pr.jung [Thu, 27 Oct 2016 07:10:02 +0000 (16:10 +0900)]
Modify VibrateEffect operation

- Use idler callback for VibrateEffect
- Return immediately after parameter checked

Change-Id: Iec2fe70832f614544040f28e1a06b82ca93cae28
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agodisplay: modify display frame rate operation to use HAL 13/93913/2
taeyoung [Wed, 26 Oct 2016 08:15:41 +0000 (17:15 +0900)]
display: modify display frame rate operation to use HAL

- Display frame rate (refresh rate) can be changed
  by the HAL interfaces.

Change-Id: I5283390af16e9b5a595211677e5eb224489e9e3a
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agobattery: fix header file name typo 61/93561/1 accepted/tizen/common/20161025.083520 accepted/tizen/ivi/20161028.151028 accepted/tizen/mobile/20161028.150948 accepted/tizen/tv/20161028.151001 accepted/tizen/wearable/20161028.151011 submit/tizen/20161025.065819 submit/tizen_3.0_common/20161104.104000
taeyoung [Tue, 25 Oct 2016 02:51:56 +0000 (11:51 +0900)]
battery: fix header file name typo

Change-Id: Id009ce4085c4603993b9892fd19cd6516b1d26c6
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: remove acl related codes 42/93442/1 accepted/tizen/common/20161024.135204 submit/tizen/20161024.103433
taeyoung [Mon, 24 Oct 2016 09:31:24 +0000 (18:31 +0900)]
display: remove acl related codes

Calibration is not supported now, and thus
the dbus methods are removed.

Change-Id: Id779f1d10a2dc55a85c5e491dbe305c1ed99717e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoir: remove legacy ir codes 26/93426/3
taeyoung [Mon, 24 Oct 2016 08:33:34 +0000 (17:33 +0900)]
ir: remove legacy ir codes

The legacy ir codes are not working.

Change-Id: I05c1bbe920f810c49879f4723996b4d2e9fccd8b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agobattery: remove OAL related codes 17/93417/1
taeyoung [Mon, 24 Oct 2016 07:49:50 +0000 (16:49 +0900)]
battery: remove OAL related codes

The function device-set/get-property() for OAL
are not supported anymore. Thus they are changed
to use battery variable which store battery status.

Change-Id: I03311ede1781cf056d82b5474324b5f2b12d83a5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: fix auto-brightness change operation 66/93266/8
taeyoung [Mon, 24 Oct 2016 03:04:07 +0000 (12:04 +0900)]
display: fix auto-brightness change operation

- Previously, auto-brightness change did not work
  since sensor apis were little bit changed, and
  there was no HAL to convert the sensing value
  to the brightness value.

- Now, auto-brightness change works well. The codes
  related with sensor are fixed to deliver the handle
  of the sensor object, not the pointer of the handle.
  And brightness converting HAL is newly added, and
  thus the HAL provides the correct brightness according
  to the light sensing value.

Change-Id: If35a056f5c75ac91a76491a2021859507dec716e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: remove lbm 61/93361/1
taeyoung [Mon, 24 Oct 2016 02:10:39 +0000 (11:10 +0900)]
display: remove lbm

lbm is replaced to auto-brightness operation

Change-Id: I702aef8ea2d0b0331775d4dcdd9dfbdaa6998e81
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: do not change next state by timeout when Alwayson is enabled 65/93065/1 accepted/tizen/3.0/ivi/20161028.134000 accepted/tizen/3.0/mobile/20161028.133119 accepted/tizen/3.0/tv/20161028.133422 accepted/tizen/3.0/wearable/20161028.133726 accepted/tizen/common/20161020.173434 accepted/tizen/ivi/20161020.125409 accepted/tizen/mobile/20161020.125300 accepted/tizen/tv/20161020.125319 accepted/tizen/wearable/20161020.125349 submit/tizen/20161020.082648 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082423
taeyoung [Thu, 20 Oct 2016 07:24:17 +0000 (16:24 +0900)]
display: do not change next state by timeout when Alwayson is enabled

- If the next state of display is same with the current state,
  display timeout cannot be reset since there is no timeout with
  this state change. No time occurs the display state change.

- When display timeout is set 0 by setting app, Alwayson is enabled
  and the next state of LCDON is changed to LCDON. Thus display is
  turned on during turning off the display (before updating
  display state)

- The issue is fixed by skipping update the next state of the LCDON
  even if Alwayson is enabled.

Change-Id: Icd38221374789a63e2d01222ef3f3eed1b283968
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoRevert "display: skip state change operation if next state is same as current state" 53/93053/1
taeyoung [Thu, 20 Oct 2016 07:13:45 +0000 (16:13 +0900)]
Revert "display: skip state change operation if next state is same as current state"

This reverts commit 819cd27d75a80834c4f5bf746462040915a548a9.

The commit makes missing resetting timeout issue.

Change-Id: Idb3553ec51e219d214a20ccc511e1d364d522d5f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: add privilege check routine for reboot operation 30/92130/7 accepted/tizen/common/20161020.043515 submit/tizen/20161020.031059
taeyoung [Thu, 13 Oct 2016 09:47:26 +0000 (18:47 +0900)]
power: add privilege check routine for reboot operation

The reboot operation is permitted to privileged apps only.

Change-Id: I58e161cbb7b6b1bb54fc6e7dffd5f62eefa12fec
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: fix shutdown animation error issue 75/91275/3
taeyoung [Thu, 13 Oct 2016 09:33:20 +0000 (18:33 +0900)]
power: fix shutdown animation error issue

- Launching manner of the shutdown animation is changed
  to use systemd service. Thus the codes are fixed.

- For the sound-server, the function to tuen off sound related
  operations is removed from Tizen 3.0. Thus it is removed.

Change-Id: I1950a3e4a796bf5606170b001d01d2876b528fed
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: change power off functions to "static" 12/92112/2
taeyoung [Thu, 13 Oct 2016 09:15:07 +0000 (18:15 +0900)]
power: change power off functions to "static"

The power off functions are not used other places.
Thus they are changed to static functions.

Change-Id: I0ea219217ebce7af46e1b1557bb1841cc372b6b3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agobattery: reduce logs for periodical battery reports 53/92053/3
taeyoung [Thu, 13 Oct 2016 05:16:19 +0000 (14:16 +0900)]
battery: reduce logs for periodical battery reports

There are so many logs for periodical battery reports.
They can reduce the readability for logs. Thus the logs
are reduced.

ex)
 battery_state(709) > Full(Discharging) usb(4) Capa(100) Hth(Good,Low), Pres(1), OVP(X), Curr(88,88)

Change-Id: I792f4486ce34f17ba8e1db9640b47c6f1316f68e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: skip state change operation if next state is same as current state 66/92766/1 accepted/tizen/common/20161018.175429 accepted/tizen/ivi/20161019.141917 accepted/tizen/mobile/20161019.141844 accepted/tizen/tv/20161019.141858 accepted/tizen/wearable/20161019.141911 submit/tizen/20161018.130249
taeyoung [Tue, 18 Oct 2016 11:40:04 +0000 (20:40 +0900)]
display: skip state change operation if next state is same as current state

- Previously, display state was set again even if next state
  is same as current state. Thus display was turned on for a while
  during turning off the display since pm_cur_state was updated
  after turning off the display and checking if the state is transitable.

- Now, display transition is ignored if next state is same as
  current state. Thus the state is not transitable in the case.

Change-Id: I605916c5e2235e46b0b8b04375b4427b32584665
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agospec: change deviced main version 25/92225/1
Giyeol Ok [Fri, 14 Oct 2016 04:36:34 +0000 (13:36 +0900)]
spec: change deviced main version

deviced main version is not changed until now
so raise up it to 2.x.x

Signed-off-by: Giyeol Ok <giyeol.ok@samsung.com>
Change-Id: I03d35d26f3fe7f1b492c5ff39bf2dd5c9ecb852b

7 years agousb: fix implicit function declaration issue 58/91958/2
taeyoung [Wed, 12 Oct 2016 09:39:26 +0000 (18:39 +0900)]
usb: fix implicit function declaration issue

Change-Id: Ia338258a940ea3c4ff57142865cbc5317cff4284
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: ignore touch event occurred during turnig off the display 42/91442/1 accepted/tizen/common/20161007.173324 accepted/tizen/ivi/20161010.082707 accepted/tizen/mobile/20161010.082614 accepted/tizen/tv/20161010.082633 accepted/tizen/wearable/20161010.082647 submit/tizen/20161007.120252
taeyoung [Fri, 7 Oct 2016 11:22:51 +0000 (20:22 +0900)]
display: ignore touch event occurred during turnig off the display

- Previously, touchscreen was disabled after turning off the display.
  Thus the touch events occurred at the moment between turning off
  the display and disabling the touchscreen tried to turn on the
  display again. The events were queued for the main loop, and thus
  they could not be avoided.

- Now, a flag touch_event_blocked is set before turning off the display.
  Thus the touch events can be ignored according to the value of the flag.

Change-Id: Ic49fba662376e4e122a5785854f1adc82ffe4ec0
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoFix minor issues 57/91357/5 accepted/tizen/common/20161007.173210 accepted/tizen/ivi/20161007.103945 accepted/tizen/mobile/20161007.104004 accepted/tizen/tv/20161007.103952 accepted/tizen/wearable/20161007.103958 submit/tizen/20161007.081211
pr.jung [Fri, 7 Oct 2016 06:42:19 +0000 (15:42 +0900)]
Fix minor issues

- Check unit_len
- Check whether size has negative value
- Fix for sscanf beffer overflow

Change-Id: I5ba7215e3c6f3ae3544a57fefc4693c4cc768249
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoFix get_mmc_primary_id to get id not flags 15/91315/2
pr.jung [Fri, 7 Oct 2016 02:24:44 +0000 (11:24 +0900)]
Fix get_mmc_primary_id to get id not flags

Change-Id: I92a80184938ad62cf84c0f3ae3a0f7d6b54c2ca6
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agousb: disable usb mode according to the current mode 19/91019/2 accepted/tizen/3.0/ivi/20161011.043840 accepted/tizen/3.0/mobile/20161015.032757 accepted/tizen/3.0/tv/20161016.004031 accepted/tizen/3.0/wearable/20161015.081948 accepted/tizen/common/20161005.165637 accepted/tizen/ivi/20161005.232241 accepted/tizen/mobile/20161005.232152 accepted/tizen/tv/20161005.232206 accepted/tizen/wearable/20161005.232221 submit/tizen/20161005.104253 submit/tizen/20161005.114937 submit/tizen_3.0_ivi/20161010.000001 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000001 submit/tizen_3.0_wearable/20161015.000001
taeyoung [Wed, 5 Oct 2016 09:57:46 +0000 (18:57 +0900)]
usb: disable usb mode according to the current mode

- Previously, usb mode is disabled according to the selected mode.
  Selected mode means that User selected the mode as the next mode.
  However Selected mode can be different with current mode since
  usb mode setting can be failed or there is no mode if usb cable
  is not connected. Thus usb mode should be disabled according to
  the current mode.

Change-Id: If3b825910aa1360cf92ccab68442f4931b5f2ec6
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agotzip: add NULL check routine 50/90750/1
taeyoung [Tue, 4 Oct 2016 06:54:33 +0000 (15:54 +0900)]
tzip: add NULL check routine

tzplatform_getenv() can return NULL. If the result is NULL,
Crash will be occurred. Thus NULL check routine is required.

Change-Id: I5a3c4aa90d3d7e387c4295371d25379897175277
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agotzip: fix string compare bug 35/90435/1 accepted/tizen/ivi/20160930.232941 accepted/tizen/mobile/20160930.232854 accepted/tizen/tv/20160930.232910 accepted/tizen/wearable/20160930.232922 submit/tizen/20160930.050513
taeyoung [Fri, 30 Sep 2016 04:57:33 +0000 (13:57 +0900)]
tzip: fix string compare bug

- tzip checks if the mountpath is on TZ_SYS_HOME or TZ_SYS_RW_APP.
  Thus the length of the comparation needs to be from TZ_SYS_HOME
  or TZ_SYS_RW_APP, not the mountpath.

Change-Id: I8ace95651d6101ad1cf7ab85526ee03a4ebb966b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agotzip: fix privilege issue 72/90272/4 accepted/tizen/common/20160930.174616 accepted/tizen/ivi/20160929.234350 accepted/tizen/mobile/20160929.234409 accepted/tizen/tv/20160929.234258 accepted/tizen/wearable/20160929.234307 submit/tizen/20160929.102549
taeyoung [Thu, 29 Sep 2016 08:19:43 +0000 (17:19 +0900)]
tzip: fix privilege issue

- Just apps who have "System" smack label are permitted
  to use TZIP
- Just TZ_SYS_HOME and TZ_SYS_RW_APP are permitted
  to mount TZIP

Change-Id: I4531577b423a478243038c86571fcc0b4d4c7331
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoFix fd leak 41/89641/2 accepted/tizen/ivi/20160929.001649 accepted/tizen/mobile/20160929.001505 accepted/tizen/tv/20160929.001703 accepted/tizen/wearable/20160929.001621 submit/tizen/20160927.110043
Kunhoon Baik [Mon, 26 Sep 2016 07:37:12 +0000 (16:37 +0900)]
Fix fd leak

The fd will be allocated for the target process by kernel.
Thus, already-passed(allocated by kernel) fd should be freed in daemon.

Change-Id: I45258b147d921ae96b407f86bf0b4c54f4672537

7 years agoRemove NOTICE file 77/89677/2
pr.jung [Mon, 26 Sep 2016 09:51:55 +0000 (18:51 +0900)]
Remove NOTICE file

Change-Id: Id2c592640399d8e146b316ecdf69448bd0c5d70a
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMerge "Use USB gadget and USB config HAL instead of direct manipulation" into tizen
Karol Lewandowski [Thu, 22 Sep 2016 14:50:22 +0000 (07:50 -0700)]
Merge "Use USB gadget and USB config HAL instead of direct manipulation" into tizen

7 years agocommon: fix minor issues 60/88860/3 accepted/tizen/common/20160921.162506 accepted/tizen/ivi/20160921.232950 accepted/tizen/mobile/20160921.232939 accepted/tizen/tv/20160921.232944 accepted/tizen/wearable/20160921.232934 submit/tizen/20160921.044915
taeyoung [Wed, 21 Sep 2016 03:42:58 +0000 (12:42 +0900)]
common: fix minor issues

- memory leak
- uninitialized variable
- memory release sequence

Change-Id: I9a4271bf4a83029e5ce4dd9f38be1cdb2fa7682f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoRemove unreachable code 74/88874/1
pr.jung [Wed, 21 Sep 2016 04:38:31 +0000 (13:38 +0900)]
Remove unreachable code

Change-Id: Ia36aa01b963d449de57bc8b590367fd2a8eb1952
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoFix sscanf issue 50/88850/1 accepted/tizen/ivi/20160921.081240 accepted/tizen/mobile/20160921.081313 accepted/tizen/tv/20160921.081230 accepted/tizen/wearable/20160921.081300 submit/tizen/20160921.024211
pr.jung [Wed, 21 Sep 2016 02:20:31 +0000 (11:20 +0900)]
Fix sscanf issue

Change-Id: I193ad313c1e710d753c05a761af45e2297992d61
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoNot mount internal mmc device 98/88098/7 submit/tizen/20160920.084444
pr.jung [Tue, 13 Sep 2016 09:13:42 +0000 (18:13 +0900)]
Not mount internal mmc device

Change-Id: I345998e526e6b57e0d784592fa6c605906e810d1
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agousbhost: enable usb-host test module only for Mobile profile 90/88590/2 accepted/tizen/common/20160920.132049 accepted/tizen/ivi/20160920.231841 accepted/tizen/mobile/20160920.231757 accepted/tizen/tv/20160920.231816 accepted/tizen/wearable/20160920.231826 submit/tizen/20160920.044232
taeyoung [Tue, 20 Sep 2016 02:01:16 +0000 (11:01 +0900)]
usbhost: enable usb-host test module only for Mobile profile

usb-host api is enabled only for Mobile profile. Thus
the test module for the usb-host api needs to be enalbed
only for Mobile profile too.

Change-Id: I09d9877c6ebd734f9c2b29bbe491c0ddc3e0e67d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agousb-host-test: Fix stopping testing service on legacy mode 28/88528/2
Paweł Szewczyk [Mon, 19 Sep 2016 12:36:05 +0000 (14:36 +0200)]
usb-host-test: Fix stopping testing service on legacy mode

Cleaning usbg context on legacy mode caused deviced crash on
stopping test mode. This commit fixes that.

Change-Id: I3d8c16fdda37090cdbda6dfb95ba72cd3f815733
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
7 years agousbhost: Use system-popup 69/86969/7
Karol Lewandowski [Fri, 16 Sep 2016 15:52:12 +0000 (17:52 +0200)]
usbhost: Use system-popup

Fixed usb popup object path to match system-popup

Change-Id: Ib4fbf7e5bf5e0b39bcd83cb6ea68848581fc7bc0
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
7 years agousbhost: udev: Allow direct access for virtual USB device 05/88105/1
Karol Lewandowski [Tue, 13 Sep 2016 10:09:55 +0000 (12:09 +0200)]
usbhost: udev: Allow direct access for virtual USB device

Virtual USB device (dummy-hcd) is used for non-interactive testing only
(iTCT).  Without appropriate permission GUI popup will be shown requesting
user for access confirmation.

This commit makes dummy-hcd accessible to everyone - so that tests
can execute non-interactively.

Change-Id: I0054a27efec1d606286d1b36034318bca6f6b980

7 years agoUse tizen specific g_ffs module params to enforce device identity 38/88038/2
Krzysztof Opasiak [Tue, 13 Sep 2016 08:13:02 +0000 (10:13 +0200)]
Use tizen specific g_ffs module params to enforce device identity

usb host tests expect a defined value in both configuration
string and bmAttributes. Let's use tizen specific g_ffs module
params to enforce those values.

Change-Id: I466e86230fe119477bf2c5148bf73dd3e5c96321
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
7 years agoUse module options to enforce expected device attributes 37/88037/2
Krzysztof Opasiak [Mon, 12 Sep 2016 19:26:25 +0000 (21:26 +0200)]
Use module options to enforce expected device attributes

g_ffs provides a set of standard module parameters which
allows to set device indentity. As usb host tests expects
a predefined identity of test device let's use those module
params to set it.

Change-Id: I32782d61f756e6cd4fb13cbcccc2b5ef3bd0a91e
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
7 years agoAdd usb test setup also for 3.10 kernel 71/86971/6 accepted/tizen/common/20160912.180749 accepted/tizen/ivi/20160912.053800 accepted/tizen/mobile/20160912.053711 accepted/tizen/tv/20160912.053727 accepted/tizen/wearable/20160912.053744 submit/tizen/20160912.010213
Paweł Szewczyk [Tue, 6 Sep 2016 14:29:36 +0000 (16:29 +0200)]
Add usb test setup also for 3.10 kernel

Change-Id: I02eab869e55837851c463c1eaa35ec749cb5223e
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
7 years agoAdd usb-host testing environment setup 36/81536/8
Paweł Szewczyk [Wed, 27 Jul 2016 09:29:20 +0000 (11:29 +0200)]
Add usb-host testing environment setup

Change-Id: Icc0ce7f323a8307f2f80a17b0f6f66165018e7a1
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
7 years agosystemd: check mounting before sending booting-done signal 42/87042/3
Kichan Kwon [Tue, 6 Sep 2016 04:43:57 +0000 (13:43 +0900)]
systemd: check mounting before sending booting-done signal

- In current, lazy mount is applied at the mobile profile
- To check whether /opt/usr is mounted, we use specific file made by lazy_mount

Change-Id: Icf9e575607886e824e37deadf44d53bf944968c2
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoChange uid and gid for deviced-vibrator 39/87239/1
pr.jung [Wed, 7 Sep 2016 06:20:06 +0000 (15:20 +0900)]
Change uid and gid for deviced-vibrator

Change-Id: I9b1cd9e1d51a9513c333e47e98c25305720f7fb7
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agomacro: add prefix "TIZEN_FEATURE_" to the local build macros 55/86655/2
taeyoung [Mon, 5 Sep 2016 10:42:39 +0000 (19:42 +0900)]
macro: add prefix "TIZEN_FEATURE_" to the local build macros

Change-Id: Iea4529dab2f34d113957632c06da17c3a36cff1f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoblock: Add information for DeviceBlocked signal 26/80826/4 accepted/tizen/ivi/20160905.065612 accepted/tizen/mobile/20160905.065515 accepted/tizen/tv/20160905.065535 accepted/tizen/wearable/20160905.065554 submit/tizen/20160902.065241 submit/tizen/20160904.234158 submit/tizen/20160905.095524
pr.jung [Wed, 20 Jul 2016 10:40:39 +0000 (19:40 +0900)]
block: Add information for DeviceBlocked signal

Change-Id: I7f01acddd0c29ee577feba92b0c7d570f85baf09
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMerge "systemd: remove deviced-pre.service" into tizen
taeyoung [Wed, 31 Aug 2016 23:54:56 +0000 (16:54 -0700)]
Merge "systemd: remove deviced-pre.service" into tizen

7 years agousbhost: Introduce temporary policy 06/60506/6
Paweł Szewczyk [Fri, 26 Feb 2016 14:46:53 +0000 (15:46 +0100)]
usbhost: Introduce temporary policy

Temporary access is limited to single device connection. When device is
disconnected, temporary policy entries related to it are removed. These
entries are never saved.

Change-Id: I158126450dd06ca483f4ee2b5788e8caffcb3f86
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
7 years agosystemd: remove deviced-pre.service 61/85961/1
taeyoung [Tue, 30 Aug 2016 02:05:40 +0000 (11:05 +0900)]
systemd: remove deviced-pre.service

- device-pre.service is not used anymore.
  Thus it needs to be removed

Change-Id: I566ca70d8074357482a27de495c83363be1b6606
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoUse USB gadget and USB config HAL instead of direct manipulation 13/83913/2
Krzysztof Opasiak [Sat, 13 Aug 2016 15:55:31 +0000 (17:55 +0200)]
Use USB gadget and USB config HAL instead of direct manipulation

Thanks to new HALs provided for each Tizen device most of USB
specific code can be droped from deviced. Instead of it, deviced
now uses both HALs to get and apply USB configuration to USB
gadget subsystem.

Strongly based on initial work by:
Taeyoung Kim <ty317.kim@samsung.com>

Change-Id: I396c29a2e6d81feda6dbbc24f9d03022afb00697
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>