Import translations. DO NOT MERGE

Change-Id: If432b86f37fcb86489c4f758c85037721fea4980
Auto-generated-cl: translation import
packages/app/Music: Create system property for gapless audio

The property gapless.audio.decode can now be used for
enabling/disabling gapless audio for audio decoding by
setting the property to true or false respectively.
By default gapless audio is disabled to save power while
playing audio playlists as otherwise Low Power Audio is
disabled every other clip.

Change-Id: I18714b6ff49ced79ac3cb7f7d4e141a53b7a2155
(cherry picked from commit 80276ef5f02f9b359cf76fa66c34194ef8af4864)
(cherry picked from commit 0026073eeaa1a25fbedc1f54e26152858eab5349)
(cherry picked from commit 25b9dbedd8609c0e260a9ca0b90595513c66a6ad)
Bluetooth: Changes to support AVRCP1.5 and Optional feature

The current changes allows music application to communicate Player
attributes like Repeat mode and shuffle mode. With AVRCP 1.3
player attributes support feature, from the carkits these attributes
can be get and set remotely.
Provide support for AVRCP 1.5 so that remote CT is able to browse
the list of available media players on DUT and select the media
player from the available player

Change-Id: If36b20bb674ce615f3d198f97d42c20981619ae4
(cherry picked from commit d2564770c9cfeba14318b35783ba45e571a7c3c2)
(cherry picked from commit 4f6f57f325d7335fc47a3faebde5bbf445fcf115)
(cherry picked from commit f01f9491910642d01f90b919db753caf4a46405a)
audio: Fix ANR on repeat playback of corrupt track

-ANR is seen in Music app if a corrupt clip is played in repeat
 mode.
-The app handles only media server died error. All other scenarios
 playback switches to next track. In repeat track case app keeps
 seeking to start of file. Seek is not honored since mediaplayer
 is in error state and this runs in a loop.
-Add error check for corrupt clips in repeat mode and pause the
 playback.
CRs-Fixed: 480288

Change-Id: Ibb65fbf79071435865e596e5ab81b9f2e0e3aa6a
(cherry picked from commit bcb13e146fdc6e5700e440c6ef9816be2b8b39ed)
(cherry picked from commit 07d5fc2241dd7d0dcd1c70d4d78975f9292c9ea9)
audio: Eliminate wakeup events for screen refresh .

- When screen timeout happens, musicplaybackactivity keeps updating UI
  resulting in Apps proc wakeups and high power consumption.
- Ensuring that the screen refresh is not happening and the screen is
  updated appropriately when screen on event is received by the
  application.

CRs-Fixed: 271448
CRs-Fixed: 440839

Change-Id: I449b261a93f882de94d510e4b6a635af3333bcc2
audio: Fix for seek bar after pressing suspend key

-Issue: Seek bar gets stuck while pressing suspend key during
fast-forwarding or rewinding the clip.
-Rootcause: mPosOverride is used to control progress bar updates.
while seeking it is set to a positive value, which avoids the
progress bar updates and when seek is completed, value will be
reset which resumes the progress bar updates. When suspend is
called in between a seek and seek done event, mPosOVerride
value is never reset. Hence seek bar is always at a constant
position taking the value of mPosoverride.
-Fix: Reset mPosOverride to -1, when ever suspend is called to
ensure progress bar updates will resume when the system is woken
up again.

Cherrypicked from I6f572a93db2236971ce65e01d69be5bb2c7e7b45
CRs-Fixed: 524793

Change-Id: Ib7e8c0be8741cefd13a2d4d00d57c39236b79d70

Conflicts:
	src/com/android/music/MediaPlaybackActivity.java
Merge "audio: Eliminate wakeup events for screen refresh ."
audio: Fix RepeatAll disable bug on last clip

- Disabling RepeatAll on the last clip gave an
  error message at the end of the clip.
- The mNextMediaPlayer was not being set to NULL,
  when the repeatAll was disabled on the last
  clip.
- Set mNextMediaPlayer to null.
CRs-fixed: 407444

Change-Id: I243fc48c6fbcfc79a1ef9b5e42e05152c00d3104
audio: cursor close check is added

-Avoid cursor operation when cursor is closed.

Change-Id: I45dc706d45e18c790178518661fc59b69f6877e6
MediaPlaybackService: Remove condition in play that skips last 2 secs

In play(), current playback time is checked if its within last 2 secs
of the duration, if yes, it jumps to the next media. But if user
pauses within last 2 secs and resumes, it should not jump. The
condition needs to be removed.

Change-Id: I9d9ed55e1c9ed89d76f2018c0fe9c3f5aa20f00d
CRs-Fixed: 476175
Merge "audio: Fix for seek bar after pressing suspend key"
Merge "audio: Fix RepeatAll disable bug on last clip"
Merge "audio: cursor close check is added"
Merge "Merge "audio: cursor close check is added""
Merge "Merge "Merge "audio: cursor close check is added"""
Merge "Merge "audio: cursor close check is added""
Merge "Merge "Merge "audio: cursor close check is added"""
Merge "Merge "audio: cursor close check is added""
Merge "Merge "Merge "audio: cursor close check is added"""
Merge "Merge "audio: cursor close check is added""