3409 Commits

Author SHA1 Message Date
Mike Lockwood
3be80f2e6c Merge "MTP: Make recursive delete more efficient" 2010-12-14 14:20:35 -08:00
Mike Lockwood
55f808cff9 MTP: Make recursive delete more efficient
Change-Id: Iec9df8ac910f5257236b59c95b0ee3d7d05f367c
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-14 14:16:44 -08:00
James Dong
6f7d56cf9f Merge "Fix an issue where a fixed number of bits per sample is used for seek position calculation." 2010-12-14 12:28:31 -08:00
Andreas Huber
1f356b9569 Merge "Properly signal the condition if we run out of input data." 2010-12-14 10:11:28 -08:00
Andreas Huber
69d23b2fc8 Merge "Support malformed ID3 V2.4 tags written by early versions of iTunes." 2010-12-14 10:11:11 -08:00
Andreas Huber
94bced1eb2 Properly signal the condition if we run out of input data.
Change-Id: I7a5ada8c25c1d32ca603b3b2c75e1808e140c367
2010-12-14 09:54:37 -08:00
Andreas Huber
5d266dd84e Support malformed ID3 V2.4 tags written by early versions of iTunes.
Change-Id: I90c2a9bbf216e2ae9a37accdaa2214233f5e54ea
related-to-bug: 3275576
2010-12-14 09:51:11 -08:00
Mike Lockwood
bafca214ea MTP: check for replacing existing files via the database instead of the file system
Change-Id: I283dab48f24d2836e48fab8e49764a9cdf13de55
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-13 21:50:09 -08:00
Mike Lockwood
1b198ea685 MTP: Create files/folders with group media_rw instead of sdcard_rw
Otherwise the sdcard daemon that implements the Fuse file system at
/mnt/sdcard won't have write access to the files.

BUG: 3254123

Change-Id: Ib0c306bbc31ec936fd6164f17e7cd1b5dfff21b8
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-13 20:11:15 -08:00
James Dong
399623935c Fix an issue where a fixed number of bits per sample is used for seek position calculation.
The patch was from NV.

bug - 3278233

Change-Id: I9bc22b6b0ee6bfa5d4617a8c497f67eb577efca4
2010-12-13 15:26:20 -08:00
Mike Lockwood
5bd7d9347b Merge "MediaScanner: No longer delete playlist files that have no valid entries" 2010-12-13 12:39:28 -08:00
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