frameworks/base: Fix for LPA volume change with headset

- LPA volume is set without checking the output type
- Set LPA volume only when the output is LPA.

CRs-Fixed: 373975
(cherry picked from commit 9ef83a9038a76ef199bae9e5f1ad69da822b8af4)

Change-Id: Id2b6b2002231164b5622c4a71e2214b5b9a82836
Telephony: Add missing HSPAP network type

Change-Id: I623cf09a9fe9f4e8eabd1c6ab3966303f6786d7b
Roboto: Fix for Unicode Character U+1EE1

LATIN SMALL LETTER O WITH HORN AND TILDE (U+1EE1) looked like
LATIN SMALL LETTER O WITH TILDE (U+00F5)

Change-Id: I4916514e2dc8dfd665b174023fae26a8a61790e3
libstagefright: Fix crash when parsing corrupt h.264 clips.

- Fixes an arithmetic overflow when parsing h.264 clips that contain
corrupt NAL lengths.

CRs-fixed: 355571 375153
(cherry picked from commit dd5d1621a27d086542211cb80a80b2cdc8431d8f)

Change-Id: I5b87ea15edfdcc0bae0c7f7c1280b4ad780619f4
Camera parameters for 7x30 blobs.

Change-Id: I8ad09bfad0cc372a56a99e3dad0ef5988441d7ea
libstagefright: Fix for native crash in Awesomeplayer

- While playing an audio-video clip, audio player
  start fails which leads to crash in OMXCodec destructor
- Before start of AudioPlayer, AUDIOPLAYER_STARTED flag
  is set to true. But if start fails, this flag is
  not reset back. Due to this in Awesomeplayer reset,
  it directly calls the destructor without calling
  OMXCodec stop after checking this flag.
- Add change to set the AUDIOPLAYER_STARTED flag
  only if audio player start happens successfully

CRs-Fixed: 365727
(cherry picked from commit 6c5758dc0afd05eac7cce9058255192ff9c62da4)

Change-Id: Iea3364c9468ad4ff80d05a1ee6c9a0c9b4ab58f6
libStagefright:: Provide interface to query current offset position

- Currently the streamport is querying same getSize for get current
  offset. Since this info is needed by parser to decide if sufficient
  data is there before requesting for the same. But in case of data
  length and size coming zero the same is passed to the parser which
  assumes that there is no data with the data source and it errors out.
- To resolve this issue new interface is created to pass the current
  offset length which indicated how much data is read till now.

CRs-fixed: 374040
(cherry picked from commit b63c05684432f3bcc62c6cb002634bd55919936e)

Change-Id: I1d2289cc6bbe1ded89751e77d21a3bdd3f57f0b9
Fix SurfaceView notifies on invalid surfaces.

SurfaceView notifies registered callbacks on invalid
Surfaces.

Change-Id: Iddc9a5cd073fb73a0e7e9b9ca64ff4fac0777ca7
Corrected typo when checking InputStream methods

Corrected a small typo where Java InputStream methods are
incorrectly checked when creating a JNI InputStream adaptor.

Change-Id: I5f14897e0d5ddceb4b2af6be46769713f0487624
Return early when checking divider before child zero.

Previously the `getChildAt` method would be called with an index of -1 which
would lead to an exception being thrown and caught. This is unnecessary since
we know there will never be a divider before the first child. It also avoids
additional object creation since this method can be invoked quite frequently.

Change-Id: Iab44520d5d52f96a829a009cdd1201696edbf9a4
Add shortcut to avoid potential divide by zero in some case

Change-Id: If4b34c95402daf8ebcc28736edfb2012553aa57c
Fix wrong count return for getPhoneSignalStrengthCount

Test report for the time spent in each signal strength bin, along
with the number of times that bin was entered showed the result
as Bin=3 Time=3211926000 Count=0. With a non-zero Time, the Count
value 0 was wrong.

The cause of the problem was that getPhoneSignalStrengthCount() used
mPhoneDataConnectionsTimer, instead of mPhoneSignalStrengthsTimer,
to get the count.

Change-Id: I55ac1125abfcfdc105605d76d1c706ac315b90cc
Adds missing Bluetooth as network type.

The network connection type for Bluetooth is added so
that it is possible to use Bluetooth as Hotspot during
download from the Internet.

Change-Id: If8e8a3f69821beef742bc91d7a292a091861b48b

Conflicts:

	core/java/android/app/DownloadManager.java
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