/hardware/google/graphics/common/libacryl/ |
D | acrylic_device.cpp | 65 : mDevPath(devpath), mDevFd{-1, -1, -1}, mFdIdx(0) in AcrylicRedundantDevice() 73 ::close(mDevFd[i]); in ~AcrylicRedundantDevice() 78 if (mDevFd[0] >= 0) in open() 82 if (mDevFd[i] < 0) { in open() 83 mDevFd[i] = ::open(mDevPath.c_str(), O_RDWR); in open() 84 if (mDevFd[i] < 0) { in open() 87 ::close(mDevFd[i]); in open() 88 mDevFd[i] = -1; in open() 93 ALOGD_TEST("Opened %s on devfd[%d] %d", mDevPath.c_str(), i, mDevFd[i]); in open() 105 return ::ioctl(mDevFd[0], cmd, arg); in ioctl_unique() [all …]
|
D | acrylic_device.h | 55 int mDevFd[MAX_DEVICE_FD]; variable
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | HidRawDevice.cpp | 36 : mDevFd(-1), mMultiIdDevice(false), mValid(false) { in HidRawDevice() 38 mDevFd = ::open(devName.c_str(), O_RDWR); // read write? in HidRawDevice() 39 if (mDevFd < 0) { in HidRawDevice() 87 if (mDevFd > 0) { in ~HidRawDevice() 88 ::close(mDevFd); in ~HidRawDevice() 89 mDevFd = -1; in ~HidRawDevice() 97 if (mDevFd < 0) { in populateDeviceInfo() 102 if (ioctl(mDevFd, HIDIOCGRAWNAME(sizeof(buffer) - 1), buffer) < 0) { in populateDeviceInfo() 109 if (ioctl(mDevFd, HIDIOCGRAWPHYS(sizeof(buffer) - 1), buffer) < 0) { in populateDeviceInfo() 117 if (ioctl(mDevFd, HIDIOCGRAWINFO, &devInfo) < 0) { in populateDeviceInfo() [all …]
|
D | HidRawDevice.h | 72 int mDevFd; variable
|
/hardware/qcom/sm7250/gps/utils/ |
D | LocTimer.cpp | 108 int mDevFd; member in loc_util::LocTimerContainer 225 mDevFd(timerfd_create(wakeOnExpire ? CLOCK_BOOTTIME_ALARM : CLOCK_BOOTTIME, 0)) { in LocTimerContainer() 227 if ((-1 == mDevFd) && (errno == EINVAL)) { in LocTimerContainer() 230 mDevFd = timerfd_create(CLOCK_MONOTONIC, 0); in LocTimerContainer() 233 if (-1 != mDevFd) { in LocTimerContainer() 246 close(mDevFd); in ~LocTimerContainer() 292 return mDevFd; in getTimerFd()
|
/hardware/qcom/sm8150/gps/utils/ |
D | LocTimer.cpp | 108 int mDevFd; member in loc_util::LocTimerContainer 225 mDevFd(timerfd_create(wakeOnExpire ? CLOCK_BOOTTIME_ALARM : CLOCK_BOOTTIME, 0)) { in LocTimerContainer() 227 if ((-1 == mDevFd) && (errno == EINVAL)) { in LocTimerContainer() 230 mDevFd = timerfd_create(CLOCK_MONOTONIC, 0); in LocTimerContainer() 233 if (-1 != mDevFd) { in LocTimerContainer() 246 close(mDevFd); in ~LocTimerContainer() 292 return mDevFd; in getTimerFd()
|
/hardware/qcom/gps/msm8996/utils/ |
D | LocTimer.cpp | 105 int mDevFd; member in LocTimerContainer 212 mDevFd(timerfd_create(wakeOnExpire ? CLOCK_BOOTTIME_ALARM : CLOCK_BOOTTIME, 0)) { in LocTimerContainer() 214 if ((-1 == mDevFd) && (errno == EINVAL)) { in LocTimerContainer() 217 mDevFd = timerfd_create(CLOCK_MONOTONIC, 0); in LocTimerContainer() 220 if (-1 != mDevFd) { in LocTimerContainer() 233 close(mDevFd); in ~LocTimerContainer() 279 return mDevFd; in getTimerFd()
|
/hardware/qcom/sdm845/gps/msm8998/utils/ |
D | LocTimer.cpp | 105 int mDevFd; member in LocTimerContainer 212 mDevFd(timerfd_create(wakeOnExpire ? CLOCK_BOOTTIME_ALARM : CLOCK_BOOTTIME, 0)) { in LocTimerContainer() 214 if ((-1 == mDevFd) && (errno == EINVAL)) { in LocTimerContainer() 217 mDevFd = timerfd_create(CLOCK_MONOTONIC, 0); in LocTimerContainer() 220 if (-1 != mDevFd) { in LocTimerContainer() 233 close(mDevFd); in ~LocTimerContainer() 279 return mDevFd; in getTimerFd()
|
/hardware/qcom/gps/msm8998/utils/ |
D | LocTimer.cpp | 105 int mDevFd; member in LocTimerContainer 212 mDevFd(timerfd_create(wakeOnExpire ? CLOCK_BOOTTIME_ALARM : CLOCK_BOOTTIME, 0)) { in LocTimerContainer() 214 if ((-1 == mDevFd) && (errno == EINVAL)) { in LocTimerContainer() 217 mDevFd = timerfd_create(CLOCK_MONOTONIC, 0); in LocTimerContainer() 220 if (-1 != mDevFd) { in LocTimerContainer() 233 close(mDevFd); in ~LocTimerContainer() 279 return mDevFd; in getTimerFd()
|
/hardware/qcom/gps/msm8909/utils/ |
D | LocTimer.cpp | 104 int mDevFd; member in LocTimerContainer 211 mDevFd(timerfd_create(wakeOnExpire ? CLOCK_BOOTTIME_ALARM : CLOCK_BOOTTIME, 0)) { in LocTimerContainer() 213 if ((-1 == mDevFd) && (errno == EINVAL)) { in LocTimerContainer() 216 mDevFd = timerfd_create(CLOCK_MONOTONIC, 0); in LocTimerContainer() 219 if (-1 != mDevFd) { in LocTimerContainer() 232 close(mDevFd); in ~LocTimerContainer() 278 return mDevFd; in getTimerFd()
|
/hardware/qcom/sdm845/gps/sdm845/utils/ |
D | LocTimer.cpp | 106 int mDevFd; member in LocTimerContainer 213 mDevFd(timerfd_create(wakeOnExpire ? CLOCK_BOOTTIME_ALARM : CLOCK_BOOTTIME, 0)) { in LocTimerContainer() 215 if ((-1 == mDevFd) && (errno == EINVAL)) { in LocTimerContainer() 218 mDevFd = timerfd_create(CLOCK_MONOTONIC, 0); in LocTimerContainer() 221 if (-1 != mDevFd) { in LocTimerContainer() 234 close(mDevFd); in ~LocTimerContainer() 280 return mDevFd; in getTimerFd()
|
/hardware/qcom/sm8150p/gps/utils/ |
D | LocTimer.cpp | 106 int mDevFd; member in LocTimerContainer 213 mDevFd(timerfd_create(wakeOnExpire ? CLOCK_BOOTTIME_ALARM : CLOCK_BOOTTIME, 0)) { in LocTimerContainer() 215 if ((-1 == mDevFd) && (errno == EINVAL)) { in LocTimerContainer() 218 mDevFd = timerfd_create(CLOCK_MONOTONIC, 0); in LocTimerContainer() 221 if (-1 != mDevFd) { in LocTimerContainer() 234 close(mDevFd); in ~LocTimerContainer() 280 return mDevFd; in getTimerFd()
|
/hardware/qcom/gps/msm8909w_3100/utils/ |
D | LocTimer.cpp | 104 int mDevFd; member in LocTimerContainer 211 mDevFd(timerfd_create(wakeOnExpire ? CLOCK_BOOTTIME_ALARM : CLOCK_BOOTTIME, 0)) { in LocTimerContainer() 213 if ((-1 == mDevFd) && (errno == EINVAL)) { in LocTimerContainer() 216 mDevFd = timerfd_create(CLOCK_MONOTONIC, 0); in LocTimerContainer() 219 if (-1 != mDevFd) { in LocTimerContainer() 232 close(mDevFd); in ~LocTimerContainer() 278 return mDevFd; in getTimerFd()
|
/hardware/qcom/sdm845/gps/msm8909/utils/ |
D | LocTimer.cpp | 104 int mDevFd; member in LocTimerContainer 211 mDevFd(timerfd_create(wakeOnExpire ? CLOCK_BOOTTIME_ALARM : CLOCK_BOOTTIME, 0)) { in LocTimerContainer() 213 if ((-1 == mDevFd) && (errno == EINVAL)) { in LocTimerContainer() 216 mDevFd = timerfd_create(CLOCK_MONOTONIC, 0); in LocTimerContainer() 219 if (-1 != mDevFd) { in LocTimerContainer() 232 close(mDevFd); in ~LocTimerContainer() 278 return mDevFd; in getTimerFd()
|
/hardware/qcom/sm7150/gps/utils/ |
D | LocTimer.cpp | 106 int mDevFd; member in LocTimerContainer 213 mDevFd(timerfd_create(wakeOnExpire ? CLOCK_BOOTTIME_ALARM : CLOCK_BOOTTIME, 0)) { in LocTimerContainer() 215 if ((-1 == mDevFd) && (errno == EINVAL)) { in LocTimerContainer() 218 mDevFd = timerfd_create(CLOCK_MONOTONIC, 0); in LocTimerContainer() 221 if (-1 != mDevFd) { in LocTimerContainer() 234 close(mDevFd); in ~LocTimerContainer() 280 return mDevFd; in getTimerFd()
|
/hardware/qcom/sdm845/gps/msm8996/utils/ |
D | LocTimer.cpp | 104 int mDevFd; member in LocTimerContainer 211 mDevFd(timerfd_create(wakeOnExpire ? CLOCK_BOOTTIME_ALARM : CLOCK_BOOTTIME, 0)) { in LocTimerContainer() 213 if ((-1 == mDevFd) && (errno == EINVAL)) { in LocTimerContainer() 216 mDevFd = timerfd_create(CLOCK_MONOTONIC, 0); in LocTimerContainer() 219 if (-1 != mDevFd) { in LocTimerContainer() 232 close(mDevFd); in ~LocTimerContainer() 278 return mDevFd; in getTimerFd()
|