summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* resolved conflicts for merge of 27eecb70 to gingerbreadJean-Baptiste Queru2010-07-301-1/+0
|\ | | | | | | Change-Id: If064f2f4950fc1a4ff38e6927fe2120af76b26f1
| * fix inaccurate copyrightsJean-Baptiste Queru2010-07-291-1/+0
| | | | | | | | Change-Id: I33b0f68f2da34ca4728211d83159cf32a127f6dd
* | Added SensorManager.getMinDelay()Mathias Agopian2010-07-292-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Attempt to fix the SDK build" into gingerbreadChristopher Tate2010-07-291-4/+4
|\ \
| * | Attempt to fix the SDK buildChristopher Tate2010-07-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | On the assumption that the local min() function declaration is in conflict with some 'min' #define floating around, rename the local function to min_of(). Change-Id: I62aa27f213c6093cc78805de611cf4aa75f0eef2
* | | Fix touch input in landscape mode.Jeff Brown2010-07-291-4/+4
| | | | | | | | | | | | Change-Id: I7d47e9b02e6443ed604a6bf842028a5db934d90d
* | | DO NOT MERGE: Fix input event injection ANRs on UI thread.Jeff Brown2010-07-292-31/+86
|/ / | | | | | | | | | | | | Added a new asynchronous injection mode and made the existing synchronization mechanism more robust. Change-Id: Ia4aa04fd9b75ea2461a844c5b7933c831c1027e6
* | Merge "Change unistd.h to stddef.h to be correct" into gingerbreadChris Tate2010-07-281-1/+1
|\ \
| * | Change unistd.h to stddef.h to be correctKenny Root2010-07-281-1/+1
| | | | | | | | | | | | | | | | | | size_t should be defined through inclusion of stddef.h instead of unistd.h Change-Id: Ieaadacfca1e1c44c2533ea95f73fc060c1519b52
* | | Merge "Add unistd.h for size_t typedef to fix sim-eng" into gingerbreadKenny Root2010-07-281-0/+1
|\ \ \ | |/ /
| * | Add unistd.h for size_t typedef to fix sim-engKenny Root2010-07-281-0/+1
| | | | | | | | | | | | Change-Id: Ida4f1742547f39539b601f13182c722aa7cf863e
* | | Merge "fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. ↵Mathias Agopian2010-07-281-30/+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-30/+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-283-30/+271
|\ \ \
| * | | Support streaming of compressed assets > 1 megabyteChristopher Tate2010-07-283-30/+271
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-286-1754/+2243
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Replace several IPCThreadState::get() lookups with one.Brad Fitzpatrick2010-07-271-5/+5
|/ / | | | | | | | | | | Also, make StrictMode's ThreadLocal final. Change-Id: I08d400ed254fa67bb7a3dae1227f205a54c00df0
* | Fix a memory corruption when writting Sensor into a parcelMathias Agopian2010-07-221-1/+1
| | | | | | | | Change-Id: I03f703ae2224f43924031bfea4c68aa979bb9f05
* | propagate sensor event rate properlyMathias Agopian2010-07-211-2/+6
| | | | | | | | Change-Id: I32e67d30e4295285a6827956cc8161b2025d70bc
* | new SensorServiceMathias Agopian2010-07-195-12/+82
| | | | | | | | | | | | | | remove old sensor service and implement SensorManager on top of the new (native) SensorManger API. Change-Id: Iddb77d498755da3e11646473a44d651f12f40281
* | Remove some debug logging that I accidentally committed.Jamie Gennis2010-07-191-3/+0
| | | | | | | | Change-Id: Ib182455fad5e5b3f3f59b3ff24f59dcd7f638292
* | Fix trackball down and movement bugs.Jeff Brown2010-07-162-1/+15
| | | | | | | | | | Bug: 2823788 Change-Id: Icb0c392b58f7e735614460b5eb87439cb73ac4f2
* | Merge "Re-use existing Surface objects when reading them from parcels." into ↵Jamie Gennis2010-07-161-7/+28
|\ \ | | | | | | | | | gingerbread
| * | Re-use existing Surface objects when reading them from parcels.Jamie Gennis2010-07-161-7/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a process-global cache of previously deserialized Surface objects so that if a Surface object wrapping the same ISurface gets received again the same Surface can be used. This is important because the 'tail' pointer in the SharedBufferClient is stored only on the client side, and needs to be the same for all the Surface objects wrapping an ISurface instance. This solves the problem by making there only be one Surface object wrapping an ISurface per process. Change-Id: I4bf0b8787885c56277622fca053022d2bb638902
* | | Fix individual pointer id up/down reporting.Jeff Brown2010-07-161-9/+10
|/ / | | | | | | | | | | Fix a minor threading bug in InputManager dump. Change-Id: Ic2eecf7df5a8dc9f40561fcb03ebe58a2c073778
* | Fix bug with phantom input windows.Jeff Brown2010-07-161-7/+29
| | | | | | | | | | | | | | | | | | | | | | Add dumpsys integration for the native input dispatcher. Add some InputDevice API stubs. Add an appendFormat helper method to String8 for printf style string formatting mainly for debugging purposes. Use generic ArrayList<WindowState> everywhere in WindowManagerService to eliminate unnecessary casts all over. Change-Id: I9d1e3bd90eb7222d10620200477f11b7bfd25e44
* | Implement native key pre-dispatching to IMEs.Dianne Hackborn2010-07-151-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This significantly re-works the native key dispatching code to allow events to be pre-dispatched to the current IME before being processed by native code. It introduces one new public API, which must be called after retrieving an event if the app wishes for it to be pre-dispatched. Currently the native code will only do pre-dispatching of system keys, to avoid significant overhead for gaming input. This should be improved to be smarted, filtering for only keys that the IME is interested in. Unfortunately IMEs don't currently provide this information. :p Change-Id: Ic1c7aeec8b348164957f2cd88119eb5bd85c2a9f
* | Add support for new input sources.Jeff Brown2010-07-157-140/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added several new coordinate values to MotionEvents to capture touch major/minor area, tool major/minor area and orientation. Renamed NDK input constants per convention. Added InputDevice class in Java which will eventually provide useful information about available input devices. Added APIs for manufacturing new MotionEvent objects with multiple pointers and all necessary coordinate data. Fixed a bug in the input dispatcher where it could get stuck with a pointer down forever. Fixed a bug in the WindowManager where the input window list could end up containing stale removed windows. Fixed a bug in the WindowManager where the input channel was being removed only after the final animation transition had taken place which caused spurious WINDOW DIED log messages to be printed. Change-Id: Ie55084da319b20aad29b28a0499b8dd98bb5da68
* | StrictMode: gather and return violating stacks in Binder repliesBrad Fitzpatrick2010-07-151-1/+12
| | | | | | | | | | | | | | | | | | | | | | Now, when Thread A has a strict mode policy in effect and does a Binder call to Thread B (most likely in another process), the strict mode policy is passed along, but with the GATHER penalty bit set which overrides other policies and instead gathers all offending stack traces to a threadlocal which are then written back in the Parcel's reply header. Change-Id: I7d4497032a0609b37b1a2a15855f5c929ba0584d
* | More StrictMode work, keeping Binder & BlockGuard's thread-locals in-sync.Brad Fitzpatrick2010-07-152-4/+13
| | | | | | | | Change-Id: Ia67cabcc17a73a0f15907ffea683d06bc41b90e5
* | Don't build framework tests for simulator target.Jeff Brown2010-07-142-0/+10
| | | | | | | | Change-Id: I70f29c7eb307e4f3ec5702f4eb9d97b4342e2f36
* | move native services under services/Mathias Agopian2010-07-1460-24657/+0
| | | | | | | | | | | | | | | | moved surfaceflinger, audioflinger, cameraservice all native services should now reside in this location. Change-Id: Iee42b83dd2a94c3bf5107ab0895fe2dfcd5337a8
* | Merge "first step at implementing the native sensor support" into gingerbreadMathias Agopian2010-07-147-0/+656
|\ \
| * | first step at implementing the native sensor supportMathias Agopian2010-07-137-0/+656
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in this commit: - implemented the C stub - implemented the binder interfaces involved - implemented most of the C++ client side missing: - SensorManager cannot connect to the SensorServer yet (because there is no SensorServer yet) Change-Id: I75010cbeef31c98d6fa62fd5d388dcef87c2636b
* | | Remove the YV16 format for simplicity's sake.Mathias Agopian2010-07-142-3/+0
| | | | | | | | | | | | Change-Id: Iee03d100933ba0c67b13d51e0435be3b4cd953cf
* | | IME events are now dispatched to native applications.Dianne Hackborn2010-07-131-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And also: - APIs to show and hide the IME, and control its interaction with the app. - APIs to tell the app when its window resizes and needs to be redrawn. - API to tell the app the content rectangle of its window (to layout around the IME or status bar). There is still a problem with IME interaction -- we need a way for the app to deliver events to the IME before it handles them, so that for example the back key will close the IME instead of finishing the app. Change-Id: I37b75fc2ec533750ef36ca3aedd2f0cc0b5813cd
* | | Add initial gamepad support.Jeff Brown2010-07-138-786/+894
| | | | | | | | | | | | Change-Id: I0439648f6eb5405f200e4223c915eb3a418b32b9
* | | Add Parcel::readExceptionCode() and Parcel::writeNoException()Brad Fitzpatrick2010-07-133-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add native Parcel methods analogous to the Java versions. Currently, these don't do much, but upcoming StrictMode work changes the RPC calling conventions in some cases, so it's important that everybody uses these consistently, rather than having a lot of code trying to parse RPC responses out of Parcels themselves. As a summary, the current convention that Java Binder services use is to prepend the reply Parcel with an int32 signaling the exception status: 0: no exception -1: Security exception -2: Bad Parcelable -3: ... -4: ... -5: ... ... followed by Parceled String if the exception code is non-zero. With an upcoming change, it'll be the case that a response Parcel can, non-exceptionally return rich data in the header, and also return data to the caller. The important thing to note in this new case is that the first int32 in the reply parcel *will not be zero*, so anybody manually checking for it with reply.readInt32() will get false negative failures. Short summary: If you're calling into a Java service and manually checking the exception status with reply.readInt32(), change it to reply.readExceptionCode(). Change-Id: I23f9a0e53a8cfbbd9759242cfde16723641afe04
* | | Modifications in audio effect engine state management.Eric Laurent2010-07-132-40/+71
|/ / | | | | | | | | | | | | | | | | | | | | - Separate the updating of effect engine state from the process call in EffectModule so that the state of all effects in the same effect chain is updated simultaneusly before all process functions are called. - Added a mechanism for the effect engine to continue being called for processing after receiving the disable commands untils it considers that the framework can stop calling the process function without causing a glitch or loosing some effect tail. - Updated test reverb and equalizer to support this new feature Change-Id: Icb56ae2c84c076d4dbad6cf733b1a62f823febe7
* | Merge changes I2337051b,I19b426cb into gingerbreadKenny Root2010-07-122-17/+36
|\ \ | | | | | | | | | | | | | | | * changes: Tweak ObbFile class Allow things that can install packages to set Obb paths
| * | Tweak ObbFile classKenny Root2010-07-122-17/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move error messages around to clarify the errors. * Add extra error check when reading a file. * Seek to the end of a file when writing the signature so the users of the API don't have to remember to do it. Change-Id: I2337051b9f9fa8147c5900237deec790dcd92436
* | | Add ANativeWindow API for directly drawing to the surface bits.Dianne Hackborn2010-07-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also other cleanup and fixes: - We now properly set the default window format to 565. - New APIs to set the window format and flags from native code. - Tweaked glue for simpler handling of the "destroy" message. - Um, other stuff. Change-Id: Id7790a21a2fa9a19b91854d225324a7c1e7c6ade
* | | Add new glue code for writing native apps.Dianne Hackborn2010-07-083-73/+100
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This factors out the boiler-plate code from the sample app to a common glue code that can be used for everyone writing this style of app: a dedicated app thread that takes care of waiting for events and processing them. As part of doing this, ALooper has a new facility to allow registration of fds that cause ALooper_pollOnce() to return the fd that has data, allowing the app to drive the loop without callbacks. Hopefully this makes some people feel better. :) Also do some other cleanup of the ALooper API, plus some actual documentation. Change-Id: Ic53bd56bdf627e3ba28a3c093faa06a92be522b8
* | Merge "Add OBB file helper class" into gingerbreadKenny Root2010-07-074-0/+366
|\ \
| * | Add OBB file helper classKenny Root2010-07-074-0/+366
| | | | | | | | | | | | | | | | | | | | | ObbFile is a binary blob that will be used in packaging large files with smaller APKs. Change-Id: Ib1594346cfa2f49113de6565af77c24efbd89d63
* | | Merge "More native input dispatch work." into gingerbreadChris Tate2010-07-072-56/+79
|\ \ \
| * | | More native input dispatch work.Jeff Brown2010-07-032-56/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed old input dispatch code. Refactored the policy callbacks. Pushed a tiny bit of the power manager state down to native. Fixed long press on MENU. Made the virtual key detection and cancelation a bit more precise. Change-Id: I5d8c1062f7ea0ab3b54c6fadb058c4d5f5a9e02e
* | | | Merge "Added Visualizer effect." into gingerbreadEric Laurent2010-07-072-13/+33
|\ \ \ \ | |_|/ / |/| | |
| * | | Added Visualizer effect.Eric Laurent2010-07-072-13/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The visualizer enables application to retrieve part of the currently playing audio for visualization purpose. It is not an audio recording interface and only returns partial and low quality audio content as a waveform or a frequency representation (FFT). Removed temporary hack made in MediaPlayer for animated wall papers based on audio visualization (snoop() method. This commit also includes a change in AudioEffect class: - the enable()/disable() methods have been replaced bya more standard setEnabled() method. - some fixes in javadoc Change-Id: Id092a1340e9e38dae68646ade7be054e3a36980e
* | | | Add new native Looper API.Dianne Hackborn2010-07-021-4/+64
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to avoid exposing the file descriptor of the event queue; instead, you attach an event queue to a looper. This will also should allow native apps to be written without the need for a separate thread, by attaching the event queue to the main thread's looper and scheduling their own messages there. Change-Id: I38489282635895ae2cbfacb88599c1b1cad9b239