/hardware/interfaces/nfc/1.0/vts/functional/ |
D | VtsHalNfcV1_0TargetTest.cpp | 110 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp() local 111 EXPECT_TRUE(res.no_timeout); in SetUp() 112 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in SetUp() 113 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 120 res = nfc_cb_->WaitForCallback(kCallbackNameSendData); in SetUp() 121 EXPECT_TRUE(res.no_timeout); in SetUp() 122 EXPECT_GE(6ul, res.args->last_data_.size()); in SetUp() 123 EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]); in SetUp() 124 if (res.args->last_data_.size() == 6) { in SetUp() 125 nci_version = res.args->last_data_[4]; in SetUp() [all …]
|
/hardware/qcom/sdm845/data/ipacfg-mgr/hal/src/ |
D | HAL.cpp | 260 BoolResult res = makeInputCheckFailure("Must provide exactly one FD per handle (fd1)"); in setHandles() local 261 hidl_cb(res.success, res.errMsg); in setHandles() 262 fl.setResult(res.success, res.errMsg); in setHandles() 269 BoolResult res = makeInputCheckFailure("Must provide exactly one FD per handle (fd2)"); in setHandles() local 270 hidl_cb(res.success, res.errMsg); in setHandles() 271 fl.setResult(res.success, res.errMsg); in setHandles() 317 BoolResult res = ipaResultToBoolResult(ipaReturn); in setHandles() local 318 hidl_cb(res.success, res.errMsg); in setHandles() 320 fl.setResult(res.success, res.errMsg); in setHandles() 335 BoolResult res = makeInputCheckFailure("Already initialized"); in initOffload() local [all …]
|
/hardware/qcom/sm8150/data/ipacfg-mgr/hal/src/ |
D | HAL.cpp | 262 BoolResult res = makeInputCheckFailure("Must provide exactly one FD per handle (fd1)"); in setHandles() local 263 hidl_cb(res.success, res.errMsg); in setHandles() 264 fl.setResult(res.success, res.errMsg); in setHandles() 271 BoolResult res = makeInputCheckFailure("Must provide exactly one FD per handle (fd2)"); in setHandles() local 272 hidl_cb(res.success, res.errMsg); in setHandles() 273 fl.setResult(res.success, res.errMsg); in setHandles() 319 BoolResult res = ipaResultToBoolResult(ipaReturn); in setHandles() local 320 hidl_cb(res.success, res.errMsg); in setHandles() 322 fl.setResult(res.success, res.errMsg); in setHandles() 337 BoolResult res = makeInputCheckFailure("Already initialized"); in initOffload() local [all …]
|
/hardware/qcom/data/ipacfg-mgr/msm8998/hal/src/ |
D | HAL.cpp | 260 BoolResult res = makeInputCheckFailure("Must provide exactly one FD per handle (fd1)"); in setHandles() local 261 hidl_cb(res.success, res.errMsg); in setHandles() 262 fl.setResult(res.success, res.errMsg); in setHandles() 269 BoolResult res = makeInputCheckFailure("Must provide exactly one FD per handle (fd2)"); in setHandles() local 270 hidl_cb(res.success, res.errMsg); in setHandles() 271 fl.setResult(res.success, res.errMsg); in setHandles() 317 BoolResult res = ipaResultToBoolResult(ipaReturn); in setHandles() local 318 hidl_cb(res.success, res.errMsg); in setHandles() 320 fl.setResult(res.success, res.errMsg); in setHandles() 335 BoolResult res = makeInputCheckFailure("Already initialized"); in initOffload() local [all …]
|
/hardware/libhardware/modules/usbcamera/ |
D | UsbCamera.cpp | 202 int res = sync_wait(in->acquire_fence, CAMERA_SYNC_TIMEOUT_MS); in processCaptureBuffer() local 203 if (res == -ETIME) { in processCaptureBuffer() 206 return res; in processCaptureBuffer() 207 } else if (res) { in processCaptureBuffer() 209 __func__, mId, strerror(-res), res); in processCaptureBuffer() 210 return res; in processCaptureBuffer() 226 int res; in initDevice() local 230 res = base.add1UInt8(ANDROID_CONTROL_MODE, ANDROID_CONTROL_MODE_OFF); in initDevice() 231 if (res) in initDevice() 232 return res; in initDevice() [all …]
|
/hardware/libhardware/modules/camera/3_4/metadata/ |
D | metadata.cpp | 47 int res = 0; in FillStaticMetadata() local 53 res = component->PopulateStaticFields(&additional_metadata); in FillStaticMetadata() 54 if (res) { in FillStaticMetadata() 56 return res; in FillStaticMetadata() 60 res = metadata->append(additional_metadata); in FillStaticMetadata() 61 if (res != android::OK) { in FillStaticMetadata() 63 return res; in FillStaticMetadata() 84 res = UpdateMetadata( in FillStaticMetadata() 86 if (res != android::OK) { in FillStaticMetadata() 91 res = UpdateMetadata( in FillStaticMetadata() [all …]
|
D | metadata_reader.cpp | 37 int res = v4l2_camera_hal::SingleTagValue( in Facing() local 39 if (res) { in Facing() 41 return res; in Facing() 65 int res = v4l2_camera_hal::SingleTagValue( in Orientation() local 67 if (res) { in Orientation() 69 return res; in Orientation() 88 int res = v4l2_camera_hal::SingleTagValue( in MaxInputStreams() local 90 if (res == -ENOENT) { in MaxInputStreams() 93 } else if (res) { in MaxInputStreams() 96 return res; in MaxInputStreams() [all …]
|
/hardware/libhardware/modules/camera/3_0/ |
D | ExampleCamera.cpp | 183 int res; in initDevice() local 188 res = base.add1UInt8(ANDROID_CONTROL_MODE, ANDROID_CONTROL_MODE_OFF); in initDevice() 189 if (res) in initDevice() 190 return res; in initDevice() 193 res = setPreviewTemplate(base); in initDevice() 194 if (res) in initDevice() 195 return res; in initDevice() 196 res = setStillTemplate(base); in initDevice() 197 if (res) in initDevice() 198 return res; in initDevice() [all …]
|
/hardware/interfaces/usb/1.2/vts/functional/ |
D | VtsHalUsbV1_2TargetTest.cpp | 201 auto res = usb_cb_2->WaitForCallback(kCallbackNameNotifyPortStatusChange_1_2); in TEST_F() local 202 EXPECT_TRUE(res.no_timeout); in TEST_F() 203 EXPECT_EQ(kCallbackIdentifier, res.args->last_usb_cookie); in TEST_F() 204 EXPECT_EQ(PortMode::NONE, res.args->usb_last_port_status.status_1_1.status.currentMode); in TEST_F() 205 EXPECT_EQ(PortMode::NONE, res.args->usb_last_port_status.status_1_1.status.supportedModes); in TEST_F() 206 EXPECT_EQ(Status::SUCCESS, res.args->usb_last_status); in TEST_F() 217 auto res = usb_cb_2->WaitForCallback(kCallbackNameNotifyPortStatusChange_1_2); in TEST_F() local 218 EXPECT_TRUE(res.no_timeout); in TEST_F() 219 EXPECT_EQ(kCallbackIdentifier, res.args->last_usb_cookie); in TEST_F() 220 EXPECT_EQ(PortMode::NONE, res.args->usb_last_port_status.status_1_1.status.currentMode); in TEST_F() [all …]
|
/hardware/interfaces/nfc/1.1/vts/functional/ |
D | VtsHalNfcV1_1TargetTest.cpp | 99 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp() local 100 EXPECT_TRUE(res.no_timeout); in SetUp() 101 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in SetUp() 102 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 110 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp() 111 EXPECT_TRUE(res.no_timeout); in SetUp() 112 EXPECT_EQ(NfcEvent::CLOSE_CPLT, res.args->last_event_); in SetUp() 113 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 117 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp() 118 EXPECT_TRUE(res.no_timeout); in SetUp() [all …]
|
/hardware/libhardware/modules/camera/3_4/ |
D | v4l2_camera.cpp | 50 int res = GetV4L2Metadata(v4l2_wrapper, &metadata); in NewV4L2Camera() local 51 if (res) { in NewV4L2Camera() 52 HAL_LOGE("Failed to initialize V4L2 metadata: %d", res); in NewV4L2Camera() 121 int res = metadata_->FillStaticMetadata(out); in initStaticInfo() local 122 if (res) { in initStaticInfo() 124 return res; in initStaticInfo() 128 res = SingleTagValue( in initStaticInfo() 130 if (res) { in initStaticInfo() 132 return res; in initStaticInfo() 134 res = SingleTagValue( in initStaticInfo() [all …]
|
D | camera.cpp | 97 int res = loadStaticInfo(); in getInfo() local 98 if (res) { in getInfo() 99 return res; in getInfo() 120 int res = initStaticInfo(static_metadata.get()); in loadStaticInfo() local 121 if (res) { in loadStaticInfo() 124 return res; in loadStaticInfo() 157 int res; in initialize() local 162 res = initDevice(); in initialize() 163 if (res != 0) { in initialize() 165 return res; in initialize() [all …]
|
/hardware/interfaces/drm/1.1/vts/functional/ |
D | drm_hal_clearkey_test.cpp | 42 auto res = drmPlugin->openSession( in openSession() local 48 EXPECT_OK(res); in openSession() 58 auto res = drmPlugin->openSession_1_1(level, in openSession() local 64 EXPECT_OK(res); in openSession() 115 auto res = drmPlugin->getKeyRequest_1_1( in loadKeys() local 123 EXPECT_OK(res); in loadKeys() 126 res = drmPlugin->provideKeyResponse( in loadKeys() 133 EXPECT_OK(res); in loadKeys() 141 auto res = drmPlugin->openSession_1_1(SecurityLevel::HW_SECURE_ALL, in TEST_P() local 145 EXPECT_OK(res); in TEST_P() [all …]
|
/hardware/interfaces/camera/common/1.0/default/ |
D | CameraMetadata.cpp | 191 status_t res; in update() local 196 if ( (res = checkType(tag, TYPE_INT32)) != OK) { in update() 197 return res; in update() 204 status_t res; in update() local 209 if ( (res = checkType(tag, TYPE_BYTE)) != OK) { in update() 210 return res; in update() 217 status_t res; in update() local 222 if ( (res = checkType(tag, TYPE_FLOAT)) != OK) { in update() 223 return res; in update() 230 status_t res; in update() local [all …]
|
/hardware/interfaces/biometrics/fingerprint/2.1/vts/functional/ |
D | VtsHalBiometricsFingerprintV2_1TargetTest.cpp | 212 Return<RequestStatus> res = mService->setActiveGroup(kGroupId, kTmpDir); in SetUp() local 213 ASSERT_EQ(RequestStatus::SYS_OK, static_cast<RequestStatus>(res)); in SetUp() 239 uint64_t res = static_cast<uint64_t>(mService->preEnroll()); in TEST_P() local 240 EXPECT_NE(0UL, res); in TEST_P() 241 m[res]++; in TEST_P() 242 EXPECT_EQ(1UL, m[res]); in TEST_P() 257 Return<RequestStatus> res = mService->enroll(token, kGroupId, kTimeout); in TEST_P() local 258 ASSERT_EQ(RequestStatus::SYS_OK, static_cast<RequestStatus>(res)); in TEST_P() 272 Return<RequestStatus> res = mService->enroll(token, kGroupId, kTimeout); in TEST_P() local 273 ASSERT_EQ(RequestStatus::SYS_OK, static_cast<RequestStatus>(res)); in TEST_P() [all …]
|
/hardware/qcom/sm8150/display/sdm/libs/utils/ |
D | rect.cpp | 68 LayerRect res; in Intersection() local 74 res.left = std::max(rect1.left, rect2.left); in Intersection() 75 res.top = std::max(rect1.top, rect2.top); in Intersection() 76 res.right = std::min(rect1.right, rect2.right); in Intersection() 77 res.bottom = std::min(rect1.bottom, rect2.bottom); in Intersection() 79 if (!IsValid(res)) { in Intersection() 83 return res; in Intersection() 87 LayerRect res; in Reposition() local 93 res.left = rect.left + FLOAT(x_offset); in Reposition() 94 res.top = rect.top + FLOAT(y_offset); in Reposition() [all …]
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | HidRawDevice.cpp | 204 int res = ::ioctl(mDevFd, HIDIOCGFEATURE(size), mIoBuffer.data()); in getFeature() local 205 if (res < 0) { in getFeature() 207 << " ioctl returns " << res << " (" << ::strerror(res) << ")" << LOG_ENDL; in getFeature() 211 if (static_cast<size_t>(res) != size) { in getFeature() 213 << " returned " << res << " bytes, does not match expected " << size << LOG_ENDL; in getFeature() 250 int res = ::ioctl(mDevFd, HIDIOCSFEATURE(size), mIoBuffer.data()); in setFeature() local 251 if (res < 0) { in setFeature() 252 LOG_E << "HidRawDevice::setFeature: feature " << id << " ioctl returns " << res in setFeature() 253 << " (" << ::strerror(res) << ")" << LOG_ENDL; in setFeature() 276 int res; in sendReport() local [all …]
|
/hardware/invensense/65xx/libsensors_iio/ |
D | MPLSupport.cpp | 148 int res=0; in read_sysfs_int() local 154 res = errno; in read_sysfs_int() 155 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int() 158 return -res; in read_sysfs_int() 163 int res=0; in read_sysfs_int64() local 169 res = errno; in read_sysfs_int64() 170 LOGE("HAL:ERR open file %s to read with error %d", filename, res); in read_sysfs_int64() 173 return -res; in read_sysfs_int64() 191 int res=0; in write_sysfs_int() local 197 res = errno; in write_sysfs_int() [all …]
|
D | MPLSensor.cpp | 1073 int res = 0; in setGyroInitialState() local 1078 res = errno; in setGyroInitialState() 1081 mpu.gyro_rate, strerror(res), res); in setGyroInitialState() 1082 return res; in setGyroInitialState() 1084 res = write_attribute_sensor(fd, HW_GYRO_RATE_HZ); in setGyroInitialState() 1085 if(res < 0) { in setGyroInitialState() 1088 return res; in setGyroInitialState() 1123 int res = -1; in onDmp() local 1149 res = 0; //Indicate write successful in onDmp() 1166 res = -1; in onDmp() [all …]
|
/hardware/qcom/display/msm8996/sdm/libs/utils/ |
D | rect.cpp | 63 LayerRect res; in Intersection() local 69 res.left = std::max(rect1.left, rect2.left); in Intersection() 70 res.top = std::max(rect1.top, rect2.top); in Intersection() 71 res.right = std::min(rect1.right, rect2.right); in Intersection() 72 res.bottom = std::min(rect1.bottom, rect2.bottom); in Intersection() 74 if (!IsValid(res)) { in Intersection() 78 return res; in Intersection() 82 LayerRect res; in Reposition() local 88 res.left = rect.left + FLOAT(x_offset); in Reposition() 89 res.top = rect.top + FLOAT(y_offset); in Reposition() [all …]
|
/hardware/broadcom/wlan/bcmdhd/wifi_hal/ |
D | cpp_bindings.cpp | 572 int res = create(NL80211_CMD_VENDOR); in create() local 573 if (res < 0) { in create() 574 return res; in create() 577 res = put_u32(NL80211_ATTR_VENDOR_ID, id); in create() 578 if (res < 0) { in create() 579 return res; in create() 582 res = put_u32(NL80211_ATTR_VENDOR_SUBCMD, subcmd); in create() 583 if (res < 0) { in create() 584 return res; in create() 588 res = set_iface_id(mIface); in create() [all …]
|
/hardware/interfaces/nfc/1.2/vts/functional/ |
D | VtsHalNfcV1_2TargetTest.cpp | 99 auto res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp() local 100 EXPECT_TRUE(res.no_timeout); in SetUp() 101 EXPECT_EQ(NfcEvent::OPEN_CPLT, res.args->last_event_); in SetUp() 102 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 110 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp() 111 EXPECT_TRUE(res.no_timeout); in SetUp() 112 EXPECT_EQ(NfcEvent::CLOSE_CPLT, res.args->last_event_); in SetUp() 113 EXPECT_EQ(NfcStatus::OK, res.args->last_status_); in SetUp() 117 res = nfc_cb_->WaitForCallback(kCallbackNameSendEvent); in SetUp() 118 EXPECT_TRUE(res.no_timeout); in SetUp() [all …]
|
/hardware/invensense/6515/libsensors_iio/ |
D | MPLSensor.cpp | 166 int res; in MPLSensor() local 385 res = write_sysfs_int(mpu.smd_threshold, motionThreshold); in MPLSensor() 391 res = write_sysfs_int(mpu.pedometer_step_thresh, StepCounterThreshold); in MPLSensor() 838 int res, fd; in loadDMP() local 1047 int res = -1; in onDmp() local 1073 res = 0; //Indicate write successful in onDmp() 1090 res = -1; in onDmp() 1096 res = 0; //DMP already set as requested in onDmp() 1104 return res; in onDmp() 1109 int res = 0; in setDmpFeature() local [all …]
|
/hardware/qcom/display/msm8998/libdrmutils/ |
D | drm_res_mgr.cpp | 46 static bool GetConnector(int dev_fd, drmModeRes *res, drmModeConnector **connector) { in GetConnector() argument 47 for (auto i = 0; i < res->count_connectors; i++) { in GetConnector() 48 drmModeConnector *conn = drmModeGetConnector(dev_fd, res->connectors[i]); in GetConnector() 72 static bool GetCrtc(int dev_fd, drmModeRes *res, drmModeEncoder *enc, drmModeCrtc **crtc) { in GetCrtc() argument 73 for (auto i = 0; i < res->count_crtcs; i++) { in GetCrtc() 75 drmModeCrtc *c = drmModeGetCrtc(dev_fd, res->crtcs[i]); in GetCrtc() 115 drmModeRes *res = drmModeGetResources(dev_fd); in Init() local 116 if (res == nullptr) { in Init() 122 if (!GetConnector(dev_fd, res, &conn)) { in Init() 135 if (!GetCrtc(dev_fd, res, enc, &crtc)) { in Init() [all …]
|
/hardware/qcom/display/msm8909/libdrmutils/ |
D | drm_res_mgr.cpp | 46 static bool GetConnector(int dev_fd, drmModeRes *res, drmModeConnector **connector) { in GetConnector() argument 47 for (auto i = 0; i < res->count_connectors; i++) { in GetConnector() 48 drmModeConnector *conn = drmModeGetConnector(dev_fd, res->connectors[i]); in GetConnector() 72 static bool GetCrtc(int dev_fd, drmModeRes *res, drmModeEncoder *enc, drmModeCrtc **crtc) { in GetCrtc() argument 73 for (auto i = 0; i < res->count_crtcs; i++) { in GetCrtc() 75 drmModeCrtc *c = drmModeGetCrtc(dev_fd, res->crtcs[i]); in GetCrtc() 115 drmModeRes *res = drmModeGetResources(dev_fd); in Init() local 116 if (res == nullptr) { in Init() 122 if (!GetConnector(dev_fd, res, &conn)) { in Init() 135 if (!GetCrtc(dev_fd, res, enc, &crtc)) { in Init() [all …]
|