frameworks/av : Playing AAC and MP3 clips using LPA.

-AAC and MP3 clips are not playing.
-AAC and MP3 are not using LPA path.
-Enable LPA decoder path and implement LPAPlayer class.

[mikeioannina]: Adjust for android 4.4

Change-Id: I76438319fc72c4898fad5910f8de874f89287687
framework/av: Add Usb AoA v2.0 support

Add USB state.
Add support for LPA/Regular Track over AoA v2.0

[mikeioannina]: Adjust for android 4.4

Change-Id: Ica9c348a002bbdd66debb1a3355126deef000948
libstagefright: Convert mono to stereo for LPA clips

- Sound effects are not supported for mono clips
- Repetative calling of effects_configure and effect_process for
  mono clips is resulting in crash in the sound effects library.
- So, Mono clips are now converted to stereo by copying the left
  sample to right.
- This is same as what Resampler does in Non-LPA Playback.

[mikeioannina]: Adjust for android 4.4

Change-Id: I789cd33ea1bc5b8f2a0d69b3b5ae55adb3b79cd1
CRs-Fixed: 446016
libstagefright: Stability issue with LPA play back.

- ANR is observed during LPA playback when there is song switch for
  every few seconds
- The song switch does not happen when the song is played till the end
-Avoid creating threads and calling reset if lpa start fails.
Initiate audio sink mutex before using it and return immediately
from setupAudioSink() in error cases.
Also remove unwanted code related to a2dp thread in lpaplayer as
no such thread is created. Make decoderthreadAlive variable false
before returning from decoder thread.
Update mInternalSeeking in pausetimeout to make sure source is
updated to the timeplayed before pause and resumes at correct position.
During onPauseTimeout if resume is issued even before closing
the LPA driver, causing decoder thread to wake up and trying to
write data. When decoder thread trying to write data LPA driver
is closed as part of the pause timeout.Synchronize these two functions
using a mutex to prevent concurrent execution.
Mono clips are now converted to stereo by copying the left
sample to right.This is same as what Resampler does in Non-LPA Playback.
This is to avoid crash in the sound effects library during repetative
calling of effects_configure and effect_process for mono clips.

[mikeioannina]: Adjust for android 4.4

Change-Id: If1652db80624a888924da22d690b2a34e176cb0e
CRs-Fixed: 463272
libstagefright: LPA playback fails when non-LPA clip is next clip

-When non-LPA clip follows an LPA clip in Music App,
 playback of LPA clip fails.
-setNextPlayer causes the loading of decoder omx component
 and acquires the DSP resources for non-LPA clip, even before
 LPA clip acquires DSP resources.
-Add property to check if hardware decoder needs to be overridden.
 If LPA is in progress, the select software decoder for next
 clip.

[mikeioannina]: Adjust for android 4.4

Change-Id: I0e40fa9859faf84f241e721cdbcb88302c698b8b
libstagefright: Various build fixes for legacy LPAPlayer

Change-Id: If2e1a2e72424c7551317a5b7054ff1919a338f20