Home
last modified time | relevance | path

Searched refs:sensor (Results 1 – 22 of 22) 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/chre/core/
Dsensor_request_manager.cc27 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 …]
Dcore.mk19 COMMON_SRCS += core/sensor.cc
/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/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/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
/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/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/chre/platform/slpi/see/
Dplatform_sensor.cc276 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/
Dsensor_request_manager.h217 void setSensor(Sensor&& sensor) { in setSensor() argument
219 mSensor = std::move(sensor); in setSensor()
/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/util/
Dutil.mk16 COMMON_SRCS += util/nanoapp/sensor.cc
/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/core/init/
DREADME.md64 actions or daemons needed for motion sensor or other peripheral