Frameworks: Refactor AF translations

Change-Id: If54deff27049d130540897a52df4c2884d196c29
Merge branch 'cm-10.1' of git://github.com/CyanogenMod/android_frameworks_base into cm-10.1