SamsungQualcommUiccRIL: use signalstrength value instead of # of bars

  * Math error in GSM level calculation gave high probability that 4
    Samsung bars would be shown as 3 AOSP bars.
  * Samsung sends # of bars in the signalstrength field of GSM and LTE,
    indexes 0 and 7. But this is on a 0-5 scale where AOSP uses 0-4 scale.
    The cutoff points for the bins are also different. Because of this
    confusion, just pass the measured signalstrength to the framework
    instead of computing signalstrength based on # of Samsung bars.
  * For debug and experimentation, Samsung's bar method can be enabled
    by setting telephony.sends_barcount=true

Change-Id: I8238af83f3a597b32eb99f42c71cbc263ad5bc82
Tablet powerwidget improvements (1/2)

Removes a lot of unecessary code, and does not limit toggles by 6 but dinamically adds the views to layout

patchset 2: remove tab

Change-Id: Id125605791d2de353e7466c4dfe135c32fb80df6
fix automatic timezone failing on some GSM networks

in the code that parses the NITZ string, someone made the assumption that if
any data follows the DST flag, it must be be the android emulator appending
an actual timezone string in "Area!Location" format.  However, it seems that
some carriers or perhaps in some locations, the carrier sends an additional
field in the NITZ string.  For example, this is a string from AT&T:

12/07/01,09:37:43-16,01,310

The extra field is "310" above.  This patch will only assume that the field
in question is a textual timezone if and only if it contains an exclamation
point.  Otherwise, the extra field is ignored and the timezone is parsed
as it should be.

Change-Id: I6cc4278027a6de5545d76b803f5359923e60878a
Signed-off-by: Gary Dezern <garyd9@gmail.com>
Add SamsungCDMAQualcommRIL class for CDMA Galaxy S III family based on msm8960.

* Samsung CDMA RIL doesn't send CDMA NV in RIUM infomation format which causes
the CDMA RIL stack to crash and end up not being provisioned.
* Samsung put CDMA NV in GSM format. I forced the RIL stack to process CDMA NV
request as a GSM SIM in CDMA mode.
* Fix hangup bug, force drivercall class not to crash due to a malformed
response from ril. I suspect samsung rom ignores that. --FIXED properly JULY 3RD
* Workaround for signal strength.
* Properly fix drivercall which caused a regression in the previous attempt to
fix driver call because the ril is giving another request for videocall
infomation and causing drivercall to crash.
patchset 3, 4, and 7: Cleanup whitespace
patchset 8: wrapped commit message
Change-Id: I733a635edc645f4e7952083008e7eca12d7af015
Make Status Bar text white
input: add keymapping and handle www/com key for keypads in ics

Based off of this commit, updated for ics:
https://github.com/CyanogenMod/android_frameworks_base/commit/ebb5e47760cc156fba6d6a93ad0dfaeb562f4771

Allows keypads to have custom keymapping, and brings back www./.com key
function

Fixed: Corrected all wrong entries to api/current.txt,
including for those that already passed gerrit review
@hide used in java for all non aosp api

Change-Id: I0ffb35dae441e3ef7a4924492cc9168939551d3f
Disable touch while using the stylus (Galaxy Note)

Android 4.0 cannot form multitouch events from multiple input
devices. So it is not possible to report one touchpoint from the
stylus position and, at the same time, another touchpoint from a
finger touch. Instead, when a new input device starts up the currently
active input is cancelled. This is highly undesirable while writing
with the pen.

The easiest solution is to ignore non-stylus touch events while the
stylus is within range (hovering) of the touchscreen. For example,
N-trig digitizers implement this in hardware. But wacom digitizers do
report pen data simultaneously with touch data. This patch disables
(non-stylus) touch input within 50ms of stylus data. On my Galaxy
Note this is necessary to make stylus input usable.

Change-Id: I9f458d85d8bf83d6cf03b467d46ce066fd55b7e0
Merge "Add SamsungCDMAQualcommRIL class for CDMA Galaxy S III family based on msm8960." into ics
Merge branch 'ics' of git://github.com/CM9-D2G/android_framework_base into ics
Merge remote-tracking branch 'upstream/ics' into ics
[WFD]: Added MPEG2TSRTP o/p format type & PCM encoding type.

Description: MPEG2TS RTP output format support is required for wifi display
AV streaming. PCM format is added for capturing raw PCM data.

Change-Id: Ic6bd929d4f849c6e674082d75d4a8ce1181c0d34
Signed-off-by: Santhosh Behara <santhosh.behara@ti.com>

Conflicts:

	include/media/mediarecorder.h
[WFD]: Add API in mediarecorder to setparam at any state except error

Description: WiFi display requires to set media recorder parameters at any
media recorder state except error state.Added new function setParametersExt
which allows setting recorder parameters at any mediarecorder state except
error state.

Change-Id: I7add6b916712aa4c635fb63d8d42693bda053b8b
Signed-off-by: Santhosh Behara <santhosh.behara@ti.com>
[WFD]: Changes in Stagefright for wifi display support

Description: Changes in stagefright to support
1. MPEG2TS RTP writer
2. new parameters for mpeg2tsrtp writer
3. makefile is modified for inclusion of
header file and library.

Change-Id: Iab964a1e4e1f6657693a7cc9679c2fc0ccb748eb

Conflicts:

	include/media/stagefright/MetaData.h
	media/libmediaplayerservice/StagefrightRecorder.cpp
[WFD]: Enabled PCM recording for wifi display support

Description: Changes in stagefright to support
PCM format for audio encoding in Wifi Display.

Change-Id: I92f505e453e58ebcb3398a161389af0ccc20312e

Conflicts:

	media/libmediaplayerservice/StagefrightRecorder.cpp
[WFD]: Reduce WFD latency by draining i/p buffer as soon as available

Description: Setting kOnlySubmitOneInputBufferAtOneTime ensures that
OMX Codec will drain input buffer as soon as its available.

Change-Id: I25ed94691783dcfaf04239d2c3334114ca3ef5f4

Signed-off-by: Santhosh Behara <santhosh.behara@ti.com>
[WFD]: Enable constant bitrate control for encoder

Description: Streaming use cases like wifi display would need
constant bit rate control to control jitter while sending the
packets over network. This patch configures the H264 encoder
for constant bit rate control and setting a min/max range for
the avg encoded frame size.

Change-Id: I14a5395f2746d4f9a1c326a0b1b26bb745140c10
Signed-off-by: Santhosh Behara <santhosh.behara@ti.com>

Conflicts:

	include/media/stagefright/OMXCodec.h
	media/libstagefright/OMXCodec.cpp
[WFD]: Add SPS/PPS with every IDR frame for WFD use-case.

Description: Add SPS/PPS with every IDR frame for WFD use case.
This will help in case of streaming use cases if initial IDR
frame is lost.

Change-Id: I04573248da5a2d946a2fb30badf3af797bd84478
Signed-off-by: Santhosh Behara <santhosh.behara@ti.com>
Merge "input: add keymapping and handle www/com key for keypads in ics" into ics
Merge branch 'ics' of git://github.com/CM9-D2G/android_framework_base into ics
input: fix recents opening when waking the device with the home button without lockscreen

Contributed by Andrea Arcangeli <andrea@cpushare.com>

Change-Id: I8fe581ae51b38b65540eaefba6c051101fd63021