Forward Port: Swap volume buttons when the screen is rotated by 90 or 180 degrees

Change to default behaviour not configurable due that it is now
more natural

Change-Id: I323b647066e8c73fac60067141d1add7b2f9962d
AudioManager: make swap volume buttons RTL aware

The layout of the volume panel is already RTL aware...the problem is
if it is in landscape and the buttons are swapped they go into opposite
direction then the volume panel.

So this swap should only happen on LTR languages and RTL should be left
like it is.

So both LTR and RTL have it logical.

Change-Id: Ie5fbe3085b40ad35814f53ed19736d7800dad78e
Frameworks: add ability to change the color in battery saver mode (1/2)

User complain about the ugly orange....give the user the ability to
change the
color in status and navigation bar if battery saver mode is activated.

Especially for you Tylog :D

PS
- move it into the observer...method is called to often to call every
time
the settings value for it.

Change-Id: I48ed2e85c462a2e94770b2bc1ad75b1ca40f2304

Conflicts:
	core/java/android/provider/Settings.java

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Fix NullPointerException in ListView

There is a NullPointerException in `handleHorizontalFocusWithinListItem()`
because `selectedView.findFocus()` returns null and then there is no null
check when when the assigned variable `currentFocus` is used, although
`View.findFocus()` states that it may return null.

Change-Id: I6897027e9a2a238d9283e6b9f5146198989fcac0
Change SQL to improve performance.

To know the number of images, use "COUNT(*)" instead of "_id" in SQL.
Using "_id" gets all result set. and when getCount() is called, CursorWindow is filled.
But using "COUNT(*)" gets just 1by1 data.
So using "COUNT(*)" is more faster than now.
And this SQL is called everytime per a file during a file transfer in MTP
The better way is by using "EXIST".
But if using "EXIST", modify MediaProvider.call() method.
So i applied just a "COUNT(*)"

Change-Id: Ic5882af0fad2304f836b7b7043a4746359391609
Signed-off-by: muzbit.kim <muzbit.kim@lge.com>
Disable Lots of Debugging

Revert "Debugging: Enable All Debugging until GPS bug is Squashed"

This reverts commit a7e2e0bfc70c866645c2f45df2ab06030c7e1131.

Change-Id: I9836dd477009ece01dda6a4feaaf00d1f7a3bfd5
From: Optipop rom
Add option to disable searchbar in recents [2/2]

Coded by yashade2001 <yashade2001@gmail.com>
Thanks to TheMrcool212 for his help.
Cherry-picked from Project D.I.S.C.O.

NEEDS THIS PATCH: https://github.com/CyanogenMod/android_frameworks_base/commit/d7a236b5485fc09c4c1d44deaeae214bd705f8a2

Signed-off-by: Yashar Ahmedizadeh <yashade2001@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java

Change-Id: I3a9bbb12d55f314d9e7dce82b8d50555c7e18337