Preference to disable bootanimation for faster boot. (1/2 Framework)

On galaxys2 it went from 13s to 5s when enabled.

Change-Id: I89bdbc11a939544b9fb3cfc48d49892da473ef92
Tether: dont log as errors 'ignored' messages

Change-Id: Ib88f550e843c9c65ee982b6833b106f67fffdb01
ApplicationThread: Check interface before invoking scheduleLowMemory

Change-Id: I7fc88351599887e2643ded06f6946b27948f657c
MountService: unlink death notification when unregistering listeners

Change-Id: Ifc3212221a3ab30fa4d59b1b1388e96294257156
ConnectivityService: Fix to facilitate GC of FeatureUser

Change-Id: Ic41848446b1f69bf1a3f19e12e43f5e3cc8592fa
HandlerCaller: Fix to remove references in recycled args

Change-Id: I8ec735a0deafe6a9e0a6849453f8e8a3586c083e
Check for strongCount of Surface to avoid double delete in ~Surface()

After binder transaction, keep a check for strongCount of Surface to
avoid creating a sp<Surface> with a surface which is being destroyed
because it will lead to double delete in ~Surface() when it goes out
of scope.

(cherry picked from commit 3f69147188d0ba2607dab084fc04117f5d02d5c7)

Change-Id: I4f67670ac81752113a48200a85ccef4737f25ce7
libstagefright: Fix out of bounds error for H264 software decoder

If decoded clip's level is 1.0, InitDPB() and AVCConfigureSequence()
compute different number of frames (num_fs) to allocate.  InitDPB()
holds an extra frame if num_fs is 1, where as AVCCS() does not. Since
InitDPB() sets the state and AVCCS() allocates the buffers, num_fs - 1
buffers will be allocated.  During decode, we'll attempt to access the
num_fs-th frame which will be out of bounds.

This fix sets AVCCS()'s copy of num_fs to be same as whatever InitDPB()
computes.

Change-Id: I4bb5afdb4750084f0737878445f59842cd22a6f7
CRs-Fixed: 276145
libstagefright: Reset the decoder while  performing seek.

- Observed noise when seeking to beginning of file for the recorded AMR clip.
- While performing seek, the AMR decoder states are not being reset. In AMR decoder, the current frame
  output is predicted using the states from previous frame. If these states are not cleared, it might
  cause noise when seek is performed.
- Fixed by resetting the decoder when seek is issued.

Change-Id: I412c362f554ba1613b440cf613349d2bdef0d5dd
CRs-Fixed: 263744
libstagefright: Add error handling in AMRNB deooder

Return error when AMRNB software decoder fails

Change-Id: I125b2abbdd2eb182b69393752a9377eda89361d9
Fix EAP password being lost when switching from an EAP network to
another network and back.

Fixes issue 2479.
Revert "missing translation zh-CN"

This reverts commit 264071b7f6272ebb7f19351d05366b52af4bfd55.
OMX: enable logs too (allocate)
OMXMaster: enable more logs
frameworks/base: Fix for force close during rapid FF of cetain midi clips

-Rapid fast forward of certain midi clips result in force close
message and music app exits.
-setDataSource and prepare fail in playback complete state of
media player
-Return error when setDataSource and prepare are called in playback
complete state.

Change-Id: Ie7cf80a36400db833b6e6d7c162f8a8f8eee2e5e
CRs-Fixed: 260087
mediaplayer: Fix AudioFlinger create track failure

- AudioFlinger track creation fails after mediaserver crash
- Mediaplayer doesn't register for new sessionId value if
mediaserver crashes during a song switch of music player
and it uses the old sessionId though sessionId values are
reset by AudioFlinger.
  AudioFlinger assigns the same sessionId to Tone Generator
and since strategies of these two session differ it would
result in track creation failure.
- Fix this issue by registering for new sessionId for
mediaplayer if mediaserver crashes in idle state

Change-Id: I25c01842d7df4f4eb0f9d084a648d6d1a88fa926
CRs-fixed: 271002
mediaserver: wait before instantiating services

- Check with service manager if it holds a reference to the
  service.
- If it does, repeat the same check after a second.
- Timeout after five such unsuccessful attempts.
- This "wait and proceed" is needed to ensure that services
  get registered with the service manager in the event mediaserver
  gets re-spawned after it got killed.

Change-Id: I65cf988959f57bc8bddec6322704b5f6307fc276
CRs-Fixed: 282339
frameworks/base : correct media player state from pause to start state.

In suspend resume scenarios, when player engine in prepare(), mediaplayer state
is corrected from MEDIA_PLAYER_STARTED to MEDIA_PLAYER_PAUSED state.
Media player never recoverd back to MEDIA_PLAYER_STARTED though player engine in start state.

Added a check, if the media player in MEDIA_PLAYER_PAUSED & player return state as play,
correct the media player state to MEDIA_PLAYER_STARTED.

Change-Id: Idcb34f3b344188e1a4693064a85ee7171cf10ef2
CRs-Fixed: 282576
Fix String16 operator+ to actually work

This change fixes the String16 utility's operator+ function.

Change-Id: Ibed7b07277b50bf178febc72b6ce497893e66f17
Create Kineto-compatible AudioTrack::set and AudioRecord::set methods.