Settings: Rewrite Quiet Hours (3/3)

Added:
	Wifi Connected Preference
	Charging Preference
	Individual Day Preference(s)

	Completely rewrote quiet hours
		to reduce system calls.
		No more calendar objects
		or checking three preferences
		and comparing their values
		on each quiet hours check.
		Reduce that to ONE preference
		check per preference

PS2: Fix going from forced on to timed off
	not causing an update in states.
PS3: Ensure battery status is correct if
	the device is plugged in before
	boot is finished
PS4: Clean-up old bits from the bobs.
PS5: Fix preference summaries being incorrect
	in some instances.

Change-Id: If6d94256c61be6ad8b2ffda4cab82f43bc4cc2af
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

Conflicts:
	AndroidManifest.xml
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 : 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
Revert "Clean up search code."

This reverts commit 02eef527a36e4cd44d055abb3c7d7e224f59b938.

Conflicts:
	res/layout/settings_search_complete_view.xml
	src/com/android/settings/Settings.java
	src/com/android/settings/search/SearchPopulator.java
	src/com/android/settings/search/SettingsAutoCompleteTextView.java
	src/com/android/settings/search/SettingsSearchFilterAdapter.java
Settings: Heads up meets SlimKat....SlimKat meets Google IO [4/4]

For detailed explanation see here: https://gerrit.slimroms.net/#/c/9937/

This patch adds the 4 possible user configurable settings.

1. Enable always expanded heads up notifications.
2. Set heads up snooze time
3. Set timout timer
4. Show updates of pending notifications

5. Add in app info screen a checkbox to enable heads up for the app.
   As another possibility aside the longpress on the notification on
   notification drawer.

Change-Id: I999df799cecb487c502e4a77626445813eeb197f
Merge remote-tracking branch 'slim/kk4.4' into ose

Conflicts:
	AndroidManifest.xml
	res/values/ose_arrays.xml
	res/values/ose_strings.xml
	res/xml/quiet_hours_settings.xml
	src/com/android/settings/applications/InstalledAppDetails.java
	src/com/android/settings/ose/NotificationDrawerQsSettings.java
	src/com/android/settings/ose/QuietHours.java
	src/com/android/settings/ose/service/SmsCallController.java
	src/com/android/settings/ose/service/SmsCallService.java