summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge "Fix issue #5713576: Home redraws after returning from app on Nexus S ↵Dianne Hackborn2011-12-051-4/+10
|\ \ | | | | | | | | | 4G" into ics-mr1
| * | Fix issue #5713576: Home redraws after returning from app on Nexus S 4GDianne Hackborn2011-12-051-4/+10
| |/ | | | | | | | | | | Turn of destroying of activities during memory trimming. Change-Id: Ibea415c13fca4f67f56adefe81a1495f5f9ad273
* | Merge "audioflinger: fix audio skipping over A2DP" into ics-mr1Eric Laurent2011-12-052-8/+14
|\ \ | |/ |/|
| * audioflinger: fix audio skipping over A2DPEric Laurent2011-12-052-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The maximum sleep time allowed in the mixer thread when audio tracks are enabled but not ready for mixing is derived from the latency reported by the output stream. This does not work for A2DP where the latency also reflects encoding, decoding and transfer time. Modified activeSleepTimeUs() to take A2DP case into account. Issue 5682206. Change-Id: I3784ac01fb6f836b5a6ce6f764fb15347586de35
* | SurfaceFlinger: fix layer removal race conditionJesse Hall2011-12-022-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Layer::lockPageFlip() and layer::onRemove() could be called on different threads and race such that lockPageFlip() successfully called mSurfaceTexture->updateTexImage() but then gets NULL back from mSurfaceTexture->getCurrentBuffer(), leading to a crash. This change moves Layer::onRemove() calls to SurfaceFlinger::commitTransaction() so they happen after the Layer is done being drawn from and only happen on the main surfaceflinger thread. Change-Id: I4b550caadff4cc1878d7c3bca6129193fb0c713e
* | Merge "Fix free_cache to actually work" into ics-mr1Kenny Root2011-12-011-1/+0
|\ \
| * | Fix free_cache to actually workKenny Root2011-12-011-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This broke with some other path-related changes, so it was scanning for /data/*/cache instead of /data/data/*/cache Also remove redundant call to restat Bug: 5686310 Change-Id: Id1661f0f1337858fc9ead53c56ab7557f421c591
* | | Merge "Improve how we manage the previous app." into ics-mr1Dianne Hackborn2011-12-013-9/+34
|\ \ \
| * | | Improve how we manage the previous app.Dianne Hackborn2011-12-013-9/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting it when a new activity is being resumed is too soon, because things like an activity launching an exiting (without being seen by the user) can knock out the real previous app that we want. So now we set it when an activity is stopped. At this point it is going to move from the preceptible to background oom adj, so it is a good point to determine whether it should be a previous app to instead put it to that oom adj. This also avoids things like activities that start and immediately finish from impacting the previous app. Further, we keep track of the time each activity was last shown, and use this to further filter what is set as the previous app. Change-Id: I72d1cac4de0cc2d4598170296028f11b06918d4f
* | | | Merge "Put screensavers back in the icebox for now. DO NOT MERGE." into ics-mr1Daniel Sandler2011-12-011-1/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Put screensavers back in the icebox for now. DO NOT MERGE.Daniel Sandler2011-11-301-1/+1
| | | | | | | | | | | | | | | | | | | | Bug: 5689684 Change-Id: I3a5291c3520bb43e35d55714f1522e4ae7f6e63c
* | | | Merge "Fix ConcurrentModificationException in TextServicesManagerService" ↵satok2011-11-301-1/+9
|\ \ \ \ | | | | | | | | | | | | | | | into ics-mr1
| * | | | Fix ConcurrentModificationException in TextServicesManagerServicesatok2011-11-301-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5687402 Change-Id: I59086f956b6ee618ff0e1b1034d767d9ae295848
* | | | | Merge "Fixing memory leaks in the accessiiblity layer." into ics-mr1Svetoslav Ganov2011-11-301-27/+85
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Fixing memory leaks in the accessiiblity layer.Svetoslav Ganov2011-11-291-27/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. AccessibilityInteractionConnections were removed from the AccessiiblityManagerService but their DeathRecipents were not unregistered, thus every removed interaction connection was essentially leaking. Such connection is registered in the system for every ViewRootImpl when accessiiblity is enabled and inregistered when disabled. 2. Every AccessibilityEvent and AccessiilbityEventInfo obtained from a widnow content querying accessibility service had a handle to a binder proxy over which to make queries. Hoewever, holding a proxy to a remote binder prevents the latter from being garbage collected. Therefore, now the events and infos have a connection id insteand and the hindden singleton AccessiiblityInteaction client via which queries are made has a registry with the connections. This class looks up the connection given its id before making an IPC. Now the connection is stored in one place and when an accessibility service is disconnected the system sets the connection to null so the binder object in the system process can be GCed. Note that before this change a bad implemented accessibility service could cache events or infos causing a leak in the system process. This should never happen. 3. SparseArray was not clearing the reference to the last moved element while garbage collecting thus causing a leak. bug:5664337 Change-Id: Id397f614b026d43bd7b57bb7f8186bca5cdfcff9
* | | | | Merge "Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?" ↵Dianne Hackborn2011-11-301-36/+59
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | into ics-mr1
| * | | | | Fix issue #5679504: Device stuck and sudden reboot - Watchdog reset?Dianne Hackborn2011-11-301-36/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Calls to get the display size no longer need to acquire the global window lock. Change-Id: I751ea6ed0e20f1f521783f4bd5a8f9c31cd43573
* | | | | | Merge "Turn off debug log." into ics-mr1Dianne Hackborn2011-11-301-1/+1
|\ \ \ \ \ \
| * | | | | | Turn off debug log.Dianne Hackborn2011-11-301-1/+1
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | Change-Id: I1d4612133580d493d81d0b15752e009202e95ce0
* | | | | | Merge "add a way to access the version string of the h/w implementation of ↵Mathias Agopian2011-11-301-1/+9
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | EGL" into ics-mr1
| * | | | | | add a way to access the version string of the h/w implementation of EGLMathias Agopian2011-11-291-1/+9
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we use a hidden egl extension. the version string is printed in SF's dumpsys log. Change-Id: I123eb4bde6de462bb2404c67b74d6d6219a48d6a
* | | | | | Merge "Expanding NotificationManager's event logging." into ics-mr1Daniel Sandler2011-11-302-6/+9
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Expanding NotificationManager's event logging.Daniel Sandler2011-11-292-6/+9
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically, add the "tag" and "mustNotHaveFlags" columns. (Hunting bug 5444859.) Change-Id: Ic9ece44ed4697f7a8ef54e7870f72c9f94518cd9
* | | | | Merge "Fix issue #5628789: Cannot set static/custom wallpaper after clearing ↵Dianne Hackborn2011-11-301-0/+7
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | Settings data" into ics-mr1
| * | | | Fix issue #5628789: Cannot set static/custom wallpaper after clearing ↵Dianne Hackborn2011-11-291-0/+7
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Settings data Need to make sure the "files" directory is created. Change-Id: I8d5b374a5a03590a5ce7fafb5171705414f7b2f9
* | | | Merge changes I7e973a35,Ib3386fcc into ics-mr1Mathias Agopian2011-11-291-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | * changes: SurfaceTexture: add EGL_KHR_fence_sync option SurfaceTexture: add a blit-to-FBO test
| * | | SurfaceTexture: add EGL_KHR_fence_sync optionJamie Gennis2011-11-291-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | This change adds a compile-time option for SurfaceTexture to use the EGL_KHR_fence_sync extension to synchronize access to Gralloc buffers. Bug: 5122031 Change-Id: I7e973a358631fff5308acf377581b811911fe790
* | | Merge "Fix issue #5636525: ANR observed in setup wizard after changing ↵Dianne Hackborn2011-11-291-0/+5
|\ \ \ | |/ / |/| | | | | language" into ics-mr1
| * | Fix issue #5636525: ANR observed in setup wizard after changing languageDianne Hackborn2011-11-291-0/+5
| | | | | | | | | | | | | | | | | | | | | We could sometimes allow a process to be killed while still waiting for an activity in it to finish stopping. Change-Id: Ibf89665c4ad6da6be22de04a82b19ef778a7fda0
* | | Merge "Another attempt at getting OOM reports to batch." into ics-mr1Dianne Hackborn2011-11-291-25/+70
|\ \ \ | |/ /
| * | Another attempt at getting OOM reports to batch.Dianne Hackborn2011-11-291-25/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | We now generate a stack-trace looking thing at the top of the report. Also fix a bug I hit where the phone window manager was sending a broadcast before the boot had completed. Change-Id: I0cee16180e4d05c9bd3fe715212a28f504ec91ac
* | | Merge "temporarily hardcode Nexus S refresh rate" into ics-mr1Mathias Agopian2011-11-291-0/+1
|\ \ \
| * | | temporarily hardcode Nexus S refresh rateMathias Agopian2011-11-231-0/+1
| | | | | | | | | | | | | | | | Change-Id: Id8465f679b96636041b4b891d0b358c387d456c3
* | | | Fix issue #5642121: Proximity sensor didn't turn the screen on in callDianne Hackborn2011-11-281-9/+23
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turning animations back on exposed this. The problem is that when the screen brightness changes, it initiates a brightness animation. When we force the screen to black as we wait for it to be ready to display, it sees that an animation is running so stops it and thinks this means it should now turn the display off. To fix this, don't modify the screen brightness while we are waiting to show the screen. This is good anyway because the whole point is to avoid showing the screen until ready, and modifying the brightness at that point would turn it on prematurely. Change-Id: I84b296f8ca5705c2d237ea7741cdeb95c5521df9
* | | Fix issue #5588689: Black camera preview after coming back from gmailDianne Hackborn2011-11-283-21/+120
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | Make surface management between SurfaceView and the window manager much more controlled, to ensure that SurfaceView always gets to report the current surface is destroyed before the window manager actually destroys it. Also a small tweak to allow windows that have a wallpaper background to still have a preview window. This makes launching home after it has been killed feel much more responsive. Change-Id: I0d22cf178a499601a770cb1dbadef7487e392d85
* | Merge "audioflinger: reduce sleep time to avoid underrun" into ics-mr1Eric Laurent2011-11-231-1/+23
|\ \ | |/ |/|
| * audioflinger: reduce sleep time to avoid underrunEric Laurent2011-11-221-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | Progressively reduce the sleep time applied in MixerThread::threadLoop() in case of consecutive application underruns to avoid starving the audio HAL. As the default sleep time is longer than the duration of an audio buffer we ended up writing less data than needed by the audio HAL if the condition persisted. Issue 5553055. Change-Id: I2b23ee79c032efa945025db228beaecd1e07a2e5
* | Merge "Fix some policy-base routing issues." into ics-mr1Robert Greenwalt2011-11-231-7/+11
|\ \ | |/ |/|
| * Fix some policy-base routing issues.Robert Greenwalt2011-11-231-7/+11
| | | | | | | | | | | | | | | | | | Secondary nets sometimes come up with no routes, but parsing errors end up with null routes getting added. Trim that away. Also added some dumpstate logging of the secondary route tables and rules. bug:5615697 Change-Id: I94c9d888bab958df44891b9117236436e046cc7f
* | Merge "Hide/show ime switch icon properly" into ics-mr1satok2011-11-171-10/+17
|\ \
| * | Hide/show ime switch icon properlysatok2011-11-181-10/+17
| | | | | | | | | | | | | | | Bug: 5481999 Change-Id: I4b3dde7285a9ac49da8d5d1133fddd0807b03f4d
* | | Merge "Only write network stats when already loaded." into ics-mr1Jeff Sharkey2011-11-172-5/+14
|\ \ \
| * | | Only write network stats when already loaded.Jeff Sharkey2011-11-172-5/+14
| | | | | | | | | | | | | | | | | | | | Bug: 5584564 Change-Id: Ife2a68804bf3691e9bccdc167807204bce8a85b2
* | | | Merge "Update NTP outside locks, log large trim events." into ics-mr1Jeff Sharkey2011-11-163-19/+64
|\ \ \ \ | |/ / /
| * | | Update NTP outside locks, log large trim events.Jeff Sharkey2011-11-163-19/+64
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Move NTP updates outside locks to avoid blocking ShutdownThread. Add logging around trim events that remove substantial history. Include history start in sample events. Bug: 5627247, 5584564 Change-Id: If9bbd93842c710efcdec94e68da87e9e42a5f961
* | | Merge "Disable desk dock apps." into ics-mr1Daniel Sandler2011-11-161-4/+12
|\ \ \
| * | | Disable desk dock apps.Daniel Sandler2011-11-161-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a device is attached to a desk dock, the CATEGORY_DESK_DOCK intent will no longer be fired. As a side effect, the "dock home" behavior (which captures the home key for the dock app as long as the device is docked) is now disabled for desk docks. Car docks are unchanged. Bug: 5591015 Change-Id: I7884f655913c31cf53b88cb2e2b371987be27f64
* | | | Merge "remove hack that hardcoded the refresh rate" into ics-mr1Mathias Agopian2011-11-161-4/+0
|\ \ \ \
| * | | | remove hack that hardcoded the refresh rateMathias Agopian2011-11-161-4/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: Ibdd40b337c547e80ef8541856015f1380c8d58ed
* | | | | Merge "Clean up the spell checker framework" into ics-mr1satok2011-11-161-4/+2
|\ \ \ \ \ | |_|_|/ / |/| | | / | | |_|/ | |/| |