settings: Unbreak wifi display on tablets

In change 46af8086db0db5b41f20c9f05a5f42c182262576 the option
to enable/disable the wireless display was moved to an action
bar which ends up entirely removing the ability to enable it
for devices using Settings in tablet (multi-pane) mode.

Follow the pattern of dreamcast which correctly displays
and removes the action bar.

Change-Id: Ie82b04b5e96a59ec093323601f8e79d23a6e69de
Keydisabler: fix button light restore logic

Do not assign default button brightness if backup key is not found.
Instead do nothing. This will prevent brightness being reset to default
on boot when navbar is disabled.

If backup key is not found when actually toggling navbar then we've got
bigger problems.

Change-Id: I649bf1480a42f2cbe94d0a47a0c6055c934b4f56
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
settings: Auto-brightness levels shouldn't fill the screen

On tall displays this ends up with a lot of useless padding
in the list.

Change-Id: I998b86ec12d531cf1db08db7d9c23d12d8641730
Settings : Use split action bar when entering profiles externally

Change-Id: I2a93ea98d73d76cdc277cdf4f3a15bb5c4c4d9f4
Settings: Remove unnecessary padding from HeadsUpSettings.

Change-Id: I823aa97f32049dc6c6baf6c859c47219952fe454
Fix heads up action bar switch handling for tablets.

Similar to commit 91f47b9f55467f1c8de4c6c732375d9f6f3c3942.

Change-Id: Ia4c5e8169ccd6786d2284eccec30397cac48d218
Settings: Make settings searchable.

Signed-off-by: Adnan Begovic <adnan@cyngn.com>
Signed-off-by: Danesh Mondegarian <danesh@cyngn.com>
Change-Id: Ic06dca33bf8fd0ef8f63f51e131b70fe730cb7c5
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
Settings : Make search locale friendly

Change-Id: I3ae4b074af7a0ab4105f35d3ee8d6e5ef004af3d
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
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
Settings: add setting for nav bar cursor (2/2)

Change-Id: Ife5600421041cc213f0a74abbc10acaec90fbe6f
Signed-off-by: Roman Birg <roman@cyngn.com>
Fix exception being thrown if CMHW is not installed.

Happens during debugging when mmp'ing the app.

Change-Id: Ief84a812696ef3f2515701790f96649cbde0f7d9
Settings : Preserve title id

Change-Id: Ieea43e5ebe955ae31190daa0db635611c4ec7f49
Settings: Don't match action bar parent for search on tablets.

Also adjust IME flags to
a) show the search icon as action key and
b) to not appear fullscreen in landscape

Change-Id: I9bc9851d39aa4d6dbed40df63dd4ea8df6f4c3f9
Settings: Follow quick launch shortcut renames

Follow the renames of the quick launch shortcuts
introduced in this commit: http://review.cyanogenmod.org/#/c/66271/

Change-Id: Ida3fd795b2d7ff56aff1659b6b43bad9a7d44af1
Settings : Scroll to preference on search and highlight

Change-Id: I93c4106d022b416205cc33cf5dbdf5d7635a002a
Highlight search string match.

Change-Id: I72c0380512028674c91f287325f221a686a4821d
Improve search performance.

The normalization regex is slow (5-10ms per entry on mako), so better
pre-cache it. Also cache the icons, as the number of icons is vastly
smaller than the number of potential search results, so they'll be
reused very often.

The regex change alone brings the duration of a single filter run down
to ~20ms from ~1200ms on mako.

Change-Id: Ia0fa9c554d0d585a52c8a2b87eecbf045388c961