Underp smart cover wake

- In custom builds without device specific overlay commit Settings -> Display & lights should force close

Change-Id: I16d19f3a7b2919888aef5806abbb5417ee145fc1
(cherry picked from commit 337502a2c35a5545ca10d8c86ae4e0fc5eacaa80)
Allow changing theme to Holo.Light without crashing

Themes that attempt to change the settings theme's parent to
Holo.Light will end up crashing wifi settings.

Themers should override Theme.Settings.Base and leave Theme.Settings.Holo
alone.  Attempting to theme Theme.Settings.Holo will result in crashes
when accessing wifi settings.

This was patch was adapted from
https://github.com/tung91/android_packages_apps_Settings/commit/007f03b559c6d13115c63c4f601ebc4b9324d32d

Change-Id: I61951b892acac6304d2c3dd02668eb70af93eef9
(cherry picked from commit 8cc23d58abc4874fe049a8dfa70910cf0b5dd9b2)

Conflicts:
	res/values/themes.xml
Clean up search code.

Fix up coding style and add a few missing TypedArray.recycle() calls.
Also make filtering code more efficient.

Change-Id: Ie3824b41ae40010686ff3cb6cab7f12d19843834
(cherry picked from commit 907cea05631e518570b0a295aec5070df0d77594)

Conflicts:
	src/com/android/settings/Settings.java
Settings : Make search locale friendly

Change-Id: I3ae4b074af7a0ab4105f35d3ee8d6e5ef004af3d
(cherry picked from commit 1df7baddb7048786371d459302c51cdbdfe6beb1)
Settings : Get actionbar post extra retrieval

Fetching the actionbar before the extras are utilized causes the parentActivityName
to be null and no home as up enabled.

Change-Id: Ic3395c4a2e0c04aee4efab5345cb604475691016
(cherry picked from commit 5ff1c93b150bf99cb8ca276bee2d1cb179303e5b)
Show parent fragment name in option search.

For doing that, parent titles were missing for options placed in
fragments which are directly invoked by a settings header. Fixit.

Change-Id: Iad9340fa76eb6f2f38f4b0d7b84f2c7fa357b162
(cherry picked from commit b92fb78b8d7be924670226ca2e3c6f3043e1026c)
Partially revert "Settings: Fix strings for crowdin"

It didn't work for crowdin anyway & broke the string

This reverts commit 1b9a05d0461ee69ce2b40001138dda941b702905.

Change-Id: I5b3943ee8748475dd55020d7437d971305b7d091
(cherry picked from commit db6df92574784765f4a2b6570136dd27d3ed7eb6)