SystemUI: calculate height for tablet status_bar_settings_view

Use the minimum height required for no scrolling. If that height
will exceed the device's display height, reduce it accordingly.

This removes the need for hardcoded height in resource file and
the use of overlays to adjust it.

Change-Id: I0a85f19c2619dedd70a3e686982e0c483f9e3d32
wifi: don't avoid poor connections if mobile isn't connected and avoid
NPE on wifi only devices.

Change-Id: I7dcbbe682ee69bc23b8d9fe8cbed49cab7cea04b
WebView: fix crash when moving cursor

Caused by http://review.cyanogenmod.com/20731 when the cursor is
moved while no text is selected.

Change-Id: I71d49f1a16271dd0b7a0b4930f04d33a64a69b49
am: Don't crash if cacheDir can't be created

 * Due to a bug in the multiuser code, it's possible for us to reach
   here by loading framework-res for a different user in which case the
   cache dir can't be created.
 * Add a null check to avoid the crash and subsequent lockup of AM.

Change-Id: I12f3a207d9fa0111286a67e29652f808ad5d9410
Merge "am: Don't crash if cacheDir can't be created" into jellybean
Update korean translation

Change-Id: Ie1a6022013fe4e81a4fb024c2cff4936b5a44bb9
es_ES: Added missing translations

Change-Id: I4fe35be55a563e4414fe0b1fa3de9a197d25c59e
policy: Fix vibrate setting in ringer toggle

The older getVibrateSetting() doesn't work anymore, use the
JB-introduced VIBRATE_WHEN_RINGING setting to figure out if the
user wants vibration or full silence.

Change-Id: I23f0282e797ec341583ad09d0b0f741bf4c2456c
Merge "SystemUI: calculate height for tablet status_bar_settings_view" into jellybean
Merge "WebView: fix crash when moving cursor" into jellybean
frameworks/base: Increase the buffer size to hold the whole content of the file.

When we have more cpufreq steps and cpufreq's time_in_state stats file
can grow beyond 256.

This buffer size was not enough because the file has more than 300
characters. So it read part of the file and the parsing failed.
This runs from ActivityManager, so when the ActivityManager dies
framework reboots.Increasing the buffer size will help use to get
the whole file into the buffer.

Change-Id: I3f95dc7534fdaf5e139966c0d1be8d79d6413a0f
Merge "es_ES: Added missing translations" into jellybean
Merge "wifi: don't avoid poor connections if mobile isn't connected and avoid NPE on wifi only devices." into jellybean
Merge "Update korean translation" into jellybean
Fix for updating TCP buffer size when switching network type

When PDP connects in GSM network, the TCP buffer window size is
set to max 8760. If the phone swicthes to UMTS, the TCP buffer
size is not updated to UMTS, i.e. GPRS buffer size is still
used with limited data transfer spead as a result.
This fix makes sure the TCP buffer size is updated when
switching network type.

Based off of (varible name change): https://android-review.googlesource.com/#/c/41612/

Change-Id: Idf19bca0b2eca218899aba68002d652b65070916
Merge remote branch 'cyanogen/jellybean' into jellybean

* cyanogen/jellybean:
  Fix for updating TCP buffer size when switching network type
  frameworks/base: Increase the buffer size to hold the whole content of the file.
  policy: Fix vibrate setting in ringer toggle
  es_ES: Added missing translations
  Update korean translation
  am: Don't crash if cacheDir can't be created
  WebView: fix crash when moving cursor
  wifi: don't avoid poor connections if mobile isn't connected and avoid NPE on wifi only devices.
  SystemUI: calculate height for tablet status_bar_settings_view