replicant-frameworks_native/include/utils
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
..
ashmem.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
Asset.h Support streaming of compressed assets > 1 megabyte 2010-07-28 15:33:28 -07:00
AssetDir.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AssetManager.h More native work. 2010-08-11 00:29:59 -07:00
Atomic.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
BackupHelpers.h Only report "unknown metadata" once per restore helper 2009-06-24 13:57:29 -07:00
BitSet.h Add suuport for splitting touch events across windows. 2010-09-26 22:20:12 -07:00
BufferedTextOutput.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
ByteOrder.h Implement the C++ class to write the backed up file data. 2009-05-15 10:37:10 -04:00
CallStack.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
Debug.h Support for marshalling pointers / intptr_t in Parcel. 2009-08-17 15:31:25 -07:00
Endian.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
Errors.h fix [2068105] implement queueBuffer/lockBuffer/dequeueBuffer properly 2009-09-07 16:32:45 -07:00
FileMap.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
Flattenable.h remove a dependency of GraphicBuffer (libui) on Parcel (libbinder). 2010-02-21 23:27:25 -08:00
KeyedVector.h fix KeyedVector::replaceValueAt, which wouldn't even compile if used. 2009-04-10 20:27:25 -07:00
List.h Fix sim build. 2009-07-07 10:01:12 -07:00
Log.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
Looper.h Looper: use pthread_once for TLS key initialization. 2010-09-21 15:26:51 -07:00
misc.h get rid of utils.h 2009-05-31 19:13:00 -07:00
ObbFile.h Add OBB flags to support overlays 2010-08-18 09:34:58 -07:00
Pool.h Native input dispatch rewrite work in progress. 2010-06-13 17:42:16 -07:00
RefBase.h Fix a bug in sp<> and wp<> which could cause memory corruptions 2010-06-24 21:49:02 -07:00
ResourceTypes.h More native work. 2010-08-11 00:29:59 -07:00
SharedBuffer.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
Singleton.h Fix a typo in Singleton<> 2010-05-28 15:13:30 -07:00
SortedVector.h improve Vector<> with types that can be trivially moved and remove some unused code. 2009-06-22 02:31:07 -07:00
StopWatch.h Native input dispatch rewrite work in progress. 2010-06-13 17:42:16 -07:00
StreamingZipInflater.h Support streaming of compressed assets > 1 megabyte 2010-07-28 15:33:28 -07:00
String8.h Add support for the PointerLocation overlay. 2010-08-11 14:46:32 -07:00
String16.h Optional use of UTF-8 strings in resource bundles 2009-12-07 15:14:15 -08:00
StringArray.h rename string_array.h to StringArray.h and move the implementation from the header file to a new cpp file. 2009-06-05 01:26:23 -07:00
SystemClock.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
TextOutput.h some work to try to reduce the code size of some native libraries 2009-05-26 16:12:20 -07:00
threads.h added RWLock C++ wrapper 2010-05-19 15:12:59 -07:00
Timers.h get rid of sleepForInterval() which didn't seem to be used anywhere in the source tree. Also get rid of ported.h which seem to be used only (possibly) in the sim. moved the implementation there. 2009-05-31 23:45:01 -07:00
TypeHelpers.h improve Vector<> with types that can be trivially moved and remove some unused code. 2009-06-22 02:31:07 -07:00
Vector.h Even more native input dispatch work in progress. 2010-06-17 13:27:16 -07:00
VectorImpl.h Even more native input dispatch work in progress. 2010-06-17 13:27:16 -07:00
ZipFileCRO.h ZipUtilsRO rewrite based on Dalvik Zip rewrite 2010-05-12 05:07:48 -07:00
ZipFileRO.h Use pread() in ZipFileRO for Linux 2010-10-04 15:17:19 -07:00
ZipUtils.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00