replicant-frameworks_native/libs/utils
Rebecca Schultz Zavin 360211f7fe Need to dup file descriptor when reading from the binder for native handles
When reading a native handle that has passed through the binder,
the fds have to be duped to prevent them from getting closed when the binder
object is destructed.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2009-02-13 16:34:38 -08:00
..
Android.mk Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:43 -08:00
Asset.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
AssetDir.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
AssetManager.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
Binder.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
BpBinder.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
BufferedTextOutput.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
CallStack.cpp Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:43 -08:00
characterData.h Initial Contribution 2008-10-21 07:00:00 -07:00
Debug.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
executablepath_darwin.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
executablepath_linux.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
FileMap.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
futex_synchro.c Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:43 -08:00
IDataConnection.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
IInterface.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
IMemory.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
InetAddress.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
IPCThreadState.cpp Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:43 -08:00
IPermissionController.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
IServiceManager.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
LogSocket.cpp Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:43 -08:00
MemoryBase.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
MemoryDealer.cpp Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:43 -08:00
MemoryHeapBase.cpp auto import from //branches/cupcake/...@125939 2009-01-09 17:51:23 -08:00
MemoryHeapPmem.cpp Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:43 -08:00
misc.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
MODULE_LICENSE_APACHE2 Initial Contribution 2008-10-21 07:00:00 -07:00
NOTICE Initial Contribution 2008-10-21 07:00:00 -07:00
Parcel.cpp Need to dup file descriptor when reading from the binder for native handles 2009-02-13 16:34:38 -08:00
Pipe.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
ported.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
ProcessState.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
README Initial Contribution 2008-10-21 07:00:00 -07:00
RefBase.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
ResourceTypes.cpp Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:43 -08:00
SharedBuffer.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
Socket.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
Static.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
StopWatch.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
String8.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
String16.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
SystemClock.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
TextOutput.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
Threads.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
TimerProbe.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
Timers.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
Unicode.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
VectorImpl.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
ZipEntry.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
ZipFile.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
ZipFileCRO.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
ZipFileRO.cpp Initial Contribution 2008-10-21 07:00:00 -07:00
ZipUtils.cpp Initial Contribution 2008-10-21 07:00:00 -07:00

Android Utility Function Library

If you need a feature that is native to Linux but not present on other
platforms, construct a platform-dependent implementation that shares
the Linux interface.  That way the actual device runs as "light" as
possible.

If that isn't feasible, create a system-independent interface and hide
the details.

The ultimate goal is *not* to create a super-duper platform abstraction
layer.  The goal is to provide an optimized solution for Linux with
reasonable implementations for other platforms.