Settings: Make settings searchable.

Signed-off-by: Adnan Begovic <adnan@cyngn.com>
Signed-off-by: Danesh Mondegarian <danesh@cyngn.com>
Change-Id: Ic06dca33bf8fd0ef8f63f51e131b70fe730cb7c5

Conflicts:
	AndroidManifest.xml
	res/values/attrs.xml
	res/xml/lockscreen_interface_settings.xml
	res/xml/notification_drawer.xml
	res/xml/quick_settings_panel.xml
	res/xml/settings_headers.xml
	src/com/android/settings/Settings.java
Settings: Check to see if menu items are null onPause.

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

Conflicts:
	src/com/android/settings/Settings.java
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
Hover : custom display timeout (2/2)
Hover :  exclude from insecure lockscreen (2/2)
Enable/disable hover notifications from insecure lockscreen
Swip for launching floating windows from notification/recent panel (2/2)
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

Conflicts:
	src/com/android/settings/slim/QuietHours.java
DisplayColor: Properly handle a minValue

* Previously setting anything as a minValue would cause the
  percentages to get out of whack. For instance, setting it to 35
  would cause the maximum percentage to climb above 100% as well
  as still allowing the value to be set lower than the min.
* This makes the maximum for the slider the max value minus the min
  (so we get the proper spread for min to max) and then adds the min
  back on before setting so we can't possibly go below the min.

Change-Id: I8dcdc422f54847940351fae10c74af6301d1e1be
Settings: Disable search item in some fragments.

Change-Id: I17ed6945f34f2fe7bb18674124f8a8989145b8c1

Conflicts:
	src/com/android/settings/Settings.java
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
Settings: Bump SettingsSearch db version.

Change-Id: I0ba3be71f61fcae9c2fe67064b5f890fdd0abb2c
Improve search UX prior to load being finished.

Show a informative hint in that case.
Also clean up code somewhat.

Change-Id: I57f37bc60fbaef2ea0db0b0c3227df125b0e4ab9

Conflicts:
	src/com/android/settings/Settings.java
Check locale when populating DB instead of using separate receiver.

This makes reloading the search data race condition free. Previously,
when invoking search directly after the locale change, one would get the
results for the old or the new locale depending on timing between the
broadcast being delivered and the activity restart.

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

Conflicts:
	AndroidManifest.xml
	res/layout/installed_app_details.xml
	res/xml/notification_drawer_qs_settings.xml
	src/com/android/settings/applications/InstalledAppDetails.java
	src/com/android/settings/slim/NotificationDrawerQsSettings.java