/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/st/secure_element2/secure_element/1.0/esehal/src/ |
D | libse-gto.c | 160 se_gto_reset(struct se_gto_ctx *ctx, void *atr, size_t r) in se_gto_reset() argument 170 err = isot1_get_atr(&ctx->t1, atr, r); in se_gto_reset() 178 se_gto_apdu_transmit(struct se_gto_ctx *ctx, const void *apdu, int n, void *resp, int r) in se_gto_apdu_transmit() argument 180 if (!apdu || (n < 4) || !resp || (r < 2)) { in se_gto_apdu_transmit() 184 r = isot1_transceive(&ctx->t1, apdu, n, resp, r); in se_gto_apdu_transmit() 185 dbg("isot1_transceive: r=%d\n", r); in se_gto_apdu_transmit() 189 if (r < 0) { in se_gto_apdu_transmit() 190 errno = -r; in se_gto_apdu_transmit() 191 err("failed to read APDU response, %s\n", strerror(-r)); in se_gto_apdu_transmit() 192 } else if (r < 2) { in se_gto_apdu_transmit() [all …]
|
/hardware/qcom/sm8150/gps/android/2.0/location_api/ |
D | GnssAPIClient.cpp | 398 auto r = gnssCbIface_2_0->gnssSetCapabilitiesCb_2_0(data); in onCapabilitiesCb() local 399 if (!r.isOk()) { in onCapabilitiesCb() 401 __func__, r.description().c_str()); in onCapabilitiesCb() 403 r = gnssCbIface_2_0->gnssSetSystemInfoCb(gnssInfo); in onCapabilitiesCb() 404 if (!r.isOk()) { in onCapabilitiesCb() 406 __func__, r.description().c_str()); in onCapabilitiesCb() 409 auto r = gnssCbIface->gnssSetCapabilitesCb(data); in onCapabilitiesCb() local 410 if (!r.isOk()) { in onCapabilitiesCb() 412 __func__, r.description().c_str()); in onCapabilitiesCb() 414 r = gnssCbIface->gnssSetSystemInfoCb(gnssInfo); in onCapabilitiesCb() [all …]
|
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 …]
|
/hardware/qcom/sm8150/gps/android/1.1/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 | 327 auto r = gnssCbIface->gnssSetCapabilitesCb(data); in onCapabilitiesCb() local 328 if (!r.isOk()) { in onCapabilitiesCb() 330 __func__, r.description().c_str()); in onCapabilitiesCb() 346 auto r = gnssCbIface->gnssSetSystemInfoCb(gnssInfo); in onCapabilitiesCb() local 347 if (!r.isOk()) { in onCapabilitiesCb() 349 __func__, r.description().c_str()); in onCapabilitiesCb() 364 auto r = gnssCbIface->gnssLocationCb(gnssLocation); in onTrackingCb() local 365 if (!r.isOk()) { in onTrackingCb() 367 __func__, r.description().c_str()); in onTrackingCb() 457 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/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/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/qcom/sm8150/gps/android/1.0/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 | 327 auto r = gnssCbIface->gnssSetCapabilitesCb(data); in onCapabilitiesCb() local 328 if (!r.isOk()) { in onCapabilitiesCb() 330 __func__, r.description().c_str()); in onCapabilitiesCb() 346 auto r = gnssCbIface->gnssSetSystemInfoCb(gnssInfo); in onCapabilitiesCb() local 347 if (!r.isOk()) { in onCapabilitiesCb() 349 __func__, r.description().c_str()); in onCapabilitiesCb() 364 auto r = gnssCbIface->gnssLocationCb(gnssLocation); in onTrackingCb() local 365 if (!r.isOk()) { in onTrackingCb() 367 __func__, r.description().c_str()); in onTrackingCb() 457 auto r = gnssCbIface->gnssSvStatusCb(svStatus); in onGnssSvCb() local [all …]
|
/hardware/interfaces/audio/effect/all-versions/vts/functional/ |
D | VtsHalAudioEffectTargetTest.cpp | 74 effectsFactory->getAllDescriptors([&](Result r, const hidl_vec<EffectDescriptor>& result) { in TEST_P() argument 75 retval = r; in TEST_P() 88 effectsFactory->getAllDescriptors([&](Result r, const hidl_vec<EffectDescriptor>& result) { in TEST_P() argument 89 if (r == Result::OK && result.size() > 0) { in TEST_P() 103 [&](Result r, const sp<IEffect>& result, uint64_t /*effectId*/) { in TEST_P() argument 104 retval = r; in TEST_P() 105 if (r == Result::OK) { in TEST_P() 120 effectsFactory->getAllDescriptors([&](Result r, const hidl_vec<EffectDescriptor>& result) { in TEST_P() argument 121 if (r == Result::OK) { in TEST_P() 129 [&](Result r, const EffectDescriptor& result) { in TEST_P() 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/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/sm8150/gps/android/visibility_control/1.0/ |
D | GnssVisibilityControl.cpp | 98 auto r = mGnssVisibilityControlCbIface->nfwNotifyCb(nfwNotification); in statusCb() local 99 if (!r.isOk()) { in statusCb() 100 LOC_LOGw("Error invoking NFW status cb %s", r.description().c_str()); in statusCb() 110 auto r = mGnssVisibilityControlCbIface->isInEmergencySession(); in isE911Session() local 111 if (!r.isOk()) { in isE911Session() 112 LOC_LOGw("Error invoking NFW status cb %s", r.description().c_str()); in isE911Session() 115 return (r); in isE911Session()
|