Home
last modified time | relevance | path

Searched refs:sensor (Results 1 – 24 of 24) sorted by relevance

/system/chre/apps/sensor_world/
Dsensor_world.cc221 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/
Dplatform_sensor.cc329 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/
Dash_world.cc122 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/
Dplatform_sensor_util.cc51 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/
Dhal_sensors_default.te12 # 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/
Dsensor_request_manager.cc33 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 …]
Dcore.mk19 COMMON_SRCS += core/sensor.cc
/system/sepolicy/prebuilts/api/30.0/public/
Dhal_sensors.te6 # 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/
Dhal_sensors.te6 # 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/
Dhal_sensors.te6 # 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/
Dhal_sensors.te7 # 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/
Dhal_sensors.te7 # 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/
Dhal_sensors.te7 # 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/
Dplatform_sensor.cc274 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/
Dsensor_request_manager.h238 void setSensor(Sensor&& sensor) { in setSensor() argument
240 mSensor = std::move(sensor); in setSensor()
/system/chre/util/
Dutil.mk16 COMMON_SRCS += util/nanoapp/sensor.cc
/system/chre/chre_api/legacy/v1_2/chre/
Dsensor_types.h188 #error Too many sensor types
Dsensor.h252 #error Too many sensor events.
/system/chre/chre_api/include/chre_api/chre/
Dsensor_types.h204 #error Too many sensor types
Dsensor.h366 #error Too many sensor events.
/system/chre/chre_api/legacy/v1_0/chre/
Dsensor.h278 #error Too many sensor events.
/system/chre/chre_api/legacy/v1_1/chre/
Dsensor.h394 #error Too many sensor events.
/system/chre/build/sys_support/qcom/
Dchre.scons281 "${BUILDPATH}/system/chre/core/sensor.cc",
327 "${BUILDPATH}/system/chre/util/nanoapp/sensor.cc",
/system/core/init/
DREADME.md54 actions or daemons needed for motion sensor or other peripheral