aero: add a fresh actionbar icon

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
profiles: notify the user if service isn't running

If the service is not running, but apps have been assigned
to certain profiles inform the user about this state with
style.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
helper: fix haptic feedback in genPrefFromFiles()

With the generic change we also missed to check wheter
this would generate haptic feedback or not.

This should be moved upwards, to be configurable in the
parent class.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
Version 1.4.1

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
profiles: partially fix incredible long load

If many apps are installed it takes quite a time to gather all
information we need. Too long for my own taste; on a Nexus 4
its a average time of 6.5 seconds for nearly every profile.
Even the sorting will be faster with the second and following
iteration, it can easily lead up to 10 seconds.

Fix this partially by copying the list over to the next
profiles, so they can already use a sorted list.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
shell: fix min/max cpu freq for sure

Keep it simple, stupid. Trying to get the frequency for
offlined cores is pointless at this point of time. The
previous implementation just didn't work. Instead of messing
around with the hotplug driver or other things, we can just
set the freq for all cores to the one we have on cpu0.

Its simple, it works and it won't create overhead because of
expansive su-calls.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
service: create only one thread to handle everything

Previously each 7 seconds android would start a call to start
our service and each time we would have created a new thread.

Instead of stressings androids GC to cleanup the mess, we could
just reuse our previous thread to save a few bits here and there.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
Version 1.4.2

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
Revert "service: create only one thread to handle everything"

This reverts commit a684ef25d4c94eac2b9b06b7fb005d660827dc1d.

Caused a nasty StackOverflow, better revert this and let android
itself handle everything.
profiles: greatly improve the per-app handling

Instead of calling the expansive methods directly on
the fragment creation we should only call it when the
user actually clicks on the small icon.
Because of one previous commit we can afterwards copy
the data to all other profiles and speed up the loading
process quite a bit.

The only bottleneck is now the actual sorting process,
anyway with this change the time taken on a Nexus 4 goes
down to aroud ~1 seconds.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
library: holograph: add animation backend

This is actually a straight port over from here;
https://bitbucket.org/danielnadeau/holographlibrary/pull-request/46/add-pie-animate/diff

Allows us to simply animate our slices.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
statistics: add animation for the pie chart

Android "L" showed us animations could be use intelligently.
While loading the slices and the underlaying data we can simply
show a small animation.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
profiles: fix null pointers in various cases

 * Fix NPE when no apps are selected
 * Fix NPE when service hasn't been started yet

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
profiles: fix warning about service not started

Simply iterate through all profiles and check if they
are actually assigned somewhere.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
aero: fix ISE during sub-fragment switch

If the user enters a sub-fragment and pulls out the navigation
drawer chooses a parent fragment and then hits the back button
Aero Control would just crash.
This is due an IllegalStateException inside the fragment switch
code, because the fragment in question was already added some
time ago.
Fix this by just letting the back counter logic decide what to
do and most importantly; don't crash.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
helper: choose input type dynamically

When using the generic preference handler implementation
we always set the input type to numbers only. In most cases
this is fine, since we are mostly tweaking numbers. However
it would be nice to have the full keyboard if we set something
like arrays or other stuff (example: interactive gonveror tunables).

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
profiles: make the profiles screen more beautiful

Instead of just showing a blanked text, show an icon
so the user has a great experience even if he doesn't
use profiles at all.
Also changing a few icons here and there to match the
overall style.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
preferences: revamp the settings panel

There is now a logical divider between app settings
and app information (now with version + build number).

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
Version 1.4.3

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
gpu: add doubletap2wake feature

Also squashing in the set-on-boot functionality here
since its such a little change.

Signed-off-by: Blechd0se <alex.christ@hotmail.de>