replicant-frameworks_native/libs
Kenny Root 61ef747e0e Use pread() in ZipFileRO for Linux
AssetManager instances are created by zygote and passed to all its
children so that they don't have to individually open
frameworks-res.apk. This creates a problem for determining the current
file offset when using lseek() on those files, because you can't
guarantee the cross-process locking of a mutex. Luckily, Linux
implements pread() to get around this suckiness.

The problem is that only Linux implements this, so we have to keep the
old locking for use on host builds with aapt and friends. aapt doesn't
have this same problem of sharing file descriptors across forked
processes, so we can keep the local AutoMutex to protect accesses of
those files.

Change-Id: Ibe9f11499a53fe345f50fbaea438815ec0fd363e
2010-10-04 15:17:19 -07:00
..
binder Some debugging support. 2010-09-24 13:11:55 -07:00
gui Fix typo which causes sensors to fail miserably 2010-09-16 21:41:13 -07:00
surfaceflinger_client add support for [1974164] Be able to take a screen shot on the device 2010-09-24 14:56:39 -07:00
ui Wait for initial device scan to finish before updating config. 2010-10-01 18:55:43 -07:00
utils Use pread() in ZipFileRO for Linux 2010-10-04 15:17:19 -07:00