Home
last modified time | relevance | path

Searched refs:mFd (Results 1 – 9 of 9) sorted by relevance

/device/google/contexthub/util/common/
Dfile.cpp27 mFd(-1) { in File()
32 mFd(-1) { in File()
61 mFd = open(path, modeval, filemode); in setTo()
63 mInitCheck = (mFd >= 0) ? OK : -errno; in setTo()
69 if (mFd >= 0) { in close()
70 ::close(mFd); in close()
71 mFd = -1; in close()
78 return ::read(mFd, data, size); in read()
82 return ::write(mFd, data, size); in write()
86 off64_t new_pos = lseek64(mFd, pos, whence); in seekTo()
Dfile.h45 int mFd; member
/device/generic/goldfish/wifi/createns/
Dcreatens.cpp40 explicit Fd(int fd) : mFd(fd) { } in Fd()
43 if (mFd != -1) { in ~Fd()
44 ::close(mFd); in ~Fd()
45 mFd = -1; in ~Fd()
49 int get() const { return mFd; } in get()
52 int mFd; member in Fd
/device/generic/goldfish/network/netmgr/commands/
Dwifi_command.cpp54 explicit Fd(int fd) : mFd(fd) {} in Fd()
56 if (mFd != -1) { in ~Fd()
57 ::close(mFd); in ~Fd()
58 mFd = -1; in ~Fd()
62 int get() const { return mFd; } in get()
65 int mFd; member in Fd
/device/generic/goldfish/wifi/execns/
Dexecns.cpp50 explicit FileDescriptor(int fd) : mFd(fd) { } in FileDescriptor()
53 if (mFd != -1) { in ~FileDescriptor()
54 close(mFd); in ~FileDescriptor()
55 mFd = -1; in ~FileDescriptor()
58 int get() const { return mFd; } in get()
61 int mFd; member in FileDescriptor
/device/google/contexthub/contexthubhal/
Dnanohubhal.cpp184 return rwrite(mFd, &msg, len + sizeof(msg.hdr)); in doSendToDevice()
225 [IDX_NANOHUB] = { .fd = mFd, .events = POLLIN, }, in runDeviceRx()
256 ret = rread(mFd, &msg, sizeof(msg)); in runDeviceRx()
308 close(mFd); in runDeviceRx()
316 mFd = open(get_devnode_path(), O_RDWR); in openHub()
317 if (mFd < 0) { in openHub()
334 close(mFd); in openHub()
369 ::close(mFd); in closeHub()
Dnanohubhal.h125 int mFd; // [0] is read end variable
134 mFd = -1; in reset()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp138 mFd = open(NANOHUB_FILE_PATH, O_RDWR); in HubConnection()
139 mPollFds[0].fd = mFd; in HubConnection()
254 if (mFd >= 0) { in HubConnection()
278 close(mFd); in ~HubConnection()
298 return mFd < 0 ? UNKNOWN_ERROR : OK; in initCheck()
485 ret = TEMP_FAILURE_RETRY(::write(mFd, buf, count)); in sendCmd()
1486 if (mFd < 0) { in threadLoop()
1532 ssize_t len = ::read(mFd, recv, sizeof(recv)); in threadLoop()
Dhubconnection.h259 int mFd; member