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

Conflicts:
	src/com/android/settings/Settings.java
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
Clean up protected apps code (1/2)

- Work with actual ComponentNames instead of converting them between
  String and ComponentName all the time
- Name protection state parameter in methods 'state' instead of
  'protect', as a value of true actually means it's not protected. Also
  consistently use the respective constants for its values.
- Some misc. cleanup

Change-Id: I2855978c8aef3cfa14249e3398039c7cdd145ede

Conflicts:
	src/com/android/settings/applications/InstalledAppDetails.java
	src/com/android/settings/applications/ProtectedAppsActivity.java
	src/com/android/settings/cyanogenmod/ProtectedAppsReceiver.java
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 : Scroll to preference on search and highlight

Change-Id: I93c4106d022b416205cc33cf5dbdf5d7635a002a

Conflicts:
	src/com/android/settings/SettingsPreferenceFragment.java
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