Mike Lockwood
eb46d0601e
MediaScanner: No longer delete playlist files that have no valid entries
...
When copying files from MTP we must keep the file in the database, even
if we cannot find any of the playlist entries (or even if it is not a valid playlist file)
BUG: 3260341
Change-Id: I4b39027ee25ffae6778224cf74830a4b1ca3fecb
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-13 12:10:45 -08:00
James Dong
fc8b7c9ccf
Yield the omx threads so that file writer threads have a chance to retrieve the output buffers once they become ready
...
bug - 3252228
Change-Id: Iab7cf1c9a87cce7b814c63b42b21fcd6a7314b36
2010-12-13 10:34:17 -08:00
James Dong
d1e0396820
Merge "Revert "Allows the authoring engine to skip frame.""
2010-12-13 10:33:33 -08:00
Jean-Michel Trivi
b6a0dfb0f1
Merge "Fix bug 3275151 Request and abandon audio focus with audio mode changes"
2010-12-13 09:01:34 -08:00
Mike Lockwood
7f36b19b6b
MTP: Add support for reserve storage setting to avoid low storage situations.
...
Set resource config_mtpReserveSpaceMegabytes to number of megabytes to reserve.
If MTP has dedicated storage this value should be zero, but if MTP is
sharing storage with the rest of the system, set this to a positive value
to ensure that MTP activity does not result in the storage being
too close to full.
BUG: 3250924
Change-Id: I881c87240da268bad1ea1b99ad03673ab85ffdbf
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-12 12:17:43 -08:00
Jean-Michel Trivi
2ade576148
Fix bug 3275151 Request and abandon audio focus with audio mode changes
...
Before the introduction of the MODE_IN_COMMUNICATION audio mode,
"calls" were only made through telephony and the PhoneStateListener
was used to request and abandon audio focus as calls where started
and ended. VoIP applications do not cause phone state events to
be broadcast, and set the audio mode to MODE_IN_COMMUNICATION
directly. This change monitors mode changes to automatically
grab and abandon audio focus.
Change-Id: Ie9a4193e35ba8447764fac66a988959a93c4909f
2010-12-11 13:55:58 -08:00
Mike Lockwood
2711e494ca
MTP: Check for null string before calling GetStringUTFChars() in MtpDatabase JNI
...
BUG: 3274649
Change-Id: I5a3c8fcebf71ed453a121ca5a1345e39895d3bf3
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-11 11:29:31 -08:00
James Dong
2144f6316d
Revert "Allows the authoring engine to skip frame."
...
o Skipping frames could lead to a lot of issues such as I frames is lost etc.
It is not being used anyway.
This reverts commit 53d4e0d58e2d5c18f6e026c705af833b9bdd7aba.
Conflicts:
media/libstagefright/AudioSource.cpp
media/libstagefright/CameraSource.cpp
Change-Id: I3abba1647de48db25bdc369066eb2a7ae4dedec2
2010-12-11 10:57:03 -08:00
James Dong
845584e717
Fixed a failure from timelapse video recording because of accidental use of metadata buffers
...
bug - 3274317
Change-Id: I2c0e9fcd30c9141ce5a85e9d72cbd0baf561458b
2010-12-10 13:09:05 -08:00
James Dong
6370387680
Release a recording frame only if mCamera exists and is not cleared.
...
and also call mCamera->stopRecording() only after CameraSource releases all the
outstanding video frames sent from CameraSource to its clients (such as video encoder).
Change-Id: I7eeed4e2f388e77c28668d52c24b5330d3d9ebde
2010-12-10 07:34:08 -08:00
Mike Lockwood
faa27f932e
Merge "Rename android.hardware.Usb to UsbManager and UsbObserver to UsbService"
2010-12-09 22:53:27 -08:00
Mike Lockwood
770126a678
Rename android.hardware.Usb to UsbManager and UsbObserver to UsbService
...
In preparation for an upcoming change that will make UsbService into a real system service
Change-Id: Id85d624cfc6b10b49a08105cfaaacc667a492c12
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-09 22:52:05 -08:00
James Dong
337885be6e
Merge "First step towards renabling Timelapse video recording"
2010-12-09 20:27:59 -08:00
Mike Lockwood
bfd1d72a1a
MTP host: Handle receiving a response packet instead of data packet.
...
This will happen if the device needs to report an error rather than returning the data.
Change-Id: I477512b3676c2f0518a85a4135832ed4475fbc2d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-09 18:34:18 -08:00
James Dong
08800f3fdc
First step towards renabling Timelapse video recording
...
Change-Id: I93836b066fb69d5152d3774546a9935057a1f12f
2010-12-09 15:37:04 -08:00
Mike Lockwood
ed6f095a83
Merge "CameraBrowser: Give it ACCESS_USB permission, which is now required for PTP"
2010-12-09 13:45:34 -08:00
James Wylder
d285415e8a
libstagefright: Compile MP3 & AAC decoders in 32bit ARM Mode
...
Speeds up the decoding leaving more time for cpuidle (lp2),
thus lowering overall current drain.
Change-Id: Ia4e0636b1813810072fe0a4f94f6921adf2eab31
Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-12-09 12:00:58 -08:00
Mike Lockwood
485059de22
CameraBrowser: Give it ACCESS_USB permission, which is now required for PTP
...
Change-Id: Ic5c7810ff4b7e25ba5f49a1107f5121391943108
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-09 11:45:44 -08:00
Mike Lockwood
51f56cbd30
Merge "MTP: Improve argument checking in SendObjectInfo"
2010-12-08 17:15:22 -08:00
Mike Lockwood
365e03e494
MTP: Improve argument checking in SendObjectInfo
...
In particular, make sure the parent is a folder and make sure file
does not already exist.
Change-Id: Ifa870faba3285f03a92025d9e82f93fed78a761c
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-08 16:09:37 -08:00
Andreas Huber
daac81d1f7
Merge "Fix thumbnail extraction for extractors that don't have a preference."
2010-12-08 14:52:11 -08:00
Andreas Huber
b1d49ded62
Fix thumbnail extraction for extractors that don't have a preference.
...
Change-Id: Id305a44416b08a667aae86c2109aa4dff9f17342
2010-12-08 14:50:10 -08:00
Eric Laurent
7b2029be0b
Merge "Fix issue 3159946."
2010-12-08 11:05:28 -08:00
Andreas Huber
f69583cde5
Merge "Better buffer status management and verification in OMXCodec."
2010-12-08 09:09:25 -08:00
Andreas Huber
bbbcf65532
Better buffer status management and verification in OMXCodec.
...
Change-Id: I90410f2ac0d8ff86076a239dc6e281b1bc4d8643
2010-12-08 09:07:28 -08:00
Mike Lockwood
7f889328b7
Merge "MTP: pass format back as default value in GetObjectPropDesc for format property"
2010-12-07 18:57:18 -08:00
Mike Lockwood
a9e67c11c0
Merge "MTP: Support format argument in host GetObjectPropDesc command"
2010-12-07 18:56:58 -08:00
Mike Lockwood
9b5e9c407d
MTP: pass format back as default value in GetObjectPropDesc for format property
...
Change-Id: Icc4071af16763a613c9fb31e87dc716f1516c7d8
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-07 18:53:50 -08:00
Mike Lockwood
a194cc7d8b
MTP: Support format argument in host GetObjectPropDesc command
...
Change-Id: Ic14313c0f95bea1d1d475cc6a001b256fccb91c8
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-07 18:53:04 -08:00
Mike Lockwood
b3f522f34b
Merge "MTP: Read property code before calling isDeviceProperty in MtpProperty::read()"
2010-12-07 17:21:01 -08:00
Mike Lockwood
bf1dbd1938
MTP: Read property code before calling isDeviceProperty in MtpProperty::read()
...
Change-Id: I0b1493f3af5d9caac08327f9ffba91ee255d3d55
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-07 17:16:20 -08:00
Mike Lockwood
c7f2f0ab01
Merge "MTP: Improve MtpProperty logging support"
2010-12-07 17:15:02 -08:00
Mike Lockwood
e4880e421f
MTP: Improve MtpProperty logging support
...
Change-Id: I46800b99763edcc5e994d912941f9f5e9b1c94d2
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-07 17:13:12 -08:00
Mike Lockwood
9cf29560e8
Merge "MTP: Host support for GetObjectPropsSupported and GetObjectPropDesc"
2010-12-07 17:11:07 -08:00
Mike Lockwood
612ca8781f
Merge "MTP: Use correct return type for getSupportedObjectProperties"
2010-12-07 17:10:43 -08:00
Mike Lockwood
ea4af54093
Merge "Revert "MTP: Remove static library build for linux host.""
2010-12-07 17:10:25 -08:00
Mike Lockwood
ecce2f6d82
Merge "MTP: Implement MTP_DEVICE_PROPERTY_IMAGE_SIZE device property."
2010-12-07 17:10:02 -08:00
Eric Laurent
62ef767b15
Fix issue 3159946.
...
AudioService now uses SCO virtual calls instead of voice recognition to
implement startBluetoothSco() method.
Also make sure that a virtual call is not started when SCO audio is active
due to in call audio or voice recognition.
Change-Id: I93ed119afbc57250a4433201156714e35f70fea4
2010-12-07 15:24:58 -08:00
Mike Lockwood
5768f1089b
MTP: Host support for GetObjectPropsSupported and GetObjectPropDesc
...
Change-Id: I6fd23587597fc68227dfb61118b097eda3e3e1d5
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-07 10:58:56 -08:00
Mike Lockwood
4cb956cc58
MTP: Use correct return type for getSupportedObjectProperties
...
Change-Id: I6d5bd63fecaa3384dfa1b97dbc0d89ea5668981f
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-07 10:51:20 -08:00
Mike Lockwood
87626b1d01
Revert "MTP: Remove static library build for linux host."
...
This reverts commit d46c683f0e13ad9341ba83453835f6658ae5ad15.
Change-Id: I7e56760c92bad1d66d4a1f2415328a4d2138de84
2010-12-07 10:45:22 -08:00
Mike Lockwood
ea93fa16b1
MTP: Implement MTP_DEVICE_PROPERTY_IMAGE_SIZE device property.
...
Return screen size as preferred maximum image size.
Change-Id: I8dc4afb0e49fe45f6925a35aa443d3fc30211453
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-07 10:41:35 -08:00
Andreas Huber
b0fa4f2c6f
Merge "API Support for both synchronous and queued commands, optionally associated metadata."
2010-12-07 10:12:47 -08:00
James Dong
25d7094279
Log the exception cause for better problem analysis
...
Change-Id: Ia1f81adb6fc3be87098c9399509b68d5daf7f2da
2010-12-06 14:41:00 -08:00
James Dong
0efe974ee6
Merge "Remove check if the target video resolution is not supported by CameraSource and clean up Camera is CameraSource could not created."
2010-12-06 14:18:18 -08:00
Andreas Huber
ae9d507253
API Support for both synchronous and queued commands, optionally associated metadata.
...
Change-Id: Idb90d64cb638942210c5822b3cba2f05b087d601
2010-12-06 12:45:50 -08:00
Yu Shan Emily Lau
28bec9ebce
Merge "Suppress the unsupported camera recording size (ie QVGA and SQVGA)"
2010-12-06 10:14:16 -08:00
Andreas Huber
b5590846c0
Squashed commit of the following:
...
commit 9254c845d7c82976fd4b8be406ce4b17eeb0e119
Author: Andreas Huber <andih@google.com>
Date: Fri Dec 3 15:26:12 2010 -0800
Remove obsolete code from the cached data source.
Change-Id: I794b986ac8977cbc834dff189221a636ba564e36
commit 2ee33711064c58c53ba65ed9e63dd4b01ec2380e
Author: Andreas Huber <andih@google.com>
Date: Fri Dec 3 15:23:13 2010 -0800
LiveSource is dead, long live LiveSession.
Change-Id: Ibcd0731ecf9c94f0b3e5db3d53d012d9da2a1c66
commit 9eabb2c3cd8571ab859bdeae0aa7f655c414d8fa
Author: Andreas Huber <andih@google.com>
Date: Fri Dec 3 12:49:31 2010 -0800
Respect explicitly signalled discontinuities.
Change-Id: I3c0c16a2de7a99742d25db7d1b2ff0258de52271
commit 7f7f7b6b906b6ece6e4d43af7fd5f494e805c5e5
Author: Andreas Huber <andih@google.com>
Date: Fri Dec 3 11:45:57 2010 -0800
Better protection against syncword emulation in AAC ADTS content.
Change-Id: I867e80a4556dd46d24ab3e781177c248a5221719
commit fe765766582efcc350aed01135ea603576adccf6
Author: Andreas Huber <andih@google.com>
Date: Fri Dec 3 09:15:59 2010 -0800
New implementation of http live driving code.
Change-Id: I31ddf3d6a0d5929b121be704a2b9c3d6775f7737
Change-Id: Id8d1829c8fcb173756965013f848c1d426ef1048
2010-12-06 08:28:36 -08:00
James Dong
5df53fe2f0
Remove check if the target video resolution is not supported by CameraSource
...
and clean up Camera is CameraSource could not created.
bug - 3254411
Change-Id: I43497c450e7007de5ce027e2912b1421119e8887
2010-12-05 16:08:30 -08:00
Yu Shan Emily Lau
e8f317d32c
Suppress the unsupported camera recording size (ie QVGA and SQVGA)
...
Change-Id: I34b6433f0aae4a117b2467069523a62e44bf9bbe
2010-12-03 19:32:25 -08:00