/system/chre/core/ |
D | sensor_request_manager.cc | 31 bool isSensorRequestValid(const Sensor &sensor, in isSensorRequestValid() argument 39 if (requestedInterval < sensor.getMinInterval()) { in isSensorRequestValid() 41 requestedInterval, sensor.getMinInterval()); in isSensorRequestValid() 42 } else if (!isRequestOff && isRequestOneShot != sensor.isOneShot()) { in isSensorRequestValid() 44 } else if (isRequestPassive && !sensor.supportsPassiveMode()) { in isSensorRequestValid() 62 Sensor *sensor = in updateLastEvent() local 68 if (sensor != nullptr && in updateLastEvent() 69 sensor->getMaximalRequest().getMode() != SensorMode::Off) { in updateLastEvent() 70 sensor->setLastEvent(sensorData); in updateLastEvent() 172 Sensor &sensor = mSensors[sensorHandle]; in setSensorRequest() local [all …]
|
D | core.mk | 36 COMMON_SRCS += core/sensor.cc
|
/system/chre/platform/shared/ |
D | platform_sensor_manager.cc | 68 struct chreSensorInfo *sensor = &palSensors[i]; in getSensors() local 70 sensors[i].initBase(sensor, i /* sensorHandle */); in getSensors() 71 if (sensor->sensorName != nullptr) { in getSensors() 72 LOGD("Found sensor: %s", sensor->sensorName); in getSensors() 75 sensor->sensorType); in getSensors() 83 bool PlatformSensorManager::configureSensor(Sensor &sensor, in configureSensor() argument 88 sensor.getSensorHandle(), in configureSensor() 96 bool PlatformSensorManager::configureBiasEvents(const Sensor &sensor, in configureBiasEvents() argument 101 success = mSensorApi->configureBiasEvents(sensor.getSensorHandle(), enable, in configureBiasEvents() 108 const Sensor &sensor, struct chreSensorThreeAxisData *bias) const { in getThreeAxisBias() argument [all …]
|
/system/chre/apps/sensor_world/ |
D | sensor_world.cc | 278 SensorState &sensor = sensors[i]; in handleTimerEvent() local 281 if (sensor.isInitialized && sensor.enable != enable) { in handleTimerEvent() 282 sensor.enable = enable; in handleTimerEvent() 286 status = chreSensorConfigureModeOnly(sensor.handle, in handleTimerEvent() 290 sensor.info.isOneShot ? CHRE_SENSOR_CONFIGURE_MODE_ONE_SHOT in handleTimerEvent() 292 status = chreSensorConfigure(sensor.handle, mode, sensor.interval, in handleTimerEvent() 293 sensor.latency); in handleTimerEvent() 297 sensor.info.sensorName); in handleTimerEvent() 311 SensorState &sensor = sensors[i]; in nanoappStart() local 312 sensor.isInitialized = in nanoappStart() [all …]
|
/system/chre/platform/slpi/see/ |
D | platform_sensor_manager.cc | 87 bool isBigImageSensor(const Sensor &sensor) { in isBigImageSensor() argument 88 return sensor.getTargetGroupMask() == NanoappGroupIds::BigImage; in isBigImageSensor() 246 Sensor *sensor = getSensorRequestManager().getSensor(sensorHandle); in mergeUpdatedStatus() local 247 sensor->getSamplingStatus(mergedStatus); in mergeUpdatedStatus() 425 SuidAttr sensor = { in getSuidAndAttrs() local 429 if (!suidAttrs->push_back(sensor)) { in getSuidAndAttrs() 546 Sensor *sensor, uint32_t sensorHandle, in findAndAddSensorsForType() argument 551 if (!sensor->supportsPassiveMode()) { in findAndAddSensorsForType() 552 status->status.enabled = sensor->mLastReceivedSamplingStatus.status.enabled; in findAndAddSensorsForType() 553 status->enabledValid = sensor->mLastReceivedSamplingStatus.enabledValid; in findAndAddSensorsForType() [all …]
|
/system/chre/platform/include/chre/platform/ |
D | platform_sensor_manager.h | 85 bool configureSensor(Sensor &sensor, const SensorRequest &request); 109 bool configureBiasEvents(const Sensor &sensor, bool enable, 124 bool getThreeAxisBias(const Sensor &sensor, 140 bool flush(const Sensor &sensor, uint32_t *flushRequestId);
|
/system/chre/java/test/cross_validation/src/com/google/android/chre/test/crossvalidator/ |
D | ApSensorDatapoint.java | 24 public Sensor sensor; field in ApSensorDatapoint 36 sensor = sensorEvent.sensor; in ApSensorDatapoint()
|
D | ChreCrossValidatorSensor.java | 273 public void onAccuracyChanged(Sensor sensor, int accuracy) {} in onAccuracyChanged() argument 278 int sensorType = event.sensor.getType(); in onSensorChanged() 545 if (apDp.sensor.getType() == Sensor.TYPE_PROXIMITY) { in datapointValuesAreSimilar() 553 apDp.sensor.getMaximumRange(), AP_PROXIMITY_SENSOR_FAR_DISTANCE_IN_CM); in datapointValuesAreSimilar()
|
/system/chre/platform/slpi/see/include/chre/target_platform/ |
D | platform_sensor_manager_base.h | 42 SeeHelper &getSeeHelperForSensor(const Sensor &sensor); 44 const SeeHelper &getSeeHelperForSensor(const Sensor &sensor) const { in getSeeHelperForSensor() argument 51 sensor); in getSeeHelperForSensor()
|
/system/chre/core/include/chre/core/ |
D | sensor_request_manager.h | 353 bool doMakeFlushRequest(Sensor &sensor); 363 bool removeAllRequests(Sensor &sensor); 376 bool removeRequest(Sensor &sensor, size_t removeIndex, bool *requestChanged); 388 bool addRequest(Sensor &sensor, const SensorRequest &request, 404 bool updateRequest(Sensor &sensor, size_t updateIndex, 490 bool configurePlatformSensor(Sensor &sensor,
|
/system/sepolicy/vendor/ |
D | hal_sensors_default.te | 12 # Allow sensor hals to access and use gralloc memory allocated by 18 # allow sensor hal to use lock for keeping system awake for wake up 22 # allow sensor hal to use ashmem fd from system_server.
|
/system/chre/apps/test/common/proto/ |
D | chre_cross_validation_sensor.proto | 13 // H2C: Host telling nanoapp to start collecting sensor data 22 // H2C: Host asking nanoapp for information about a given sensor. 26 // C2H: Response to a information request for a sensor. 49 * Asks for the nanoapp to provide stats about the provided CHRE sensor type. 56 * Response to a SensorInfoCommand containing data about the requested sensor.
|
/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/31.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/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/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/doc/ |
D | framework_overview.md | 96 same sensor to determine the effective sensor configuration that should be 98 broadcast accelerometer sensor events. 113 accelerometer sample is received from the underlying sensor framework - this 125 sensor data to all nanoapps registered for the broadcast event type 151 functionality, such as multiplexing sensor requests from all clients into a 154 sensor system.
|
/system/chre/chre_api/legacy/v1_4/chre/ |
D | sensor_types.h | 204 #error Too many sensor types
|
/system/chre/chre_api/legacy/v1_3/chre/ |
D | sensor_types.h | 204 #error Too many sensor types
|
/system/chre/chre_api/include/chre_api/chre/ |
D | sensor_types.h | 234 #error Too many sensor types
|