summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* fix a race condition in undoDequeue(), where 'tail' could be computed ↵Mathias Agopian2010-04-281-2/+2
| | | | | | | | | | | | | | | incorrectly. in the undoDequeue() case, 'tail' was recalculated from 'available' and 'head' however there was a race between this and retireAndLock(), which could cause 'tail' to be recalculated wrongly. the interesting thing though is that retireAndLock() shouldn't have any impact on the value of 'tail', which is client-side only attribute. we fix the race by saving the value of 'tail' before dequeue() and restore it in the case of undoDequeue(), since we know it doesn't depend on retireAndLock(). Change-Id: I4bcc4d16b6bc4dd93717ee739c603040b18295a0
* Use timestamp from camera driver for CameraSourceJames Dong2010-04-281-2/+7
| | | | Change-Id: I09ddec69997c43b8f17fdd21304c76cb4c5ab8cf
* better fix for [2420565] Surface.lockCanvas() updates the dirty region too oftenMathias Agopian2010-04-211-1/+1
| | | | Change-Id: I83438b40effd21538f1c74396dc665254b9d5ab6
* am f021d12f: merge from open-source masterThe Android Open Source Project2010-04-211-7/+10
|\ | | | | | | | | | | | | | | Merge commit 'f021d12f6f7116e9275cd3553a349ce5cb8aab14' into kraken * commit 'f021d12f6f7116e9275cd3553a349ce5cb8aab14': Allow META* macros outside of the framework Fix printing order of phone objects creation
| * merge from open-source masterThe Android Open Source Project2010-04-211-7/+10
| |\ | | | | | | | | | Change-Id: I08f1feae65b1dfc3f740d78654c267f2e3ae5e85
| | * Allow META* macros outside of the frameworkMichael Richardson2010-04-201-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The META* macros are useful outside of the framework for other systems implementing Binder interfaces, but they depend upon the android namespace. This includes the appropriate namespace operations, which should be sane even in that android namespace. Change-Id: If600156c65191f51f487d0ee301d9f9f532b263d
* | | added setCrop() to android_native_window_tMathias Agopian2010-04-204-14/+65
| | | | | | | | | | | | | | | | | | | | | hooked up the new method up to Surface.cpp the actual crop is not implemented in SF yet Change-Id: Ic6e313c98fd880f127a051a0ccc71808bd689751
* | | add support for up to 16 buffers per surfaceMathias Agopian2010-04-201-8/+12
| | | | | | | | | | | | | | | | | | | | | also increase the dirtyregion size from 1 to 6 rectangles. Overall we now need 27KiB process instead of 4KiB Change-Id: Iebda5565015158f49d9ca8dbcf55e6ad04855be3
* | | am 26f61635: am 0a4ab1b9: Merge "fix [2599939] "cannot play video" after ↵Mathias Agopian2010-04-193-5/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | open/close a video player a dozen of times" into froyo Merge commit '26f6163557980062dbb203388b3d0794ee0d06f7' into kraken * commit '26f6163557980062dbb203388b3d0794ee0d06f7': fix [2599939] "cannot play video" after open/close a video player a dozen of times
| * | am 0a4ab1b9: Merge "fix [2599939] "cannot play video" after open/close a ↵Mathias Agopian2010-04-193-5/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | video player a dozen of times" into froyo Merge commit '0a4ab1b9b4c7b891c1ecb67eed99e9c9b30c93aa' into froyo-plus-aosp * commit '0a4ab1b9b4c7b891c1ecb67eed99e9c9b30c93aa': fix [2599939] "cannot play video" after open/close a video player a dozen of times
| | * | fix [2599939] "cannot play video" after open/close a video player a dozen of ↵Mathias Agopian2010-04-193-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | times get rid off the MAP_ONCE flag is MemoryHeapBase (as well as it's functionality), this feature should not be used anymore. the software renderer was incorrectly using the default ctor which set MAP_ONCE, causing the leak. the software renderer itself is incorrectly used while coming back from sleep. Change-Id: I123621f8d140550b864f352bbcd8a5729db12b57
* | | | when a zero dimension buffer is allocated, turn the allocation intoMathias Agopian2010-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | a 1x1 buffer instead of Nx1 (or 1xN) Change-Id: I27eeb15e83e13002dd9405f4e52b54f7dffc0fe7
* | | | Merge "don't hardcode "mSurface" throughout our source code" into krakenMathias Agopian2010-04-121-0/+2
|\ \ \ \
| * | | | don't hardcode "mSurface" throughout our source codeMathias Agopian2010-04-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is used in a few places to get access to the android.view.Surface native surface. use a macro instead. Also rename the field to mNativeSurface. Change-Id: I1c6dea14abd6b8b1392c7f97b304115999355094
* | | | | am 248ea4a9: am 5baa5e19: Merge "Distinguish QCELP audio from mpeg4 audio, ↵Andreas Huber2010-04-121-0/+1
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | | | | | | | | | | | | | | | | | ignore QCELP audio tracks since we don\'t have a decoder for it, ignore potentially malformed metadata for AMR NB and WB tracks." into froyo Merge commit '248ea4a9f773210a7b7dbd7892e6b865a0f7add3' into kraken * commit '248ea4a9f773210a7b7dbd7892e6b865a0f7add3': Distinguish QCELP audio from mpeg4 audio, ignore QCELP audio tracks since we don't have a decoder for it, ignore potentially malformed metadata for AMR NB and WB tracks.
| * | | am 5baa5e19: Merge "Distinguish QCELP audio from mpeg4 audio, ignore QCELP ↵Andreas Huber2010-04-121-0/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | audio tracks since we don\'t have a decoder for it, ignore potentially malformed metadata for AMR NB and WB tracks." into froyo Merge commit '5baa5e1917ba4a212fa280b8b6cc3bbbf9382194' into froyo-plus-aosp * commit '5baa5e1917ba4a212fa280b8b6cc3bbbf9382194': Distinguish QCELP audio from mpeg4 audio, ignore QCELP audio tracks since we don't have a decoder for it, ignore potentially malformed metadata for AMR NB and WB tracks.
| | * | Distinguish QCELP audio from mpeg4 audio, ignore QCELP audio tracks since we ↵Andreas Huber2010-04-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | don't have a decoder for it, ignore potentially malformed metadata for AMR NB and WB tracks. Change-Id: Ic9a9198413431db4ea40bb63b9de91aa8a7183af related-to-bug: 2587341
* | | | Merge "Remove unnecessary lock from AMRWriter." into krakenAndreas Huber2010-04-121-3/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Remove unnecessary lock from AMRWriter.Andreas Huber2010-04-091-3/+1
| | | | | | | | | | | | | | | | Change-Id: Ia02966d936dd8cbb31e92051578a3fa816885710
* | | | am c58b4232: Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.Wu-cheng Li2010-04-101-0/+7
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | Merge commit 'c58b42327df5fbc826e2fcc2674ab6db0edfcd92' into froyo-plus-aosp * commit 'c58b42327df5fbc826e2fcc2674ab6db0edfcd92': Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.
| * | Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.Wu-cheng Li2010-04-101-0/+7
| | | | | | | | | | | | | | | bug:2544367 Change-Id: If122a7745e080f9e4bffb15dc4930d71f0421867
* | | am eb12e45f: Merge "Refactor connection/redirection code, support redirects ↵Andreas Huber2010-04-081-3/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | on reconnection." into froyo Merge commit 'eb12e45f7a92fd424988451256c82605d086245d' into froyo-plus-aosp * commit 'eb12e45f7a92fd424988451256c82605d086245d': Refactor connection/redirection code, support redirects on reconnection.
| * | Refactor connection/redirection code, support redirects on reconnection.Andreas Huber2010-04-081-3/+2
| | | | | | | | | | | | | | | Change-Id: Id2517568000e028b01553c06a4893813a6883168 related-to-bug: 2580785
* | | merge from open-source masterThe Android Open Source Project2010-04-081-1/+5
|\ \ \ | |/ / |/| / | |/ Change-Id: I975030d9572463bc69245bcffa25c47d7acb2b51
| * Add keycodes PageUp and PageDownChih-Wei Huang2010-04-021-1/+5
| | | | | | | | | | | | This is useful for applications like web browser. Change-Id: Ie9262d5b75de87ecd0971407a7c3ce9aa6e4998e
* | Increase the size of the pages used in CachingDataSource (total amount of ↵Andreas Huber2010-04-081-1/+1
| | | | | | | | | | | | | | memory used remains the same) to compensate for reduced locality of audio/video data requests. Also fixes a mistaken trailing "\r\n" in the range header and better error handling on http connection. Change-Id: Ic9a6ef204362bc9afdc61e081c76bc62e5ef92ad related-to-bug: 2580785
* | Coalesce multiple encoded AAC frames into a single input buffer on this ↵Andreas Huber2010-04-021-10/+13
| | | | | | | | | | | | | | particular OMX codec to increase throughput significantly. Change-Id: I90c7db6656a53339c5d454336548c4f00d0d9064 related-to-bug: 2548426
* | Public API changes for CameraProfile and CamcorderProfile classesJames Dong2010-04-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 1. CamcorderProfile: “@see” links are broken; Remove m prefix from fields; remove “final” 2. CamcorderProfile.Quality: use an int rather than an enum 3. Add API on MediaRecorder to pass in a CamcorderProfile 4. CameraProfile.getImageEncodingQualityLevels @hide or make it consistent with CamcorderProfile 5. Remove a convenient method and instead let the (mms) app do that task bug - 2553862 Change-Id: I759215c7892f772aeddf3651d17038489c6fbc50
* | fix [2545826] calling into gralloc with external lock heldMathias Agopian2010-03-251-1/+0
| | | | | | | | Change-Id: I2d0e017382404c684c768a0dd0423d574213f10a
* | libutils Condition are now PRIVATE by defaultMathias Agopian2010-03-191-1/+18
| | | | | | | | | | | | | | | | | | | | | | Condition must be initialized with SHARED for the old behavior, where they can be used accross processes. Updated the two places android that require SHARED conditions. PRIVATE conditions (and mutexes) use more efficient syscalls. Change-Id: I9a281a4b88206e92ac559c66554e886b9c62db3a
* | Update TTS plugin interface to receive engine configuration dataJean-Michel Trivi2010-03-181-15/+8
| | | | | | | | | | | | coming from the plugin helper code (handling config and preferences). Change-Id: Ibc1d229463f11f8977552d74d1fd2aa6a6cab88e
* | While streaming media data, upon a socket-read error, try reconnecting to ↵Andreas Huber2010-03-171-1/+7
| | | | | | | | | | | | | | the server and attempt to re-read for at most 3 times. Change-Id: I7534905e07a6456d18b26d5d60fa8915f25ae99e related-to-bug: 2492187
* | Properly handle errors during the codec configuration phase, attempt to ↵Andreas Huber2010-03-161-1/+3
| | | | | | | | | | | | | | revert to next available (likely software-) codec if configuration fails. Change-Id: Id1c699711e30139c9cc29df972254b5ba026e6fb related-to-bug: 2517098
* | Fix the media metadata retriever (tests). The native constants must match ↵Andreas Huber2010-03-122-2/+8
| | | | | | | | | | | | those published at the java layer. Change-Id: Ic1efed709e4d93c61913b231a8cd3ef1074f8ca0
* | Merge "HTTPStream and HTTPDataSource now support cancellation of the ↵Andreas Huber2010-03-121-5/+18
|\ \ | | | | | | | | | connection process, AwesomePlayer takes advantage of this in cases where ::reset() or ::suspend() is called while in the preparation phase to bail out early. Also fixes in issue where the audio codec was not properly stopped if no audio player object ever took ownership."
| * | HTTPStream and HTTPDataSource now support cancellation of the connection ↵Andreas Huber2010-03-121-5/+18
| | | | | | | | | | | | | | | | | | | | | process, AwesomePlayer takes advantage of this in cases where ::reset() or ::suspend() is called while in the preparation phase to bail out early. Also fixes in issue where the audio codec was not properly stopped if no audio player object ever took ownership. Change-Id: I6d73defe6d276693853a469db267bb2668d07af5 related-to-bugs: 2475845,2414536
* | | implement connect/disconnect in our native_window_t implementationsMathias Agopian2010-03-111-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | the framebuffer implementation doesn't do anything special with this but the surfaceflinger implementation makes sure the surface is not used by two APIs simultaneously. Change-Id: Id4ca8ef7093d68846abc2ac814327cc40a64b66b
* | | Add a new connect/disconnect API to android_native_window_tMathias Agopian2010-03-111-1/+37
|/ / | | | | | | | | | | it's used to keep track of which API owns the surface. Change-Id: I1021c5905c020efc3c428e561b38189377168b22
* | Reduce buffer sizes related to HTTP media data transfer in order to reduce ↵Andreas Huber2010-03-101-1/+1
| | | | | | | | | | | | | | the probability of a connection timeout/reset due to long periods of time between socket activity. Change-Id: I799ce1d58d56a31088a89603d8a18d24780f5b57 related-to-bug: 2492187
* | Merge "Instead of instantiating StagefrightMetadataRetriever directly, ↵Andreas Huber2010-03-101-2/+2
|\ \ | | | | | | | | | instantiate a MediaMetadataRetriever which will do-the-right-thing(tm) even for .wma/.wmv/.asf files."
| * | Instead of instantiating StagefrightMetadataRetriever directly, instantiate ↵Andreas Huber2010-03-101-2/+2
| | | | | | | | | | | | | | | | | | | | | a MediaMetadataRetriever which will do-the-right-thing(tm) even for .wma/.wmv/.asf files. Change-Id: Ibda4b5268514934f14a3d49a564902bc670f4384 related-to-bug: 2074137
* | | Add ability for some manifest attributes to reference resources.Dianne Hackborn2010-03-091-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | This loosens our restriction on many manifest attributes requiring literal string values, to allow various ones to use values from resources. This is only allowed if the resource value does not change from configuration changes, and the restriction is still in place for attributes that are core to security (requesting permissions) or market operation (used libraries and features etc). Change-Id: I4da02f6a5196cb6a7dbcff9ac25403904c42c2c8
* | Merge "Add camera parameter string constant for "true"."Wu-cheng Li2010-03-081-0/+3
|\ \
| * | Add camera parameter string constant for "true".Wu-cheng Li2010-03-081-0/+3
| | | | | | | | | | | | | | | bug:2458926 Change-Id: I11eaae8ff031765e23f2627ded5873eabc09cead
* | | The audio track was accidentally not participating in the prefetch since it ↵Andreas Huber2010-03-081-1/+1
|/ / | | | | | | | | | | | | wasn't started at the time prepare() was called. Also, properly report the cached duration even near the end when the source has no more data to fetch. Change-Id: I66a92fec24c9bfb25f1c186f1c877127bae2b4f9 related-to-bug: 2444425
* | Refactor car mode.Dianne Hackborn2010-03-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract all UI behavior from dock observer and ACTION_DOCK_EVENT. Also introduce a desk type to go along with the car type all through the resource system, since we now need to have corresponding high-level broadcasts for desk dock mode. As part of that I also reworked some of the logic for switching modes to all funnel through a single update() call that looks all of the current state to decide what to do next, and fixed various locking issues. In addition I found there were bugs in the configuration change handling causing us to only switch into the car mode config and then never get out of it. Unfortunately now that we are actually changing the configuration for each mode change, the transitions between them are really crummy as we restart all kinds of activities. :(
* | Add location provider name to gps-processing-method in EXIF header.Ray Chen2010-03-051-0/+3
| |
* | Issue 2071329: audio track is shorter than video track for video capture on ↵Eric Laurent2010-03-023-0/+12
| | | | | | | | | | | | | | | | sholes Add API to retrieve number of frames dropped by audio input kernel driver. Submitted on behalf of Masaki Sato <masaki.sato@motorola.com>
* | Fix issue #2448075: aapt doesn't fix up activity-alias ↵Dianne Hackborn2010-03-011-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | android:targetActivity links And related: - The aapt tool now sets a resource configurations sdk level to match any configs that have been set (for example if you specify density your sdk level will be at least 4). - New option to modify the targetPackage attribute of instrumentation. - Clean up of aapt options help. - Fix of UI type values to leave 0 for "unspecified". - Make the UI mode config APIs public.
* | Added a name to Surface created by SurfaceFlingerMathias Agopian2010-03-012-0/+12
| | | | | | | | | | Updated the window manager to use this new facility. Surfaces name are now printed by "dumpsys".