3431 Commits

Author SHA1 Message Date
Mike Lockwood
076e05b488 MediaScanner: Add support for scanning empty directories
Currently the media scanner does not create database entries for directories
unless they contain a file that is scanned.
Fixing this so we provide a consistent view of the world to MTP.

Change-Id: Ia776acfeae23192183e7192d63cdc34d830ea889
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-16 15:35:36 -08:00
Andreas Huber
f76aca984c Merge "The HTTP/1.1 Host request header must include port if it's not the default (80)." 2010-12-16 10:51:15 -08:00
Andreas Huber
3abb7dde86 The HTTP/1.1 Host request header must include port if it's not the default (80).
Change-Id: Idcc1429fbeecef99dad435208c9a1bd481132e2b
2010-12-16 10:45:24 -08:00
Andreas Huber
2e8295950a Merge "Remove now obsolete implementation of streaming from AwesomePlayer." 2010-12-16 10:26:48 -08:00
Andreas Huber
52185ff754 Merge "Properly announce decoder output format changes, make sure AMessage::dup does." 2010-12-16 10:26:37 -08:00
James Dong
49dad77148 Merge "Give the standard not compliant video sample a chance if its size in the mp4 header is invalid" 2010-12-16 10:24:27 -08:00
Andreas Huber
d936726fd7 Remove now obsolete implementation of streaming from AwesomePlayer.
Change-Id: If62bedbf74c8e987d6651604d7bebc9da381e86a
2010-12-16 10:16:36 -08:00
Andreas Huber
687b32d83e Properly announce decoder output format changes, make sure AMessage::dup does.
Change-Id: Ia77f6b6d5e5c5055583740dfe876b8a3c22be9b6
2010-12-16 10:08:26 -08:00
Chih-Chung Chang
c32dd5f2d1 Fix 3274309: Returns correctly sized thumbnails for MINI_KIND video thumbnails.
Change-Id: I88b293e44430eebe780dfb9eb06d80f8ce89483f
2010-12-16 17:44:30 +08:00
James Dong
c9e1c80f78 Give the standard not compliant video sample a chance if its size in the mp4 header is invalid
Change-Id: Ib573ededb9c73285822fa238120faa484402bcf7
2010-12-15 17:40:08 -08:00
James Dong
0efdc95d59 Opted to recognize "h263" or "H263" boxes in an mp4 file
bug - 3278240

Change-Id: Ifd1b1f3e5dd55dbf2c33bbad9dd51998c25bfc15
2010-12-15 15:49:46 -08:00
Andreas Huber
7c6ca1907e Merge "Properly order the data written out to the transport stream by timestamp." 2010-12-15 15:37:30 -08:00
Andreas Huber
a15874665f Initial support for a true streaming player for mpeg2 transport streams.
Change-Id: I153eec439d260a5524b21270e16d36940ec3161a
2010-12-15 15:18:26 -08:00
Andreas Huber
fb16f7009b Properly order the data written out to the transport stream by timestamp.
This ensures data locality across tracks.

Change-Id: I823b9407e3603473422177ec02dff4860ffc5b4f
2010-12-15 14:56:43 -08:00
Andreas Huber
ebf90ac7a8 Merge "Proper recovery of timestamp information in the transport stream parser." 2010-12-15 14:55:29 -08:00
Andreas Huber
9c5d62a5be Proper recovery of timestamp information in the transport stream parser.
Change-Id: I647c73688c95529f54f0bb6af17d109dfe2bb11d
2010-12-15 14:07:50 -08:00
Eric Laurent
828b5a328c Merge "Change audio routing policy for HDMI" 2010-12-15 11:48:46 -08:00
Eric Laurent
2c61bee2b0 Change audio routing policy for HDMI
HDMI device should have a higher priority than analog dock audio but a lower priority
than wired headsets.
Also modified AudioService so that HDMI is mapped to DEVICE_OUT_AUX_DIGITAL device and not
DEVICE_OUT_DGTL_DOCK_HEADSET as before to enable discrimination between SPDIF going to
digital dock and SPIDF going to HDMI.

Change-Id: I887d0c73479784dd2edaf41ce1a7d8d0bdcbb4bd
2010-12-15 11:01:48 -08:00
Andreas Huber
08f83a6cd8 Merge "Emit better (correct) timestamps that respect AAC upsampling." 2010-12-15 09:17:21 -08:00
Mike Lockwood
4453aa4c30 CameraBrowser: Catch ActivityNotFoundException when attempting to display imported file.
Change-Id: I448f2506caf0a5599c885654fd0078beb6240965
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-12-14 23:38:43 -08:00
James Dong
88b7741228 Fix media metadata retriever JNI due to a change to the private native Bitmap constructor signature
Change-Id: I48c94b7a77a717c15fac548c7068a8a3e62c79fb
2010-12-14 22:13:14 -08:00
Andreas Huber
3d6576efd0 Emit better (correct) timestamps that respect AAC upsampling.
Change-Id: I6587416c9caa0e263aa8ec6c6d89a42e28f6ff19
2010-12-14 16:05:16 -08:00
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