/system/chre/core/ |
D | sensor_request_manager.cc | 33 bool isSensorRequestValid(const Sensor &sensor, in isSensorRequestValid() argument 41 if (!isRequestOff && requestedInterval < sensor.getMinInterval()) { in isSensorRequestValid() 43 requestedInterval, sensor.getMinInterval()); in isSensorRequestValid() 44 } else if (!isRequestOff && isRequestOneShot != sensor.isOneShot()) { in isSensorRequestValid() 46 } else if (isRequestPassive && !sensor.supportsPassiveMode()) { in isSensorRequestValid() 64 Sensor *sensor = in updateLastEvent() local 70 if (sensor != nullptr && in updateLastEvent() 71 sensor->getMaximalRequest().getMode() != SensorMode::Off) { in updateLastEvent() 72 sensor->setLastEvent(sensorData); in updateLastEvent() 174 Sensor &sensor = mSensors[sensorHandle]; in setSensorRequest() local [all …]
|
/system/chre/platform/shared/sensor_pal/ |
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 | 307 SensorState &sensor = sensors[i]; in handleTimerEvent() local 310 if (sensor.isInitialized && sensor.enable != enable) { in handleTimerEvent() 311 sensor.enable = enable; in handleTimerEvent() 315 status = chreSensorConfigureModeOnly(sensor.handle, in handleTimerEvent() 319 sensor.info.isOneShot ? CHRE_SENSOR_CONFIGURE_MODE_ONE_SHOT in handleTimerEvent() 321 status = chreSensorConfigure(sensor.handle, mode, sensor.interval, in handleTimerEvent() 322 sensor.latency); in handleTimerEvent() 326 sensor.info.sensorName); in handleTimerEvent() 428 SensorState &sensor = sensors[i]; in nanoappStart() local 429 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/chre_stress_test/src/ |
D | chre_stress_test_manager.cc | 640 SensorState &sensor = mSensors[i]; in handleSensorStartCommand() local 641 bool isInitialized = chreSensorFindDefault(sensor.type, &sensor.handle); in handleSensorStartCommand() 645 chreSensorInfo &info = sensor.info; in handleSensorStartCommand() 646 bool infoStatus = chreGetSensorInfo(sensor.handle, &info); in handleSensorStartCommand() 648 sensor.samplingInterval = info.minInterval; in handleSensorStartCommand() 659 isInitialized ? "true" : "false", sensor.handle); in handleSensorStartCommand() 721 SensorState &sensor = mSensors[i]; in makeSensorRequests() local 723 if (!sensor.enabled) { in makeSensorRequests() 724 if (sensor.info.isOneShot) { in makeSensorRequests() 726 sensor.handle, CHRE_SENSOR_CONFIGURE_MODE_ONE_SHOT, in makeSensorRequests() [all …]
|
/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/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/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/chre_api_test/rpc/ |
D | chre_api_test.proto | 26 // Finds the default sensor for the given sensor type. 30 // Gets the information about a sensor. 33 // Gets the sampling status for the sensor. 37 // Configures a sensor. 40 // Configures a sensor's mode. 128 // A sensor sampling status update event 134 // The sampling status of a sensor 147 // Header for sensor data 156 // Individual sample data for a three-axis sensor.
|
/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/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/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/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/34.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/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 | 44 bool "Enable sensor support" 46 When enabled, CHRE will include the code needed to support the sensor
|
/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
|