Dont show "Erase SD Card" when there is none

On devices with physcal, external SD Cards, the "Erase SD card"
option in in Settings/Storage is available even when there is
no SD card present, this dont make much sense since you cannot
erase a card that is absent. With this change the erase option
is bound to the mount toggle which leads to the following
consequences:

 Card present and mounted -> Erase enabled
 Card present but unmounted -> Erase enabled
 No card present -> Erase disabled
 Card present and MTP attached -> Erase disabled

Change-Id: I756ae8af3e0565febaf940df5f4991dd89105bd9
Fix elapsed time formatting.

We should extend DateUtils to provide this kind of elapsed time
formatting via icu4c, but for now let's at least fix our
arithmetic.

Bug: https://code.google.com/p/android/issues/detail?id=61479
Change-Id: I6c087dbb9fdbff0a21d9243d239126fee180454c
Settings: Minimum Vibration Duration (2/2)

PS2: Remove from devices without vibration
PS3: Get correct value on re-entry.

Change-Id: I37238cf08141061bcca392e7deacfc0be23c3120

Conflicts:
	res/values/liquid_strings.xml
Settings: reorder app security to top

app security is for ppl a very important feature so it should not be the last
one. Reorder it to the top, after that screen security, after that all other ones

Change-Id: I6ea024970bf910ec8108ab0a959ded159d111049

Conflicts:
	src/com/android/settings/SecuritySettings.java
Bluetooth: Don't set a null alias before unpairing

* This causes the unpair action to throw a null pointer exception and
  bring down the Settings app. Don't do this.

Change-Id: I0c60437f5ea934385a037a464743e24c9d341aca
Fix null pointer exceptions in NetworkPolicyEditor

This upload fixes a null pointer exception issue.
After this fix the modified methods return
their corresponding default values instead of null.

Change-Id: Idb94f8b808b8dd18be5e3fc92cc5560ce0f81c4f
Settings: Custom Tiles (2/2)

PS1: Reinvent logic from initial
	implementation
PS3: Unlock/Collapse Shade options
	and clean-up.
PS4: Remove unlock option.
	Too complex for average use.
PS5: Snip >100 line length =/
PS6: Fix potential NPE on rotation.
	Add scrollview to layout
	to allow scrolling if dialog
	is too large for screen
	(landscape)
PS7: Rebase on Fix tile index
PS9: Add reset buttons
PS10: Cleanup:
	Smaller and better looking
 	code by creating array
	buttons to reference.
	Rearrange voids to logical
	spots.
	Set image source rather than
	background for reset buttons
	to allow touch-highlight.
PSX: Create dependency

Change-Id: I06d773aa87bd6c1b88077ad54333a58d03f783c8

Conflicts:
	src/com/android/settings/liquid/quicksettings/QuickSettingsTiles.java
	src/com/android/settings/liquid/quicksettings/QuickSettingsUtil.java