Settings: correct kernel version display for all toolchains

The current regex assumes only one set of parethesis eg. (GCC)
many toolchains including linaro and googles gcc-4.6 eabi contain
two sets of them eg. (prerelease) (GCC) which borks the regex

This patch makes the regex less specific so versions built with any toolchain
should be displayed correctly.

Change-Id: I40de6b729c252e61953dfe1860a660a0e5b06b3c
Add preference for enabling root access (3/3)

 * Root over ADB is now disabled by default on non-eng builds
 * Requires support in su binary and adbd
 * Root access can be configured to use ADB only, apps only, or all

Change-Id: I132a35a31c676511db954ff19120fa6d3c795b23

Conflicts:

	res/values/arrays.xml
Add an option to change the device hostname (2/2).

This adds an option to modify the device hostname used
in ip resolution. This is useful when connecting to the
android device in a dynamic dhcp environment.

Change-Id: Ibc145b74036617248d4f33c6866cc9c8a8cc8974

Conflicts:

	res/values/strings.xml
Settings: Added cpu info and memory info to About Phone Settings

This is pulled from gingerbread. No code looked like it needed to
be re-done. This contains code from the following two commits.

shafty023<gameboy45@gmail.com>:
http://review.cyanogenmod.com/#change,1774

Keyan Mobli<persiansown@gmail.com>:
http://review.cyanogenmod.com/#change,1820

Patchset 2: Fix string constants
Patchset 3:
- Moved file paths to string constants
- Check for meminfo and cpuinfo files, if bad don't show preference
Patchset 4:
- Created variables for each operation.
- Wrote Long to print -1.
Patchset 5:
- Simplified and refactored
Patchset 6:
- Fix authorship herp derp
Patchset 7:
- Show only total memory, available memory would probably cause users to
  kill apps en masse.

Change-Id: Ib0550a5af515ae3a48481412c5c9c504cd80b743

Conflicts:

	res/values/strings.xml
	res/xml/device_info_settings.xml
	src/com/android/settings/DeviceInfoSettings.java
Settings: Port CM9 features to CM10 (WIP) (Part 1 of 2)

This commit includes most of the CM9 settings except for
 - Navbar settings
 - Development settings
 - Lock screen shortcuts

Known issues:
 - Not all feaures work yet - some framework commits needed

Patch set 4  - Fixes System settings FC
Patch set 5  - Adds IME Switcher config (Rick C)
Patch set 6  - Fix strings layout (Rick C)
Patch set 7  - Add Power Widget Settings
Patch set 8  - Enable Tablet Power Widget Settings
Patch set 9  - Add Chrome and Search to Lock screen shortcuts
Patch set 10 - Enable Vol wake

Change-Id: I1619e4df07a0a797da337231ac589933fd8b8565

Conflicts:

	AndroidManifest.xml
	res/values/arrays.xml
	res/values/strings.xml
	src/com/android/settings/Settings.java
	src/com/android/settings/cmstats/AnonymousStats.java
Fix Crash On Phones Without Navbar
Settings: hide SMP from kernel version

Correctly hide the "SMP PREEMPT" from the date line on multicore devices.
Does not break anything on single core devices

Change-Id: I6c9a3e54f79240a9b5790cfb26a2fd3aff3d3ea4
Settings : Fix profile force close

Don't reinstantiate mTabManager, otherwise previous reference to
container is lost and fragment manager fails to find the container view
upon rebinding.

To reproduce :

Open settings
Click profiles
Click to customize a profile/application group
Click on another preference in side pane (Display for eg)

Note : Only occurs in tablet view

Change-Id: I3996e2f5756bb6166cec391c2b180d4d72691e14
Adb over network (Settings part for Jellybean)

+ Display WiFi IP Address & Port as preference summary.

Note: adb_over_network were already pushed in 5555aae3

Change-Id: Ia05aa8f6281c9bdcb3d5e62566b103c38bc70b82
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Settings: Power widget settings cleanup

Patchset 2 - Switch to MultiSelectListPreference

Change-Id: Ie8e2920bd1ef7b7db6958a561dad742e25d97c8c

Conflicts:

	res/xml/power_widget_settings.xml
	src/com/android/settings/liquid/fragments/PowerWidget.java
	src/com/android/settings/liquid/fragments/TabletPowerWidget.java
Adb over network, fix the ui

the previous commit was merged a bit too fast...
Settings : isScreenLarge rewrite

Mimick how framework decides on screen layout to differentiate
tablets from phones.

Patchset 2 - Cleanup imports
Patchset 3 - Make the check more explicit
Patchset 4 - Rename isScreenLarge to getScreenSize

Change-Id: Icd90798ee7de62f5a1997820046608ea27e7835e
Settings : Fix mismatched dialog listener

Set listener on correct dialog

Change-Id: I0c05af859ad0e93ba6a1d3d395dc6c31e9949426
Kill app on long-press back key (Settings)

Change-Id: I3962ffa89208de0449a6fa883070138d2990d569

Ported from CM9
Fix NPE in InputMethodAndLanguageSettings

Commit 5555aae3 assumed mStatusBarImeSwitcher could never be null in
onResume().

Change-Id: I3bd5b7ecd9bfe9e1a69d553f70ecd3fc3d78c546
Processor.java: Fixes and Cleanups

1: Fix issue where Processor settings FC whenever one of the /sys/devices/system/cpu/cpu0/cpufreq/* files is missing.
2: Cleanup for better overview.
3: No need to add empty content to disabled/removed elements.
4: Do not start the current cpu freq loop if the files needed are missing.
5: Also add the check for missing or empty files in the 'onResume' part.
6: Disable elements with missing files rather than remove them to maintain the layout.

Change-Id: Ib0cc3b01cbce368e23530760e2d87eedd04ad10a

Port from CM9 to CM10
Patch set 2  - Fix == false and != false

Change-Id: I874571fa9095546f27c0b908c4cafa0a8d14e0f3
Apn settings fixes / code maintainence

Depends on : http://review.cyanogenmod.com/#change,13743

Cleanup unecessary resources and use global ones
  - This fixes the duplicate id issue currently causing apn's to be un-editable

Bring the ui aspect of the preference up to speed with ics
 - Use ics highlight / layout...etc
 - Use fragments

Patchset 5 : Remove theme for ApnEditor
             Use static access for variables
Patchset 6 : Launch apn editor internally as a fragment
	     Replace deprecated managedQuery with CursorLoader

Change-Id: I069415b29846f30665ce76e52f04115d1b65e455

Conflicts:

	AndroidManifest.xml

Conflicts:

	AndroidManifest.xml
Settings: Hide Electron beam settings until fw code is merged

Change-Id: I51d5330332fa4b0edeace1d5dbd07ba00537144a
Settings: Status bar cleanup

Make the Status bar settings screen conform with the Android Design
Guidelines.

Before: https://dl.dropbox.com/u/50993944/Screenshot_2012-07-20-18-16-18.png

Change-Id: I8619ff09db0ef7d95f3a48a381abbc16a78f5bb4
After: https://dl.dropbox.com/u/50993944/Screenshot_2012-07-20-18-25-27.png
Settings : Customizable lockscreen targets

Activity icon      : Prash
ShortcutPickHelper : Based on Danny Baumann's work from cm7

Patchset2   : credits
Patchset3   : Whitespace cleanup (Thnx dvtonder)
            : Make shortcutpicker flexible between activities/fragments
            : Switch to queryIntentActivities
Patchset4   : Switch to resolveActivityInfo
Patchset5   : Bring settings up to speed with ux (David Van Tonder)
            : Fix dissappearing icon bug
            : Fix npe on packages w/o activities
Patchset6   : Fix npe's on tablet
            : Modify strings as per request
Patchset7   : Cleanup
Patchset8   : Custom icons
            : New dialog for customization
Patchset9   : Switch to dynamic id loading (Reset required)
            : Fix icon dissappearing bug
            : Fix lockscreen reading saved values bug
Patchset 10 : Add icon pack support
            : Bug fixes
            : New activated drawables
Patchset 11 : Code cleanup
            : Limit icon size in dialog

CM10 Port
---------
Patchset 1-4 : Initial port
Patchset 5   : Revert to CM9 drawables
Patchset 6   : Replace isScreenLarge

Change-Id: Ida9d9e8c1bf5970456a61a6602639a4cc6461212