Second Clock (1/2)
Clock: use mCalendar to get seconds

We haz teh calendar already. No need to create a new one to get the seconds.

Change-Id: Iccfc6e25367ad57a99bf27c29311e260b5e276d8
Signed-off-by: Tianrui Guo <tianrui@pac-rom.com>
Themes: uninstallThemeForAllApps shouldn't check if map is empty if it's null

Potential NPE introduced in ec2200878706735cdd2caf4d934d988296998e85

Change-Id: I6d1ec165957c2be63086a18af2236e46978e9c8a
frameworks/base: Fix SystemUI crash on Recent Apps list

Issue: SystemUI crash is observed when Context MenuItem "App info"
       is selected on the recent apps activity
       1. Open the rencet apps list
       2. Long press on any one/more recent app(s)
       3. Lock the screen using power key
       4. Unlock the screen using power key
       5. select menu item "App info"
       6. SystemUI process will get crashed.

Fix: Changed the code to make sure that only one context
     menu is active at a time and also dismissed the
     context menu on pause of the RecentsActivity

Change-Id: Ia50bed7bfad6fde7beeaec37fa6402177eee1d40

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java
Don't cleanup overlay mapping for non-theme apps

mOverlay structure should keep all app/theme mappings even
if the app does not exist. Otherwise we will have to insert back the mapping
for every app that is installed which would be time consuming.

Without this patch an upgrade app loses its applied theme
until the device is rebooted.

Change-Id: Id02b8e0a3bdd78d1a9d39cd38294c584ef95f8db
appops: enforce appop for bluetooth disabled action

Bluetooth disable action should be enforced in the same manner that the enable one.

Patchset 2: Fix derp
Patchset 3: Fix build
Patchset 4: Rebase. Fix comment style
Patchset 5: Rebase

Change-Id: Ie161ac0c038acbd4c1ce7f27ab4c5897813fd4cf
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
base: check also for mLayoutParams before calling checkForRelayout

http://jira.omnirom.org/browse/OMNI-976

This was introduced with
https://github.com/omnirom/android_frameworks_base/commit/b3670c54e60387fde633fb91c649c5b896f8b962

Change-Id: I06c1926c5b8102b336d128d9b411f74a9eff3ded
Add needed import
Slim Recents: Option to show topmost task [1/2]

Change-Id: Ib39d9b87b0fd30b4d34d4292af39e891038f337a

Conflicts:
	core/java/android/provider/Settings.java
Slim Recents: Always show topmost task collapsed

Change-Id: I64956410fb389d8e880979a84b51321d8b372217
UsbDebuggingManager : Handle race condition when toggling rapidly

When toggling adb enable/disable rapidly, you can have the situation where the thread's
run() gets invoked but mAdbEnabled is already set to false, hence listenToSocket() never even
gets invoked in which case mOutputStream/mSocket are both null. This patchset adds checks
around that.

Change-Id: Iba56e7409435e22d690432fa663bc0a04a1a447d
frameworks: import AppOpsManager
NotificationHelper: We shouldn't use logical here, one case is enough no matter the order

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
fix building
Revert "appops: enforce appop for bluetooth disabled action"

This reverts commit fc44b04e7b44c13baed44b2f32ca629b6b49b2e0.
SystemUI: Fix potential NPE

Does already cause issues on some Halo ports to other ROMs.
Might not cause issues on PA (yet), but better safe than sorry.
App sidebar (1/2)

Change-Id: I600a21fd780587ef84c8e1994adbaccc6098254d
App sidebar: floating window

long click to launch app in floating window

Change-Id: I9b5df1cceb2314ee0f8727136c007c481346a264
Fix Lockscreen Notification Button Landscape Layout

Change-Id: I77bd00aed6ced4d2f422801ed22bf1cb5168dc09
Fix Floating window bug

1. any app in recent apps + launch floating app in home screen
2. close floating app
3. last app in recent apps will launch and close in 0.5 sec

Change-Id: I6fa8605b431ae8f82ca6be34a8fc4b9cab407c9a

Conflicts:
	services/java/com/android/server/am/ActivityStack.java