Adapt for API changes.

Adapt for changes made in http://review.cyanogenmod.org/#/c/51499/

Change-Id: I6fc84edd0e4bb6da0b2a9b2be738c44fe16f3929
Merge "Adapt for API changes." into cm-10.2
revert min brightness to 10

Change-Id: Ia06c023b65e1862653e8f6bb77000f9c8edb52cd
Fix strict-aliasing

Change-Id: I7bbf7e2ce8058e703428e460bfe61017c010b377
Merge branch 'cm-10.2' of https://github.com/CyanogenMod/android_device_samsung_tuna into jb4.3