Added missing duration field to database record insertion.

This addresses AOSP Google Code Issue 15841.
When an audio recording sample is saved to the media
database, attributes like audio title are stored in a
database record.  However, the duration of the sample
was not being stored.  Therefore, an application that
queried attributes for a sample would get an incorrect
record; the record would contain a default duration of
0 ms.  The fix was to add the recorded sample's length
to the list of attributes put into the database record.
Note that the sample's length is in seconds and had to
be converted to milliseconds as described in the
documentation for the duration audio column.

This bug could have been prevented if the database
schema for duration audio column required a non-null
value with no default.

Change-Id: I80e4f8feb7d9f1050baf1e7c44323123b9d6b6b0
Signed-off-by: Sahil Verma <vermasque@gmail.com>
Merge "Added missing duration field to database record insertion."
am 7bdedbec: Merge "Added missing duration field to database record insertion."

* commit '7bdedbec2edafb55f1b2f6bab17a967ea610ccf7':
  Added missing duration field to database record insertion.
am cb5f20f3: am 7bdedbec: Merge "Added missing duration field to database record insertion."

* commit 'cb5f20f31da35ad29afc2269f08b14d2d38dd64b':
  Added missing duration field to database record insertion.
am 27a66070: am cb5f20f3: am 7bdedbec: Merge "Added missing duration field to database record insertion."

* commit '27a66070449c91de9177fe6a9ac48381608c517d':
  Added missing duration field to database record insertion.
Playback in SoundRecorder interrupted by screen timeout.

The same wakeLock as is used for recording is also applied for playback
to be able to preview/play the entire recorded sound without the preview
being interrupted.

Change-Id: I17f9f89bc98cf0d8be8b0f07b8d67ee240af1409
Merge "Playback in SoundRecorder interrupted by screen timeout."
am b67bae5b: Merge "Playback in SoundRecorder interrupted by screen timeout."

* commit 'b67bae5b38b919cb113321ff0fc55b52c5a924fc':
  Playback in SoundRecorder interrupted by screen timeout.
am ac671db7: am b67bae5b: Merge "Playback in SoundRecorder interrupted by screen timeout."

* commit 'ac671db7cb0ad49c8957acd4698e6139dfdb8b94':
  Playback in SoundRecorder interrupted by screen timeout.
Reconcile with gingerbread-release

Change-Id: I263d6dc1a018056aa306854b9832ae0c49546db2
Import revised translations.

Change-Id: I74339be81de5ebdaac3d7fcd9e7834456b0b3f38
Import revised translations.

Change-Id: I474912f6233466514e65e9235511b88c07c1bfc9
Import revised translations.

Change-Id: Ic29ecde23b3cdfe972155ddafdff9d2e01516a59
Import revised translations.

Change-Id: I4132ab39d76e97543ea4d129d63904e523d4d035
Import revised translations.

Change-Id: I0849d707fff189350fd09dbb10be0b432d04eb61
Cleanup buttons after recording text. Bug 5140011

Change-Id: I6dcbd299d66af5e66aea0cab98f45b5892628e10
Import revised translations.

Change-Id: I9e18be67530f7cce5a531dcdd1ab165dbcd635fe
Import revised translations.

Change-Id: Icf25a1c254c8394b058ecd9ea8ceaede6557c515
Import revised translations.  DO NOT MERGE

Change-Id: Ib6c58c831f43256dd82276b0f7d4ab11ed4de2ac
am ba077736: (-s ours) Import revised translations.  DO NOT MERGE

* commit 'ba077736ec811bfb665edab66442c394b0407fd5':
  Import revised translations.  DO NOT MERGE