summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
...
* Add offset handling in MemoryHeapBase classBenny Wong2009-08-201-4/+4
|
* fix a bug that caused the PixelFormat viewed by Surface to be wrong.Mathias Agopian2009-08-196-21/+27
| | | | | what happened is that the efective pixel format is calculated by SF but Surface nevew had access to it directly. in particular this caused query(FORMAT) to return the requested format instead of the effective format.
* fix [2063336] Surface.lockSurface throws IllegalArgumentException when out ↵Mathias Agopian2009-08-192-36/+62
| | | | of memory
* Support for marshalling pointers / intptr_t in Parcel.Andreas Huber2009-08-171-95/+63
| | | | Some refactoring to eliminate code duplication in Parcel implementation.
* make sure to update a surface's usage bits when it changes, instead of only ↵Mathias Agopian2009-08-141-23/+52
| | | | | | the first time. also fixed a few locking issues in Surface and commented how each member is protected.
* fix a bug that could cause a window to be hidden in some cases.Mathias Agopian2009-08-131-1/+6
| | | | | | | this would happen is the window is made visible but the client didn't render yet into it. This happens often with SurfaceView. Instead of filling the window with solid black, SF would simply ignore it which could lead to more disturbing artifacts. in theory the window manager should not display a window before it has been drawn into, but it does happen occasionnaly.
* Surface::GPU and Surface::HARDWARE are now deprecated; they will be set ↵Mathias Agopian2009-08-132-5/+0
| | | | | | automatically if needed. this also ripples into the window manager API by making some constant there deprecated as well.
* Merge change 21059Android (Google) Code Review2009-08-121-4/+11
|\ | | | | | | | | * changes: make sure EGL_ANDROID_swap_rectangle is actually supported before using it
| * make sure EGL_ANDROID_swap_rectangle is actually supported before using itMathias Agopian2009-08-121-4/+11
| |
* | Merge change 21057Android (Google) Code Review2009-08-121-1/+1
|\ \ | |/ | | | | | | * changes: Better error handling in EGL extensions
| * Better error handling in EGL extensionsMathias Agopian2009-08-121-1/+1
| |
* | am b8546001: Merge change 20878 into donutDianne Hackborn2009-08-121-5/+53
|\ \ | |/ |/| | | | | | | | | Merge commit 'b8546001701405a76dad7e6235046e592296fac2' * commit 'b8546001701405a76dad7e6235046e592296fac2': Fix issue #2048263: More debugging information
| * Fix issue #2048263: More debugging informationDianne Hackborn2009-08-111-5/+53
| | | | | | | | | | We now hopefully do better about generating the anr reports, and include information about the malloc loaded assets in meminfo.
| * Test for issue 2041105: CPU pegged after lost of bluetooth connection[WAR ROOM].Eric Laurent2009-08-081-2/+3
| | | | | | | | | | Merge change 7419 from master that may help eliminate the problem. This change was for a different use case (when disabling A2DP to switch output to SCO) but without a repro case it is worth trying.
* | Workaround for issue 2046783.Eric Laurent2009-08-122-2/+13
| | | | | | | | | | Apparently the problem is caused by the fact that A2dpAudioStreamOut::standby() calls a2dp_stop() after the headset has been powered down. The workaround consists in indicating to A2DP audio hardware that a close request is pending and that stanby() must be bypassed.
* | second take, hopefully this time it doesn't break one of the builds: ↵Mathias Agopian2009-08-112-4/+2
| | | | | | | | "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
* | second take, hopefully this time it doesn't break one of the builds: ↵Mathias Agopian2009-08-1111-33/+83
| | | | | | | | "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
* | Revert "SurfaceFlinger will now allocate buffers based on the usage ↵Fred Quintana2009-08-1111-83/+33
| | | | | | | | | | | | specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything." This reverts commit 8b76a0ac6fbf07254629ed1ea86af014d5abe050.
* | SurfaceFlinger will now allocate buffers based on the usage specified by the ↵Mathias Agopian2009-08-1111-33/+83
| | | | | | | | | | | | | | clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything. This change makes SurfaceHolder.setType(GPU) obsolete (it's now ignored). Added an API to android_native_window_t to allow extending the functionality without ever breaking binary compatibility. This is used to implement the new set_usage() API. This API needs to be called by software renderers because the default is to use usage flags suitable for h/w.
* | Fix issue 2046140: master: media_server crash when powering down A2DP ↵Eric Laurent2009-08-112-25/+30
| | | | | | | | | | | | | | | | | | | | headset while a ringtone is playing. This is because the AudioFlinger duplicating thread is closed while the output tracks are still active. This cause the output tracks objects to be destroyed at a time where they can be in use by the destination output mixer. The fix consists in adding the OutputTrack to the track list (mTracks) of its destination thread so that a strong reference is help during the mixer processed and the track is detroyed only when safe by destination thread. Also added detection of problems when creating the output track (e.g. no more tracks in mixer). In this case the output track is not added to output track list of duplicating thread.
* | Fix issue 2043314: Recorded audio is choppy.Eric Laurent2009-08-111-1/+1
| | | | | | | | Fixed cut/paste error causing constant reset of current frame index in input buffer.
* | Merge change 20699Android (Google) Code Review2009-08-101-0/+3
|\ \ | | | | | | | | | | | | * changes: enable HW acceleration for the Dim Surface on 8k devices
| * | enable HW acceleration for the Dim Surface on 8k devicesMathias Agopian2009-08-101-0/+3
| | |
* | | Limit AudioFlinger mixer track sampling rate.Eric Laurent2009-08-101-0/+4
|/ / | | | | | | When changing the audio output stream sampling rate with setParameters() make sure that all tracks have a sampling rate less or equal to 2 times the new output sampling rate.
* | remove unused and confusing commentMathias Agopian2009-08-071-10/+0
| |
* | Merge changes 20497,20498,20499Android (Google) Code Review2009-08-073-50/+83
|\ \ | | | | | | | | | | | | | | | | | | * changes: minor code clean-up added EGLUtils::strerror better error handling
| * | minor code clean-upMathias Agopian2009-08-071-36/+15
| | |
| * | added EGLUtils::strerrorMathias Agopian2009-08-071-5/+29
| | |
| * | better error handlingMathias Agopian2009-08-062-9/+39
| | |
* | | AudioService now differentiates BT headsets and car kits.Eric Laurent2009-08-072-4/+4
| | | | | | | | | | | | | | | The BT headset detection now makes the difference between car kits and headsets, which can be used by audio policy manager. The headset connection is also detected earlier, that is when the headset is connected and not when the SCO socket is connected as it was the case before. This allows the audio policy manager to suspend A2DP output while ringing if a SCO headset is connected.
* | | Fix problem in AudioFlinger closeOutput and closeInput.Eric Laurent2009-08-071-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | There was no garanty that the corresponding thread destructor had been already called when exiting the closeOutput() or closeInput() functions. This contructor could be called by the thread after the exit condition is signalled. By way of consequence, closeOutputStream() could be called after we exited closeOutput() function. To solve the problem, the call to closeOutputStream() or closeInputStream() is moved to closeOutput() or closeInput().
* | | Improved unit test code for Audioflinger.Eric Laurent2009-08-074-37/+183
| | |
* | | Fix lockup in audio flinger threadbase setParameters.Eric Laurent2009-08-072-24/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | The function checkForNewParameters_l() is called with the ThreadBase mutex mLock locked. In the case where the parameter change implies an audio parameter modification (e.g. sampling rate) the function sendConfigEvent() is called which tries to lock mLock creating a deadlock. The fix consists in creating a function equivalent to sendConfigEvent() that must be called with mLock locked and does not lock mLock. Also added the possibility to have more than one set parameter request pending.
* | | Merge change 9660Android (Google) Code Review2009-08-071-1/+1
|\ \ \ | | | | | | | | | | | | | | | | * changes: Fix problem in A2DP interface closeOutputStream().
| * | | Fix problem in A2DP interface closeOutputStream().Eric Laurent2009-08-041-1/+1
| | | | | | | | | | | | | | | | If the output stream handler passed was not the A2DP output stream, the request was ignored instead of being forwarded downstream to hardware interface.
* | | | Merge change 9653Android (Google) Code Review2009-08-073-4/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Fix getParameters() default implementation.
| * | | | Fix getParameters() default implementation.Eric Laurent2009-08-043-4/+16
| |/ / / | | | | | | | | | | | | Do not return empty string but key value pairs with empty values.
* | | | Fix issue 2001214: AudioFlinger and AudioPolicyService interfaces should not ↵Eric Laurent2009-08-075-150/+161
| |/ / |/| | | | | | | | | | | | | | | | | use pointers as handles to inputs and outputs. Use integers instead of void* as input/output handles at IAudioFlinger and IAudioPolicyService interfaces. AudioFlinger maintains an always increasing count of opened inputs or outputs as unique ID.
* | | Merge change 20365Android (Google) Code Review2009-08-061-2/+3
|\ \ \ | | | | | | | | | | | | | | | | * changes: oops, EGLConfig of value zero may be valid
| * | | oops, EGLConfig of value zero may be validMathias Agopian2009-08-061-2/+3
| | | |
* | | | Merge changes 20345,20346,20347Android (Google) Code Review2009-08-065-26/+118
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | * changes: update most gl tests to use EGLUtils added two EGL helpers for selecting a config matching a certain pixelformat or native window type added NATIVE_WINDOW_FORMAT attribute to android_native_window_t
| * | | added two EGL helpers for selecting a config matching a certain pixelformat ↵Mathias Agopian2009-08-063-26/+112
| | | | | | | | | | | | | | | | or native window type
| * | | added NATIVE_WINDOW_FORMAT attribute to android_native_window_tMathias Agopian2009-08-062-0/+6
| | | |
* | | | EventHub: pass the name of each input device up to JavaIliyan Malchev2009-08-061-11/+8
|/ / / | | | | | | | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
* | | Merge change 20133Android (Google) Code Review2009-08-051-0/+3
|\ \ \ | | | | | | | | | | | | | | | | * changes: don't crash when SurfaceBuffer::writeToParcel is given a null argument
| * | | don't crash when SurfaceBuffer::writeToParcel is given a null argumentMathias Agopian2009-08-051-0/+3
| |/ /
* | | Finish implementation of multiple pointer support for MotionEvent.Dianne Hackborn2009-08-041-19/+71
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The major things going on here: - The MotionEvent API is now extended to included "pointer ID" information, for applications to keep track of individual fingers as they move up and down. PointerLocation has been updated to take advantage of this. - The input system now has logic to generate MotionEvents with the new ID information, synthesizing an identifier as new points are down and trying to keep pointer ids consistent across events by looking at the distance between the last and next set of pointers. - We now support the new multitouch driver protocol, and will use that instead of the old one if it is available. We do NOT use any finger id information coming from the driver, but always synthesize pointer ids in user space. (This is simply because we don't yet have a driver reporting this information from which to base an implementation on.) - Increase maximum number of fingers to 10. This code has only been used with a driver that reports up to 2, so no idea how more will actually work. - Oh and the input system can now detect and report physical DPAD devices.
* | free surface buffers before trying to allocate new ones, so we have more ↵Mathias Agopian2009-08-031-0/+1
| | | | | | | | chance of success
* | Merge change 9397Android (Google) Code Review2009-08-011-1/+18
|\ \ | | | | | | | | | | | | * changes: Fix Win32 libutils to get a working SDK build.
| * | Fix Win32 libutils to get a working SDK build.David 'Digit' Turner2009-08-011-1/+18
| | |