PerformanceTool: add wakelock fragment

-shows kernel and partial wakelocks
-display data since boot or a reference point

PS3:
-fixed fragement switching in drawer mode

PS5
-added support for /proc/wakelocks format

PS7
-added wakelock time display and filter

PS9
-for ByteHamster :)

Change-Id: I5136e26494ae06f6c3f32153066cc32f75b61b6c
PerformanceControl: Fix a possible NPE

In case of DRAWER_MODE set to 3, if we select advanced settings from
drawer, it increases the item position by 1 rather than 2. As a result,
itemId points to VoltageControl fragment instead of Advanced fragment.

Change-Id: I595246e681d70080bb8c82a25e5f31dd0243da6a
[1/2] PerformanceControl: wakelock fragment enhancements

-rework time period filters. The "since boot" does not show valid
data for android (partial) wakelocks. Added time since unplug instead.
Also android wakelock data is only valid if on battery so check status.
Reset can now only be "inside"unplug period.

-added app wakelock view which groups partial wakelocks
based on apps

Change-Id: I3bef68c93cdd228e8ca3c2d54d4a1f8501e6bf48
PerformanceControl: wakelock fragment fixes

-correct battery change value since unplug
-correct handling of reset data case

Change-Id: Ifc10f8cb0796663c66d3b38236483e514a71fa85
PerformanceControl: minor layout tweaks

-show scrollbar outside of list
-reduce margin between items to show more

Change-Id: Ifcc2e9139dcc7a1e34b042748628edbbbd58638f
PerformanceControl: more cleanup and fixes

-persist filter states in wakelocks and time in state fragment
-someone removed the since boot entry in time in state :)
-handle no reset data case for time in state like for wakelocks
-there are wakelocks with uids without a package - add to android system
-allow 2 lines for wakelock names there are a lot of long ones

Change-Id: Ida9eb9819aa9b05c7565e8d8271334d5b5cc56ba
Merge branch 'kk' of github.com:CarbonDev/android_packages_apps_PerformanceControl into kk