/external/opencv3/modules/core/test/ |
test_ippasync.cpp | 23 hppAccel accel; local 51 sts = hppCreateInstance(accelType, 0, &accel); 55 virtMatrix = hppiCreateVirtualMatrices(accel, 2); 60 hppMat = hpp::getHpp(matrix,accel); 64 sts = hppiAddC(accel, hppMat, a, 0, virtMatrix[0]); 66 sts = hppiSubC(accel, virtMatrix[0], a, 0, virtMatrix[1]); 69 sts = hppWait(accel, HPP_TIME_OUT_INFINITE); 72 result = hpp::getMat(virtMatrix[1], accel, cn); 80 sts = hppiDeleteVirtualMatrices(accel, virtMatrix); 82 sts = hppDeleteInstance(accel); 94 hppAccel accel; local [all...] |
/external/opencv3/samples/cpp/tutorial_code/core/ippasync/ |
ippasync_sample.cpp | 16 if (virtMatrix) {hppStatus delSts = hppiDeleteVirtualMatrices(accel, virtMatrix); CHECK_DEL_STATUS(delSts,"hppiDeleteVirtualMatrices");}\ 17 if (accel) {hppStatus delSts = hppDeleteInstance(accel); CHECK_DEL_STATUS(delSts, "hppDeleteInstance");}\ 33 " [--accel]=<accelerator type: auto (default), cpu, gpu>\n\n"); 40 "{a accel |auto | accelerator type: auto (default), cpu, gpu}" 55 hppAccel accel = 0; local 62 string sAccel = parser.get<string>("accel"); 88 sts = hppCreateInstance(accelType, 0, &accel); 91 accelType = hppQueryAccelType(accel); 99 virtMatrix = hppiCreateVirtualMatrices(accel, 1) [all...] |
/hardware/bsp/intel/peripheral/libupm/examples/c++/ |
h3lis331dl.cxx | 48 upm::H3LIS331DL *accel = new upm::H3LIS331DL(H3LIS331DL_I2C_BUS, local 52 accel->init(); 59 accel->update(); 61 accel->getRawXYZ(&x, &y, &z); 62 accel->getAcceleration(&ax, &ay, &az); 78 delete accel;
|
mma7660.cxx | 47 upm::MMA7660 *accel = new upm::MMA7660(MMA7660_I2C_BUS, local 51 accel->setModeStandby(); 54 accel->setSampleRate(upm::MMA7660::AUTOSLEEP_64); 57 accel->setModeActive(); 63 accel->getRawValues(&x, &y, &z); 71 accel->getAcceleration(&ax, &ay, &az); 84 delete accel;
|
adxl345.cxx | 36 upm::Adxl345* accel = new upm::Adxl345(0); local 39 accel->update(); // Update the data 40 raw = accel->getRawValues(); // Read raw sensor data 41 acc = accel->getAcceleration(); // Read acceleration (g) 42 fprintf(stdout, "Current scale: 0x%2xg\n", accel->getScale());
|
adxl335.cxx | 47 upm::ADXL335* accel = new upm::ADXL335(0, 1, 2); local 54 accel->calibrate(); 61 accel->values(&x, &y, &z); 64 accel->acceleration(&aX, &aY, &aZ); 76 delete accel;
|
lsm303.cxx | 58 int16_t* accel = sensor->getRawAccelData(); local 60 std::cout << "acc: rX " << (int)accel[0] 61 << " - rY " << (int)accel[1] 62 << " - Z " << (int)accel[2]
|
/external/autotest/client/site_tests/kernel_CrosECSysfsAccel/ |
control | 8 CRITERIA = 'Fails if sysfs accel interface is not present or data is invalid' 15 DEPENDENCIES = 'accel:cros-ec'
|
kernel_CrosECSysfsAccel.py | 13 '''Make sure the EC sysfs accel interface provides meaningful output''' 31 Read the contents of the given accel sysfs file or fail 33 @param filename Name of the file within the accel sysfs interface 61 raise error.TestFail('IOError %d while searching for accel' 65 # 'cros-ec-accel' 66 if content.strip() == 'cros-ec-accel': 69 raise error.TestFail('No sysfs interface to EC accels (cros-ec-accel)') 81 # Accel data is out of range if magnitude is not close to 1G. 84 logging.info("%s accel passed. Magnitude is %d.", name, mag) 86 logging.info("%s accel bad data. Magnitude is %d, expected [all...] |
/hardware/bsp/intel/peripheral/libupm/examples/java/ |
H3LIS331DLSample.java | 40 float[] accel; local 54 accel = sensor.getAcceleration(); 55 System.out.println( "Acceleration: X: " + accel[0] + " Y: " + accel[1] + " Z: " + accel[2] );
|
MMA7660Sample.java | 40 upm_mma7660.MMA7660 accel = new upm_mma7660.MMA7660(0); local 43 accel.setModeStandby(); 46 accel.setSampleRate(upm_mma7660.MMA7660.MMA7660_AUTOSLEEP_T.AUTOSLEEP_64); 49 accel.setModeActive(); 52 int[] rawValues = accel.getRawValues(); 56 float[] acceleration = accel.getAcceleration();
|
Adxl345Sample.java | 40 float[] accel; local 49 accel = sensor.getAcceleration(); 54 System.out.println("Acceleration: X: " + accel[0] + "g Y: " 55 + accel[1] + "g Z: " + accel[2] + "g");
|
LSM303Sample.java | 57 int[] accel = sensor.getRawAccelData(); local 61 System.out.println("acc: rX " + accel[0] + " - rY " + accel[1] + " - rZ " + accel[2]);
|
MPU9150Sample.java | 46 float[] accel = sensor.getAccelerometer(); local 47 System.out.println("Accelerometer: " + "AX: " + accel[0] + " AY: " + accel[1] + " AZ: " 48 + accel[2]);
|
/cts/apps/CameraITS/tests/scene0/ |
test_sensor_events.py | 34 print "Events over 1s: %d gyro, %d accel, %d mag"%( 35 len(events["gyro"]), len(events["accel"]), len(events["mag"])) 37 assert(len(events["accel"]) > 0)
|
test_unified_timestamps.py | 41 assert(len(events["accel"]) > 0) 45 ts_accel0 = events["accel"][0]["time"] 46 ts_accel1 = events["accel"][-1]["time"] 56 print "Accel timestamps:", ts_accel0, ts_accel1
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/self_test/build/android/ |
inv_self_test-shared | |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/ |
README | 7 In the disable sequence, this will disable all but accel engine; all outputs 23 When this is enabled, the driver enters low power accel mode and disables all 24 other sensor output (including quaternion, gyro, accel, and compass.) in the
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
data_builder.c | 100 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; 103 if (sensors.accel.accuracy == 3) { 181 /** Accel sensitivity. 184 * it works out to be the maximum accel value in g's * 2^15. 188 return sensors.accel.sensitivity; 278 /** Set Accel Sample rate in micro seconds. 279 * @param[in] sample_rate_us Set Accel Sample rate in us 290 sensors.accel.sample_rate_us = sample_rate_us; 291 sensors.accel.sample_rate_ms = sample_rate_us / 1000; 292 if (sensors.accel.bandwidth == 0) [all...] |
message_layer.h | 25 /** A setting of the accel bias has occured */ 35 /** A setting of the factory accel bias has occured */
|
/hardware/bsp/intel/peripheral/libupm/src/lsm303/ |
lsm303.cxx | 85 return &accel[0]; 97 return accel[X]; 103 return accel[Y]; 109 return accel[Z]; 170 accel[X] = (int16_t(readThenWrite(OUT_X_H_A)) << 8) 172 accel[Y] = (int16_t(readThenWrite(OUT_Y_H_A)) << 8) 174 accel[Z] = (int16_t(readThenWrite(OUT_Z_H_A)) << 8) 176 //printf("X=%x, Y=%x, Z=%x\n", accel[X], accel[Y], accel[Z]) [all...] |
/hardware/bsp/intel/peripheral/libupm/src/lsm303d/ |
lsm303d.cxx | 103 return &accel[0]; 115 return accel[X]; 121 return accel[Y]; 127 return accel[Z]; 178 accel[X] = (int16_t(writeThenRead(OUT_X_H_A)) << 8) 180 accel[Y] = (int16_t(writeThenRead(OUT_Y_H_A)) << 8) 182 accel[Z] = (int16_t(writeThenRead(OUT_Z_H_A)) << 8) 184 //printf("X=%x, Y=%x, Z=%x\n", accel[X], accel[Y], accel[Z]) [all...] |
/device/google/contexthub/firmware/inc/ |
sensType.h | 26 #define SENS_TYPE_ANY_MOTION 2 //provided by ACCEL, nondiscardable edge trigger 27 #define SENS_TYPE_NO_MOTION 3 //provided by ACCEL, nondiscardable edge trigger 28 #define SENS_TYPE_SIG_MOTION 4 //provided by ACCEL, nondiscardable edge trigger
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
message_layer.h | 25 /** A setting of the accel bias has occured */ 35 /** A setting of the factory accel bias has occured */
|
data_builder.c | 99 sensors.accel.accuracy = inv_data_builder.save.accel_accuracy; 102 if (sensors.accel.accuracy == 3) { 180 /** Accel sensitivity. 183 * it works out to be the maximum accel value in g's * 2^15. 187 return sensors.accel.sensitivity; 277 /** Set Accel Sample rate in micro seconds. 278 * @param[in] sample_rate_us Set Accel Sample rate in us 289 sensors.accel.sample_rate_us = sample_rate_us; 290 sensors.accel.sample_rate_ms = sample_rate_us / 1000; 291 if (sensors.accel.bandwidth == 0) [all...] |