[2/3] Frameworks: Increasing Ringtone

      Option to set the incoming call ringtone volume to increase
      in pre-defined (user selected) increments.

Linked commits:
      Settings   - https://gerrit.paranoidandroid.co/#/c/447/
      Telephony  - https://gerrit.paranoidandroid.co/#/c/451/

Change-Id: I6314108033089c68c3bd6f716508f40fe863f630
Keyguard: fix not shown overlay widgets from system

google derp....due that if widgets are disabled current AOSP
code just add the default widget. Then checkAppWidgetConsistency()
detects a widget which was added and the complete method is non op.
Whatever lets handle the whole process over checkAppWidgetConsistency()
on widget disabled it tries to bind the default widget over overlay if
this is without sucess it falls back to the system one.
Safemode falls always to the system one

This fixes as well an issue that the saved default id in LockPatternUtils
is not reseted back to default if all widgets were deleted from the user.
Based on an old patch from danesh. Thanks for the
suggestion

Change-Id: Ic8543e0b5e83114e57942225935870f45deda97e
[2/2] Framework/base: Lockscreen maximized widgets

      Enable lockscreen widgets to be expanded by default.

      PA modifications to commit:
          Allow for long press unlock.
          Enable checkbox only if "Enable Widgets" is selected
          Remove preference is device is a tablet (already expanded)

Change-Id: I6a354d218fa5cc4603b92ba479d6aeba7f8f9c60
Keyguard: Do not show maximized on simpin.

* Show a maximzed widget container on first boot when simpin
  or puk is requested does not make any sense. In this case
  show it as normal view
* A bit codecleanup and centralize
* Fix animation was visible on screnn turn on. Now it is directly
  maximized visible

PS2/3: Whitespaces.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: Ied8fe65b6a5cbd019bfc76f72b8d52a5bd8d3a46
Frameworks: Advanced low battery indicator options (1/2)

Based on a idea I saw on Liquid and from CR3C0 (thanks guys) which we
modified to an extended version

This commit introduces following new SlimBean modes to indicate low battery

     * 0 = show dialog + play sound (default)
     * 1 = fire notification + play sound
     * 2 = show dialog only
     * 3 = fire notification only
     * 4 = play sound only
     * 5 = none

Due that notification is a unique SlimBean feature some words on it. Notification
behaviour is the same as Pop-up. User can dismiss it manually or it is
dismissed automatically if charger is connected, click on notification opens
PowerUsageSummary. Also you get a status bar ticker message about the notification
and notification is always on first place of list. And last if vibration is enabled
notification vibrates.

Patchsets:
 - codestyle corrections

Patchst
 - add PowerUsageSummary intent

cheers

Change-Id: I2097afad8a090d2557a1e545cf978c87ca77d6c1
Quicksettings: Fix battery tile showing 0% in certain conditions

Battery tile would show 0% sometimes because
the callback isn't sent until battery was updated.

Instead we store state via global variables and force
the first update.

Also includes simplification of code.

Change-Id: Ia346c883308cbdab5a7cccdbd579e4d605b831e8
Signed-off-by: Evan Anderson <evan@thelinuxman.us>
Quicksettings: Update all of the battery tile, not just mModel refresh

Change-Id: I9a5dfb0d13245c8151e24ddec2cf5c6636bc4580
Signed-off-by: Evan Anderson <evan@thelinuxman.us>
PackageManagerService: Fix concurrent access to shared state

Stop multiple threads from all calling add on the same HashMap.

Cleanup the use of a boolean flag by removing concurrent writes
to it.

Change-Id: I8d61fe7294dcb67ee7d0d7de88d90d2051c310e6
PackageManager: Fix logic around upgrading text display

* This code has all threads writing into the integer keeping track of
  the number of packages at once.
* Make this integer an atomic one, preventing all threads from racing
  when updating it.

Change-Id: I727306f8ab20edb7ec2a955ca20e6de0146c7737
PackageManager: Add option for single threaded dexopt

* Execute all dexopt invocations on the main thread instead of using the
  ExecutorService when persist.sys.dalvik.multithread is set to false.

Change-Id: I3b8499d5af5091ad7abcddf006f8f2837943903b