[1/2] base: expandable volume panel and tweaks

* Ditch aosp volume panel and use expandable as default, hardcode it.
* Add VOLUME_LINK_NOTIFICATION option to allow adjusting notification
  and ringer separately (default=1).
* Add VOLUME_ADJUST_SOUNDS_ENABLED option to allow disabling
  the volume adjust sound (default=1).
* Replace old Settings slider icon with new KitKat cog icon

Signed-off-by: Ricky Salinas <rsalinas1@mail.usf.edu>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I94e0f944f76ee9751663de8ac40d99a342884259
Display options: allow configuration of wake on plug behavior (2/2)

The PowerManager now checks Settings.Global.WAKE_WHEN_PLUGGED_OR_UNPLUGGED
to determine wake-on-plug behavior.  The configuration option
config_unplugTurnsOnScreen is used as the default value of the setting.

PS 2: Fix formatting of if statement

Cherry-picked from: I062794828831a2b6faf4293579103d2251f1bdd0

Change-Id: I7eefff468a64c04e536c377cff3c740a7e568ade

Conflicts:
	services/java/com/android/server/power/PowerManagerService.java

Conflicts:
	services/java/com/android/server/power/PowerManagerService.java

Conflicts:
	core/java/android/provider/Settings.java
[1/2] Add battery level around unlock ring

PS2:
added missing change in KeyguardSelectorView.java

Change-Id: Ia4dbc2335657c096c34349ec67c4adfec0aeb91b

Conflicts:
	core/java/android/provider/Settings.java
Lockscreen: Add timeout and instant lock option to slide lock (2/2)

  This adds AOSP's new timeout and instant lock options to the
  slide (aka chooser) style lockscreen.

Change-Id: I64b5f53a4e6c4098640b2c0cb3af2a56d6df019f
Add back increasing ring feature.

Change-Id: Id950d3c19a05e4efb9ed0b36be6a7482dd173965

Conflicts:
	core/java/android/provider/Settings.java
MediaScanner behavior on boot (1/3)

Lets you enable/disable/ask (with a notification) media scanning on boot.
Can speed up boot and reduce initial boot lag from MediaScanner

Change-Id: I634ae96b1dcb493b966b4653589cd97523b63da7

Conflicts:
	core/java/android/provider/Settings.java
[1/2] Power connect/disconnect notification support

Change-Id: I36a6b9f924d2cd52191a8e83a744745b37c5b068
Fix missing imports
Framework: Configurable 0, 90, 180 and 270 degree rotation (1/2)

thanks cm

Change-Id: Ie950679d3515234ab30e6da04cba2659c463425d

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
base: fix external sdcard mountpoint

It needs to add that line on init.xxxx.rc on rootdir folders.

"chown root root /mnt/media_rw"

Needed for devices that has some troubles mounting storages.

Credits: http://forum.xda-developers.com/showthread.php?t=2537793

Change-Id: I0c9e2ae5439c8d8a762904e2760eb6590ce77a62
WMS: fix no thumbnail image of Gallery in the recent tasks list.

When it takes the screenshot of an application, it will calculate
the minLayer and maxLayer first, and if a window is full screen,
it won't deal with the windows below it. However, the surfaceview
is placed below a window but will be displayed at front, this make
the surface view can not be included when take the screenshot of
an application, then it diaplays a black area in the recent tasks
list.

If the currect window is full screen, no need to finish the
calculation.

CR-Fixed:566752

Change-Id: Iaf3e9a3e6520007571ea545ccc9c05d4b1b416fd
Add SMS Middleware layer.

Add fix so ordered broadcasts are delivered to system
apps first in the event of a tie. This works around
the issue where terrible apps steal SMS notifications
from the broadcast queue to simply prevent notifications
that could otherwise be removed by a toggle.

Change-Id: I30e38c6c27d339d55a8f9a0f4106185356a9b9a0
New Event: ACTION_NEW_OUTGOING_SMS

Change-Id: I8be01ad6251ca25e4d00ebffd876bb6ce7f3c283
Frameworks: Policy: implement a pin keypad shuffler [1/2]

this is to further prevent people using the tablet guessing your pin based on fingerprints left on the screen
example of the expected outcome - https://www.dropbox.com/sh/r3xb2q53ksaqni9/Oz1Eu8Dm7O

- correct coding style
- added reload button

PatchSet:
- simplify shuffle code
- fix over shifting in some cases
- add reload button functionallity
- add lockscreenutils method to detect only PIN lock
  for settings
- exclude sim and simpuk PIN lock
- add drawables for reload button

PatchSet
- cleanup

PatchSet:
- fix shuffle NumKeyPad even if a theme replaces the xml
  and reload button is not present.

PatchSet:
- add mode disabled/always/on request

cheers

kufi

Ported to new keyguard package on 4.4

Change-Id: I6cf23a70a24ff0d640850d35acd4584e2e8d2192
Frameworks: LockBeforeUnlock the new way (1/2)

Due that aosp removed the whole LockBeforeUnlock controll (show slider
lockscreen before an unsecure internal lockscreen) we must try to find another way
without touching the security system itself. Long guess short solution, lmao

here it is, next SlimKat feature

cheers

PatchSet:
- bring eca button to front in lockbeforeunlock mode to make
  it clickable on slider lockscreen

adapted our 4.3 version to 4.4 and smaller fixes/code improvements

Change-Id: I6fa791d7e57b01aaa42a6eca99b07c22e4d83ad8
Frameworks: Add support for variable size pattern lockscreen (Part 1/2)

Thanks CM

for the base.....ported to new keyguard, moved service and some
new API 19 stuff

Change-Id: Ia506308a111947d20058f86c4ad538bef463afaf
[1/2] Frameworks: Optional statusbar battery icons

    * Circle battery and circle battery percent (from CM <Sven Dawitz>)
    * Battery bar percent from Google
    * Quicksetting battery tile reflects status icon (from SlimROM <kufikugel>)

Part 2: packages_apps_Settings

Patch set 2: clean white spaces
Patch set 3: fix conflicts

Signed-off-by: Anu6is <curtis.mayers@gmail.com>

Change-Id: Ic4056d08874672263444152813a4a8e805a4abf3
Status bar date/time actions

Separate clickable actions for time and date statusbar pulldown
    * Click the time to open Alarm
    * Click the date opens Calendar

Original commit - https://github.com/omnirom/android_frameworks_base/commit/dd045bb093809196ab2df6954eda1c27cb28facf

Change-Id: I2a476d778dc49d3543292865c38f20dcb242d3df
Merge remote-tracking branch 'PA-base/kitkat' into kitkat-remix

Conflicts:
	core/java/android/provider/Settings.java
	media/java/android/media/AudioService.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Fix conflict due to the merge