Revert "Clock: use mCalendar to get seconds"

This reverts commit 696b442cf283edd16f8ec1226900ecfce65d2095.
Revert "Second Clock (1/2)"

This reverts commit d30633fdff27de4b3c56f5364084f4fb7ff356da.

Conflicts:

	core/java/android/provider/Settings.java
Fix-up 4.4.3/4.4.4 merge

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>
appops: Fix WIFI_SCAN AppOp permission index

WIFI_SCAN and POST_NOTIFICATION permissions are inverted.

Change-Id: I97ebba0e118604294eb474143c53f7e7238dcb59
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Fix hiding ADB notification

When the notification is already shown (the device is connected in ADB mode)
and the user turns it off, it doesn't go away. Let's hide it properly.

Change-Id: Ie411a89d5549ae9662c59ee9ee5d18a9568e1ede
fw: media: Handle NPE due to threading race

Change-Id: I6eab5bc3d687edfa6f0839e439b3314bed4fdcea
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
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 back option to disable immersive mode on lockscreen

-Also a lot of fixes from CM after merging to 4.4.3

Conflicts:

	core/java/android/app/ContextImpl.java
	core/java/android/app/WallpaperManager.java
	core/java/android/provider/Settings.java
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>
CameraTile: Launch default gallery app when long pressing active camera tile

Currently long pressing this does nothing. It makes sense to launch the default
gallery app from here if a user long presses in order to see pictures that
they've taken from the smaller camera preview.

Change-Id: Iad73a291443eb2a12e1399f24eeeec61ec945bf5
Correct stride for drawing to cached glyph bitmap

fixes the glyph cachebuffer index to account for pixelbuffer
format size.

issue: in launcher home screen create icon group and rename the
group to some text string with emo-icons (smilies). without this
change the drop shadows for emo-icons will look bad.

Change-Id: I525a9219d35f4541363fd64e7fc5fd1053269725
Signed-off-by: Digish Pandya <digishp@codeaurora.org>
Use alpha channel instead of red in drawCachedGlyphBitmap

the correct value to copy in bitmap is alpha component from
the cachebuffer. currently it is offset to red channel if format is
RGBA which is wrong.

this is followup fix for https://android-review.googlesource.com/#/c/93943/

Change-Id: I96b5ba35df5ccaef44caf2542d35d6585ba1df80
Signed-off-by: Digish Pandya <digishp@codeaurora.org>
MtpDatabase JNI: Fixed a memory-leak in getObjectPropertyValue().

The jstring "stringValue" was not never freed.
In the case where "str" was NULL the whole cleanup part (see "goto out")
was even skipped.
This patch makes getObjectPropertyValue() behave like
getObjectPropertyList().

Change-Id: I5a7ec3611036f5253a054b00064999bcd1d1c29e
appops: do not prune apps that are not present

Do not prune apps that are not currently present in the device (like sdcards ones). During
booting sdcards are not available but must not be purge from appops, because they are still
present in the android app database.
JIRA: CYAN-2811
Issue: https://jira.cyanogenmod.org/browse/CYAN-2811

Change-Id: I6680cbdf0022812b45d966dffee754399e92accb
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Skip check in quiet hours if an additional option is not provided

 - SmsCallService does not provide that (option = null), causing NPE
Revert "[1/2] SystemUI: Add time-context headers to the notification header"

Conflicts:

	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/status_bar_expanded_header.xml
	packages/SystemUI/src/com/android/systemui/mahdi/StatusHeaderMachine.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
SystemUI: fix navigation button and glow color theming
SystemUI: remove status bar clock color option
LSN: disable every option as default