/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/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 21 # allow sensor hal to use ashmem fd from system_server.
|
/system/chre/core/ |
D | sensor_request_manager.cc | 33 bool isSensorRequestValid(const Sensor& sensor, in isSensorRequestValid() argument 39 SensorType sensorType = sensor.getSensorType(); in isSensorRequestValid() 42 if (requestedInterval < sensor.getMinInterval()) { in isSensorRequestValid() 45 requestedInterval, sensor.getMinInterval()); in isSensorRequestValid() 142 const Sensor& sensor = requests.getSensor(); in setSensorRequest() local 143 if (!isSensorRequestValid(sensor, sensorRequest)) { in setSensorRequest() 197 if (sensorTypeIsOnChange(sensor.getSensorType()) && in setSensorRequest() 198 sensor.getLastEvent() != nullptr) { in setSensorRequest() 200 getSampleEventTypeForSensorType(sensorType), sensor.getLastEvent(), in setSensorRequest() 242 const Sensor& sensor = mSensorRequests[sensorIndex].getSensor(); in getSensorInfo() local [all …]
|
D | core.mk | 19 COMMON_SRCS += core/sensor.cc
|
/system/sepolicy/prebuilts/api/30.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/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/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/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/chre/platform/slpi/see/ |
D | platform_sensor.cc | 274 Sensor *sensor = EventLoopManagerSingleton::get()->getSensorRequestManager() in updateSamplingStatus() local 278 if (sensor != nullptr && !sensorTypeIsOneShot(update.sensorType) in updateSamplingStatus() 279 && sensor->getSamplingStatus(&newStatus)) { in updateSamplingStatus() 290 sensor->setSamplingStatus(newStatus); in updateSamplingStatus() 338 Sensor *sensor = EventLoopManagerSingleton::get()->getSensorRequestManager() in onSamplingStatusUpdate() local 344 if (sensor != nullptr && in onSamplingStatusUpdate() 345 !isSameStatusUpdate(sensor->mLastReceivedSamplingStatus, *status.get())) { in onSamplingStatusUpdate() 346 sensor->mLastReceivedSamplingStatus = *status.get(); in onSamplingStatusUpdate() 484 Sensor sensor; in addSensor() local 485 sensor.initBase(sensorType, minInterval, sensorName, lastEvent, in addSensor() [all …]
|
/system/chre/core/include/chre/core/ |
D | sensor_request_manager.h | 238 void setSensor(Sensor&& sensor) { in setSensor() argument 240 mSensor = std::move(sensor); in setSensor()
|
/system/chre/util/ |
D | util.mk | 16 COMMON_SRCS += util/nanoapp/sensor.cc
|
/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/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/chre/build/sys_support/qcom/ |
D | chre.scons | 281 "${BUILDPATH}/system/chre/core/sensor.cc", 327 "${BUILDPATH}/system/chre/util/nanoapp/sensor.cc",
|
/system/core/init/ |
D | README.md | 54 actions or daemons needed for motion sensor or other peripheral
|