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.
_____vanirized________________
PS2: readd old QS string so a clean flash isn't necessary
  since QS utils look for the old generated resource ID - dmkessler00@gmail.com
PS3: make sure the content observer follows the activity lifecycle to prevent leaks dmkessler00@gmail.com
PS4: update the summaries on preference change FFS dmkessler00@gmail.com
PS5: renaming leftovers

Change-Id: If6d94256c61be6ad8b2ffda4cab82f43bc4cc2af
Signed-off-by: Dan Trifan <jimsth@gmail.com>
Settings : Add tap/pay help url

Change-Id: I41f37dff0fa2eb547f84aaf776950f0f42e6e36f

Conflicts:

	res/values/strings.xml
Settings: LT translations

Typos fixed, other small corrections.

Change-Id: I058905c5e833cf1dfd3d35353bafb17fedd2ac2e
quiet hours: add back the option to disable system sounds (2/2)

Change-Id: I8274c4893c89ba424aa7aa1677c0bd23cad25e1c
Signed-off-by: Dan Trifan <jimsth@gmail.com>
Settings: persist double tap to wake state

After disabling double tap to wake and rebooting, the state would be
persisted in the device, but it would display incorrect checkbox state.

Fixes JIRA bug BACON-92

Change-Id: Ie99e59872778dcdc3028e1770d97507fd831f515
Signed-off-by: Roman Birg <roman@cyngn.com>
Merge "quiet hours: add back the option to disable system sounds (2/2)" into kk44
Settings: Modify AOSP JA translation

Only revision.

Change-Id: Ieaed602f879acaa54dc77fe501b3cef8b72ef2ce
Apply match spans synchronously to avoid a race condition

Using the match start/end positions from both the main thread (when
updating UI) and the filter thread (when the filter constraint changed)
at the same time can lead into exceptions. Make sure to update the positions used by
the UI thread only from there.

07-11 03:26:18.845: E/AndroidRuntime(12765): Process: com.android.settings, PID: 12765
07-11 03:26:18.845: E/AndroidRuntime(12765): java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1021)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:592)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:588)
07-11 03:26:18.845: E/AndroidRuntime(12765): at com.android.settings.search.SettingsSearchFilterAdapter.getView(SettingsSearchFilterAdapter.java:216)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.widget.AbsListView.obtainView(AbsListView.java:2255)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.widget.ListPopupWindow.obtainView(ListPopupWindow.java:1585)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.widget.ListView.measureHeightOfChildren(ListView.java:1263)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.widget.ListPopupWindow.buildDropDown(ListPopupWindow.java:1167)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.widget.ListPopupWindow.show(ListPopupWindow.java:554)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.widget.AutoCompleteTextView.showDropDown(AutoCompleteTextView.java:1096)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.widget.AutoCompleteTextView.updateDropDownForFilter(AutoCompleteTextView.java:971)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.widget.AutoCompleteTextView.access00(AutoCompleteTextView.java:91)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.widget.AutoCompleteTextView.run(AutoCompleteTextView.java:1268)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.os.Handler.handleCallback(Handler.java:733)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.os.Handler.dispatchMessage(Handler.java:95)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.os.Looper.loop(Looper.java:136)
07-11 03:26:18.845: E/AndroidRuntime(12765): at android.app.ActivityThread.main(ActivityThread.java:5140)
07-11 03:26:18.845: E/AndroidRuntime(12765): at java.lang.reflect.Method.invokeNative(Native Method)
07-11 03:26:18.845: E/AndroidRuntime(12765): at java.lang.reflect.Method.invoke(Method.java:515)
07-11 03:26:18.845: E/AndroidRuntime(12765): at com.android.internal.os.ZygoteInit.run(ZygoteInit.java:795)
07-11 03:26:18.845: E/AndroidRuntime(12765): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)
07-11 03:26:18.845: E/AndroidRuntime(12765): at dalvik.system.NativeStart.main(Native Method)

Change-Id: I60cff301d3bfb15ea2bbf63fcae524af0ae0b8a6
settings: prevent multiple highlights in settings search

xe: Developer Options -> Launch Tools. The Process Stats is highlighted along
with Launch Tools, because the view of the latter is reused for the former and the
latter later gets a new view. Fix that by making sure to cancel old
highlights when triggering a new one.

Change-Id: Ibf2068628e5024d61495d4f9968811c77e120918
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Settings: Always show search on multipane devices.

    - Disable in more fragments for clean up.

Change-Id: Ia82f89ca8394e9d3dcf7dc80d2dfccdbe6fa9bc7
Settings: Quiet Hours Extra Daily Times (2/2)

Users complained that, for example,
	setting up weekend hours
	but then moving to weekday
	hours within the same day
	was previously impossible.

This allows...again...much further
	customization than even the
	updated and super custom times.
	After this there is no reason
	to complain =P

These are still only called as needed (boot,
	state change incoming, time changed)
	which is still much less polling
	than each haptic touch polling
	3 settings, creating a calendar
	object and comparing times...
	Each call, notification, etc...
	So I have no issue with it.

Also add a "reset times" button for
	user convenience.

PS2: Add preference categories to make it
	easier on the eyes
     Logic fixes and make unused preferences
	more obviously unused via setting
	the time summaries to "- - : - -"
     Set QuietHours summary to enabled pref

Change-Id: I6030f22e50a45883d5e8ba793e5b8706c4a9dac5
Signed-off-by: Dan Trifan <jimsth@gmail.com>
Launch Heads Up in floating window [2/2]

ps2: move the floating window setting to the top
ps3: set default to false to keep the original behavior

Change-Id: I11766af8ecfe316b55bf27c12210a4e57f3b3bc4
Signed-off-by: bart452 <bart4524@gmail.com>
Settings: Add a2dp profile triggers

Fixes JIRA issue: BACON-47

Change-Id: Id79b40cf33be77cba7235a08d4d31722cc02b081
Hover add customizations [2/2]

floating mode
duration
require fullscreen
block foreground notifications
all force remove non-removable items
hide low priority items
hide non removable items
centralize excluded app list (dynamically updates with app's preference screen)

PS2: update dependencies based on enabled state
PS3: fix NPE for null excluded apps string
PS4: clean up a couple strings
PS5: rebase, add block foreground notifications, rewrite blacklist lookup methods

Change-Id: I2a60a6795c2b01b8194c54030e0a947ec1805ec3
Merge "Hover add customizations [2/2]" into kk44
Navbar settings: add alternate key layout for the keyboard

Switches to an alternate key layout when the keyboard is present

back, IME switcher, blank space, left, up, down, right

PS2: reduce separater thickness and remove blank space on phones (frameworks)

Change-Id: I714a6fc065ec60ee13f0ea5aad19f0b86d0a3286
Revert "Navbar settings: add alternate key layout for the keyboard"

This reverts commit dc16f818046fa844ba7b3e1f0abf40074753d59f.

Change-Id: I71bbbf1df40b62fb7f97a8010d9ccf92f2b97735
Revert "Revert "Navbar settings: add alternate key layout for the keyboard""

This reverts commit f9766f7db68db2037551e6289bd5f19628eeb5c8.

Change-Id: If2644566e44f1c59b40fd5bbada94c33b45d9ca2
Revert "Revert "Revert "Navbar settings: add alternate key layout for the keyboard"""

This reverts commit 8956123d1af204e68c0ec720740d5c2168ce3737.

Change-Id: I81ee96930b7083a19ee9959a6fae93eacabc975a
Navbar settings: add alternate key layout for the keyboard

Switches to an alternate key layout when the keyboard is present

back, IME switcher, blank space, left, up, down, right

to do: add custom dialog to allow add/remove of ime and home keys

Change-Id: Ic92f997c1bfe9f53b01e3801063a662c091a2c82