/system/chre/core/ |
D | sensor_request_manager.cc | 32 bool isSensorRequestValid(const Sensor &sensor, in isSensorRequestValid() argument 40 if (!isRequestOff && requestedInterval < sensor.getMinInterval()) { in isSensorRequestValid() 42 requestedInterval, sensor.getMinInterval()); in isSensorRequestValid() 43 } else if (!isRequestOff && isRequestOneShot != sensor.isOneShot()) { in isSensorRequestValid() 45 } else if (isRequestPassive && !sensor.supportsPassiveMode()) { in isSensorRequestValid() 63 Sensor *sensor = in updateLastEvent() local 69 if (sensor != nullptr && in updateLastEvent() 70 sensor->getMaximalRequest().getMode() != SensorMode::Off) { in updateLastEvent() 71 sensor->setLastEvent(sensorData); in updateLastEvent() 173 Sensor &sensor = mSensors[sensorHandle]; in setSensorRequest() local [all …]
|
/system/chre/platform/shared/ |
D | platform_sensor_manager.cc | 68 const 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 | 280 SensorState &sensor = sensors[i]; in handleTimerEvent() local 283 if (sensor.isInitialized && sensor.enable != enable) { in handleTimerEvent() 284 sensor.enable = enable; in handleTimerEvent() 288 status = chreSensorConfigureModeOnly(sensor.handle, in handleTimerEvent() 292 sensor.info.isOneShot ? CHRE_SENSOR_CONFIGURE_MODE_ONE_SHOT in handleTimerEvent() 294 status = chreSensorConfigure(sensor.handle, mode, sensor.interval, in handleTimerEvent() 295 sensor.latency); in handleTimerEvent() 299 sensor.info.sensorName); in handleTimerEvent() 313 SensorState &sensor = sensors[i]; in nanoappStart() local 314 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 | 140 for (Sensor sensor : sensorList) { in ChreCrossValidatorSensor() 141 if (!names.contains(sensor.getName())) { in ChreCrossValidatorSensor() 142 mSensorList.add(sensor); in ChreCrossValidatorSensor() 143 names.add(sensor.getName()); in ChreCrossValidatorSensor() 340 public void onAccuracyChanged(Sensor sensor, int accuracy) { in onAccuracyChanged() argument 346 int sensorType = event.sensor.getType(); in onSensorChanged() 599 if (apDp.sensor.getType() == Sensor.TYPE_PROXIMITY) { in datapointValuesAreSimilar() 607 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/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. 50 * Asks for the nanoapp to provide stats about the provided CHRE sensor type. 54 // The sensor name given by android.hardware.Sensor#getSensorName() 59 * Response to a SensorInfoCommand containing data about the requested sensor.
|
/system/chre/core/include/chre/core/ |
D | sensor_request_manager.h | 365 bool doMakeFlushRequest(Sensor &sensor); 375 bool removeAllRequests(Sensor &sensor); 388 bool removeRequest(Sensor &sensor, size_t removeIndex, bool *requestChanged); 400 bool addRequest(Sensor &sensor, const SensorRequest &request, 416 bool updateRequest(Sensor &sensor, size_t updateIndex, 502 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/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/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/prebuilts/api/32.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/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/33.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/chre/platform/zephyr/ |
D | Kconfig | 43 bool "Enable sensor support" 45 When enabled, CHRE will include the code needed to support the sensor
|
D | CMakeLists.txt | 72 # Optional sensor support 76 "${CHRE_DIR}/core/sensor.cc"
|
/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_2/chre/ |
D | sensor_types.h | 188 #error Too many sensor types
|
/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
|