Settings: fix storage measurement for device without emulated sdcard

StorageMeasurement: misc files should only be measured for internal
storage only if it is the emulated storage, otherwise misc count
for the primary storage will be erroneously duplicated on the
internal storage count.

StorageVolumePreferenceCategory:
  - Always create mMountTogglePreference to avoid null pointer
    exception for code that relies on it existing
  - Check if the keys exist before calculating totalValues to
    avoid null pointer exception on storage where media is not
    calculated
  - For available/readonly, set title, not summary (summary is
    supposed to be the amount available)

Change-Id: Ib217f79ee562dffc514696fff038e58ed0dba7d9
Settings: Forward port Kill app back long press

Original author: DaneshM

Change-Id: Ide8be24d679d0b3d74bf56b33696dc279de49470
Merge "Settings: fix storage measurement for device without emulated sdcard" into mr1-staging
Settings: Fix NPE when CM IME switcher is disabled

Change-Id: I8c1dc5874accc6d1340dc46a58867d97f708aeb7
Settings: Move font size back to AOSP location + System settings cleanup

Change-Id: I37e8dc686e03bdcb732785e8f077ab79bb88bb6d
Settings: Move Notification and Battery light settings to System settings

In an attempt to make the LED settings more discoverable, move it from
Display to System settings.

Change-Id: I374cdd08f330ff367405d204b5eb073efa98f04d
Settings: Make Perf settings act just like dev setting - start hidden

The Performance settings should not show until the owner of the
device enables development options, guest users should not be able
to turn it on.

Change-Id: Ib08d29bfd92ad44c71d02c115e12064ddf4704e0
Settings: Default the old CM Power widget to OFF

THe Power widget functionality will be replaced by the new QuickSettings
functionality of Android 4.2.  Turn the old CM widget off by default.

Change-Id: I9144130898aff1fb9f882aaf68a3b0873742f3d6
Settings: Fix Swedish translations

The translation of "Time on" to "Tid funktionen varit på"
is too long. The result is that it covers the actual counter.

(Fix for issue 23804.)

The translation of "Not in range" to "Inte i intervall"
for wifi_not_in_range is a literal translation. When
talking about range for a radio signal, the correct
Swedish word is "räckhåll".

(Fixes issue mentioned in 22608.)

Change-Id: Iecf2acdd1acf8831c3f71d6f16cb17be5ce90d75
Use holo alert drawable

These instances of the GB icon got missed in the big feature merge.

Change-Id: I4725be79af6e51e1aa5d575a32232bbac0a11275
Merge "Settings: Fix Swedish translations" into mr1-staging
Power menu: allow enabling user switcher

Change-Id: I6a8d2e25beb1c4def60a7cee440df0fb66f169b1
Settings: Forward port missing Profiles related changes

Change-Id: I3cda345208171c5b45daf2d5d263017bc538bd48
Developer Options: launch the Development app

Change-Id: I0f798d197888ef7f40688009536040e061c410f4
PowerWidgetUtil: Re-enable LTE button.

- Also use Settings.Global.getInt() for PREFERRED_NETWORK_MODE.

Change-Id: I677de6353bf451fe4390ff74f9703b5df3beb39d
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
	res/layout/apn_preference_layout.xml
	src/com/android/settings/ApnEditor.java
	src/com/android/settings/ApnSettings.java
Merge "PowerWidgetUtil: Re-enable LTE button." into mr1-staging
Merge "Apn settings fixes / code maintainence" into mr1-staging
Settings: Forward port ADB over network (Part 1 of 2)

Squashed commit of:
- Adb over network (Settings part for Jellybean)
  + Display WiFi IP Address & Port as preference summary.
  Note: adb_over_network were already pushed in 5555aae3
  Author: Tanguy Pruvot
  Id: Ia05aa8f6281c9bdcb3d5e62566b103c38bc70b82

- Settings : Fix mismatched dialog listener
  Set listener on correct dialog
  Author: Danesh Mondegarian
  Id: I0c05af859ad0e93ba6a1d3d395dc6c31e9949426

- ADB: missing dialog dismiss, and use updateCheckBox()
  this function check if debug features are enabled.
  Author: Tanguy Pruvot
  Id: I675a3a9ce5c28b16f9e13e78499e5f6f897b9dd3

- DevelopmentSettings: Refactor ADB over Network
  The checkbox would never enable adbd in tcpip mode.
  Author: Alexander Hofbauer
  Id: Iab8307bb91f69d85ed3a46d5ef09274fa8b03da

Change-Id: I6ff367cfd1bbf1db9b4862d3c5e8215959609e61
migrate vibrator to silent mode settings (2/2)

Change profiles:
* remove deprecated vibrator settings
* add silent mode settings

Available modes:
* off
* vibrate
* silent

Patch Set 1:
Initial patch with plain ListPreference

Patch Set 2:
Use Checkbox + Dialog like ConnectionSettings

Patch Set 3:
Rebase

Change-Id: I227f8b00f8dc17f06c8de6716c0f34b2faf82e2c