/device/google/coral-sepolicy/vendor/qcom/common/ |
D | sensors.te | 2 type sensors, domain; 5 init_daemon_domain(sensors) 7 allow sensors self:socket create_socket_perms; 8 allowxperm sensors self:socket ioctl msm_sock_ipc_ioctls; 10 # Read/write persist partition for sensors registry 11 allow sensors sensors_persist_file:dir rw_dir_perms; 12 allow sensors sensors_persist_file:file create_file_perms; 13 allow sensors persist_file:dir search; 14 allow sensors persist_file:lnk_file read; 15 allow sensors mnt_vendor_file:dir r_dir_perms; [all …]
|
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/ |
D | st_lsm6dsm.c | 857 struct LSM6DSMSensor sensors[NUM_SENSORS]; member 1455 …if (T(sensors[STEP_DETECTOR]).enabled || T(sensors[STEP_COUNTER]).enabled || T(sensors[SIGN_MOTION… in lsm6dsm_readStatusReg_() 1631 …lsm6dsm_spiBatchTxRx(&T_SLAVE_INTERFACE(mode), lsm6dsm_spiCallback, &T(sensors[idx]), __FUNCTION__… in lsm6dsm_runGapSelfTestProgram() 1666 …lsm6dsm_spiBatchTxRx(&T_SLAVE_INTERFACE(mode), lsm6dsm_spiCallback, &T(sensors[idx]), __FUNCTION__… in lsm6dsm_runGapSelfTestProgram() 1704 …lsm6dsm_spiBatchTxRx(&T_SLAVE_INTERFACE(mode), lsm6dsm_spiCallback, &T(sensors[idx]), __FUNCTION__… in lsm6dsm_runGapSelfTestProgram() 1739 …lsm6dsm_spiBatchTxRx(&T_SLAVE_INTERFACE(mode), lsm6dsm_spiCallback, &T(sensors[idx]), __FUNCTION__… in lsm6dsm_runGapSelfTestProgram() 1820 …lsm6dsm_spiBatchTxRx(&T_SLAVE_INTERFACE(mode), lsm6dsm_spiCallback, &T(sensors[idx]), __FUNCTION__… in lsm6dsm_runGapSelfTestProgram() 1879 …lsm6dsm_spiBatchTxRx(&T_SLAVE_INTERFACE(mode), lsm6dsm_spiCallback, &T(sensors[idx]), __FUNCTION__… in lsm6dsm_runCalibrationProgram() 1904 …lsm6dsm_spiBatchTxRx(&T_SLAVE_INTERFACE(mode), lsm6dsm_spiCallback, &T(sensors[idx]), __FUNCTION__… in lsm6dsm_runCalibrationProgram() 1949 …lsm6dsm_spiBatchTxRx(&T_SLAVE_INTERFACE(mode), lsm6dsm_spiCallback, &T(sensors[idx]), __FUNCTION__… in lsm6dsm_runCalibrationProgram() [all …]
|
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 485 struct BMI160Sensor sensors[NUM_OF_SENSOR]; member 954 if (mTask.sensors[STEPCNT].powered && mTask.step_cnt_changed) { 963 sensorSignalInternalEvt(mTask.sensors[ACC].handle, 970 sensorSignalInternalEvt(mTask.sensors[GYR].handle, 978 sensorSignalInternalEvt(mTask.sensors[MAG].handle, 986 sensorSignalInternalEvt(mTask.sensors[STEP].handle, 993 sensorSignalInternalEvt(mTask.sensors[DTAP].handle, 1000 sensorSignalInternalEvt(mTask.sensors[NOMO].handle, 1007 sensorSignalInternalEvt(mTask.sensors[ANYMO].handle, 1014 sensorSignalInternalEvt(mTask.sensors[FLAT].handle, [all …]
|
/device/google/redbull-sepolicy/vendor/qcom/common/ |
D | sensors.te | 1 type sensors, domain; 3 init_daemon_domain(sensors) 5 # Read/write persist partition for sensors registry 6 allow sensors sensors_persist_file:dir rw_dir_perms; 7 allow sensors sensors_persist_file:file create_file_perms; 8 allow sensors sensors_persist_file:fifo_file r_file_perms; 9 allow sensors persist_file:dir search; 12 allow sensors sensors_persist_file:dir create; 13 allow sensors persist_sensors_reg_fac_file:dir r_dir_perms; 14 allow sensors persist_sensors_reg_fac_file:file { unlink r_file_perms }; [all …]
|
/device/google/cuttlefish/guest/commands/sensor_injection/ |
D | main.cpp | 28 using aidl::android::hardware::sensors::Event; 29 using aidl::android::hardware::sensors::ISensors; 30 using aidl::android::hardware::sensors::SensorInfo; 31 using aidl::android::hardware::sensors::SensorStatus; 32 using aidl::android::hardware::sensors::SensorType; 35 auto sensors = ISensors::fromBinder(ndk::SpAIBinder( in startSensorInjection() local 37 CHECK(sensors != nullptr) << "Unable to get ISensors."; in startSensorInjection() 42 sensors->setOperationMode(ISensors::OperationMode::DATA_INJECTION); in startSensorInjection() 47 return sensors; in startSensorInjection() 50 int getSensorHandle(SensorType type, const std::shared_ptr<ISensors> sensors) { in getSensorHandle() argument [all …]
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 116 struct FusionSensor sensors[NUM_OF_FUSION_SENSOR]; member 353 if (mTask.sensors[GAME].active) { in updateOutput() 355 if (!addSample(&mTask.sensors[GAME], in updateOutput() 364 if (mTask.sensors[GRAVITY].active) { in updateOutput() 369 if (!addSample(&mTask.sensors[GRAVITY], in updateOutput() 379 && mTask.sensors[LINEAR].active) { in updateOutput() 390 if (!addSample(&mTask.sensors[LINEAR], in updateOutput() 403 if (mTask.sensors[ORIENT].active) { in updateOutput() 414 if (!addSample(&mTask.sensors[ORIENT], in updateOutput() 423 if (mTask.sensors[GEOMAG].active) { in updateOutput() [all …]
|
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/ |
D | invensense_icm40600.c | 612 struct ICM40600Sensor sensors[NUM_OF_SENSOR]; member 936 const int16_t * const acc_offset = T(sensors[ACC]).offset; 937 const int16_t * const gyr_offset = T(sensors[GYR]).offset; 987 val = (-T(sensors[GYR]).offset[2] >> 8) & 0x0f; 998 val = (-T(sensors[ACC]).offset[0] >> 4) & 0xf0; 1017 struct ICM40600Sensor *sensor = &T(sensors[ACC]); 1050 struct ICM40600Sensor *sensor = &T(sensors[GYR]); 1283 spiBatchTxRx(&T(mode), sensorSpiCallback, &T(sensors[idx]), __FUNCTION__); 1302 spiBatchTxRx(&T(mode), sensorSpiCallback, &T(sensors[idx]), __FUNCTION__); 1337 spiBatchTxRx(&T(mode), sensorSpiCallback, &T(sensors[idx]), __FUNCTION__); [all …]
|
/device/google/contexthub/util/nanotool/ |
D | nanotool.cpp | 56 std::vector<SensorSpec> sensors; member 163 if (!args->sensors.size() in ValidateArgs() 183 for (unsigned int i = 0; i < args->sensors.size(); i++) { in ValidateArgs() 184 if (args->sensors[i].special_rate == SensorSpecialRate::None in ValidateArgs() 185 && args->sensors[i].rate_hz < 0) { in ValidateArgs() 189 args->sensors[i].sensor_type).c_str()); in ValidateArgs() 196 for (unsigned int i = 0; i < args->sensors.size(); i++) { in ValidateArgs() 197 if (!args->sensors[i].have_cal_ref in ValidateArgs() 198 && (args->sensors[i].sensor_type == SensorType::Barometer in ValidateArgs() 199 || args->sensors[i].sensor_type == in ValidateArgs() [all …]
|
D | contexthub.cpp | 169 bool ContextHub::CalibrateSensors(const std::vector<SensorSpec>& sensors) { in CalibrateSensors() argument 170 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in CalibrateSensors() 180 bool ContextHub::TestSensors(const std::vector<SensorSpec>& sensors) { in TestSensors() argument 181 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in TestSensors() 216 bool ContextHub::EnableSensors(const std::vector<SensorSpec>& sensors) { in EnableSensors() argument 217 return ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in EnableSensors() 243 bool ContextHub::DisableSensors(const std::vector<SensorSpec>& sensors) { in DisableSensors() argument 244 return ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in DisableSensors() 343 void ContextHub::PrintSensorEvents(const std::vector<SensorSpec>& sensors, int limit) { in PrintSensorEvents() argument 345 auto event_printer = [&sensors, &limit, continuous](const SensorEvent& event) -> bool { in PrintSensorEvents() [all …]
|
/device/google/trout/hal/sensors/2.1/ |
D | Android.bp | 21 name: "android.hardware.sensors@2.1-Google-IIO-Subhal", 31 "android.hardware.sensors@2.1-multihal.header", 34 "android.hardware.sensors@1.0", 35 "android.hardware.sensors@2.0", 36 "android.hardware.sensors@2.1", 37 "android.hardware.sensors@2.0-ScopedWakelock", 48 "android.hardware.sensors@2.X-multihal", 61 name: "android.hardware.sensors@2.1-Google-IIO-Subhal_test", 68 "android.hardware.sensors@1.0", 69 "android.hardware.sensors@2.0", [all …]
|
D | SensorsSubHal.h | 23 using ::android::hardware::sensors::V2_1::SensorType; 27 namespace sensors { 32 using ::android::hardware::sensors::V1_0::OperationMode; 33 using ::android::hardware::sensors::V1_0::Result; 34 using ::android::hardware::sensors::V2_1::implementation::IHalProxyCallback; 35 using ::android::hardware::sensors::V2_1::implementation::ISensorsSubHal; 36 using ::android::hardware::sensors::V2_1::subhal::implementation::ISensorsEventCallback; 44 using Event = ::android::hardware::sensors::V2_1::Event; 45 using RateLevel = ::android::hardware::sensors::V1_0::RateLevel; 46 using SharedMemInfo = ::android::hardware::sensors::V1_0::SharedMemInfo; [all …]
|
D | SensorsSubHal.cpp | 22 using ::android::hardware::sensors::V2_1::implementation::ISensorsSubHal; 25 static ::android::hardware::sensors::V2_1::subhal::implementation::SensorsSubHal subHal; in sensorsHalGetSubHal_2_1() 32 namespace sensors { namespace 38 using ::android::hardware::sensors::V1_0::RateLevel; 39 using ::android::hardware::sensors::V1_0::SharedMemInfo; 40 using ::android::hardware::sensors::V2_0::SensorTimeout; 41 using ::android::hardware::sensors::V2_0::WakeLockQueueFlagBits; 42 using ::android::hardware::sensors::V2_0::implementation::ScopedWakelock; 43 using ::android::hardware::sensors::V2_1::Event; 141 std::vector<SensorInfo> sensors; in getSensorsList_2_1() local [all …]
|
D | Sensor.h | 36 using ::android::hardware::sensors::V1_0::AdditionalInfo; 37 using ::android::hardware::sensors::V1_0::OperationMode; 38 using ::android::hardware::sensors::V1_0::Result; 39 using ::android::hardware::sensors::V2_0::implementation::ScopedWakelock; 40 using ::android::hardware::sensors::V2_1::Event; 41 using ::android::hardware::sensors::V2_1::SensorInfo; 42 using ::android::hardware::sensors::V2_1::SensorType; 47 namespace sensors {
|
/device/google/sunfish-sepolicy/vendor/qcom/common/ |
D | sensors.te | 1 type sensors, domain; 3 init_daemon_domain(sensors) 7 allow sensors diag_device:chr_file rw_file_perms; 9 allow sensors persist_file:dir search; 10 allow sensors mnt_vendor_file:dir search; 11 allow sensors self:qipcrtr_socket create; 12 allow sensors sensors_persist_file:dir rw_dir_perms; 13 r_dir_file(sensors, sysfs_msm_subsys) 14 allow sensors sysfs_ssr:file r_file_perms; 15 allow sensors sensors_vendor_data_file:dir rw_dir_perms; [all …]
|
/device/generic/goldfish/sensors/ |
D | Android.bp | 27 name: "android.hardware.sensors@2.1-impl.virtual_srcs", 37 name: "android.hardware.sensors@2.1-impl.virtual_headers", 43 name: "android.hardware.sensors@2.1-impl.virtual.defaults", 48 ":android.hardware.sensors@2.1-impl.virtual_srcs", 51 "android.hardware.sensors@2.0", 52 "android.hardware.sensors@2.1", 53 "android.hardware.sensors@2.0-ScopedWakelock", 60 "android.hardware.sensors@2.X-multihal.header", 61 "android.hardware.sensors@2.1-impl.virtual_headers" 66 name: "android.hardware.sensors@2.1-impl.ranchu", [all …]
|
/device/google/coral/ |
D | product.prop | 50 ro.qti.sensors.dev_ori=true 52 # settings to disable sensors not needed 54 ro.qti.sensors.wu=false 56 ro.qti.sdk.sensors.gestures=false 57 ro.qti.sensors.amd=false 58 ro.qti.sensors.cmc=false 59 ro.qti.sensors.facing=false 60 ro.qti.sensors.pedometer=false 61 ro.qti.sensors.rmd=false 62 ro.qti.sensors.scrn_ortn=false [all …]
|
/device/google/sunfish/ |
D | product.prop | 53 ro.qti.sensors.dev_ori=true 55 # settings to disable sensors not needed 57 ro.qti.sensors.wu=false 59 ro.qti.sdk.sensors.gestures=false 60 ro.qti.sensors.amd=false 61 ro.qti.sensors.cmc=false 62 ro.qti.sensors.facing=false 63 ro.qti.sensors.pedometer=false 64 ro.qti.sensors.rmd=false 65 ro.qti.sensors.scrn_ortn=false [all …]
|
/device/google/redbull/ |
D | product.prop | 53 ro.qti.sensors.dev_ori=true 55 # settings to disable sensors not needed 57 ro.qti.sensors.wu=false 59 ro.qti.sdk.sensors.gestures=false 60 ro.qti.sensors.amd=false 61 ro.qti.sensors.cmc=false 62 ro.qti.sensors.facing=false 63 ro.qti.sensors.pedometer=false 64 ro.qti.sensors.rmd=false 65 ro.qti.sensors.scrn_ortn=false [all …]
|
/device/generic/car/common/ |
D | config.ini.car_md | 19 hw.sensors.light=no 20 hw.sensors.pressure=no 21 hw.sensors.humidity=no 22 hw.sensors.proximity=no 23 hw.sensors.magnetic_field=no 24 hw.sensors.orientation=no 25 hw.sensors.temperature=no
|
D | config.ini | 43 hw.sensors.light=no 44 hw.sensors.pressure=no 45 hw.sensors.humidity=no 46 hw.sensors.proximity=no 47 hw.sensors.magnetic_field=no 48 hw.sensors.orientation=no 49 hw.sensors.temperature=no
|
/device/generic/car/emulator/multi-display-dynamic/ |
D | config.ini | 19 hw.sensors.light=no 20 hw.sensors.pressure=no 21 hw.sensors.humidity=no 22 hw.sensors.proximity=no 23 hw.sensors.magnetic_field=no 24 hw.sensors.orientation=no 25 hw.sensors.temperature=no
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 184 struct lps22hbSensor sensors[NUM_OF_SENSOR]; member 371 sensorSignalInternalEvt(mTask.sensors[BARO].handle, in baroPower() 386 …return sensorSignalInternalEvt(mTask.sensors[BARO].handle, SENSOR_INTERNAL_EVT_FW_STATE_CHG, 1, 0); in baroFwUpload() 399 return sensorSignalInternalEvt(mTask.sensors[BARO].handle, in baroSetRate() 468 sensorSignalInternalEvt(mTask.sensors[TEMP].handle, in tempPower() 483 …return sensorSignalInternalEvt(mTask.sensors[TEMP].handle, SENSOR_INTERNAL_EVT_FW_STATE_CHG, 1, 0); in tempFwUpload() 495 return sensorSignalInternalEvt(mTask.sensors[TEMP].handle, in tempSetRate() 547 sensorRegisterInitComplete(mTask.sensors[i].handle); in handleCommDoneEvt() 554 sensorSignalInternalEvt(mTask.sensors[BARO].handle, in handleCommDoneEvt() 559 sensorSignalInternalEvt(mTask.sensors[BARO].handle, in handleCommDoneEvt() [all …]
|
/device/google/trout/ |
D | aosp_trout_arm64.mk | 63 android.hardware.sensors-service.multihal \ 64 android.hardware.sensors-service.multihal.rc \ 65 android.hardware.sensors@2.1-Google-IIO-Subhal \ 77 …device/google/trout/hal/sensors/2.1/config/sensor_hal_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/… 79 …device/google/trout/product_files/vendor/etc/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/senso…
|
/device/google/comet/sensors/ |
D | sensors_dummy.c | 134 sensors_event_t sensors[MAX_NUM_SENSORS]; member 191 *event = d->sensors[i]; in sensor_device_pick_pending_event_locked() 254 uint32_t sensors = enabled ? mask : 0; in sensor_device_activate() local 259 uint32_t new_sensors = (active & ~mask) | (sensors & mask); in sensor_device_activate() 285 dev->sensors[handle].version = META_DATA_VERSION; in sensor_device_default_flush() 286 dev->sensors[handle].type = SENSOR_TYPE_META_DATA; in sensor_device_default_flush() 287 dev->sensors[handle].sensor = 0; in sensor_device_default_flush() 288 dev->sensors[handle].timestamp = 0; in sensor_device_default_flush() 289 dev->sensors[handle].meta_data.what = META_DATA_FLUSH_COMPLETE; in sensor_device_default_flush()
|
/device/google/akita/sensors/ |
D | sensors_dummy.c | 134 sensors_event_t sensors[MAX_NUM_SENSORS]; member 191 *event = d->sensors[i]; in sensor_device_pick_pending_event_locked() 254 uint32_t sensors = enabled ? mask : 0; in sensor_device_activate() local 259 uint32_t new_sensors = (active & ~mask) | (sensors & mask); in sensor_device_activate() 285 dev->sensors[handle].version = META_DATA_VERSION; in sensor_device_default_flush() 286 dev->sensors[handle].type = SENSOR_TYPE_META_DATA; in sensor_device_default_flush() 287 dev->sensors[handle].sensor = 0; in sensor_device_default_flush() 288 dev->sensors[handle].timestamp = 0; in sensor_device_default_flush() 289 dev->sensors[handle].meta_data.what = META_DATA_FLUSH_COMPLETE; in sensor_device_default_flush()
|