Frameworks: Wakelock Blocker (1/2)

Change-Id: I38114529e535a3168ddb2135b10d7811347d7cf2
Signed-off-by: Arnav Gosain <nolinuxnoparty@gmail.com>

Conflicts:
	core/java/android/os/IPowerManager.aidl
	core/java/android/provider/Settings.java
	services/java/com/android/server/power/PowerManagerService.java

Conflicts:
	services/java/com/android/server/power/PowerManagerService.java
Re-add auto brightness configuration UI (1/2)

- Add a button into the new brightness dialog that allows opening the
  auto brightness setup
- Enable auto-brightness adjustment (setting for general brighter/darker
  adjustment) and twilight adjustment

- this commit adds as well the complete auto brightness ehancements we had
  on 4.3

Change-Id: I7fd11ddaa112396dcb7508692aacb93bfe3da256

...

Fix derp
[1/4] Base: Smart Phone Call

Put on your ear, and this will automatically call current number in message or dialer

Change-Id: Iddd37b30ddb54c10a2d06d5fc7e914da75279e44

Conflicts:
	core/java/android/provider/Settings.java
[1/2] Base: Toggle lock screen camera widget

Adds an option to enable/disable camera widget on lockscreen.

Settings: https://github.com/lichti1901/android_packages_apps_settings/commit/52c1d711ea1d42ca94370b2458a3b7e6cf7df35a

Conflicts:
	core/java/android/provider/Settings.java
Frameworks: Quiet Hours Automatic Switch (1/2)

Change-Id: I3e09891a60ffc5a11f5b5fabef8e06fb02dc9f5d

Conflicts:
	core/java/android/provider/Settings.java
Framework: disable keyguard widget frame (1/2)

And another user request.  But...I can understand
	it now that I see it without.  They actually
	look quite nice this way.

Change-Id: Id0222140a41eec9e5cd27b769cf860ac62ede1c0

Conflicts:
	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardSecurityViewHelper.java
	packages/Keyguard/src/com/android/keyguard/KeyguardWidgetFrame.java

Conflicts:
	core/java/android/provider/Settings.java
Lockscreen Notifications: dismiss all button, improve animations, cleanup

Conflicts:
	core/java/com/android/internal/statusbar/IStatusBar.aidl
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/SystemUI/res/layout/navigation_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardTouchDelegate.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java

-Lockscreen Notification:Build Fixes
Add "show all notifications" navbar button

Conflicts:
	packages/SystemUI/res/layout/navigation_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
Lockscreen Notifications: fix show/hide of show all button

& fix endless SystemUI FC when SystemUI is killed

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
Lockscreen Notifications: fix NPE
Lockscreen Notifications: try to fix occasionally SystemUI FC on boot
Quicksettings: Sound tile

Ported Aospa Sound tile & removed Dual tile code (Kept only the from side of tile)

* Single click toggles ringer mode (silent, vibration, sound).
* Long click goes to sound settings.
* Handles Vibrate when ringing.

Screencast: http://www.youtube.com/watch?v=gqlPhRBruSU

Based on commit: https://gerrit.paranoidandroid.co/#/c/522/ by cristianomatos.

PS2: Removed tabs.
PS3: Clean up
PS4: Remove pie references
PS5: More pie stuffz!
PS6: Not all devices can vibrate

Change-Id: Ida4b0f05e8a886b5249d758f1efb36bb364275cf

Conflicts:
	packages/SystemUI/res/values/pa_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
Do not show Home behind full screen activity

When ensureActivitiesVisibleLocked goes through foreground activity
stack and reaches non-fullscreen activity, it sets showHomeBehindStack
variable to true.

If there is a fullscreen activity behind, showHomeBehindStack remains
unchanged, which causes Home application to be displayed anyway.
In this case user will see a fullscreen activity and Home activity
simultaneously.

To fix the issue we set showHomeBehindStack to false when we reach
fullscreen activity in the activity stack.

This was made visible by the following commit:
446ef1de8d373c1b017df8d19ebf9a47811fb402

Change-Id: I535c1283a4e26f5cf606375b837d4b7195324af0
WindowManagerService: fix application transitions in expanded mode.

Change-Id: If7d3fc3ab566dedc3a5b38cd0a6dc3185f494e20
Signed-off-by: pcarenza <pcarenza@gmail.com>
increase touch sensitivity

Change-Id: I77e6aeca3667808e630dc142a2e561d3ddddef80
Clear All button added in  Recent Panelview.

Ref: https://github.com/temasek/android_frameworks_base/commit/a129580ee886b48c124de716236c2bae2b93a77b

PS3: capability to show/hide based on setting added

Change-Id: Iab4db7abec6f8caee4c0faad0960fa0f9fb9a1fd
PS6: capability to change button layout_gravity

Conflicts:

	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/status_bar_recent_panel.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsHorizontalScrollView.java
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
	packages/SystemUI/src/com/android/systemui/recent/RecentsVerticalScrollView.java

Conflicts:
	packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/status_bar_recent_panel.xml
base: Fix screen on stats after a boot

Prior to this change, the following sequence:

  * Turn the display off
  * Issue a reboot via adb
  * Unlock the device (after rebooting) before the screen turns off

results in the screen being on but the battery stats not reflecting
this fact.

In general, the mismatch occurs when either there is no serialized
battery stats state or when it is serialized in a state where the
screen is off.

Change-Id: I17374553fae6a08a1be8fdf445967509474177a9
GlobalActions: Fix Airplane Mode on/off issue
TRDS: Update

Change-Id: I5fb21c022ad507b6c49c2909d4897955311a9436

Conflicts:
	core/java/android/app/ResourcesManager.java
	core/java/android/content/res/Resources.java
	core/java/android/provider/Settings.java
	core/res/res/values/cr_symbols.xml
	packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
	services/java/com/android/server/UiModeManagerService.java
Parallel shutdown

Decrease shutdown time by doing some shutdown tasks in parallel.

There are two threads executing during the shut down: the ShutdownThread
and a separate thread for the radio shutdown. However, the execution is
done in serial, as the ShutdownThread immediately joins on the radio
thread.

This commit will move the shutdown of the radio to the beginning of
shutdown and execute it in parallel to the shutdown of the rest of the
system.

The flow of the two threads during shutdown is now:

Radio Thread
  * Start shutdown of the radio
  * Wait for radio off or time out
  * Notify that the radio is done
ShutdownThread
  * Broadcast ACTION_SHUTDOWN as a parallel broadcast. (The receivers
    will get as much time to handle onReceive as it takes execute the
    rest of the tasks in the shut down flow. If they are not done in
    that time, we don't care.)
  * Shutdown ActivityManager
  * Shutdown MountService
  * Wait for MountService and radio to notify done
  * Vibrate
  * Low level shutdown

PS
- fix derp

Change-Id: Ifdd8a9c75337fd9d00148a0d2b9917e10fa60634

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