Home | History | Annotate | Download | only in gui

Lines Matching refs:Sensor

20 #include <gui/Sensor.h>
36 Sensor::Sensor(const char * name) :
44 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion) :
45 Sensor(*hwSensor, uuid_t(), halVersion) {
48 Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion) {
76 ALOGE("Sensor maxDelay overflow error %s %" PRId64, mName.string(),
88 // Set reportingMode for all android defined sensor types, set wake-up flag only for proximity
89 // sensor, significant motion, tilt, pick_up gesture, wake gesture and glance gesture on older
263 // This is an OEM defined sensor on an older HAL. Use minDelay to determine the
264 // reporting mode of the sensor.
284 ALOGE("Reporting Mode incorrect: sensor %s handle=%#010" PRIx32 " type=%" PRId32 " "
301 // If the sensor is protected by a permission we need to know if it is
312 Sensor::~Sensor() {
315 const String8& Sensor::getName() const {
319 const String8& Sensor::getVendor() const {
323 int32_t Sensor::getHandle() const {
327 int32_t Sensor::getType() const {
331 float Sensor::getMinValue() const {
335 float Sensor::getMaxValue() const {
339 float Sensor::getResolution() const {
343 float Sensor::getPowerUsage() const {
347 int32_t Sensor::getMinDelay() const {
351 nsecs_t Sensor::getMinDelayNs() const {
355 int32_t Sensor::getVersion() const {
359 uint32_t Sensor::getFifoReservedEventCount() const {
363 uint32_t Sensor::getFifoMaxEventCount() const {
367 const String8& Sensor::getStringType() const {
371 const String8& Sensor::getRequiredPermission() const {
375 bool Sensor::isRequiredPermissionRuntime() const {
379 int32_t Sensor::getRequiredAppOp() const {
383 int32_t Sensor::getMaxDelay() const {
387 uint32_t Sensor::getFlags() const {
391 bool Sensor::isWakeUpSensor() const {
395 bool Sensor::isDynamicSensor() const {
399 bool Sensor::hasAdditionalInfo() const {
403 int32_t Sensor::getReportingMode() const {
407 const Sensor::uuid_t& Sensor::getUuid() const {
411 void Sensor::setId(int32_t id) {
416 int32_t Sensor::getId() const {
420 size_t Sensor::getFlattenedSize() const {
437 status_t Sensor::flatten(void* buffer, size_t size) const {
465 ALOGW("Sensor with UUID being flattened; sending 0. Expect "
466 "bad dynamic sensor behavior");
475 status_t Sensor::unflatten(void const* buffer, size_t size) {
524 void Sensor::flattenString8(void*& buffer, size_t& size,
532 bool Sensor::unflattenString8(void const*& buffer, size_t& size, String8& outputString8) {