smdk4412-common: camera: implement CAMERA_MSG_FOCUS_MOVE to report CAF

Since we are querying the status of CAF in real time, implement
CAMERA_MSG_FOCUS_MOVE to report the CAF status.

Also monitor the state of AutoFocus and report success or failure
only when AutoFocus has started. This prevents reporting false
AutoFocus status which relates to the previous AutoFocus result.

Change-Id: Icb151dca150f932b42b276c45ec392e3dae413cc
camera: Hold 25 msec between preview cycles on restart

If doing a preview restart with an active listener, give said
listener a bit of time to clean up before starting up the preview
again. This should be sufficient to prevent shutdown/start race
conditions during externally triggered restarts.

Change-Id: Id4a722c472eeffb50a332b0dabc29d9e23062883
smdk4412-common: camera: properly enable touch to focus mode

Touch to focus is not properly enforced unless the focus mode
is set to FOCUS_MODE_TOUCH.

https://github.com/CyanogenMod/android_kernel_samsung_smdk4412/blob/cm-11.0/drivers/media/video/s5c73m3.c#L1857

Change-Id: I67236ae7ae687fbc0b7450102d744472a81def99
media_codecs: Don't try to use absent VP8 decoder

Change-Id: Ie4882b2e7dc675fda1b1cc4295f2a95d7d7c4482
Bring back smdk4412 device settings

ported from omnirom; originally authored by CM

PS4: actually build the deviceSettings apk
PS5: remove AdvancedDisplay

Change-Id: I332d194c9b6dafa8e6f1b1089cba76b6408a1be8
smdk4412-common: Add n801x to Android.mk

Since we are combining n8010 and n8013, this new "device" needs to be added to
the various makefiles.

Change-Id: Ia80280439c71fec3296e1b678e5dc2e9434e0ccc
Proper battery paths

* 4.4 introduces a new daemon, healthd, that handles battery status
    - resides in: /system/core/healthd
    - BatteryMonitor.cpp iterates through all the *directories* under
      /sys/class/power_supply looking for a file called 'type'
    - if the type == Battery, it assumes this is the location for the
      battery stats for the device. Only the first directory that matches
      this criteria is used.
    - on msm8660/d2/jf/s2 kernels, this search results in:
      /sys/class/power_supply/fuelgauge.
    - To determine capacity, healthd looks at the contents of the
      'capacity' file under this discovered base path. This results
      in /sys/class/power_supply/fuelgauge/capacity on msm8660/d2/jf/s2
      kernels.
    - Unfortunately, this is the wrong path. The capacity file at this
      location returns a large negative number.
    - Other paths like status, voltage_now, and present are also
      incorrectly determined.
  * For comparison, in 4.3 battery statistics gathering was handled by
    frameworks/base/services/jni/com_android_server_BatteryService.cpp
    - BatteryService does a similar search for a file called 'type' with
      the contents of 'Battery'
    - But the search logic is different here: it takes the *last* path that
      matches the criteria.
    - This results in the correct /sys/class/power_supply/battery
  * This patch overrides the discovery mechanism for battery status completely.

Change-Id: I4579c92bba5596eef4dac67b8c0687be50a1d2f5
KK style device settings icon

taken from Slim, by dexter93

Change-Id: Ia8dd4096ed2531245a9be2f171a81a3c927e74c2
Merge branch 'kk' of https://github.com/CarbonDev/android_device_samsung_smdk4412-common into kk

Conflicts:
	common.mk