A tiny optimalization

Change-Id: Ib2cb773ffe5cb579c2b46bd0e6a5a3f2c55d190d
Return error upon attempt to use non-existent APN

startUsingNetworkFeature will ignore errors from
reconnect - causing ConnectivityService to send
faulty information back to requester.

Change-Id: I4e0fcc1addd84da409cdc1eed1a95d25d925e020
Fix DateUtils.formatElapsedTime.

More reuse of StringBuilders, less broken home-grown formatting code.

Long-term, we should hand this over to icu4c, but they're not ready yet.

Bug: http://code.google.com/p/android/issues/detail?id=41401
Bug: 7736688
Change-Id: Ib3c1e1aad05827df646aa18645cce19dffb7551f
avoid crashing system serer process

Context#unregisterReceiver will throw IllegalArgumentException
if the receiver has already unregistered.

In GlobalAction class, when SilentModeAction is changed, it will
close the dialog with some delay. So there is a possibility
that it would unregistere again for the same receiver if a user
changes slient mode againand again. System must not crash in such
a case.

Change-Id: I33662feb48a770d39a8413901ec77ac1acd16bc7
Remove unnecessary locking for screen broadcasts.

The actual handling occurs in updateScreenOn() on the other side of a
handler, which acquires the lock correctly.

Change-Id: Ibd359446dba8e88f81d34f1e10a6b5e150348f89
Revert "Patch Set 1/2: Add an "Automatically Connect" option for WiFi networks"

This commit breaks 3rd party apps like Tasker.  It is being reverted until a better solution can be found.

This reverts commit 19c7d4995a554bc26a17b55f481193c435d30560

Change-Id: Ie279aab8f52bd30dc21dbc70040fb3bd23721e33
Wi-Fi: Ping the driver for wifi-only devices

Wifi-only devices are not capable to find APs with hidden SSID unless a DRIVER COUNTRY command
will send to wifi driver. This change has:

- Send DRIVER COUNTRY command to ping the driver (to correct the seek of hiddens SSIDs)
- Save mCountryCode as uppercase because the wifi_countrycode_values array is in uppercase.
  Otherwise the preference will not be found.

Patchset 7: Rebase
            Do not set mCountryCode if country is null

Change-Id: Ie0f838aef07eaf683b713f7f0e46ff3c751523ab
telephony: set additional audioparameters for incall audio (1/2)

Change-Id: Icbf02a80f170559ad4a5d160ed254cbe81704df6

Conflicts:
	core/res/res/values/symbols.xml
Revert "frameworks/base: Increase Zygote preload GC threshold."

This reverts commit a2a65bcec91c9db6ed5255e4000da59b2ce29d0f.
Add support for external dock batteries

Allows the external battery status to be read via framework.

Change-Id: I1340071cecab8f1733e58e4f3ba0d304f861f311
frameworks: base: add storage_sd_dock_card string

* For Asus dock sdcards.

Change-Id: Ibe6336d4073e8e4f6c357b47bd980526a6789040
Set Default Navbar Alpha To Full Opacity
Merge git://github.com/LiquidSmooth/android_frameworks_base into liquid-jb
hone/PhoneStatusBar.java"

This reverts commit 429b2cc5d04b57343d34ad6f28ab45d57d13f76b.

Conflicts:
	core/res/res/values/config.xml

	modified:   core/java/android/os/BatteryManager.java
	deleted:    core/res/res/values/config.xml~
	modified:   core/res/res/values/strings.xml
	modified:   core/res/res/values/symbols.xml
	modified:   packages/SystemUI/res/values/config.xml
	modified:   services/java/com/android/server/BatteryService.java
	modified:   services/jni/Android.mk
	modified:   services/jni/com_android_server_BatteryService.cpp
	modified:   core/res/res/values/symbols.xml
Add support for external dock batteries

Allows the external battery status to be read via framework.

Change-Id: I1340071cecab8f1733e58e4f3ba0d304f861f311