Automatic Translation Import

Change-Id: Ia292c19890f6c2de7fe63af93ba0fa24d0c73282
Merge remote-tracking branch 'pa_upstream/kitkat' into legacy
Legacy Parts

This is a new global sub-category implement meant to clean up ParanoidAndroid's settings menus.

Since AOSPA-legacy uses both CyanogenMod and ParanoidAndroid's coding, things were meshed together incoherently. Legacy Parts will now house categories/features not present in the official ParanoidAndroid upstream however, needed for non-Nexus/legacy devices to function efficiently.

Great Thanks to @TheMrcool212 for allowing me to use AOSPAL's remix-settings pagertabstrip implement for Legacy Parts. Also for helping me with a great deal of resource file migration and classes.

Change-Id: I2907eafdad519a70b37159f18d42ddbc08417bee
DisplayColor: Properly handle a minValue

* Previously setting anything as a minValue would cause the
  percentages to get out of whack. For instance, setting it to 35
  would cause the maximum percentage to climb above 100% as well
  as still allowing the value to be set lower than the min.
* This makes the maximum for the slider the max value minus the min
  (so we get the proper spread for min to max) and then adds the min
  back on before setting so we can't possibly go below the min.

Change-Id: I8dcdc422f54847940351fae10c74af6301d1e1be
Legacy Parts: Update PagerSlidingTabStrip class

-- Check if tabCount > 0
(do this before attempting tabsContainer.getChildAt(position) when scrolling to child.)

-- if pager == null no need to call requestLayout()

-- make shouldExpand work correctly
   (referenced here: https://github.com/astuetz/PagerSlidingTabStrip/pull/42)
-- Use Gravity to center tabs

-- add onTabReselected() callbackFunction
  (referenced here: https://github.com/astuetz/PagerSlidingTabStrip/pull/92)

-- Fix: Tab dislocation caused by setViewPager

Change-Id: I0184de3c010a902a721572d3dcaa75101e38aa0c
Signed-off-by: Andre Saddler <dresadd09691@gmail.com>
Add Xperia Settings to Legacy parts

Change-Id: Id1e7e341505c741d940c813787808ff8d6aac247
Merge https://github.com/AOSPA-legacy/android_packages_apps_Settings into kitkat