Home
last modified time | relevance | path

Searched refs:dupDescriptor (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/native/graphics/jni/
Dimagedecoder.cpp116 int dupDescriptor = fcntl(fd, F_DUPFD_CLOEXEC, 0); in AImageDecoder_createFromFd() local
117 FILE* file = fdopen(dupDescriptor, "r"); in AImageDecoder_createFromFd()
119 close(dupDescriptor); in AImageDecoder_createFromFd()
/frameworks/base/libs/hwui/jni/
DBitmapFactory.cpp546 int dupDescriptor = fcntl(descriptor, F_DUPFD_CLOEXEC, 0); in nativeDecodeFileDescriptor()
548 FILE* file = fdopen(dupDescriptor, "r"); in nativeDecodeFileDescriptor()
552 close(dupDescriptor); in nativeDecodeFileDescriptor()
560 assert(isSeekable(dupDescriptor)); in nativeDecodeFileDescriptor()
DImageDecoder.cpp167 int dupDescriptor = fcntl(descriptor, F_DUPFD_CLOEXEC, 0); in ImageDecoder_nCreateFd()
168 FILE* file = fdopen(dupDescriptor, "r"); in ImageDecoder_nCreateFd()
170 close(dupDescriptor); in ImageDecoder_nCreateFd()