/system/chre/core/ |
sensor_request.cc | 25 const char *getSensorTypeName(SensorType sensorType) { 26 switch (sensorType) { 27 case SensorType::Unknown: 29 case SensorType::Accelerometer: 31 case SensorType::InstantMotion: 33 case SensorType::StationaryDetect: 35 case SensorType::Gyroscope: 37 case SensorType::GeomagneticField: 39 case SensorType::Pressure [all...] |
sensor_request_manager.cc | 33 SensorType sensorType = sensor.getSensorType(); 37 if (sensorTypeIsOneShot(sensorType)) { 47 if (!sensorTypeIsOneShot(sensorType)) { 75 SensorType sensorType = platformSensors[i].getSensorType(); 76 size_t sensorIndex = getSensorTypeArrayIndex(sensorType); 77 LOGD("Found sensor: %s", getSensorTypeName(sensorType)); 93 bool SensorRequestManager::getSensorHandle(SensorType sensorType, [all...] |
/system/chre/core/include/chre/core/ |
sensor_request_impl.h | 39 constexpr size_t getSensorTypeArrayIndex(SensorType sensorType) { 40 return static_cast<size_t>(sensorType) - 1; 44 // The number of valid entries in the SensorType enum (not including Unknown). 45 return static_cast<size_t>(SensorType::SENSOR_TYPE_COUNT) - 1; 48 constexpr uint32_t getSensorHandleFromSensorType(SensorType sensorType) { 49 return static_cast<uint32_t>(sensorType); 52 constexpr SensorType getSensorTypeFromSensorHandle(uint32_t handle) { 53 return (handle > static_cast<uint32_t>(SensorType::Unknown [all...] |
sensor_request.h | 28 // TODO: Move SensorType and related functions to a new file called 42 * This SensorType is designed to wrap constants provided by the CHRE API 48 enum class SensorType { 79 * This SensorSampleType is designed to help classify SensorType's data type in 93 * @param sensorType The sensor type to obtain a string for. 96 const char *getSensorTypeName(SensorType sensorType); 100 * must not be SensorType::Unknown. This is a fatal error. 102 * @param sensorType The type of the sensor. 105 uint16_t getSampleEventTypeForSensorType(SensorType sensorType) [all...] |
sensor_request_manager.h | 47 * @param sensorType The type of the sensor. 52 bool getSensorHandle(SensorType sensorType, uint32_t *sensorHandle) const; 81 * Removes all requests of a sensorType and unregisters all nanoapps for its 84 * @param sensorType The sensor type whose requests are to be removed. 88 bool removeAllRequests(SensorType sensorType); 91 * Obtains a pointer to the Sensor of the specified sensorType. 93 * @param sensorType The SensorType of the sensor [all...] |
sensor.h | 43 SensorType getSensorType() const;
|
/system/chre/util/nanoapp/ |
sensor.cc | 25 SensorType sensorType = getSensorTypeForSampleEventType(eventType); 26 return getSensorTypeName(sensorType);
|
/hardware/interfaces/sensors/1.0/default/ |
convert.cpp | 32 dst->type = (SensorType)src.type; 67 typedef ::android::hardware::sensors::V1_0::SensorType SensorType; 72 .sensorType = (SensorType)src.type, 76 switch (dst->sensorType) { 77 case SensorType::META_DATA: 87 case SensorType::ACCELEROMETER: 88 case SensorType::MAGNETIC_FIELD: 89 case SensorType::ORIENTATION [all...] |
/device/google/contexthub/util/nanotool/ |
sensorevent.cpp | 35 SensorType sensor_type = static_cast<SensorType>( 40 case SensorType::Accel: 41 case SensorType::Gyro: 42 case SensorType::GyroUncal: 43 case SensorType::Magnetometer: 44 case SensorType::MagnetometerUncal: 45 case SensorType::Orientation: 46 case SensorType::Gravity: 47 case SensorType::LinearAccel [all...] |
apptohostevent.cpp | 50 bool AppToHostEvent::CheckAppId(SensorType sensor_type) const { 54 case SensorType::Accel: 55 case SensorType::Gyro: 61 case SensorType::Proximity: 68 case SensorType::Barometer: 74 case SensorType::AmbientLightSensor: 87 bool AppToHostEvent::CheckEventHeader(SensorType sensor_type) const { 99 bool AppToHostEvent::IsCalibrationEventForSensor(SensorType sensor_type) const { 110 bool AppToHostEvent::IsTestEventForSensor(SensorType sensor_type) const {
|
contexthub.h | 35 enum class SensorType { 86 SensorType sensor_type = SensorType::Invalid_; 106 static std::string SensorTypeToAbbrevName(SensorType sensor_type); 107 static SensorType SensorAbbrevNameToType(const char *abbrev_name); 108 static SensorType SensorAbbrevNameToType(const std::string& abbrev_name); 151 bool DisableSensor(SensorType sensor_type); 185 * given SensorType, ignoring other events. If sample_limit is 0, then 188 void PrintSensorEvents(SensorType sensor_type, int sample_limit); 246 bool SendCalibrationData(SensorType sensor_type [all...] |
contexthub.cpp | 38 SensorType sensor_type; 43 { SensorType::Accel, "accel" }, 44 { SensorType::AnyMotion, "anymo" }, 45 { SensorType::NoMotion, "nomo" }, 46 { SensorType::SignificantMotion, "sigmo" }, 47 { SensorType::Flat, "flat" }, 48 { SensorType::Gyro, "gyro" }, 49 //{ SensorType::GyroUncal, "gyro_uncal" }, 50 { SensorType::Magnetometer, "mag" }, 51 //{ SensorType::MagnetometerUncal, "mag_uncal" } [all...] |
androidcontexthub.h | 49 bool SetCalibration(SensorType sensor_type, int32_t data) override; 50 bool SetCalibration(SensorType sensor_type, float data) override; 51 bool SetCalibration(SensorType sensor_type, int32_t x, int32_t y, int32_t z) 53 bool SetCalibration(SensorType sensor_type, int32_t x, int32_t y, 64 static const char *SensorTypeToCalibrationKey(SensorType sensor_type);
|
androidcontexthub.cpp | 50 static const std::vector<std::tuple<const char *, SensorType>> kCalibrationKeys = { 51 std::make_tuple("accel", SensorType::Accel), 52 std::make_tuple("gyro", SensorType::Gyro), 53 std::make_tuple("proximity", SensorType::Proximity), 54 std::make_tuple("barometer", SensorType::Barometer), 55 std::make_tuple("light", SensorType::AmbientLightSensor), 80 static bool GetCalibrationBytes(const char *key, SensorType sensor_type, 90 case SensorType::Accel: 91 case SensorType::Gyro: 95 case SensorType::AmbientLightSensor [all...] |
apptohostevent.h | 94 bool IsCalibrationEventForSensor(SensorType sensor_type) const; 95 bool IsTestEventForSensor(SensorType sensor_type) const; 100 bool CheckAppId(SensorType sensor_type) const; 101 bool CheckEventHeader(SensorType sensor_type) const; 109 uint8_t sensorType;
|
/system/chre/platform/linux/ |
platform_sensor.cc | 49 SensorType PlatformSensor::getSensorType() const { 51 return SensorType::Unknown;
|
/hardware/interfaces/sensors/1.0/vts/functional/ |
VtsHalSensorsV1_0TargetTest.cpp | 288 .sensorType = static_cast<SensorType>(type), 456 SensorInfo defaultSensorByType(SensorType type); 509 inline static bool isMetaSensorType(SensorType type) { 510 return (type == SensorType::META_DATA 511 || type == SensorType::DYNAMIC_SENSOR_META 512 || type == SensorType::ADDITIONAL_INFO); 515 inline static bool isValidType(SensorType type) { 519 void testStreamingOperation(SensorType type, 523 void testSamplingRateHotSwitchOperation(SensorType type) [all...] |
/device/linaro/bootloader/edk2/MdePkg/Include/IndustryStandard/ |
IpmiNetFnSensorEvent.h | 43 UINT8 SensorType;
|
/frameworks/hardware/interfaces/sensorservice/1.0/ |
ISensorManager.hal | 24 import android.hardware.sensors@1.0::SensorType; 50 getDefaultSensor(SensorType type) 65 * 0x0008 int32_t type (see android.hardware.sensors@1.0::SensorType)
|
/packages/services/Car/car-support-lib/src/android/support/car/hardware/ |
CarSensorManager.java | 161 public @interface SensorType {} 205 * @param sensorType 209 public abstract boolean isSensorSupported(@SensorType int sensorType) 222 * @param sensorType Sensor type to subscribe. 235 @SensorType int sensorType, @SensorRate int rate) 249 * @param sensorType The type to stop receiving notifications for. 252 @SensorType int sensorType); [all...] |
/test/vts-testcase/hal/sensors/V1_0/host/ |
VtsHalSensorsV1_0HostTest.py | 95 logging.info("ACCELEROMETER: %s", sensors_types.SensorType.ACCELEROMETER) 96 logging.info("MAGNETIC_FIELD: %s", sensors_types.SensorType.MAGNETIC_FIELD) 97 logging.info("GYROSCOPE: %s", sensors_types.SensorType.GYROSCOPE) 98 asserts.assertEqual(sensors_types.SensorType.ACCELEROMETER, 1) 99 asserts.assertEqual(sensors_types.SensorType.MAGNETIC_FIELD, 2) 100 asserts.assertEqual(sensors_types.SensorType.GYROSCOPE, 4)
|
/system/chre/platform/include/chre/platform/ |
platform_sensor.h | 90 * Obtains the SensorType of this platform sensor. The implementation of this 96 SensorType getSensorType() const;
|
/system/chre/platform/shared/ |
chre_api_sensor.cc | 28 using chre::SensorType; 33 bool chreSensorFindDefault(uint8_t sensorType, uint32_t *handle) { 34 SensorType validatedSensorType = getSensorTypeFromUnsignedInt(sensorType); 35 return (validatedSensorType != SensorType::Unknown
|
/system/chre/platform/slpi/ |
platform_sensor.cc | 69 * SensorType as used by platform-independent CHRE code. This is useful in 79 SensorType getSensorTypeFromSensorId(uint8_t sensorId, uint8_t dataType, 90 return SensorType::Accelerometer; 92 return SensorType::UncalibratedAccelerometer; 97 return SensorType::Gyroscope; 99 return SensorType::UncalibratedGyroscope; 104 return SensorType::GeomagneticField; 106 return SensorType::UncalibratedGeomagneticField; 110 return SensorType::Pressure; 113 return SensorType::Proximity [all...] |
/system/chre/core/tests/ |
sensor_request_test.cc | 24 using chre::SensorType; 26 TEST(SensorType, LosslessSensorHandleToSensorTypeAndBack) { 30 SensorType sensorType = SensorType::Pressure; 31 uint32_t sensorHandle = getSensorHandleFromSensorType(sensorType); 32 sensorType = chre::getSensorTypeFromSensorHandle(sensorHandle); 33 EXPECT_EQ(sensorType, SensorType::Pressure); 35 sensorType = SensorType::Proximity [all...] |