Lockscreen targets: more unification

Use shared method to derive drawable inset and make the rounded
corners for icon files also display when adding the target initially.

Change-Id: I98ea3e522c4c6240f08e11007d53509a3d2c15f8
Settings: IT translations

Change-Id: I550b1a6192d27cef4874677f3e60d4db39ce6e04
Use a common base class for HW tuning sliders.

Change-Id: I61b458ffb08eb765f8a720657056243f56e76f17
Settings: PT-BR update translations

Change-Id: Ib5b4c92bef8a52a3f2e23b387a7854a80000b3d3
Merge "Lockscreen targets: more unification" into cm-10.2
Fix drawable being displayed empty when re-entering the target edit
dialog.

Change-Id: I032a8d8b348803448365ed81246c556da6ff4cc4
Settings: AdaptiveBacklight support

Add support for adaptive backlight technologies like NVIDIA SmartDimmer, QCOM CABL or Samsung CABC.

Patchset 2: Use internal shared prefs to store the smardimmer setting
Patchset 3: Rename to AdaptiveBacklight
Patchset 4: Reorganize settings and strings to follow design guidelines
Patchset 5: CleanUp
Patchset 6: Added suggestions
Patchset 7: Sync default value. CleanUp.

Depends	on http://review.cyanogenmod.org/#/c/48465/

Change-Id: Ib0e05770bf90b664a00e65f46d32cc9a07be1377
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Settings: HU translation

PS2: Correcting
PS3: Typo
PS4: Correcting
PS5: Manual rebase
PS6: Correcting
PS7: Reorganizing and manual rebase
PS8: Manual rebase and update

Change-Id: I6c84e39f96c080e7eec0169ac41ba31b3e69cdbf
Add basic-level gamma calibration to hardware tunables

Change-Id: I3223cb111889be71175dee67723ae44cba051e23
Merge "Settings: IT translations" into cm-10.2
Merge "Settings: HU translation" into cm-10.2
Settings: Update Japanese translation

Add missing entries.

Change-Id: I9d34884960c006069c757902c5c5ee74506ffc71
Merge "Fix drawable being displayed empty when re-entering the target edit dialog." into cm-10.2
Merge "Add basic-level gamma calibration to hardware tunables" into cm-10.2
Merge "Settings: AdaptiveBacklight support" into cm-10.2
Cleanup: Use a helper class for system setting binary toggles.

Change-Id: Iad7f8a6bf85b23223e1def18e8c9eaa0f8dd253c
Cleanup: Don't use getApplicationContext() where not needed.

Change-Id: Ie2232857cf88c98c9f2b76996a500e3d3696e6e2
Cleanup: remove useless checks.

Change-Id: I73c5c432cb384cbc28d584d751d6e9955a3eda05
Fix NPE.

Backtrace looks like this:
E/AndroidRuntime(7061): java.lang.NullPointerException
E/AndroidRuntime(7061): 	at com.android.internal.util.cm.LockscreenTargetUtils.getDrawableFromResources(LockscreenTargetUtils.java:178)
E/AndroidRuntime(7061): 	at com.android.settings.cyanogenmod.LockscreenTargets.setTarget(LockscreenTargets.java:348)
E/AndroidRuntime(7061): 	at com.android.settings.cyanogenmod.LockscreenTargets.access$500(LockscreenTargets.java:55)
E/AndroidRuntime(7061): 	at com.android.settings.cyanogenmod.LockscreenTargets$2.onClick(LockscreenTargets.java:437)
E/AndroidRuntime(7061): 	at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:166)
E/AndroidRuntime(7061): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(7061): 	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(7061): 	at android.app.ActivityThread.main(ActivityThread.java:5289)
E/AndroidRuntime(7061): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(7061): 	at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime(7061): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
E/AndroidRuntime(7061): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
E/AndroidRuntime(7061): 	at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(635):   Force finishing activity com.android.settings/.SubSettings

Change-Id: I72a5c7ff498ba0066f224a44985fadc64af4511c
Merge "Use a common base class for HW tuning sliders." into cm-10.2