Clean-up SchismStats intregation

Remove overflow menu, clean some strings and some styling fixes

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>
Clean-up some Lockscreen Notifs things

Add dependecys for peek
Fix up the enabling and disabling of Peek if LSN is on

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>
Remove Hover and Peek [2/2]

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>
Squashed: Heads Up [2/2]

All credit goes to Cyanogenmod and Adnan Begovic (@Decad3nce) for exposing it all

Some commits from @Mahdi-Rom and Danny Baumann (@maniac103)

This commit adds:
    - Exposes Heads Up
    - Blacklist
    - QS Tile
    - Various other Settings fixes

commit 100d3ed2c801f22efcdeada35bf10234f04c2936
commit 0a0e77c5c1a48a29f000a7846a8e75c08bf466a8
commit 6b1b1aca404172c7a3e0fecfba38438e52a63948
commit 50736a92e85e89967f521ee766a59fb15938f206
commit c07a759ee123b9c8c80a2fa65698d21751c8c347
commit a12a213b27b30af106f75c048de28592a3707077
commit 35b67f32625927c8c4fdd15fa010574088b528a4
commit b3a24781665829e4d68ac61a52fbf9c8ff7ff3e3
commit 68b65f8c87f332063209fb98d3608509490efbe2
commit be16cccec30de363b910ab3002a244ff008982e7
commit 428d8b7e3bb105577c7f22ae9cbd175652d11600
Launch Heads Up in floating window [2/2]

Change-Id: I11766af8ecfe316b55bf27c12210a4e57f3b3bc4

Conflicts:

	res/values/custom_strings.xml
	res/xml/heads_up_settings.xml
HeadsUp: User configurable timeout (2/2)

Change-Id: I6c55636205237044891324f0dd855046aaafb256

Conflicts:

	res/values/attrs.xml
	res/values/cm_strings.xml
Completely integrate HFM into Settings [1/4]

* Checks if hosts file is correct after completing boot (useful after updating ROM)
* One less package

PS3: a symlink is created instead of a copy + no need to reboot to apply change
PS4: reverted to copying file instead of symlinking
PS5: delete hosts file before copying to make sure to replace even an existing symlink
PS6: set correct permissions after copying

Change-Id: Ie221748a7f524414999fa0a49111a47a9a92c8a3

Conflicts:

	res/values/custom_strings.xml
	res/xml/dirtytweaks.xml
	res/xml/misc_tweaks.xml
	src/com/android/settings/Settings.java
	src/com/android/settings/du/MiscTweaks.java
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>
Change Search colors to match our design

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>
Active Display [2/2]

All credits goes to Clark Scheff (@0xD34D) for creating Active Display

Though this commit is a modification of -->
	https://github.com/DirtyUnicorns-KitKat/packages_apps_Settings/commit/a095b5a873ce3b362ea52c0318d2685a446190c8
which is authored by Alex-Cruz (@Mazda--)

Thanks!
Try: Disable AD if LSN enabled and vice-versa

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>
StatusBar settings clean-up

Merge battery icon style settings into statusbar fragment
Reorganize status bar settings

Gets rid of some code and well who needs a whole fragment for two listpreferences (wasteful)

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>
settings: properly count preferences in group

When the first preference in a settings preference fragment is a caterory, this method cannot
find the first preference of the group, returning an incorrect position.
xe: Lockscreen Settings -> Screen settings

Reason for that is that there's no way to differentiate 0 from -0. Fix
that by avoiding overloading integer semantics and clearly splitting the
result count from the 'was stopAt found' flag.

Change-Id: I68cfde27b9860246b1cc3671dfb35320c4ff3ea8
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>
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: Always show search on multipane devices.

    - Disable in more fragments for clean up.

Change-Id: Ia82f89ca8394e9d3dcf7dc80d2dfccdbe6fa9bc7

Conflicts:

	src/com/android/settings/Settings.java
Minor: Lockscreen Inferface Settings move-around

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>
[2/2] Remove QS Styling options

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>
Revert "AppCircleSideBar : Custom TriggerWidth (2/2)"

This reverts commit a189a22ed84ea4356ab295124f235c88a590046f.

Conflicts:

	res/values/mahdi_arrays.xml
	res/xml/app_circle_sidebar.xml
App Circle Sidebar: Support for Configurable Trigger Region[2/2]

Change-Id: I3a6ec82de4f330ad59a84fda2c6291f9af4c451a

Conflicts:

	res/xml/app_circle_sidebar.xml