Improve scan time for some cases

When the path being matched has a sqlite wildcard character in it, a "like"
match will be quite slow. Unfortunately this is fairly common, since "_"
is a wildcard character. However, because in most cases the case of the path
in the database will match the case on disk, an "=" match will work, so it
is worthwhile to try an "=" match first, before trying a "like".

If there are no wildcard characters, the "like" will be as fast as the "=",
because of the case-insensitive index on the _data column, so there is no
need to try "=" first in that case.

b/6751354

Change-Id: I1cd4efbd56a37886cb44a86acb73eb9a3c9f303d
WiredAccessoryObserver: Headset detection for sony msm7x27a

Sony's headset driver uses the nonstandard headset_sensor switch
while other drivers (eg power button driver) still use the h2w
switch, so simply renaming back to h2w is not simple. This looks
for the headset_sensor switch, and if it's not present falls
back to the standard h2w switch.

Change-Id: Ibfd39edf80e2e3a2f4c084960908d1e24808df54
Merge "Improve scan time for some cases" into jellybean
Merge "WiredAccessoryObserver: Headset detection for sony msm7x27a" into jellybean
Changed USB connected icon to feature Cid

Changed the green USB connected Android to blue Cid
and the orange USB mounted Android to orange Cid
Cid has a USB drive hand like the Androids as well

Change-Id: I57386c2d555723adad99cafe8ae6d2e8f6fe8cbd
Changed USB connected page icon to USB logo

Changed the red "Beandroid" on the USB connected page to
a white USB icon.

Change-Id: Iee4c58769369e6dbe8d131eb4a2d9bee49d1e99b
Option to enable gfx effects (2/2)

Allow devices that do not meet ActivityManager.isHighEndGfx(display)
to enable graphic effects such as (in this case) the screen dimming
effect behind an expanded notification panel.

Patch 2: Rebase
Patch 3: Moved observe() before start() so preference boolean is
         set before gfx conditionals are evaluated.
         Still requires restart or reboot for full effect.
Patch 4: Consider high end gfx settings in recents panel

Change-Id: I7f94a00ef3260b66d6d715adbd1b11961ec32ee3

Conflicts:

	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Clock right or center

Allow clock to be placed either on the right or in the center

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java

Thanks to DerTeufel for help with solving all compile issues

Change-Id: If682ae8561e21b771794b06df436be1838c61549
Monitor device storage directly in /data/data

Original change here: http://review.cyanogenmod.org/#/c/9431/

Monitor device storage directly in /data/data.  This could be useful
still on older supported devices.

Change-Id: I121bc05a3938d45b87317c899f79d227f0d07cf7
Navigation Bar: Ability to enable on every device 1/2

This adds a new Menu item Settings -> System -> Navigation Bar

Patch Set 5 : Just a rebase
Patch Set 6: Rebase
Patch Set 8: Rebase
Patch Set 9: Rebase

Change-Id: I23a508fa3268e63fbbc9a8305d011db3ca7722a0
Patch Set 1/2: Add an "Automatically Connect" option for WiFi networks
Updated white spaces

Change-Id: I80c7a698de183691094352367913cc73f2863810