summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Add remove method in CameraParameters class.Wu-cheng Li2010-05-111-0/+5
| | | | | bug:2672651 Change-Id: I537c817b5ca6a3d925f22febe9a5769156354d00
* fix [2664345] Flash: Bad flicker at the end of a pinch zoom.Mathias Agopian2010-05-061-3/+22
| | | | | | | | | | | | | | | the window manger puts SurfaceViews up before they have been rendered into, because of that surfaceflinger doesn't have anything ready to draw for that surface when an udpate occurs and responds by filling the surface with black. With this fix, we only fill those areas of the framebuffer that would otherwise be undefined (no content at all). in the Flash case, the "flash" window is not drawn at all until it has some content, instead the underlaying browser window is shown. Change-Id: Ifb610f7f8c27b88edf83e09adc4803fc295c15a1
* Make static versions of libutils and libbinder.Dan Egnor2010-05-064-30/+43
| | | | | | | | | | Fix some small static-initialization-order issues (and a static- initializers-missing issue) that result from doing so. The static libraries don't actually get used for anything real at the moment -- they're used for perf tests of bug 2660235. Bug: 2660235 Change-Id: Iee2f38f79cc93b395e8d0a5a144ed92461f5ada0
* DO NOT MERGE fix [2557396] Adreno200: glDrawTexi() doesn't work with height ↵Mathias Agopian2010-04-201-54/+39
| | | | | | | | <= 16 don't use glDrawTexi() anymore Change-Id: If71334de39114b0edce7771366f8d8dc26f6911e
* Fix bug 2604132 40s skip after undockingJean-Michel Trivi2010-04-201-1/+1
| | | | | | | In case of A2DP write errors, there is an overflow in the calculation of the sleep duration to simulate the timing of a successful write. Change-Id: Ic4e570aebf07fac69735aab1bbc2fc73512ee795
* fix [2599939] "cannot play video" after open/close a video player a dozen of ↵Mathias Agopian2010-04-191-23/+0
| | | | | | | | | | | | | 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
* fix [2594950] Flash: Zooming in on some content crashes the Nexus One and ↵Mathias Agopian2010-04-143-2/+27
| | | | | | | | | | causes it to reboot (runtime restart) We now limit the size of the surface to the maximum size supported by the GPU. On Nexus One this will 2048 -- it could be different on other devices. Surface creation fails if the limit is exceeded. Change-Id: I9ecfc2e9c58c9e283782b61ebfc6b590f71df785
* Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.Wu-cheng Li2010-04-101-0/+2
| | | | | bug:2544367 Change-Id: If122a7745e080f9e4bffb15dc4930d71f0421867
* Additional fix for isssue 2548710: Native AudioTrack resources never freed.Eric Laurent2010-04-091-1/+1
| | | | | | | This changes fixes the issue for the direct output thread that was not addressed by commit 71f37cd8a175ee00635cb91506d6810fd02b5b51. Change-Id: I1bbe26be5f444415dd97270e49257650f5d2858f
* Fix isssue 2548710: Native AudioTrack resources never freed.Eric Laurent2010-03-311-1/+1
| | | | | | | | | | The problem is a bug in AudioFlinger::MixerThread::prepareTracks_l() that makes that even if the TrackHandle is destroyed, the corresponding Track will remain active as long as frames are ready for mixing. If the track uses shared memory (static mode) and the sound is looped, this track will play for ever. The fix consists in removing the track from active list immediately if the track is terminated. Change-Id: I4582aa1d981079ab79be442fb6185f5afaed5cf3
* Revert "fix [2542425] memory leak during video recording"Dianne Hackborn2010-03-301-2/+0
| | | | This reverts commit 544592e14f8d7643238e40ba9879727497900f35.
* fix [2542425] memory leak during video recordingMathias Agopian2010-03-301-0/+2
| | | | | | | [Sorted|Keyed]Vector<TYPE> would leak their whole storage when resized from the end and TYPE had trivial dtor and copy operators. Change-Id: I8555bb1aa0863df72de27d67ae50e20706e90cf5
* Merge "fix [2542425] memory leak during video recording" into froyoMathias Agopian2010-03-291-1/+4
|\
| * fix [2542425] memory leak during video recordingMathias Agopian2010-03-291-1/+4
| | | | | | | | | | | | | | | | Vector::sort() is using _do_copy() incorrectly; _do_copy() calls the copy constructor, not the assignment operator, so we need to destroy the "destination" before copying the item. Change-Id: Iaeeac808fa5341a7d219edeba4aa63d44f31473c
* | Add some comments for zoom methods.Wu-cheng Li2010-03-291-1/+1
|/ | | | | | | Also change RuntimeException to IllegalArgumentException. bug:2458926 Change-Id: I87af31f5f3f10244131a1117bd1725c2d292b587
* fix [2545826] calling into gralloc with external lock heldMathias Agopian2010-03-251-4/+0
| | | | Change-Id: I2d0e017382404c684c768a0dd0423d574213f10a
* Call unlinkToDeath() when we disconnect the Camera,Chih-Chung Chang2010-03-241-0/+1
| | | | | | | so we don't hold the (weak) reference to it, which caused (small) memory leaks. Change-Id: If7d58a354fd38c8bc380946bf227b52988ac5118
* Merge "libutils Condition are now PRIVATE by default"Mathias Agopian2010-03-191-1/+1
|\
| * libutils Condition are now PRIVATE by defaultMathias Agopian2010-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* | Ensure that binder incalls to the system process keep the fg cgroupChristopher Tate2010-03-181-18/+21
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On binder incalls, the handler thread is given the caller's priority by the driver, but not the caller's cgroup. We have explicit code that sets the handler's cgroup to match the caller's, *except* that the system process explicitly disables this behavior. This led to a siuation in which we were running binder incalls to the system process at nice=10 but cgroup=fg. That's fine as far as it goes, except that if a GC happened in the handler thread, it would be promoted to foreground priority and cgroup both, to avoid having the GC take forever. Then, when GC finished, the original priority is reset, and the cgroup set *based on that priority*. This would push the handler thread into nice=10 cgroup=bg_non_interactive -- which matches the caller, but is supposed to be impossible in the system process. The end result of this was that we could be running "lengthy" operations in the system process in the background. Unfortunately, some of the operations that wound up like this would hold important global system locks for up to twenty seconds as a result, making the entire device unresponsive to input for that period. This CL fixes the binder incall setup to ensure that within the system process, a binder incall is always begun from the normal foreground priority as well as cgroup. In practice now the device still becomes laggy/sluggish when the offending lock-holding time-consuming incall occurs, but since it still runs as a foreground task it is able to proceed to completion within a short time rather than taking 20 seconds. Fixes bug #2403717 Change-Id: Id046aeabd0e80c48eef94accc37842835eab308d
* Change opaque RS typedefs from void * to int. These will likely become ↵Jason Sams2010-03-181-10/+10
| | | | | | int64_t once proper support for >32bits is worked out. Change-Id: Ic30240fe6c79170a0a88fd51185a1f01bd616c45
* Change global variables from extern to non static. Make script local global ↵Jason Sams2010-03-181-4/+3
| | | | | | vars static. Change-Id: I73656978e0f0ceeb927afef292fc4ed9755b7214
* More rsh headers for renderscript and a llvm compatible test script for ↵Jason Sams2010-03-182-0/+139
| | | | | | fountain. Change-Id: If5d682e549e6f849ba809619587feb58c1e4ed0a
* Merge "Fix issue 2416481: Support Voice Dialer over BT SCO."Eric Laurent2010-03-172-15/+33
|\
| * Fix issue 2416481: Support Voice Dialer over BT SCO.Eric Laurent2010-03-162-15/+33
| | | | | | | | | | | | | | | | | | | | | | - AudioPolicyManager: allow platform specific choice for opening a direct output. Also fixed problems in direct output management. - AudioFliinger: use shorter standby delay and track inactivity grace period for direct output thread to free hardware resources as soon as possible. - AudioSystem: do not use cached output selection in getOutput() when a direct output can be selected. Change-Id: If44b50d29237b8402ffd7a5ba1dc43c56f903e9b
* | fix [2511580] Window poop on screen - drop down list left some residual when ↵Mathias Agopian2010-03-163-20/+57
| | | | | | | | | | | | it resized Change-Id: Ib9a3622e7a568ba26717a93b5bfa4a191651f4d0
* | Merge "First cut of basic RS headers for ScriptC. Not nearly complete."Jason Sams2010-03-162-0/+358
|\ \
| * | First cut of basic RS headers for ScriptC. Not nearly complete.Jason Sams2010-03-162-0/+358
| | | | | | | | | | | | Change-Id: I15df067936d3c0ff0e0917fd5ca44dc8e1352154
* | | fix [2515291] Native crash and runtime restart while trying to preview ↵Mathias Agopian2010-03-151-31/+48
| |/ |/| | | | | | | | | | | | | | | captured picture on Sapphire if a buffer couldn't be allocated because of an OOM, SF could, in some case dereference a null pointer. Change-Id: I5321248c38a21e56d5278b6aada2694e64451378
* | Fix bug 2203203 Route STREAM_VOICE_CALL to A2DP when not in call.Jean-Michel Trivi2010-03-141-0/+17
| | | | | | | | Change-Id: I5581702780308658415dc4ad19fbe409fdc5c368
* | implement connect/disconnect in our native_window_t implementationsMathias Agopian2010-03-112-7/+84
| | | | | | | | | | | | | | | | 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
* | fix [2483456] Video orientation is wrong on Droid for some videosMathias Agopian2010-03-114-61/+64
| | | | | | | | Change-Id: I450191f1335f57bffc51aff3e27295395847dbc0
* | Merge "Use proper config to enable LVMX"Jean-Baptiste Queru2010-03-091-3/+1
|\ \
| * | Use proper config to enable LVMXJean-Baptiste Queru2010-03-091-3/+1
| | | | | | | | | | | | Change-Id: Ifa75a82884b99aeee139e055f40e7c510cf28213
* | | Add ability for some manifest attributes to reference resources.Dianne Hackborn2010-03-091-5/+4
|/ / | | | | | | | | | | | | | | | | | | | | 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
* | Initial version of LifeVibes integration.Glenn Kasten2010-03-094-12/+149
| | | | | | | | Also changed tabs to spaces in other audioflinger files.
* | Fix bug 2329540Jean-Michel Trivi2010-03-091-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Part 1 of the fix: when the user doesn't elect to use the car dock for music and media, the APM was not aware of the device being docked. This is fixed by dissociating the notification for the APM of the docking to the dock from the sink state change of the A2DP device. Also missing was forcing the volumes to be reevaluated whenever the device is docked or undocked, as volumes for docks may differ, even when the same output device is being used. Change-Id: If5314e27821a71adbd6df6fdf887c45208241d96
* | improve SF logging/debugging a little bitMathias Agopian2010-03-083-5/+5
| | | | | | | | Change-Id: I6a57f89c25defc293fd748cc1fbd710031c02ec2
* | Merge "Fix a small bug where we could compute SharedBufferStack's tail ↵Mathias Agopian2010-03-081-2/+5
|\ \ | | | | | | | | | incorrectly."
| * | Fix a small bug where we could compute SharedBufferStack's tail incorrectly.Mathias Agopian2010-03-081-2/+5
| | | | | | | | | | | | | | | | | | Also add "tail" to the debug dump(). Change-Id: I04b1ea375dfc9ddcc22f0c6b6cd01300e507572e
* | | Merge "Add camera parameter string constant for "true"."Wu-cheng Li2010-03-081-0/+2
|\ \ \
| * | | Add camera parameter string constant for "true".Wu-cheng Li2010-03-081-0/+2
| | | | | | | | | | | | | | | | | | | | bug:2458926 Change-Id: I11eaae8ff031765e23f2627ded5873eabc09cead
* | | | Merge "fixes for [2474091] Saw Poor behaviour playing a video."Mathias Agopian2010-03-084-14/+28
|\ \ \ \ | |_|/ / |/| | |
| * | | fixes for [2474091] Saw Poor behaviour playing a video.Mathias Agopian2010-03-084-14/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix a bug when hacking video buffers into gralloc buffers where the buffer size was incorrect this was causing the "direct-form-texture" mode to fail - also when the above fails, make sure to revert to the "mdp copy mode" before going to "slow mode" - finally disable completely the "direct-from-texture" mode for now. It cannot work because the allocated buffers can't respect the GPU constraints (alignment and such). We'll have to find a solution for that.
* | | | Fix issue 2317760: Change the priority between wired headset and A2DP.Eric Laurent2010-03-081-7/+7
| |/ / |/| | | | | | | | Modified audio policy manager so that wired headset has precedence over A2DP headset.
* | | Merge "Fix issue 2428563: Camera rendered inoperable by voice call ↵Eric Laurent2010-03-051-2/+8
|\ \ \ | | | | | | | | | | | | interruption."
| * | | Fix issue 2428563: Camera rendered inoperable by voice call interruption.Eric Laurent2010-03-051-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem is that AudioRecord never exits read() when a timeout occurs while trying to get new PCM data from audio hardware input buffer: it just keeps waiting and retrying until stop() is called. In the same time, opencore AndroidAudioInput::audin_thread_func() loop cannot be exited when stuck in AudioRecord::read() because the iExitAudioThread flag can only be sampled when AudioRecord::read() returns. We remain stuck with the audio input thread running. The fix consists in modifying AudioRecord behavior in case of timeout when getting new PCM samples. We now wait only one timeout period and try to restart audio record, in case the problem is due to a media_server process crash. If this fails, we exit read() with a number of bytes read equals to 0 so that AndroidAudioInput::audin_thread_func() loop can exit. Also modified Audioflinger::RecordThread() loop so that we attempt to recover from HAL read errors. In case of read error, the input stream is forced to standby so that next read attempt does a reconfiguration and restart of the audio input device.
* | | | Calculate bitmask array sizes correctly in the EventHubChristopher Tate2010-03-041-8/+8
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We've gotten lucky to date: the previous calculation of bitmask array sizes, (maxval+1)/8 only works properly when 'maxval' is one less than a multiple of 8. Fortunately, this has either been the case for us, or there has been sufficient 'unused' space at the end of the defined max value range that we haven't wound up overreading/overwriting the allocated buffers. Change-Id: I563a93a86644ab9f19489565e06c28e06bb53abc
* | | Fix #2489986 : The key bitmask needs to cover all possible keysChristopher Tate2010-03-041-1/+1
| | | | | | | | | | | | Change-Id: Ieebd2f879e6b6fbc0388655dd66f34be89e809a0
* | | Fix some bugs.Dianne Hackborn2010-03-041-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #2376231: Apps lose window focus (and back key causes ANR) if the lock screen is dismissed while the phone is in landscape mode This is another case where we weren't recomputing the focused window after changing the visibility policy. bug #2479958: Investigate source of "Resources don't contain package for resource number 0x7f0a0000" Um, okay, so it turns out there were bugs all over the place where we would load an XML resource from a another application, but not use the Resources for that application to retrieve its resources...! I think the only reason any of this stuff was working at all was because it typically only cared about retrieving the resource identifiers of the items (it would look up the values later). Bug #2401082: Passion ERE26 monkey crash - InputMethodManagerService Add some null checks.