/hardware/bsp/intel/peripheral/libupm/examples/javascript/ |
mpu60x0.js | 32 var sensor = new sensorObj.MPU60X0(); 35 sensor.init(); 44 sensor.update(); 46 sensor.getAccelerometer(x, y, z); 51 sensor.getGyroscope(x, y, z); 56 console.log("Temperature: " + sensor.getTemperature()); 65 sensor = null;
|
grovegprs.js | 44 function sendCommand(sensor, cmd, callback) 48 sensor.writeDataStr(cmd); 51 if (sensor.dataAvailable(1000)) 53 console.log("Returned: " + sensor.readDataStr(1024)); 64 var sensor = new sensorObj.GroveGPRS(0); 67 if (sensor.setBaudRate(19200)) 81 sendCommand(sensor, process.argv[2]); 92 sendCommand(sensor, "AT&V"); 102 sendCommand(sensor, "AT+CGMI", callbackFunc); 109 sensor = null [all...] |
mq4.js | 29 // Attach gas sensor to Analog A0 30 var sensor = new upmGAS.MQ4(0); 45 var len = sensor.getSampledWindow(2, 128, buffer); 48 var thresh = sensor.findThreshold(threshContext, 30, buffer, len); 49 sensor.printGraph(threshContext, 5);
|
mq6.js | 29 // Attach gas sensor to Analog A0 30 var sensor = new upmGAS.MQ6(0); 45 var len = sensor.getSampledWindow(2, 128, buffer); 48 var thresh = sensor.findThreshold(threshContext, 30, buffer, len); 49 sensor.printGraph(threshContext, 5);
|
mq7.js | 29 // Attach gas sensor to Analog A0 30 var sensor = new upmGAS.MQ7(0); 45 var len = sensor.getSampledWindow(2, 128, buffer); 48 var thresh = sensor.findThreshold(threshContext, 30, buffer, len); 49 sensor.printGraph(threshContext, 5);
|
/device/google/contexthub/firmware/src/ |
hostIntf.c | 495 static void resetBuffer(struct ActiveSensor *sensor) 497 sensor->discard = true; 498 sensor->buffer.length = 0; 499 memset(&sensor->buffer.firstSample, 0x00, sizeof(struct SensorFirstSample)); 511 struct ActiveSensor *sensor; local 517 sensor = mActiveSensorTable + mSensorList[buffer->sensType - 1]; 518 if (sensor->sensorHandle == 0 && !buffer->firstSample.biasPresent && !buffer->firstSample.numFlushes) { 519 if (sensor->interrupt == NANOHUB_INT_WAKEUP) 521 else if (sensor->interrupt == NANOHUB_INT_NONWAKEUP) 523 sensor->curSamples -= buffer->firstSample.numSamples 578 struct ActiveSensor *sensor; local 1049 struct ActiveSensor *sensor; local [all...] |
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/ |
SensorDeviceInfo.java | 19 import android.hardware.Sensor; 31 * Sensor device info collector. 35 private static final String SENSOR = "sensor"; 60 List<Sensor> sensors = sensorManager.getSensorList(Sensor.TYPE_ALL); 61 store.startArray(SENSOR); 62 for (Sensor sensor : sensors) { 64 store.addResult(REPORTING_MODE, sensor.getReportingMode()) [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
SensorTest.java | 23 import android.hardware.Sensor; 65 private Sensor mTriggerSensor; 66 private List<Sensor> mSensorList; 78 mSensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL); 114 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 117 // accelerometer sensor is optional 119 assertEquals(Sensor.TYPE_ACCELEROMETER, sensor.getType()) 276 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); local 288 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 333 Sensor sensor = null; local 369 Sensor sensor = null; local [all...] |
/device/huawei/angler/ |
thermal-engine-angler.conf | 11 sensor msm_therm 20 sensor msm_therm 29 sensor msm_therm 38 sensor msm_therm 47 sensor emmc_therm 57 sensor pa_therm1 68 sensor gpu 77 sensor pop_mem 86 sensor cpu7 95 sensor cpu [all...] |
/hardware/bsp/intel/peripheral/libupm/examples/c++/ |
maxds3231m.cxx | 31 upm::MAXDS3231M *sensor = NULL; variable 48 sensor = new upm::MAXDS3231M(0, ADDR); 57 sensor->setDate (t); // Note, second should be set to 1. 62 if (sensor->getDate (t)) { 65 std::cout << "Temperature " << sensor->getTemperature() << std::endl; 72 delete sensor;
|
mic.cxx | 34 upm::Microphone *sensor = NULL; variable 50 sensor = new upm::Microphone(0); 63 int len = sensor->getSampledWindow (2, 128, buffer); 65 int thresh = sensor->findThreshold (&ctx, 30, buffer, len); 66 sensor->printGraph(&ctx); 75 delete sensor;
|
mq2.cxx | 34 upm::MQ2 *sensor = NULL; variable 49 // Attach gas sensor to A0 50 sensor = new upm::MQ2(0); 63 int len = sensor->getSampledWindow (2, 128, buffer); 65 int thresh = sensor->findThreshold (&ctx, 30, buffer, len); 66 sensor->printGraph(&ctx, 5); 75 delete sensor;
|
mq3.cxx | 34 upm::MQ3 *sensor = NULL; variable 49 // Attach gas sensor to A0 50 sensor = new upm::MQ3(0); 63 int len = sensor->getSampledWindow (2, 128, buffer); 65 int thresh = sensor->findThreshold (&ctx, 30, buffer, len); 66 sensor->printGraph(&ctx, 5); 75 delete sensor;
|
mq5.cxx | 34 upm::MQ5 *sensor = NULL; variable 49 sensor = new upm::MQ5(0); 58 int len = sensor->getSampledWindow (2, 128, buffer); 60 int thresh = sensor->findThreshold (&ctx, 30, buffer, len); 61 sensor->printGraph(&ctx, 7); 70 delete sensor;
|
mq9.cxx | 34 upm::MQ9 *sensor = NULL; variable 49 sensor = new upm::MQ9(0); 58 int len = sensor->getSampledWindow (2, 128, buffer); 60 int thresh = sensor->findThreshold (&ctx, 30, buffer, len); 61 sensor->printGraph(&ctx, 5); 70 delete sensor;
|
mma7455.cxx | 32 upm::MMA7455 *sensor = NULL; variable 48 sensor = new upm::MMA7455(0, ADDR); 52 sensor->readData(&x, &y, &z); 61 delete sensor;
|
tcs3414cs.cxx | 31 upm::TCS3414CS *sensor = NULL; variable 49 // Instantiate the color sensor on I2C 50 sensor = new upm::TCS3414CS (); 54 sensor->readRGB (&rgb); 62 delete sensor;
|
/hardware/bsp/intel/peripheral/libupm/examples/python/ |
mpu60x0.py | 28 sensor = sensorObj.MPU60X0() variable 44 sensor.init() 51 sensor.update() 52 sensor.getAccelerometer(x, y, z) 57 sensor.getGyroscope(x, y, z) 62 print "Temperature: ", sensor.getTemperature()
|
/hardware/bsp/intel/peripheral/libupm/examples/java/ |
LoL_exampleSample.java | 39 upm_lol.LoL sensor = new upm_lol.LoL(); local 44 short pixel = sensor.getPixel(x, y); 46 sensor.setPixel(x, y, pixel);
|
MQ2Sample.java | 42 // Attach gas sensor to A0 43 upm_gas.MQ2 sensor = new upm_gas.MQ2(0); local 51 int len = sensor.getSampledWindow(2, buffer); 54 int thresh = sensor.findThreshold(ctx, 30, buffer); 55 sensor.printGraph(ctx, resolution);
|
MQ5Sample.java | 41 // Attach gas sensor to A0 42 upm_gas.MQ5 sensor = new upm_gas.MQ5(0); local 50 int len = sensor.getSampledWindow(2, buffer); 53 int thresh = sensor.findThreshold(ctx, 30, buffer); 54 sensor.printGraph(ctx, resolution);
|
MicrophoneSample.java | 41 upm_mic.Microphone sensor = new upm_mic.Microphone(0); local 52 int len = sensor.getSampledWindow(2, buffer); 55 int thresh = sensor.findThreshold(ctx, 30, buffer); 56 sensor.printGraph(ctx);
|
/hardware/bsp/intel/peripheral/sensors/mraa/ |
AcquisitionThread.hpp | 21 #include "Sensor.hpp" 23 class Sensor; 29 * sensor and write it to a pipe. The main thread can use the 30 * pipe read endpoint to retrieve sensor events. 33 * changing the sensor parameters. 42 * @param sensor the sensor to associate with the thread 44 AcquisitionThread(int pollFd, Sensor *sensor); 52 * Get sensor associated with the threa 96 Sensor *sensor; member in class:AcquisitionThread [all...] |
/frameworks/base/core/java/android/hardware/ |
SensorEvent.java | 20 * This class represents a {@link android.hardware.Sensor Sensor} event and 21 * holds information such as the sensor's type, the time-stamp, accuracy and of 22 * course the sensor's {@link SensorEvent#values data}. 52 * @see Sensor 60 * which {@link android.hardware.Sensor sensor} type is being monitored (see 64 * <h4>{@link android.hardware.Sensor#TYPE_ACCELEROMETER 65 * Sensor.TYPE_ACCELEROMETER}:</h4> All values are in SI units (m/s^2) 74 * A sensor of this type measures the acceleration applied to the devic 588 public Sensor sensor; field in class:SensorEvent [all...] |
TriggerEvent.java | 21 * associated with a Trigger Sensor. When the sensor detects a trigger 23 * {@link Sensor#TYPE_SIGNIFICANT_MOTION}, the {@link TriggerEventListener} 24 * is called with the TriggerEvent. The sensor is automatically canceled 27 * This class holds information such as the value of the sensor 29 * information regarding the Sensor itself. 33 * @see android.hardware.Sensor 39 * which {@link android.hardware.Sensor sensor} type is being monitored (see 42 * <h4> {@link Sensor#TYPE_SIGNIFICANT_MOTION} </h4 52 public Sensor sensor; field in class:TriggerEvent [all...] |