halo performance, batch revamp

Change-Id: Ic32c146a1e4753c5a3342831d6c719a654816e54
Merge branch 'jb43' of https://github.com/ParanoidAndroid/android_frameworks_base into jb43
code cleanup

Change-Id: I7af612c13aff48d0d20a0e8f83ea43c8941dcaaf