Frameworks: Ability to Enable/Disable Smart Wake covers

Change-Id: Idf298618b49895898222deb94d8097b20cc05516

Conflicts:
	core/java/android/provider/Settings.java
fb: change default value of lid controll to enabled

Change-Id: If8a91d3553344dc6efefe236323aad9b43e7dd50
Revert "Active display: Fix visible NavBar buttons on Lockscreen"

This reverts commit 562e9e44e6de7c23a1830bd6474efff99c244ed3.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
ActiveDisplay: Force FULLSCREEN flag

* ActiveDisplay (AD) isn't as appealing when transparent navbar shows.
  Force FULLSCREEN and hide all decorations

Change-Id: Ib8e2bfffcf7cdb9f1dffe084cad7ee70e7722a50
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Support GESTURE_SENSOR input device type with GestureService

* The GESTURE_SENSOR input device type is meant to support touch sensors
  which are meant for gesture input only, very similar to a touchpad,
  but without the pointer capability.
* Define separate service to handle gestures from GESTURE_SENSOR device
  type.

Change-Id: I9b273df2a3cc141774d7f7cd81e43a90ea5b230b

Conflicts:
	Android.mk
	services/java/com/android/server/SystemServer.java

Conflicts:
	core/res/res/values/symbols.xml
	services/java/com/android/server/SystemServer.java
Hide InputDevice.SOURCE_GESTURE_SENSOR from API

Change-Id: If009e9595fc593594b0e7764669996de137483a1
Fix App Ops permission mapping structure.

The entry to map the post notification op
to a permission is at the wrong offset
within the sOpPerms array. This patch
fixes the issue.

Change-Id: Ia241d274e484b6a24edbfb17b87bb887b61f1ee1
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
NetworkController: Hide signal strength icon when no SIM icon is shown

Change-Id: I5c4b43bba1469e14474d20a3627eafa597459e6e
telephony: disable the use of SMS_EXPECT_MORE by default (1/2)

CodeAurora added the use of the RIL_REQUEST_SEND_SMS_EXPECT_MORE API
which is not supported by every RIL. Disabled it by default to reflect
AOSP behavior and added a flag to enable it.

Change-Id: I837c161bbca3960e7458ea049f896218d5e60a63

Conflicts:
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
Faster statusbar

Conflicts:
	packages/SystemUI/res/values/dimens.xml
Bugfix : Quick pulldown sometimes flips when it should not

When your Quick Settings Panel is set to

Quick pulldown : right

Sometimes (very intermittently) the tray flips (to Quick Settings) as you pull it down from the right side.

This is happening because the pull down happened so fast you can see the top 0-10 pixels of the tray,
and because it was showing the notifications, not the Quick Settiings

However the user expects the tray not to flip, but to just be on the Quck Settings.

The new code simply checks to see that the Event was a pull down event and that the event started in the top status bar.
If this is the case, then the quick panel is swapped to (without flip)

Special Thanks to my daughter Jenny fo painstakingly reproducing this bug.

Change-Id: I8fdbedb1aa6d4fd672bd4cb58b7c99557469ab62
Re-implement orientation aware volume buttons at lower level

Rework of http://review.cyanogenmod.org/31979

Fixes:
1. inconsistent volume button behaviour depending on app in use
   - the buttons not swapped for some NDK/OPENSL ES apps like
   e.g. MX Player
2. the function of volume buttons on external input devices like BT/USB
   keyboards should not be affected by the main unit orientation

This commit finishes http://review.cyanogenmod.org/18273 - use of system
property has been replaced with config push via JNI as suggested during
the original review.

Patch Set 2: Circumvent the need for "keyboard.orientationAware = 1" idc
Patch Set 3: Don't leak implementation details outside InputReader

Change-Id: I19cc60cb0acb0005ab13fa069f52e3d468d694e7

Conflicts:
	media/java/android/media/AudioManager.java