libeffects: Fix header path for webrtc update

Change-Id: I8a427d293c0f17290a7cee0e38c11db2a458c128
telephony: neighboring cells are now handled properly

GsmServiceStateTracker.java sets the System Property
PROPERTY_DATA_NETWORK_TYPE = "TypeName:RadioTechnology"
for the current network type (ex. EDGE:2 or HSPA:11).

When neighboring cell info is sent to responseCellList() in RIL.java,
the routine compares PROPERTY_DATA_NETWORK_TYPE to just the TypeName
(without the :) and can not find a match.  It defaults to
NETWORK_TYPE_UNKNOWN and does no interpret the location.

This patch splits off the string part of PROPERTY_DATA_NETWORK_TYPE
so a proper match is found and the location is interpreted.

Also HSPA+ (HSPAP) is added as a valid match.

Patch compiled and tested on HP TouchPad 4G.

Change-Id: I223db80d6c4a7791300e299826aa316854738d5c
RIL: fix protocol mismatch for DataConnectionState_v4

The apn got dropped in DataConnectionState v4.

Avoids UnknownHostExceptions in DataCallState.setLinkProperties().

Change-Id: Icd0a1ba1c77cead13b15b3749965edead5f59135
ProcessStats: Fix another crasher

Prevent occurences of:

java.util.NoSuchElementException
	at java.util.StringTokenizer.nextToken(StringTokenizer.java:208)
	at com.android.internal.os.ProcessStats.getCpuSpeedTimes(ProcessStats.java:574)
	at com.android.internal.os.ProcessStats.getLastCpuSpeedTimes(ProcessStats.java:546)
	at com.android.server.am.ActivityManagerService.updateCpuStatsNow(ActivityManagerService.java:1676)
	at com.android.server.am.ActivityManagerService.batteryNeedsCpuUpdate(ActivityManagerService.java:1728)
	at com.android.internal.os.BatteryStatsImpl$MyHandler.handleMessage(BatteryStatsImpl.java:129)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1431)

Change-Id: I66f30739455dd726b708467f814f53c445f327b2
Remove Alarm_Classic.ogg to fix duplicate ringtone

BUG: #103
http://code.google.com/p/aospx/issues/detail?id=103

Change-Id: I1fa71002b84840a0d33de7a42dbd38b2cb763b70
Services: Adding HSPAP info in Android

HSPA+ management is missing in GPS Loc service.

Change-Id: If828c1b078d5989f501c3eb917a573a6db773453
Author: Arun Ravindran <arun.ravindran@intel.com>
Signed-off-by: Arun Ravindran <arun.ravindran@intel.com>
Signed-off-by: Regnier, PhilippeX <philippex.regnier@intel.com>
Singed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 41786
Fix error trap in SurfaceTexture Client

There was an issue in Surface::lock where failure to lock a surface
resulted in two bad things happening:
- success was returned to the caller (it was apparently locked).
- an uninitialised pointer was returned as the buffer.

Change-Id: I8b0df81400e0fa0542a8bb993d76923ac96b686e
Turn off "too slow" logs.

Author: Dianne Hackborn <hackbod@google.com>
Change-Id: I6ec306ca1c55226269c4644a869a984c4fa00f0d

Okay now let's really turn it off.

Author: Dianne Hackborn <hackbod@google.com>
Change-Id: Idda3c13339a6a29a300555d31e67219c9af4ae68
libstagefright: Use LOG_BASIC when use chromium http stack

When using chromium http stack, the LogLevel is LOG_ALL, and
in chromium_net, LOG_ALL will HexEncode all received data. thus
playing a 10Mbps 1080P video stream  will generate 20Mbps Hex Buffer
for event logging. This is a heavy operation for logging.

Change-Id: I28e8173e1aa806dd23014378d530d30187360060
Author: Xuefeng Deng <xuefeng.deng@intel.com>
Singed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 35737
SystemUI: Add support for HSPA+

Add the ability to recognize HSPA+ by creating a separate case for HSPAP and
include new H+ icons.

Change-Id: Id06a192efc3ff82ef53b52d43bda4979aff73c97
Signed-off-by: Bajee11 <bajee11@gmail.com>
Minimize the amount of data uploaded to draw text

Change-Id: I6313ac039291c9cd93aadafe3566ad9d60cab42d
framework: fix bug for uninitialized variable

Some application display error due to uninitialized varibale.
This patch fix the bug

Change-Id: I660169e325ffae60d95c7774aaaeaebf693adf3d
Author: Chang Zhou <chang.zhou@intel.com>
Signed-off-by: Chang Zhou <chang.zhou@intel.com>
Signed-off-by: Chong Xing <chong.xing@intel.com>
Signed-off-by: Hongyu Zhang <hongyu.zhang@intel.com>
Singed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 45356
libstagefright: Fix to avoid read in non-EXECUTING state

- Performing fast pause-seek-resume-pause operations, results in
  OMXCodec read in non-EXECUTING state. OMXCodec read returns error
  if it is invoked in non-EXECUTING state.
- The cause for the issue is, fillBuffer call back comes from audio
  sink, at the same time a pause is issued. While processing the pause
  request, OMXcodec read is issued from fillBuffer. This results in
  returning error from OMXCodec read, as it would be in PAUSED or PAUSING
  state.
- The fix is to check for the mSourcePaused flag before calling
  OMXCodec read. This flag is set to TRUE when pause is issued.
  When the flag is set, read is not called and fillBuffer return 0 bytes
  to audio sink.

CRs-fixed: 378390
(cherry picked from commit bb7e6ccb05f2e1c5910d421dfefd482a28b6efd9)

Change-Id: I089a697498021da857638fa6e921a4f09c1112ec
libstagefright : Fix for crash in specific AVI clip

- If mVideoSource is NULL, then setting of 3D attritbutes results
  in an user space Crash. The change prevenets setting of
  3D attributes when mVideoSource is NULL.

  CRs-Fixed: 377401

(cherry picked from commit a8b1d4c9ee8585b924670222dabade16261fe192)

Change-Id: Ib0d90579bee8a21f2109f7b66a1339a5ba8898e8
MPEG2TS: graceful exit if PID changes in b\w playback

- When PID is changed in b\w playback, crash is observed in
  media server thread
- This is because even error is return from parseProgramMap
  it is not checked.
- Check the return status from parseProgramMap, send true
  only if return status is OK

CRs-fixed: 376591
(cherry picked from commit 4104c4be5b82d3c21599af99285346ca6db1091e)

Change-Id: Ife1a5d083b3520cab72a761d8a6fb407c470e6ab