/system/chre/apps/sensor_world/ |
D | sensor_world.cc | 221 SensorState& sensor = sensors[i]; in handleTimerEvent() local 224 if (sensor.isInitialized && sensor.enable != enable) { in handleTimerEvent() 225 sensor.enable = enable; in handleTimerEvent() 230 sensor.handle, CHRE_SENSOR_CONFIGURE_MODE_DONE); in handleTimerEvent() 232 enum chreSensorConfigureMode mode = sensor.info.isOneShot in handleTimerEvent() 236 sensor.handle, mode, sensor.interval, sensor.latency); in handleTimerEvent() 240 enable, status, getSensorTypeName(sensor.type)); in handleTimerEvent() 254 SensorState& sensor = sensors[i]; in nanoappStart() local 255 sensor.isInitialized = chreSensorFindDefault(sensor.type, &sensor.handle); in nanoappStart() 257 i, sensor.isInitialized ? "true" : "false", sensor.handle); in nanoappStart() [all …]
|
/system/chre/platform/slpi/smgr/ |
D | platform_sensor.cc | 329 Sensor sensor; in addSensor() local 330 sensor.sensorId = sensorInfo.SensorID; in addSensor() 331 sensor.dataType = sensorInfo.DataType; in addSensor() 332 sensor.calType = calType; in addSensor() 333 size_t bytesToCopy = std::min(sizeof(sensor.sensorName) - 1, in addSensor() 335 memcpy(sensor.sensorName, sensorInfo.SensorName, bytesToCopy); in addSensor() 336 sensor.sensorName[bytesToCopy] = '\0'; in addSensor() 341 sensor.minInterval = sensorTypeIsOneShot(sensorType) ? in addSensor() 346 sensor.lastEvent = allocateLastEvent(sensorType, &sensor.lastEventSize); in addSensor() 348 sensor.isSensorOff = true; in addSensor() [all …]
|
/system/chre/apps/ash_world/ |
D | ash_world.cc | 122 uint8_t sensor = CHRE_SENSOR_TYPE_ACCELEROMETER; in handleTimerEvent() local 126 sensor = CHRE_SENSOR_TYPE_GYROSCOPE; in handleTimerEvent() 130 sensor = CHRE_SENSOR_TYPE_GEOMAGNETIC_FIELD; in handleTimerEvent() 140 success = ashSaveCalibrationParams(sensor, sensorCalParams); in handleTimerEvent() 143 sensor, success ? "success" : "failure", (toc - tic) / 1000); in handleTimerEvent() 147 success = ashLoadCalibrationParams(sensor, ASH_CAL_STORAGE_ASH, &p); in handleTimerEvent() 150 sensor, success ? "success" : "fail", (toc - tic) / 1000); in handleTimerEvent() 166 success = ashSetCalibration(sensor, sensorCalInfo); in handleTimerEvent() 169 sensor, success ? "success" : "failure", (toc - tic) / 1000); in handleTimerEvent()
|
/system/chre/platform/shared/ |
D | platform_sensor_util.cc | 51 Sensor *sensor = EventLoopManagerSingleton::get() in updateLastEvent() local 56 if (sensor != nullptr in updateLastEvent() 57 && sensor->getRequest().getMode() != SensorMode::Off) { in updateLastEvent() 58 sensor->setLastEvent(cbData->event); in updateLastEvent()
|
/system/chre/core/ |
D | sensor_request_manager.cc | 27 bool isSensorRequestValid(const Sensor& sensor, in isSensorRequestValid() argument 33 SensorType sensorType = sensor.getSensorType(); in isSensorRequestValid() 36 if (requestedInterval < sensor.getMinInterval()) { in isSensorRequestValid() 39 requestedInterval, sensor.getMinInterval()); in isSensorRequestValid() 135 const Sensor& sensor = requests.getSensor(); in setSensorRequest() local 136 if (!isSensorRequestValid(sensor, sensorRequest)) { in setSensorRequest() 188 if (sensorTypeIsOnChange(sensor.getSensorType()) in setSensorRequest() 189 && sensor.getLastEvent() != nullptr) { in setSensorRequest() 192 sensor.getLastEvent(), nullptr, kSystemInstanceId, in setSensorRequest() 235 const Sensor& sensor = mSensorRequests[sensorIndex].getSensor(); in getSensorInfo() local [all …]
|
D | core.mk | 19 COMMON_SRCS += core/sensor.cc
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | hal_sensors.te | 6 # Allow sensor hals to access ashmem memory allocated by apps 9 # Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
|
/system/sepolicy/public/ |
D | hal_sensors.te | 6 # Allow sensor hals to access ashmem memory allocated by apps 9 # Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
|
/system/sepolicy/vendor/ |
D | hal_sensors_default.te | 12 # Allow sensor hals to access and use gralloc memory allocated by 17 # allow sensor hal to use lock for keeping system awake for wake up
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | hal_sensors.te | 7 # Allow sensor hals to access ashmem memory allocated by apps 10 # Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | hal_sensors.te | 7 # Allow sensor hals to access ashmem memory allocated by apps 10 # Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | hal_sensors.te | 7 # Allow sensor hals to access ashmem memory allocated by apps 10 # Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
|
/system/chre/platform/slpi/see/ |
D | platform_sensor.cc | 276 Sensor *sensor = EventLoopManagerSingleton::get()->getSensorRequestManager() in updateSamplingStatus() local 280 if (sensor != nullptr && !sensorTypeIsOneShot(update.sensorType) in updateSamplingStatus() 281 && sensor->getSamplingStatus(&prevStatus)) { in updateSamplingStatus() 297 sensor->setSamplingStatus(newStatus); in updateSamplingStatus() 443 Sensor sensor; in addSensor() local 444 sensor.initBase(sensorType, minInterval, sensorName, lastEvent, in addSensor() 447 if (!sensors->push_back(std::move(sensor))) { in addSensor() 510 SuidAttr sensor = { in getSuidAndAttrs() local 514 if (!suidAttrs->push_back(sensor)) { in getSuidAndAttrs()
|
/system/chre/core/include/chre/core/ |
D | sensor_request_manager.h | 217 void setSensor(Sensor&& sensor) { in setSensor() argument 219 mSensor = std::move(sensor); in setSensor()
|
/system/chre/chre_api/legacy/v1_2/chre/ |
D | sensor_types.h | 188 #error Too many sensor types
|
D | sensor.h | 252 #error Too many sensor events.
|
/system/chre/util/ |
D | util.mk | 16 COMMON_SRCS += util/nanoapp/sensor.cc
|
/system/chre/chre_api/include/chre_api/chre/ |
D | sensor_types.h | 204 #error Too many sensor types
|
D | sensor.h | 366 #error Too many sensor events.
|
/system/chre/chre_api/legacy/v1_0/chre/ |
D | sensor.h | 278 #error Too many sensor events.
|
/system/chre/chre_api/legacy/v1_1/chre/ |
D | sensor.h | 394 #error Too many sensor events.
|
/system/core/init/ |
D | README.md | 64 actions or daemons needed for motion sensor or other peripheral
|