summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-10-20Merge "bufferqueue: workaround: allow NULL fence with queueBuffer (DO NOT ↵lollipop-devJesse Hall
MERGE)" into lmp-dev
2014-10-19Add version number to SensorService dump output.Aravind Akella
Change-Id: I64f9482ade523ec3fafe14bff14db7196e32413f
2014-10-19bufferqueue: workaround: allow NULL fence with queueBuffer (DO NOT MERGE)Jesse Hall
On one device there is a bug, not yet root-caused, that causes fence fds to not make it across binder from producer to consumer in the IGraphicBufferProducer::queueBuffer call. Rather than returning an error, which the producer typically treats as a fatal error, this change allows the buffer to be queued with no fence. This avoids an application crash at the risk of (likely single-frame) visible corruption. Bug: 17946343 Change-Id: I9ca89f94098c455e1e90f5f58d5336c936b04a9c
2014-10-15Migrate CA certificates to all usersRobin Lee
Copies the /data/misc/keychain/cacert-* directories to all users on the device, whereas previously they were simply copied to user 0. This is a shallow copy so anything that wasn't supposed to be there will disappear. Bug: 17811821 Change-Id: Iae5909ab8d5efdb83c9c8fdf0e10ab7060d022cc
2014-10-13media: add kMetadataBufferTypeGraphicBufferLajos Molnar
Bug: 17935149 Change-Id: I1c26d1e83d8fa0a9ccdb25f6f3b19a86b1dc6f37
2014-10-10Improve ANR diagnostics.Jeff Brown
Print more details about the exact reason that an ANR has occurred. Also start checking that the window actually has a registered input connection that is not in a broken state. These windows are supposed to be cleaned up by the window manager promptly as if the app had crashed but the pattern of ANRs we are observing suggests that broken windows might be sticking around longer than they should. Bug: 17721767 Change-Id: Ie2803a3fa9642381ecadc198fec15e1b70d93c20
2014-10-08Fix broken error check in Parcel::readBlobNarayan Kamath
mmap returns MAP_FAILED (which is -1) and not NULL on failure. Diagnosed by cferris. bug: 17909809 Change-Id: I609788ebf94742ef88af002d2d3f3bc9b9e520ac
2014-10-07Change ordering of memory allocation and calling Thread::run().Aravind Akella
In some cases this is causing a crash as device.poll is called with NULL. Bug: 17896339 Change-Id: Id431599f2c661338c355c7081b6602f8449a9198
2014-10-06Merge "Parcel: extra validation/debug code for writeDupFileDescriptor" into ↵Jesse Hall
lmp-dev
2014-10-06Parcel: extra validation/debug code for writeDupFileDescriptorJesse Hall
Temporary extra debug validation for b/17477219: a Parcel recipient is getting a positive but invalid fd unexpectedly. Trying to track down where it's coming from. Debug code for bug: 17477219 Change-Id: Idb1e71621025a3928c7adc88fd44790e1abd2a01
2014-10-03Merge "Fix sockfd leakage in SensorService." into lmp-devAravind Akella
2014-10-03Generate the SurfaceFlinger shader cache on initializationRiley Andrews
Blobcache is not yet enabled for surfaceflinger (as it should be). As a temporary workaround, generate all needed shaders during surfaceflinger initialization instead of doing the compilation on-demand during ui transitions. Change-Id: I14455b20a3f85f177d85c9c8b76d8ccc35379b39
2014-10-02Fix sockfd leakage in SensorService.Aravind Akella
i) Call removeFd() only if the fd in the BitTube has been previously added to the Looper. Use a flag to determine whether the fd has been previously added or not. ii) Increment mPendingFlushEventsToSend after holding a connectionLock. iii) Store the number of acks that are pending in SensorEventQueue and send them all at once. Bug: 17472228 Change-Id: I1ec834fea1112a9cfbd9cddd2198438793698502
2014-10-02Merge "Surface: cancel the dequeued buffer when requestBuffer fails" into ↵Jesse Hall
lmp-dev
2014-10-02Merge "add OMX_VIDEO_AVCLevel52 constant" into lmp-devLajos Molnar
2014-10-02Merge "Add more logging for dup(fd) failure" into lmp-devMichael Lentine
2014-10-02Surface: cancel the dequeued buffer when requestBuffer failsJesse Hall
Partial fix for bug: 17477219 Change-Id: Ibf5a9e26e02c4be8854925a77a70f5c9c7dcf6f2
2014-10-02Add more logging for dup(fd) failureMichael Lentine
Bug: 17477219 Change-Id: Ide0ae16d777c9af783023c705c18a93c00999147
2014-10-01add OMX_VIDEO_AVCLevel52 constantLajos Molnar
Bug: 17676461 Change-Id: I120041e9b2ffe2a232a2419bcb5fe88cb49961cb
2014-10-02Merge "Accept socket connection before tracing." into lmp-devChristopher Ferris
2014-10-01Accept socket connection before tracing.Christopher Ferris
Sometimes dumping threads takes a long time and bugreport times out. This change will cause us to accept the bugreport socket connection before dumping threads and should avoid the failed to connect to dumpstate service problems we've seen. Bug: 17758374 Change-Id: I80afa0353cf1c340873f481a8d1d7faffff54120
2014-10-01Merge "When eglMakeCurrent fails we need to fix the egl state." into lmp-devMichael Lentine
2014-10-01When eglMakeCurrent fails we need to fix the egl state.Michael Lentine
Bug: 16676660 Change-Id: Ie7bee9c78378b9e9206060444319e6ee35e1ab74
2014-10-01Merge "add a parameter for PCM limiter enable" into lmp-devChong Zhang
2014-10-01add a parameter for PCM limiter enableChong Zhang
Bug: 17470065 Change-Id: I327115fc16e7afe2bf5870e123d63f9887161206
2014-10-01surfaceflinger: recompute visibility after sideband stream changeJesse Hall
We normally recompute layer visibility when a layer gets its first buffer; before then it's treated as invisible. Sideband layers never get a buffer (as far as SurfaceFlinger knows), so never became visible. Now we also recompute visibility when a layer gets a new sideband stream. Bug: 17752511 Change-Id: I84e150f196eb2eb7bcd2616248e5e3fa73624809
2014-09-30Work on issue #17656716: Unhandled exception in Window ManagerDianne Hackborn
Try to clean up the code paths coming in and out of binder IPCs to plug any places where we could disrupt the gather flag of a thread, causing it to keep gathering stack crawls (which is the thing that is causing our strict mode data to become so large). We now take care of saving and restoring this state in the core IPC code path, not at the Java layer. Change-Id: I73d564778da127bdce00f304225930e7f2318293
2014-09-29Merge "Fix a possible SensorService deadlock." into lmp-devAravind Akella
2014-09-28surfaceflinger: Use landscape resolution for default dpiJesse Hall
When HWC doesn't provide DPI values for a display, we pick a default DPI based on resolution. The intent was that 1080p and higher displays would get XHIGH density, and lower resolutions would get TV density. In KK (and possibly forever) we had a bug that we'd always use TV density. That was fixed in L, but that fix exposed a pre-existing bug that we always used the display's height in its native orientation, rather than in landscape orientation. So an 800x1280 tablet like N7v1 started getting XHIGH density instead of the intended TV density. Bug: 17461633 Change-Id: Ia57fa49e61f36bdda63ce283ef62c9953297222c
2014-09-28Fix a possible SensorService deadlock.Aravind Akella
If the destructor of SensorEventConnection gets called when the main sendEvents loop of SensorService is executing it may result in a deadlock. The loop promotes each connection to a strong_pointer, calls sendEvents and cleans up the connection if necessary. It is possible that the sp's destructor may delete SensorEventConnection which will call the dtor ~SensorEventConnection(). This dtor again needs SensorService mLock to execute which may result in a deadlock. Bug: 17617897 Change-Id: I76c244dbe85fadb591c0bd1a9a5eb01d93f56505
2014-09-27Merge "Revert "Fix sockfd leakage in SensorService. Remove sockfd from ↵Aravind Akella
Looper when the connection is removed from mActiveConnections."" into lmp-dev
2014-09-27Revert "Fix sockfd leakage in SensorService. Remove sockfd from Looper when ↵Aravind Akella
the connection is removed from mActiveConnections." This reverts commit 5105960d49bfa86efeeea8f87c87aa96b5771c37. Change-Id: I4d39ded2e50ef8a8e0aac27e438876203385a1f0
2014-09-26Merge "Only mark repeated keys as PASS_TO_USER if the original key was." ↵Michael Wright
into lmp-dev
2014-09-25Only mark repeated keys as PASS_TO_USER if the original key was.Michael Wright
Bug: 17629695 Change-Id: Ic569aba4149c6cc321c2cf8aede7c5e8a1196234
2014-09-24Merge "surfaceflinger: Check sideband stream changed to trigger sideband ↵Jesse Hall
Layer update." into lmp-dev
2014-09-23surfaceflinger: Check sideband stream changed to trigger sideband Layer update.chenhg
BUG: 17382907 Change-Id: I65fd037bd25238ae68a3976468ae7fd7ce49c562
2014-09-23Fix sockfd leakage in SensorService. Remove sockfd from Looper Aravind Akella
when the connection is removed from mActiveConnections. Bug: 17472228 Change-Id: Iaabe0968bd2104ef961ff5e8659bf91712e2e1db
2014-09-23Add rate-limited logging for unimplemented es functions.Michael Lentine
Bug: 17322013 Change-Id: I7aa5ab2f76cf344cfb75802edbfd44e8e7526ff1
2014-09-23merge in lmp-release history after reset to ↵The Android Automerger
d94854030c76fc4ee4126ca1707a76fbd1f29126
2014-09-23Merge "Include the VPN server IP address in the VPN state file." into lmp-devLorenzo Colitti
2014-09-22merge in lmp-release history after reset to ↵The Android Automerger
b1982b75c4f3d9c812d9c49ca294132430c7cd8d
2014-09-21merge in lmp-release history after reset to ↵The Android Automerger
b1982b75c4f3d9c812d9c49ca294132430c7cd8d
2014-09-20merge in lmp-release history after reset to ↵The Android Automerger
dcb16082dd15e3b137678f2663fa6dd6b9614689
2014-09-20merge in lmp-release history after reset to ↵The Android Automerger
b1982b75c4f3d9c812d9c49ca294132430c7cd8d
2014-09-19am 60d31a0f: am 3c648e37: Update comment to use correct GPS file for wearable.Sean Wan
* commit '60d31a0fc0724d4538d105a800a1565e5f843130': Update comment to use correct GPS file for wearable.
2014-09-19am 3c648e37: Update comment to use correct GPS file for wearable.Sean Wan
* commit '3c648e373a44237c1924fc886daf8418a6e9f4cf': Update comment to use correct GPS file for wearable.
2014-09-19Update comment to use correct GPS file for wearable.Sean Wan
Change-Id: I91c4363dbcc6cada8d6e9599d1b15e77febee0e5
2014-09-19Include the VPN server IP address in the VPN state file.Lorenzo Colitti
This will be used by LegacyVpnRunner to create a throw route pointing at it. Bug: 17462989 Change-Id: I3ebf0cec726dd12b2c57ba5d66775f8c02b25b70
2014-09-18surfaceflinger: add getDisplayStats() methodLajos Molnar
This is used by media service to schedule video frames at the proper time, based on precise vsync timings. Bug: 14659809 Change-Id: I1a90603f3dc09dca9aa4f90a3aa845fab56e0a5e
2014-09-18merge in lmp-release history after reset to ↵The Android Automerger
5bbf73ced30c168176fbcf87b15021ecca2fb90e