HomeSort by relevance Sort by last modified time
    Searched refs:ScopedFd (Results 1 - 25 of 25) sorted by null

  /libnativehelper/include/nativehelper/
ScopedFd.h 26 class ScopedFd final {
28 explicit ScopedFd(int fd) : fd_(fd) {
30 ScopedFd() : ScopedFd(-1) {}
32 ~ScopedFd() {
36 ScopedFd(ScopedFd&& other) : fd_(other.release()) {}
37 ScopedFd& operator = (ScopedFd&& s) {
65 DISALLOW_COPY_AND_ASSIGN(ScopedFd);
    [all...]
  /art/runtime/base/
file_magic.cc 29 ScopedFd OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) {
31 ScopedFd fd(open(filename, O_RDONLY, 0));
34 return ScopedFd();
39 return ScopedFd();
44 return ScopedFd();
file_magic.h 23 #include "ScopedFd.h"
28 ScopedFd OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg);
  /system/tools/aidl/tests/
aidl_test_client_file_descriptors.cpp 26 #include <nativehelper/ScopedFd.h>
50 bool DoWrite(string name, const ScopedFd& fd, const string& buf) {
69 bool DoRead(string name, const ScopedFd& fd, const string& expected) {
90 bool DoPipe(ScopedFd* read_side, ScopedFd* write_side) {
92 ScopedFd return_fd;
108 ScopedFd return_fd;
109 ScopedFd read_fd;
110 ScopedFd write_fd;
139 vector<ScopedFd> array
    [all...]
aidl_test_service.cpp 29 #include <nativehelper/ScopedFd.h>
285 Status RepeatFileDescriptor(const ScopedFd& read,
286 ScopedFd* _aidl_return) override {
288 *_aidl_return = ScopedFd(dup(read.get()));
292 Status ReverseFileDescriptorArray(const vector<ScopedFd>& input,
293 vector<ScopedFd>* repeated,
294 vector<ScopedFd>* _aidl_return) override {
297 repeated->push_back(ScopedFd(dup(item.get())));
298 _aidl_return->push_back(ScopedFd(dup(item.get())));
  /system/core/adb/
adb_utils.h 62 class ScopedFd {
64 ScopedFd() {
67 ~ScopedFd() {
97 DISALLOW_COPY_AND_ASSIGN(ScopedFd);
shell_service.cpp 139 bool CreateSocketpair(ScopedFd* fd1, ScopedFd* fd2) {
173 int OpenPtyChildFd(const char* pts_name, ScopedFd* error_sfd);
179 ScopedFd* SelectLoop(fd_set* master_read_set_ptr,
184 ScopedFd* PassInput();
185 ScopedFd* PassOutput(ScopedFd* sfd, ShellProtocol::Id id);
193 ScopedFd local_socket_sfd_;
196 ScopedFd stdinout_sfd_, stderr_sfd_, protocol_sfd_;
228 ScopedFd child_stdinout_sfd, child_stderr_sfd
    [all...]
commandline.cpp     [all...]
  /system/vold/
Utils.h 119 class ScopedFd {
122 ScopedFd(int fd);
123 ~ScopedFd();
126 DISALLOW_COPY_AND_ASSIGN(ScopedFd);
Utils.cpp 661 ScopedFd::ScopedFd(int fd) : fd_(fd) {}
663 ScopedFd::~ScopedFd() {
CommandListener.cpp 691 const android::vold::ScopedFd pid_fd(
735 android::vold::ScopedFd ns_fd(openat(pid_fd.get(), "ns/mnt", O_RDONLY));
803 android::vold::ScopedFd device_fd(open("/dev/fuse", O_RDWR));
  /bionic/tools/relocation_packer/src/
main.cc 28 #include "nativehelper/ScopedFd.h"
97 ScopedFd fd(open(file, O_RDWR));
  /device/google/dragon/crash_collector/
coredump_writer.cc 28 #include <nativehelper/ScopedFd.h>
117 ScopedFd fd_dest(TEMP_FAILURE_RETRY(open(coredump_filename_.c_str(),
374 ScopedFd fd(TEMP_FAILURE_RETRY(open(
389 ScopedFd fd(TEMP_FAILURE_RETRY(open(
  /frameworks/base/packages/MtpDocumentsProvider/jni/
com_android_mtp_AppFuse.cpp 95 class ScopedFd {
99 explicit ScopedFd(int fd) : mFd(fd) {}
100 ~ScopedFd() {
450 ScopedFd fd(static_cast<int>(jfd));
  /frameworks/native/include/binder/
Parcel.h 24 #include <nativehelper/ScopedFd.h>
189 const ScopedFd& fd);
194 const std::unique_ptr<std::vector<ScopedFd>>& val);
196 const std::vector<ScopedFd>& val);
323 ScopedFd* val) const;
328 std::unique_ptr<std::vector<ScopedFd>>* val) const;
330 std::vector<ScopedFd>* val) const;
  /art/compiler/
oat_writer.h 32 #include "ScopedFd.h"
135 ScopedFd&& zip_fd,
oat_test.cc 161 ScopedFd&& zip_fd,
711 ScopedFd zip_fd(dup(zip_file.GetFd()));
    [all...]
oat_writer.cc 326 ScopedFd fd(OpenAndReadMagic(filename, &magic, &error_msg));
349 bool OatWriter::AddZippedDexFilesSource(ScopedFd&& zip_fd,
    [all...]
  /frameworks/native/libs/binder/
Parcel.cpp     [all...]
  /art/runtime/
mem_map.cc 31 #include "ScopedFd.h"
301 ScopedFd fd(-1);
555 ScopedFd fd(int_fd);
    [all...]
dex_file.cc 59 #include "ScopedFd.h"
88 ScopedFd fd(OpenAndReadMagic(file_part, &magic, error_msg));
128 ScopedFd fd(OpenAndReadMagic(filename, &magic, error_msg));
163 ScopedFd fd(OpenAndReadMagic(filename, &magic, &error_msg));
236 ScopedFd delayed_close(fd);
    [all...]
  /frameworks/native/cmds/dumpstate/
dumpstate.cpp 46 #include "ScopedFd.h"
575 ScopedFd fd(TEMP_FAILURE_RETRY(open(entry_path.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC)));
    [all...]
  /system/core/debuggerd/
debuggerd.cpp 49 #include <nativehelper/ScopedFd.h>
754 ScopedFd closer(fd);
  /libcore/luni/src/main/native/
libcore_icu_ICU.cpp 23 #include "ScopedFd.h"
    [all...]
  /art/dex2oat/
dex2oat.cc     [all...]

Completed in 1532 milliseconds