OSDN Git Service

ART: Add FdFile constructors
authorAndreas Gampe <agampe@google.com>
Thu, 13 Aug 2015 23:44:54 +0000 (16:44 -0700)
committerAndreas Gampe <agampe@google.com>
Thu, 14 Jul 2016 02:48:30 +0000 (19:48 -0700)
commitdf8789252252c77660daf5d602d425b60b344b08
treeb393eb58d4a7749d819672d0199f35931a8e945b
parentf79c0e6f74dfaf7ca5ba3fbe1c903abd65086a1a
ART: Add FdFile constructors

Make Open protected, and expose constructors instead. Add a move
constructor and move assignment operator.

Add OS functions that return the FdFile non-pointer version.

Add tests.

Bug: 21192156
Test: m test-art-host
Test: m test-art-target (shamu)
Change-Id: I83e390edde7cd37c900e9d5c3e4d21da22981b3f
runtime/base/unix_file/fd_file.cc
runtime/base/unix_file/fd_file.h
runtime/base/unix_file/fd_file_test.cc
runtime/os_linux.cc
runtime/trace.cc
runtime/utils.cc