/system/chre/util/nanoapp/ |
sensor.cc | 25 SensorType sensorType = getSensorTypeForSampleEventType(eventType); 26 return getSensorTypeName(sensorType); 29 const char *getSensorTypeName(uint8_t sensorType) { 30 SensorType type = getSensorTypeFromUnsignedInt(sensorType);
|
/system/chre/core/tests/ |
sensor_request_test.cc | 24 using chre::SensorType; 27 TEST(SensorType, LosslessSensorHandleToSensorTypeAndBack) { 31 SensorType sensorType = SensorType::Pressure; 32 uint32_t sensorHandle = getSensorHandleFromSensorType(sensorType); 33 sensorType = chre::getSensorTypeFromSensorHandle(sensorHandle); 34 EXPECT_EQ(sensorType, SensorType::Pressure); 36 sensorType = SensorType::Proximity [all...] |
/system/chre/platform/shared/ |
platform_sensor_util.cc | 28 void updateLastEvent(SensorType sensorType, const void *eventData) { 35 header->readingCount, static_cast<uint8_t>(sensorType)); 38 SensorType sensorType; 45 callbackData->sensorType = sensorType; 52 ->getSensorRequestManager().getSensor(cbData->sensorType);
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
MagnitudeVerification.java | 38 // sensorType: {expected, threshold} 69 int sensorType = environment.getSensor().getType(); 70 if (!DEFAULTS.containsKey(sensorType)) { 73 Float expected = DEFAULTS.get(sensorType)[0]; 74 Float threshold = DEFAULTS.get(sensorType)[1];
|
MeanVerification.java | 36 // sensorType: {expected, threshold} 68 int sensorType = environment.getSensor().getType(); 69 if (!DEFAULTS.containsKey(sensorType)) { 72 float[] expected = DEFAULTS.get(sensorType).mExpectedValues; 73 float[] upperThresholds = DEFAULTS.get(sensorType).mUpperThresholds; 74 float[] lowerThresholds = DEFAULTS.get(sensorType).mLowerThresholds;
|
GyroscopeIntegrationVerification.java | 58 int sensorType = environment.getSensor().getType(); 59 if (sensorType != Sensor.TYPE_GYROSCOPE 60 && sensorType != Sensor.TYPE_GYROSCOPE_UNCALIBRATED) {
|
InitialValueVerification.java | 40 // sensorType: max absolute delta between the two means and initial window length 76 int sensorType = environment.getSensor().getType(); 77 if (!DEFAULTS.containsKey(sensorType)) { 80 Pair<Float, Long> maxAbsoluteDeltaAndInitialWindowLength = DEFAULTS.get(sensorType);
|
JitterVerification.java | 41 // sensorType: threshold (% of expected period) 79 int sensorType = environment.getSensor().getType(); 81 int thresholdPercent = DEFAULTS.get(sensorType, -1);
|
StandardDeviationVerification.java | 41 // sensorType: threshold 70 int sensorType = environment.getSensor().getType(); 99 if (!DEFAULTS.containsKey(sensorType)) { 116 return new StandardDeviationVerification(DEFAULTS.get(sensorType));
|
/device/google/contexthub/firmware/os/inc/ |
eventnums.h | 107 uint8_t sensorType;
|
sensors.h | 217 uint8_t sensorType; 272 const struct SensorInfo* sensorFind(uint32_t sensorType, uint32_t idx, uint32_t *handleP); //enumerate all sensors of a type
|
/device/google/contexthub/util/nanotool/ |
apptohostevent.h | 98 bool IsCalibrationEventForSensor(SensorType sensor_type) const; 99 bool IsTestEventForSensor(SensorType sensor_type) const; 104 bool CheckAppId(SensorType sensor_type) const; 105 bool CheckEventHeader(SensorType sensor_type) const; 113 uint8_t sensorType;
|
/system/chre/chre_api/include/chre_api/chre/ |
sensor.h | 393 uint8_t sensorType; 493 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 498 bool chreSensorFindDefault(uint8_t sensorType, uint32_t *handle);
|
/system/chre/core/ |
sensor_request_manager.cc | 33 SensorType sensorType = sensor.getSensorType(); 41 if (sensorTypeIsOneShot(sensorType)) { 46 if (!sensorTypeIsOneShot(sensorType)) { 67 SensorType sensorType = sensors[i].getSensorType(); 68 size_t sensorIndex = getSensorTypeArrayIndex(sensorType); 70 if (sensorType == SensorType::Unknown) { 73 LOGE("Invalid sensor minInterval: %s", getSensorTypeName(sensorType)); [all...] |
/system/chre/platform/slpi/include/chre/platform/slpi/see/ |
see_helper.h | 46 SensorType sensorType; 61 //! specified by sensorType. 63 SensorType sensorType, UniquePtr<uint8_t>&& eventData) = 0; 95 SensorType sensorType; 112 //! SensorType. 115 SensorType sensorType; [all...] |
/system/chre/chre_api/legacy/v1_0/chre/ |
sensor.h | 413 uint8_t sensorType; 659 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 664 bool chreSensorFindDefault(uint8_t sensorType, uint32_t *handle);
|
/system/chre/platform/slpi/see/ |
platform_sensor.cc | 56 SensorType sensorType, UniquePtr<uint8_t>&& eventData) override; 84 SensorType getSensorTypeFromDataType(const char *dataType, bool calibrated) { 85 SensorType sensorType; 88 sensorType = SensorType::Accelerometer; 90 sensorType = SensorType::UncalibratedAccelerometer; 94 sensorType = SensorType::Gyroscope [all...] |
see_helper.cc | 97 SensorType sensorType; 128 size_t getCalIndexFromSensorType(SensorType sensorType) { 130 switch (sensorType) { 131 case SensorType::Accelerometer: 134 case SensorType::Gyroscope: 137 case SensorType::GeomagneticField: 147 SensorType sensorType = SensorType::Unknown [all...] |
/device/google/contexthub/util/nanoapp_cmd/ |
nanoapp_cmd.c | 71 uint8_t sensorType; 100 cmd->sensorType = SENS_TYPE_ACCEL; 102 cmd->sensorType = SENS_TYPE_GYRO; 104 cmd->sensorType = SENS_TYPE_MAG; 106 cmd->sensorType = SENS_TYPE_ACCEL; 108 cmd->sensorType = SENS_TYPE_GYRO; 110 cmd->sensorType = SENS_TYPE_MAG; 112 cmd->sensorType = SENS_TYPE_ALS; 114 cmd->sensorType = SENS_TYPE_PROX; 116 cmd->sensorType = SENS_TYPE_BARO [all...] |
/packages/services/Car/car-lib/src/android/car/hardware/ |
CarSensorEvent.java | 119 public int sensorType; 137 sensorType = in.readInt(); 158 dest.writeInt(sensorType); 180 public CarSensorEvent(int sensorType, long timestamp, int floatValueSize, int intValueSize, 182 this.sensorType = sensorType; 190 CarSensorEvent(int sensorType, long timestamp, float[] floatValues, int[] intValues, 192 this.sensorType = sensorType; 200 if (sensorType == type) [all...] |
/system/chre/chre_api/legacy/v1_1/chre/ |
sensor.h | 535 uint8_t sensorType; 805 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 810 bool chreSensorFindDefault(uint8_t sensorType, uint32_t *handle); [all...] |
/device/google/contexthub/firmware/os/core/ |
nanohub_chre.c | 244 static bool osChreSensorFindDefault(uint8_t sensorType, uint32_t *pHandle) 249 const struct SensorInfo *info = sensorFind(sensorType, 0, pHandle); 256 uint8_t sensorType = va_arg(args, uint32_t); 258 *retValP = osChreSensorFindDefault(sensorType, pHandle); 268 info->sensorType = si->sensorType; 271 if (si->sensorType == CHRE_SENSOR_TYPE_INSTANT_MOTION_DETECT 272 || si->sensorType == CHRE_SENSOR_TYPE_STATIONARY_DETECT) 290 info->sensorType = si->sensorType; [all...] |
osApi.c | 135 uint32_t sensorType = va_arg(args, uint32_t); 139 *retValP = (uintptr_t)sensorFind(sensorType, idx, handleP);
|
/device/google/contexthub/sensorhal/ |
hubconnection.h | 140 uint8_t sensorType; 174 uint8_t sensorType; 281 && mSensorState[handle].sensorType;
|
/system/chre/platform/slpi/smgr/ |
platform_sensor.cc | 135 * SensorType as used by platform-independent CHRE code. This is useful in 145 SensorType getSensorTypeFromSensorId(uint8_t sensorId, uint8_t dataType, 156 return SensorType::Accelerometer; 158 return SensorType::UncalibratedAccelerometer; 163 return SensorType::Gyroscope; 165 return SensorType::UncalibratedGyroscope; 170 return SensorType::GeomagneticField; 172 return SensorType::UncalibratedGeomagneticField; 176 return SensorType::Pressure; 179 return SensorType::Proximity [all...] |