/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/ |
D | and_constructor.c | 115 size_t r = 1; in inv_playback() local 136 r = fread(&type, sizeof(type), 1, inv_construct.file); in inv_playback() 137 if (r == 0) { in inv_playback() 146 r = fread(gyro, sizeof(gyro[0]), 3, inv_construct.file); in inv_playback() 147 r = fread(&ts, sizeof(ts), 1, inv_construct.file); in inv_playback() 155 r = fread(buffer, sizeof(buffer[0]), 3, inv_construct.file); in inv_playback() 156 r = fread(&ts, sizeof(ts), 1, inv_construct.file); in inv_playback() 166 r = fread(buffer, sizeof(buffer[0]), 3, inv_construct.file); in inv_playback() 167 r = fread(&ts, sizeof(ts), 1, inv_construct.file); in inv_playback() 175 r = fread(buffer, sizeof(buffer[0]), 1, inv_construct.file); in inv_playback() [all …]
|
/hardware/qcom/msm8998/json-c/ |
D | random_seed.c | 95 int r; in get_rdrand_seed() local 96 while (_rdrand32_step(&r) == 0); in get_rdrand_seed() 97 return r; in get_rdrand_seed() 160 int r; in get_dev_random_seed() local 161 ssize_t nread = read(fd, &r, sizeof(r)); in get_dev_random_seed() 162 if (nread != sizeof(r)) { in get_dev_random_seed() 168 return r; in get_dev_random_seed() 191 int r; in get_cryptgenrandom_seed() local 198 if (!CryptGenRandom(hProvider, sizeof(r), (BYTE*)&r)) { in get_cryptgenrandom_seed() 205 return r; in get_cryptgenrandom_seed()
|
/hardware/google/pixel/perfstatsd/include/ |
D | io_usage.h | 68 UserIo r; member 69 r.uid = uid; 70 r.fgRead = fgRead - other.fgRead; 71 r.bgRead = bgRead - other.bgRead; 72 r.fgWrite = fgWrite - other.fgWrite; 73 r.bgWrite = bgWrite - other.bgWrite; 74 r.fgFsync = fgFsync - other.fgFsync; 75 r.bgFsync = bgFsync - other.bgFsync; 76 return r; 80 UserIo r; member [all …]
|
/hardware/interfaces/automotive/evs/1.0/vts/functional/ |
D | FormatConvert.cpp | 86 for (unsigned r = 0; r < height; r++) { in copyNV21toRGB32() local 88 uint8_t* rowY = srcY + r*strideLum; in copyNV21toRGB32() 89 uint8_t* rowUV = srcUV + (r/2 * strideColor); in copyNV21toRGB32() 91 uint32_t* rowDest = dst + r*dstStridePixels; in copyNV21toRGB32() 122 for (unsigned r = 0; r < height; r++) { in copyYV12toRGB32() local 124 uint8_t* rowY = srcY + r*strideLum; in copyYV12toRGB32() 125 uint8_t* rowU = srcU + (r/2 * strideColor); in copyYV12toRGB32() 126 uint8_t* rowV = srcV + (r/2 * strideColor); in copyYV12toRGB32() 128 uint32_t* rowDest = dst + r*dstStridePixels; in copyYV12toRGB32() 147 for (unsigned r = 0; r < height; r++) { in copyYUYVtoRGB32() local
|
/hardware/qcom/gps/msm8909w_3100/android/location_api/ |
D | GeofenceAPIClient.cpp | 159 auto r = mGnssGeofencingCbIface->gnssGeofenceTransitionCb( in onGeofenceBreachCb() local 162 if (!r.isOk()) { in onGeofenceBreachCb() 164 __func__, r.description().c_str()); in onGeofenceBreachCb() 181 auto r = mGnssGeofencingCbIface->gnssGeofenceStatusCb(status, gnssLocation); in onGeofenceStatusCb() local 182 if (!r.isOk()) { in onGeofenceStatusCb() 184 __func__, r.description().c_str()); in onGeofenceStatusCb() 200 auto r = mGnssGeofencingCbIface->gnssGeofenceAddCb(ids[i], status); in onAddGeofencesCb() local 201 if (!r.isOk()) { in onAddGeofencesCb() 203 __func__, r.description().c_str()); in onAddGeofencesCb() 220 auto r = mGnssGeofencingCbIface->gnssGeofenceRemoveCb(ids[i], status); in onRemoveGeofencesCb() local [all …]
|
D | GnssAPIClient.cpp | 303 auto r = gnssCbIface->gnssSetCapabilitesCb(data); in onCapabilitiesCb() local 304 if (!r.isOk()) { in onCapabilitiesCb() 306 __func__, r.description().c_str()); in onCapabilitiesCb() 319 auto r = gnssCbIface->gnssSetSystemInfoCb(gnssInfo); in onCapabilitiesCb() local 320 if (!r.isOk()) { in onCapabilitiesCb() 322 __func__, r.description().c_str()); in onCapabilitiesCb() 337 auto r = gnssCbIface->gnssLocationCb(gnssLocation); in onTrackingCb() local 338 if (!r.isOk()) { in onTrackingCb() 340 __func__, r.description().c_str()); in onTrackingCb() 430 auto r = gnssCbIface->gnssSvStatusCb(svStatus); in onGnssSvCb() local [all …]
|
/hardware/qcom/gps/msm8998/android/location_api/ |
D | GeofenceAPIClient.cpp | 158 auto r = mGnssGeofencingCbIface->gnssGeofenceTransitionCb( in onGeofenceBreachCb() local 161 if (!r.isOk()) { in onGeofenceBreachCb() 163 __func__, r.description().c_str()); in onGeofenceBreachCb() 180 auto r = mGnssGeofencingCbIface->gnssGeofenceStatusCb(status, gnssLocation); in onGeofenceStatusCb() local 181 if (!r.isOk()) { in onGeofenceStatusCb() 183 __func__, r.description().c_str()); in onGeofenceStatusCb() 199 auto r = mGnssGeofencingCbIface->gnssGeofenceAddCb(ids[i], status); in onAddGeofencesCb() local 200 if (!r.isOk()) { in onAddGeofencesCb() 202 __func__, r.description().c_str()); in onAddGeofencesCb() 219 auto r = mGnssGeofencingCbIface->gnssGeofenceRemoveCb(ids[i], status); in onRemoveGeofencesCb() local [all …]
|
D | GnssAPIClient.cpp | 254 auto r = gnssCbIface->gnssSetCapabilitesCb(data); in onCapabilitiesCb() local 255 if (!r.isOk()) { in onCapabilitiesCb() 257 __func__, r.description().c_str()); in onCapabilitiesCb() 267 auto r = gnssCbIface->gnssSetSystemInfoCb(gnssInfo); in onCapabilitiesCb() local 268 if (!r.isOk()) { in onCapabilitiesCb() 270 __func__, r.description().c_str()); in onCapabilitiesCb() 283 auto r = gnssCbIface->gnssLocationCb(gnssLocation); in onTrackingCb() local 284 if (!r.isOk()) { in onTrackingCb() 286 __func__, r.description().c_str()); in onTrackingCb() 372 auto r = gnssCbIface->gnssSvStatusCb(svStatus); in onGnssSvCb() local [all …]
|
/hardware/qcom/sdm845/gps/msm8998/android/location_api/ |
D | GeofenceAPIClient.cpp | 158 auto r = mGnssGeofencingCbIface->gnssGeofenceTransitionCb( in onGeofenceBreachCb() local 161 if (!r.isOk()) { in onGeofenceBreachCb() 163 __func__, r.description().c_str()); in onGeofenceBreachCb() 180 auto r = mGnssGeofencingCbIface->gnssGeofenceStatusCb(status, gnssLocation); in onGeofenceStatusCb() local 181 if (!r.isOk()) { in onGeofenceStatusCb() 183 __func__, r.description().c_str()); in onGeofenceStatusCb() 199 auto r = mGnssGeofencingCbIface->gnssGeofenceAddCb(ids[i], status); in onAddGeofencesCb() local 200 if (!r.isOk()) { in onAddGeofencesCb() 202 __func__, r.description().c_str()); in onAddGeofencesCb() 219 auto r = mGnssGeofencingCbIface->gnssGeofenceRemoveCb(ids[i], status); in onRemoveGeofencesCb() local [all …]
|
D | GnssAPIClient.cpp | 254 auto r = gnssCbIface->gnssSetCapabilitesCb(data); in onCapabilitiesCb() local 255 if (!r.isOk()) { in onCapabilitiesCb() 257 __func__, r.description().c_str()); in onCapabilitiesCb() 267 auto r = gnssCbIface->gnssSetSystemInfoCb(gnssInfo); in onCapabilitiesCb() local 268 if (!r.isOk()) { in onCapabilitiesCb() 270 __func__, r.description().c_str()); in onCapabilitiesCb() 282 auto r = gnssCbIface->gnssLocationCb(gnssLocation); in onTrackingCb() local 283 if (!r.isOk()) { in onTrackingCb() 285 __func__, r.description().c_str()); in onTrackingCb() 371 auto r = gnssCbIface->gnssSvStatusCb(svStatus); in onGnssSvCb() local [all …]
|
/hardware/qcom/sdm845/gps/sdm845/android/location_api/ |
D | GeofenceAPIClient.cpp | 161 auto r = mGnssGeofencingCbIface->gnssGeofenceTransitionCb( in onGeofenceBreachCb() local 164 if (!r.isOk()) { in onGeofenceBreachCb() 166 __func__, r.description().c_str()); in onGeofenceBreachCb() 183 auto r = mGnssGeofencingCbIface->gnssGeofenceStatusCb(status, gnssLocation); in onGeofenceStatusCb() local 184 if (!r.isOk()) { in onGeofenceStatusCb() 186 __func__, r.description().c_str()); in onGeofenceStatusCb() 202 auto r = mGnssGeofencingCbIface->gnssGeofenceAddCb(ids[i], status); in onAddGeofencesCb() local 203 if (!r.isOk()) { in onAddGeofencesCb() 205 __func__, r.description().c_str()); in onAddGeofencesCb() 222 auto r = mGnssGeofencingCbIface->gnssGeofenceRemoveCb(ids[i], status); in onRemoveGeofencesCb() local [all …]
|
D | GnssAPIClient.cpp | 323 auto r = gnssCbIface->gnssSetCapabilitesCb(data); in onCapabilitiesCb() local 324 if (!r.isOk()) { in onCapabilitiesCb() 326 __func__, r.description().c_str()); in onCapabilitiesCb() 342 auto r = gnssCbIface->gnssSetSystemInfoCb(gnssInfo); in onCapabilitiesCb() local 343 if (!r.isOk()) { in onCapabilitiesCb() 345 __func__, r.description().c_str()); in onCapabilitiesCb() 360 auto r = gnssCbIface->gnssLocationCb(gnssLocation); in onTrackingCb() local 361 if (!r.isOk()) { in onTrackingCb() 363 __func__, r.description().c_str()); in onTrackingCb() 440 auto r = gnssNiCbIface->niNotifyCb(notificationGnss); in onGnssNiCb() local [all …]
|
/hardware/interfaces/audio/effect/all-versions/vts/functional/ |
D | VtsHalAudioEffectTargetTest.cpp | 89 effectsFactory->getAllDescriptors([&](Result r, const hidl_vec<EffectDescriptor>& result) { in TEST_F() argument 90 retval = r; in TEST_F() 103 effectsFactory->getAllDescriptors([&](Result r, const hidl_vec<EffectDescriptor>& result) { in TEST_F() argument 104 if (r == Result::OK && result.size() > 0) { in TEST_F() 115 [&](Result r, const sp<IEffect>& result, uint64_t /*effectId*/) { in TEST_F() argument 116 retval = r; in TEST_F() 117 if (r == Result::OK) { in TEST_F() 132 effectsFactory->getAllDescriptors([&](Result r, const hidl_vec<EffectDescriptor>& result) { in TEST_F() argument 133 if (r == Result::OK) { in TEST_F() 141 [&](Result r, const EffectDescriptor& result) { in TEST_F() argument [all …]
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
D | hal_outputs.c | 378 static void inv_get_rotation_geomagnetic(float r[3][3]) in inv_get_rotation_geomagnetic() 385 r[0][0] = rot[0]*conv; in inv_get_rotation_geomagnetic() 386 r[0][1] = rot[1]*conv; in inv_get_rotation_geomagnetic() 387 r[0][2] = rot[2]*conv; in inv_get_rotation_geomagnetic() 388 r[1][0] = rot[3]*conv; in inv_get_rotation_geomagnetic() 389 r[1][1] = rot[4]*conv; in inv_get_rotation_geomagnetic() 390 r[1][2] = rot[5]*conv; in inv_get_rotation_geomagnetic() 391 r[2][0] = rot[6]*conv; in inv_get_rotation_geomagnetic() 392 r[2][1] = rot[7]*conv; in inv_get_rotation_geomagnetic() 393 r[2][2] = rot[8]*conv; in inv_get_rotation_geomagnetic() [all …]
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
D | hal_outputs.c | 424 static void inv_get_rotation_geomagnetic(float r[3][3]) in inv_get_rotation_geomagnetic() 431 r[0][0] = rot[0]*conv; in inv_get_rotation_geomagnetic() 432 r[0][1] = rot[1]*conv; in inv_get_rotation_geomagnetic() 433 r[0][2] = rot[2]*conv; in inv_get_rotation_geomagnetic() 434 r[1][0] = rot[3]*conv; in inv_get_rotation_geomagnetic() 435 r[1][1] = rot[4]*conv; in inv_get_rotation_geomagnetic() 436 r[1][2] = rot[5]*conv; in inv_get_rotation_geomagnetic() 437 r[2][0] = rot[6]*conv; in inv_get_rotation_geomagnetic() 438 r[2][1] = rot[7]*conv; in inv_get_rotation_geomagnetic() 439 r[2][2] = rot[8]*conv; in inv_get_rotation_geomagnetic() [all …]
|
/hardware/qcom/msm8998/gpt-utils/ |
D | gpt-utils.cpp | 147 int r; in blk_rw() local 156 r = write(fd, buf, len); in blk_rw() 158 r = read(fd, buf, len); in blk_rw() 160 if (r < 0) in blk_rw() 164 r = 0; in blk_rw() 166 return r; in blk_rw() 294 int r; in gpt2_set_boot_chain() local 299 r = -1; in gpt2_set_boot_chain() 305 r = -1; in gpt2_set_boot_chain() 312 r = -1; in gpt2_set_boot_chain() [all …]
|
/hardware/interfaces/health/2.0/vts/functional/ |
D | VtsHalHealthV2_0TargetTest.cpp | 126 bool r = mInvokedNotify.wait_for(lock, duration, [this] { return this->mInvoked; }); in waitInvoke() local 128 return r; in waitInvoke() 136 #define ASSERT_OK(r) ASSERT_TRUE(isOk(r)) argument 137 #define EXPECT_OK(r) EXPECT_TRUE(isOk(r)) argument 139 AssertionResult isOk(const Return<T>& r) { in isOk() argument 140 return r.isOk() ? AssertionSuccess() : (AssertionFailure() << r.description()); in isOk() 143 #define ASSERT_ALL_OK(r) ASSERT_TRUE(isAllOk(r)) argument 145 AssertionResult isAllOk(const Return<Result>& r) { in isAllOk() argument 146 if (!r.isOk()) { in isAllOk() 147 return AssertionFailure() << r.description(); in isAllOk() [all …]
|
/hardware/interfaces/broadcastradio/1.1/default/ |
D | VirtualProgram.cpp | 79 auto& r = rhs.selector; in operator <() local 82 if (l.programType != r.programType) return l.programType < r.programType; in operator <() 83 if (l.primaryId.type != r.primaryId.type) return l.primaryId.type < r.primaryId.type; in operator <() 84 if (l.primaryId.value != r.primaryId.value) return l.primaryId.value < r.primaryId.value; in operator <()
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
D | amix.c | 56 int r; in main() local 82 r = mixer_ctl_set_value(ctl, argc, argv); in main() 84 r = mixer_ctl_select(ctl, argv[0]); in main() 85 if (r) in main()
|
/hardware/google/easel/amber/camera/libhdrplusclient/ |
D | HdrPlusClientUtils.cpp | 30 static status_t getRgb(uint8_t *r, uint8_t *g, uint8_t* b, uint32_t x, uint32_t y, in getRgb() argument 54 *r = std::min(std::max(yc + 0.003036f * uc + 1.399457f * vc, 0.0f), 255.0f); in getRgb() 69 *r = ((uint8_t*)buffer.data)[offset]; in getRgb() 102 uint8_t r, g, b; in writePpm() local 105 status_t res = getRgb(&r, &g, &b, x, y, streamConfig, buffer); in writePpm() 110 outfile << r << g << b; in writePpm() 168 uint8_t r, g, b; in comparePpm() local 173 status_t res = getRgb(&r, &g, &b, x, y, streamConfig, buffer); in comparePpm() 181 diff += abs(static_cast<int32_t>(c) - r); in comparePpm()
|
/hardware/interfaces/weaver/1.0/vts/functional/ |
D | VtsHalWeaverV1_0TargetTest.cpp | 147 const auto readRet = weaver->read(slotId, KEY, [&](WeaverReadStatus s, WeaverReadResponse r) { in TEST_F() argument 150 readValue = r.value; in TEST_F() 151 timeout = r.timeout; in TEST_F() 179 const auto readRet = weaver->read(slotId, KEY, [&](WeaverReadStatus s, WeaverReadResponse r) { in TEST_F() argument 182 readValue = r.value; in TEST_F() 183 timeout = r.timeout; in TEST_F() 206 weaver->read(slotId, WRONG_KEY, [&](WeaverReadStatus s, WeaverReadResponse r) { in TEST_F() argument 209 readValue = r.value; in TEST_F() 263 weaver->read(config.slots, KEY, [&](WeaverReadStatus s, WeaverReadResponse r) { in TEST_F() argument 266 readValue = r.value; in TEST_F() [all …]
|
/hardware/qcom/bt/msm8996/libbt-vendor/src/ |
D | hci_uart.c | 467 int remain, r; in read_hci_event() local 480 r = read(fd, buf, 1); in read_hci_event() 481 if (r <= 0) in read_hci_event() 490 r = read(fd, buf + count, 3 - count); in read_hci_event() 491 if (r <= 0) in read_hci_event() 493 count += r; in read_hci_event() 503 r = read(fd, buf + count, remain - (count - 3)); in read_hci_event() 504 if (r <= 0) in read_hci_event() 506 count += r; in read_hci_event()
|
/hardware/qcom/bt/msm8992/libbt-vendor/src/ |
D | hci_uart.c | 461 int remain, r; in read_hci_event() local 474 r = read(fd, buf, 1); in read_hci_event() 475 if (r <= 0) in read_hci_event() 484 r = read(fd, buf + count, 3 - count); in read_hci_event() 485 if (r <= 0) in read_hci_event() 487 count += r; in read_hci_event() 497 r = read(fd, buf + count, remain - (count - 3)); in read_hci_event() 498 if (r <= 0) in read_hci_event() 500 count += r; in read_hci_event()
|
/hardware/qcom/bt/msm8909/libbt-vendor/src/ |
D | hci_uart.c | 461 int remain, r; in read_hci_event() local 474 r = read(fd, buf, 1); in read_hci_event() 475 if (r <= 0) in read_hci_event() 484 r = read(fd, buf + count, 3 - count); in read_hci_event() 485 if (r <= 0) in read_hci_event() 487 count += r; in read_hci_event() 497 r = read(fd, buf + count, remain - (count - 3)); in read_hci_event() 498 if (r <= 0) in read_hci_event() 500 count += r; in read_hci_event()
|
/hardware/interfaces/broadcastradio/2.0/default/ |
D | VirtualProgram.cpp | 97 auto& r = rhs.selector; in operator <() local 100 if (l.primaryId.type != r.primaryId.type) return l.primaryId.type < r.primaryId.type; in operator <() 101 if (l.primaryId.value != r.primaryId.value) return l.primaryId.value < r.primaryId.value; in operator <()
|