Lines Matching refs:Sensor
17 #include <sensor/Sensor.h>
29 Sensor::Sensor(const char * name) :
37 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion) :
38 Sensor(*hwSensor, uuid_t(), halVersion) {
41 Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion) :
42 Sensor("") {
70 ALOGE("Sensor maxDelay overflow error %s %" PRId64, mName.string(),
82 // Set reportingMode for all android defined sensor types, set wake-up flag only for proximity
83 // sensor, significant motion, tilt, pick_up gesture, wake gesture and glance gesture on older
249 // TODO: Placeholder for LLOB sensor type
272 // This is an OEM defined sensor on an older HAL. Use minDelay to determine the
273 // reporting mode of the sensor.
293 ALOGE("Reporting Mode incorrect: sensor %s handle=%#010" PRIx32 " type=%" PRId32 " "
318 // If the sensor is protected by a permission we need to know if it is
329 Sensor::~Sensor() {
332 const String8& Sensor::getName() const {
336 const String8& Sensor::getVendor() const {
340 int32_t Sensor::getHandle() const {
344 int32_t Sensor::getType() const {
348 float Sensor::getMinValue() const {
352 float Sensor::getMaxValue() const {
356 float Sensor::getResolution() const {
360 float Sensor::getPowerUsage() const {
364 int32_t Sensor::getMinDelay() const {
368 nsecs_t Sensor::getMinDelayNs() const {
372 int32_t Sensor::getVersion() const {
376 uint32_t Sensor::getFifoReservedEventCount() const {
380 uint32_t Sensor::getFifoMaxEventCount() const {
384 const String8& Sensor::getStringType() const {
388 const String8& Sensor::getRequiredPermission() const {
392 bool Sensor::isRequiredPermissionRuntime() const {
396 int32_t Sensor::getRequiredAppOp() const {
400 int32_t Sensor::getMaxDelay() const {
404 uint32_t Sensor::getFlags() const {
408 bool Sensor::isWakeUpSensor() const {
412 bool Sensor::isDynamicSensor() const {
416 bool Sensor::isDataInjectionSupported() const {
420 bool Sensor::hasAdditionalInfo() const {
424 int32_t Sensor::getHighestDirectReportRateLevel() const {
428 bool Sensor::isDirectChannelTypeSupported(int32_t sharedMemType) const {
439 int32_t Sensor::getReportingMode() const {
443 const Sensor::uuid_t& Sensor::getUuid() const {
447 void Sensor::setId(int32_t id) {
452 int32_t Sensor::getId() const {
456 size_t Sensor::getFlattenedSize() const {
473 status_t Sensor::flatten(void* buffer, size_t size) const {
501 ALOGW("Sensor with UUID being flattened; sending 0. Expect "
502 "bad dynamic sensor behavior");
511 status_t Sensor::unflatten(void const* buffer, size_t size) {
560 void Sensor::flattenString8(void*& buffer, size_t& size,
568 bool Sensor::unflattenString8(void const*& buffer, size_t& size, String8& outputString8) {