Telephony: Allow use of BearerType in Dual-IP retry

This change accomdates the use of bearer type when configuring APNs when
Dual-IP partial retry is required. Before this change, there cannot be
multiple APNs with bearer type as the differentiator.

Important note:
Dual-IP partial failure retry will only occur using the same APN on
which the original data call was established. For e.g: if LTE-APN and
EHRPD-APN are both configured as the default APN and the UE originates
the initial call on LTE-APN and then goes through multiple IRAT
handovers, any partial failure retry will take place on the LTE-APN.

CRs-Fixed: 343088
(cherry picked from commit 0cc44e8ac1b32b44e624bc19f67aaf6b02455f37)

Change-Id: I57440ee9c337370789ce6d12bf4b0a1c5b430892
frameworks/base: handle supplicant termination in p2p modes

In p2p mode if supplicant terminates,

 -reload wlan driver
 -restart dhcp server, if in go mode
 -restart dhcp client, if in client mode

This is to start p2p sessions in a clean state after a fatal
error, that required supplicant to restart.

CRs-Fixed: 337607
(cherry picked from commit 9baa04cb32ac2128ed520e5a8c4eb13e6fc50a1f)

Change-Id: I00882e512a21ef743cacb00401383e0c8dba50cf
moar lockscreen cleanup
add honeycomb lock
Revert "Show low battery percent on lockscreen"

This reverts commit def10fda90756f03494a9d39e490dd2b52d06707.

Conflicts:

	policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java
honeycomb/aosp layout fixes
include low battery percent with lockscreen percent option
switch these
libstagefright : Fix for clips with Corrupt NAL length
libstagefright: Added aac decoder secure component.

- For secure buffers usecase, aac audio component also needs
  to be secure.
- Added secure aac decoder component to kComponents.

Change-Id: I78a8a7f6d9e1f07040e7fbaeb114cefd8813ff5e
libstagefright: Increase input and output buffer size for sw aac component

- Increase input and output buffer size for sw aac component.
- This is required for playback of httplive streaming scenarios
  where an accessunit contains aac data larger than provided
  input buffer size.

Change-Id: Ic461067cf7b81363e833e912dd0ddbec73188ec1
ibstagefright: Fix for av sync issue with tunnel audio
httplive: Fix in handling seek & update logging
frameworks/base: Fix for video playback failure in browser

- Issue: After camping the Signal to 3G network, open the browser
  and go to www.youtube.com and play any video. Video playback is
  failing after trying to load the video for few seconds. Browser is
  coming back to video's list.

- Cause: At the beginning of playback, as there was a seek request
  pending, seek is done before starting the AudioPlayer. After
  AudioSource seeking, AudioPlayer start is called with OMX in PAUSED
  state, causing assert check fail for OMX state.

- Fix: Call AudioSource start before calling AudioPlayer start, so that
  OMX moves to EXECUTING state.

Change-Id: I4e746bf0b5167d4998fd900bbce3966a2dc1273d
CRs-Fixed: 327929
libstagefright: Set AAC Input buffer size for httplive streaming

-High bitrate URLs for httplive have large aac input frame sizes.
-Set httplive specific input buffer size for AAC format.
-Also,reverting an earlier similar change in sw acc decoder

CRs-Fixed: 330211
Change-Id: I6bc8d95cf71b835cf2db4aec9bd5ae2fb6b2032e
frameworks/base: Initial commit for tunnel mode encode

Initial commit for tunnel mode encode for AMRNB,
EVRC and QCELP audio formats.
- This change is merge of below commits:
commit 5a98184c78ad899bc318d8b594df6194adda09b7
Author: Haynes Mathew George <hgeorge@codeaurora.org>

libstagefright: Add QCELP/EVRC encode support

commit c67a26f4efa772bf0a45115e9c2941f2cbe957f5
Author: Y Mehta <ymehta@codeaurora.org>

frameworks/base: Add support for audio encoding for
	 amr, qcelp and evrc formats

commit 77ee267b7788a8b533c39736ecb88f8b80448535
Author: Haynes Mathew George <hgeorge@codeaurora.org>

libstagefright: Add support for tunneled audio source

Conflicts:

	media/libmediaplayerservice/Android.mk
	media/libstagefright/AudioSource.cpp
	services/audioflinger/AudioFlinger.cpp

Change-Id: Ibee25349773dfbcd730360c8b3313565d3ad3a85

Conflicts:

	media/libmedia/AudioRecord.cpp
	services/audioflinger/AudioFlinger.cpp
frameworks/base: Add rendering statistics to Stagefright (Adapted)

Conflicts:

	media/libstagefright/include/SampleTable.h
Do not check for framerate.

HTC Camera sometimes reports the wrong framerate (31<>30).

Change-Id: I590c8ec910935af91d8b5aaae72fcb0f9dd3f6ca
libstagefright: Fix to handle corrupted .m4a clips

- Some m4a clips with corrupted header causes native crash
  in mediaserver.
- This is due to a wrong sample size which had to read from the clip.
- Fixed this by checking for the sample size extracted from the clip
  against the mediabuffer size.

Change-Id: I0e8694c4860f0d32c5aca14e583be8a654f5a98f
CRs-fixed: 298469
libstagefright: Fix to handle corrupted AAC clips

- AAC decoder was returning SUCCESS by default unless
  the state is changed to ERROR.
- For some cases, where the clip is corrupted, it will
  return SUCCESS even though it has not decoded anything.
- Fixed this by initializing the state to -1.

Change-Id: I6eb8ff3cac75435e355680b4e5fe148348d57a16
CRs-Fixed: 284827, 285631