summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | In the absence of width/height information in the sdp, extract the ↵Andreas Huber2010-08-191-0/+53
| |/ / |/| | | | | | | | | | | | | | dimensions from the avc codec specific data. Change-Id: I98c4194593c7e6e24f6fc339c862245111800293
* | | Merge "Add OBB flags to support overlays" into gingerbreadKenny Root2010-08-191-4/+31
|\ \ \
| * | | Add OBB flags to support overlaysKenny Root2010-08-181-4/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add flags field in OBB footer to support overlays. * Remove unused 'crypto' and 'filesystem' fields in obbtool (could later be supported in the "flags" field of the OBB footer). * Add notes to document OBB classes before shipping. Change-Id: I386b43c32c5edef55210acb5d3322639c08010ba
* | | | Add support for throttling motion events.Jeff Brown2010-08-181-0/+19
| | | | | | | | | | | | | | | | Change-Id: I24b3a17753e91ecda60a60fe5cd2e6b3260e033d
* | | | Merge "Fix some input device mapping bugs with certain drivers." into ↵Jeff Brown2010-08-181-14/+4
|\ \ \ \ | |_|/ / |/| | | | | | | gingerbread
| * | | Fix some input device mapping bugs with certain drivers.Jeff Brown2010-08-181-14/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On single-touch devices, pointer up/down is signalled by a BTN_TOUCH key event. Previously we handled BTN_TOUCH immediately but some drivers may produce the sequence BTN_TOUCH, ABS_X, ABS_Y, SYN_REPORT on pointer down which caused us to emit a bad initial pointer down location. Now we wait for SYN_REPORT before reporting the up or down. On multi-touch devices, pointer up can be signalled by as little as the sequence SYN_MT_REPORT, SYN_REPORT. This change ensures that we handle this case. Added support for reading ABS_MT_PRESSURE when available. Corrected mapping of touchMajor/touchMinor on single touch devices. Minor code cleanup. Change-Id: Ic7ec4811241ed85a06e59b8a839ca05180d491d4
* | | Keep track of remaining fd when devices are removedJens Gulin2010-08-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes the wrong fd was accessed when the device was addressed by device id. The earlier implementation assumed that two arrays were in sync but one of them was compacted when devices were removed. Instead of that dependency the device now keeps track of it's file descriptor. Change-Id: Ib0f320603aafb07ded354bc3687de9759c9068f2
* | | Merge "Document that autoFocus must be called in auto and macro mode." into ↵Wu-cheng Li2010-08-181-2/+6
|\ \ \ | |/ / |/| | | | | gingerbread
| * | Document that autoFocus must be called in auto and macro mode.Wu-cheng Li2010-08-171-2/+6
| |/ | | | | | | Change-Id: Ia52f8bc8a75a7473edff50326a4a0467f4295e6a
* | Optimize EventHub reads.Jeff Brown2010-08-171-0/+6
| | | | | | | | Change-Id: Id7d09c0a6e5c741c1e29becd2b6560772c5ff372
* | Fix possible race conditions during channel unregistration.Jeff Brown2010-08-171-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the input dispatcher assumed that the input channel's receive pipe file descriptor was a sufficiently unique identifier for looking up input channels in its various tables. However, it can happen that an input channel is disposed and then a new input channel is immediately created that reuses the same file descriptor. Ordinarily this is not a problem, however there is a small opportunity for a race to arise in InputQueue. When InputQueue receives an input event from the dispatcher, it generates a finishedToken that encodes the channel's receive pipe fd, and a sequence number. The finishedToken is used by the ViewRoot as a handle for the event so that it can tell the InputQueue when the event has finished being processed. Here is the race: 1. InputQueue receives an input event, assigns a new finishedToken. 2. ViewRoot begins processing the input event. 3. During processing, ViewRoot unregisters the InputChannel. 4. A new InputChannel is created and is registered with the Input Queue. This InputChannel happens to have the same receive pipe fd as the one previously registered. 5. ViewRoot tells the InputQueue that it has finished processing the input event, passing along the original finishedToken. 6. InputQueue throws an exception because the finishedToken's receive pipe fd is registered but the sequence number is incorrect so it assumes that the client has called finish spuriously. The fix is to include a unique connection id within the finishedToken so that the InputQueue can accurately confirm that the token belongs to the currently registered InputChannel rather than to an old one that happened to have the same receive pipe fd. When it notices this, it ignores the spurious finish. I've also made a couple of other small changes to avoid similar races elsewhere. This patch set also includes a fix to synthesize a finished signal when the input channel is unregistered on the client side to help keep the server and client in sync. Bug: 2834068 Change-Id: I1de34a36249ab74c359c2c67a57e333543400f7b
* Use audio clock as the reference media clockJames Dong2010-08-132-2/+8
| | | | | | | | | | | | o Only do this for realtime applications o Adjust other track clock based on audio clock o Assume other track uses wall clock as the media clock o Use some heuristics to reduce the size of stts box by 2/3. - also o Remove one unused key from MetaData.h Change-Id: Ib9432842627b61795b533508158c25258a527332
* Improve camera documentation.Wu-cheng Li2010-08-121-13/+17
| | | | Change-Id: I3c9e5e6de5ce64b8d7d892483930238fa9cc247c
* Merge "Handle large audio lost" into gingerbreadJames Dong2010-08-121-1/+2
|\
| * Handle large audio lostJames Dong2010-08-101-1/+2
| | | | | | | | Change-Id: I2687ad855aac758946954d0b3fe7aff9f7b5ae7c
* | Merge "Add support for the PointerLocation overlay." into gingerbreadJeff Brown2010-08-111-1/+2
|\ \
| * | Add support for the PointerLocation overlay.Jeff Brown2010-08-111-1/+2
| |/ | | | | | | | | | | | | | | | | | | This change involves adding a new method to IWindowManager, monitorInput() that returns an InputChannel to receive a copy of all input that is dispatched to applications. The caller must have the READ_INPUT_STATE permission to make this request (similar to other window manager methods such as getKeycodeState). Change-Id: Icd14d810174a5b2928671ef16de73af88302aea0
* | Initial tool for OBB manipulationKenny Root2010-08-111-0/+4
| | | | | | | | | | | | | | Add "obbtool" host command for adding, removing, and querying Opaque Binary Blob (OBB) information from a file. Change-Id: Id2ac41e687ad2a500c362616d6738a8ae7e8f5c3
* | More native work.Dianne Hackborn2010-08-113-57/+100
|/ | | | | | | Implement save/restore of state, and add native APIs for configuration information. Change-Id: I2a3ddc2ba605db58d7c8b2b31b9215fb323f90b5
* Fix safe mode and KeyEvent.getMaxKeyCode().Jeff Brown2010-08-101-0/+2
| | | | | Bug: 2901731 Change-Id: I78617c1b9dee3790fc590e5af4b5083368873184
* Support for extracting G.711 a-law and mu-law audio from WAV files and a ↵Andreas Huber2010-08-091-0/+2
| | | | | | | corresponding software decoder. Change-Id: I92685d09456c220b8c09842defb721bd55b0b9f6 related-to-bug: 2900021
* Fix String8::operator+Kenny Root2010-08-061-2/+2
| | | | | | | | | | | The LHS was ignored when using: String8 + String8 String8 + (const char*) Add unit tests for above. Bug: 2898473 Change-Id: Ic8fe7be668b665c36aaaa3fc3c3ffdfff0fbba25
* Merge "Use the target color format from the camera source if possible" into ↵James Dong2010-08-051-0/+5
|\ | | | | | | gingerbread
| * Use the target color format from the camera source if possibleJames Dong2010-08-051-0/+5
| | | | | | | | | | | | | | | | | | | | - If the target color format is unavailable, the default platform-dependent color format will be used. - Also add some logic to prevent looping forever if the omx component is buggy supporting color format enumeration. Change-Id: I119a78f0d6201b4c3621235cca2f523ec14e24e3
* | Tracking merge of dalvik-dev to gingerbreadBrian Carlstrom2010-08-041-0/+1
|/ | | | | | | | | | | git cherry-pick --no-commit f77cf7f0 git cherry-pick --no-commit c8f503b5285e30c1a881d0ba860ba9021f57d113 git cherry-pick --no-commit 570bb561 git cherry-pick --no-commit e2417541 git cherry-pick --no-commit e4d81f25bd4dc1a5c909b56ab56a56406290da30 git cherry-pick --no-commit 5e8a587d Change-Id: I101a385d43f3e0f4ce5352217f92ef67a3908c88
* Support for Gtalk video, includes AMR/H.263 assembler and packetization ↵Andreas Huber2010-08-042-0/+4
| | | | | | support, extensions to MediaRecorder to stream via RTP over a pair of UDP sockets as well as various fixes to the RTP implementation. Change-Id: I95b8dd487061add9bade15749e563b01cd99d9a6
* Merge "Enhanced VelocityTracker for > 5 pointers and fixed bugs." into ↵Chris Tate2010-08-031-1/+3
|\ | | | | | | gingerbread
| * Enhanced VelocityTracker for > 5 pointers and fixed bugs.Jeff Brown2010-07-301-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Improved PointerLocation tool to use VelocityTracker more efficiently and correctly when multiple pointers are down. Fixed a bug in TouchInputMapper where it was not correctly copying the id to index map in the last touch data. This could cause strange behavior on secondary pointer up events. Also added finished callback pooling in InputQueue. Change-Id: Ia85e52ac2fb7350960ea1d7edfbe81a1b3e8267b
* | Merge "File writer has a designated writer thread now" into gingerbreadJames Dong2010-08-031-0/+41
|\ \
| * | File writer has a designated writer thread nowJames Dong2010-08-021-0/+41
| |/ | | | | | | | | | | | | | | + This reduces the file I/O block time for audio/video track processing - Since the file writer is buffering some output samples, the memory usage would go up, depending on how many output samples are buffered. Change-Id: I780cc5b26f4b53a5efbd643fcf9505dfc19cd4cd
* | Merge "Add lost frame handling in AudioSource" into gingerbreadJames Dong2010-08-021-3/+2
|\ \ | |/ |/|
| * Add lost frame handling in AudioSourceJames Dong2010-07-301-3/+2
| | | | | | | | | | | | - Also collect stats on lost audio frames instead of time spent on reading Change-Id: I6380b143e4fbdcd894491aaae523331e90d0f04f
* | Merge "Improve thread safety of input mappers." into gingerbreadJeff Brown2010-07-301-67/+83
|\ \
| * | Improve thread safety of input mappers.Jeff Brown2010-07-301-67/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixed bug where old touch screen size could be reported by getMotionRange if an orientation change occurred but the user has not yet touched the screen. Bug: 2877345 Change-Id: I7878f47458f310ed6ebe6a5d1b2c9bec2c598ab9
* | | resolved conflicts for merge of 27eecb70 to gingerbreadJean-Baptiste Queru2010-07-303-3/+2
|\ \ \ | |/ / |/| | | | | Change-Id: If064f2f4950fc1a4ff38e6927fe2120af76b26f1
| * | Merge branch 'froyo' of ↵The Android Open Source Project2010-07-293-3/+2
| |\ \ | | | | | | | | | | | | git://android.git.kernel.org/platform/frameworks/base into HEAD
| | * | fix inaccurate copyrightsJean-Baptiste Queru2010-07-293-3/+2
| | | | | | | | | | | | | | | | Change-Id: I33b0f68f2da34ca4728211d83159cf32a127f6dd
| * | | Squashed commit of the following:Andreas Huber2010-07-291-0/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 4abf16bb04dc9695fedf4007a84f903074312ccd Author: Andreas Huber <andih@google.com> Date: Tue Jul 20 09:21:17 2010 -0700 Support a single format change at the beginning of audio playback. This way the AAC+ decoder may change its output format from what is originally encoded in the audio stream and we'll still play it back correctly. Change-Id: Icc790122744745e9a88099788d4818ca1e265a82 related-to-bug: 2826841 commit 09c74da63e6ad5cb5dafb70f62696d75d2978967 Author: James Dong <jdong@google.com> Date: Sun Jul 18 17:57:01 2010 -0700 Fix MPEG4Extractor to extract sampling frequency correctly when SBR is enabled. Change-Id: I883c81dad3ea465e71cb5590e89d763671a90ff8 commit f672bf2a782dc7d5fb6325d611a7fe17045dfe9a Author: James Dong <jdong@google.com> Date: Thu Jul 8 20:56:13 2010 -0700 Enable the support for decoding audio with AAC+ and eAAC+ features bug - 282684 Change-Id: I73c8377af3cc4edd3ee7cea86dc3b1c369fbd78b Change-Id: I012f1179e933b6d1345d2368f357576c722485f7
* | | Added SensorManager.getMinDelay()Mathias Agopian2010-07-292-1/+3
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | Exposed the new "min delay" sensor property through native and java sensor apis. This allows the caller to know what is the maximum rate at which a sensor can return events, or, if a sensor works in "update" mode (events returned only when the value changes). Also augmented SensorManager.regusterSensorEvent() so that it can accept a value in microsecond in addition to the 4 constants already defined. Change-Id: If425e9979892666df8c989d7de3c362230fa19e0
* | DO NOT MERGE: Fix input event injection ANRs on UI thread.Jeff Brown2010-07-292-17/+37
| | | | | | | | | | | | | | Added a new asynchronous injection mode and made the existing synchronization mechanism more robust. Change-Id: Ia4aa04fd9b75ea2461a844c5b7933c831c1027e6
* | Merge "fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. ↵Mathias Agopian2010-07-281-8/+0
|\ \ | | | | | | | | | cannot dequeue all allocated buffers at once." into gingerbread
| * | fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. cannot ↵Mathias Agopian2010-07-271-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dequeue all allocated buffers at once. this situation happened when the last buffer needed to be resized (or allocated, the first time). the assumption was that the buffer was in use by SF itself as the current buffer (obviously, this assumption made no sense when the buffer had never been allocated, btw). the system would wait until some other buffer became the "front" buffer. we fix this problem by entirely removing the requirement that the buffer being resized cannot be the front buffer. instead, we just allocate a new buffer and replace the front buffer by the new one. the downside is that this uses more memory (an extra buffer) for a brief amount of time while the old buffer is being reallocated and before it has actually been replaced. Change-Id: I022e4621209474ceb1c671b23deb4188eaaa7285
* | | Merge "Support streaming of compressed assets > 1 megabyte" into gingerbreadChristopher Tate2010-07-282-9/+84
|\ \ \
| * | | Support streaming of compressed assets > 1 megabyteChristopher Tate2010-07-282-9/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compressed assets larger than one megabyte are now decompressed on demand rather than being decompressed in their entirety and held in memory. Reading the data in order is relatively efficient, as is seeking forward in the stream. Seeking backwards is supported, but requires reprocessing the compressed data from the beginning, so is very inefficient. In addition, the size limit on compressed assets has been eliminated. Change-Id: I6e68247957e6c53e7e8ba70d12764695f1723bad
* | | | Refactor input reader to support new device types more easily.Jeff Brown2010-07-285-544/+770
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored the input reader so that each raw input protocol is handled by a separate subclass of the new InputMapper type. This way, behaviors pertaining to keyboard, trackballs, touchscreens, switches and other devices are clearly distinguished for improved maintainability. Added partial support for describing capabilities of input devices (incomplete and untested for now, will be fleshed out in later commits). Simplified EventHub interface somewhat since InputReader is taking over more of the work. Cleaned up some of the interactions between InputManager and WindowManagerService related to reading input state. Fixed swiping finger from screen edge into display area. Added logging of device information to 'dumpsys window'. Change-Id: I17faffc33e3aec3a0f33f0b37e81a70609378612
* | | Audio effects: modified command() parameter types.Eric Laurent2010-07-284-12/+24
| | | | | | | | | | | | | | | | | | | | | The type of the cmd, cmdSize and *pReplySize parameters of the effect control interface command() function have been modified from int to uint32_t. This is more consistent with their role. Change-Id: I84d289fc262d6753747910f06f485597dfee6591
* | | Merge "Replace several IPCThreadState::get() lookups with one." into gingerbreadBrad Fitzpatrick2010-07-271-4/+8
|\ \ \
| * | | Replace several IPCThreadState::get() lookups with one.Brad Fitzpatrick2010-07-271-4/+8
| |/ / | | | | | | | | | | | | | | | Also, make StrictMode's ThreadLocal final. Change-Id: I08d400ed254fa67bb7a3dae1227f205a54c00df0
* | | Audio Effects: added methods to effects java classes to store and load ↵Eric Laurent2010-07-276-14/+26
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | current effect settings in a single call. Addional changes: - Fixed simulator build - Use effect interface UUIDs from OpenSL ES includes when available - Added cleanspec rules to remove now obsolete test effect libraries - Fixed bug in AudioEffect JNI setParameter function. Change-Id: Ic25ddb135e2cec5a68c181d727321f5ac7a1ab6b
* | Allows the authoring engine to skip frame.James Dong2010-07-222-0/+14
| | | | | | | | | | | | | | | | | | | | | | This is 1st part of the work to allow audio and video resync if we found out that audio and video are out of sync during authoring - also fixed a problem in AACEncoder::read() where the buffer acquired from the buffer group does not release when error out at reading from source. Change-Id: I8a2740097fcfdf85e6178869afeb9f3687a99118