dbusmock.templates.iio-sensors-proxy

sensors proxy mock template

Attributes

__author__

__copyright__

BUS_NAME

MAIN_OBJ

MAIN_IFACE

COMPASS_IFACE

SYSTEM_BUS

CAMEL_TO_SNAKE_CASE_RE

Functions

load(mock[, parameters])

emit_signal_to_destination(mock, interface, name, ...)

emit_properties_changed(mock[, interface, properties, ...])

GetAll(self, interface)

register_owner(self, owners_dict, name)

unregister_owner(owners_dict, name)

ClaimAccelerometer(self, sender)

ReleaseAccelerometer(self, sender)

ClaimLight(self, sender)

ReleaseLight(self, sender)

ClaimProximity(self, sender)

ReleaseProximity(self, sender)

ClaimCompass(self, sender)

ReleaseCompass(self, sender)

sensor_to_attribute(sensor)

is_valid_sensor_for_interface(sensor, interface)

SetInternalProperty(self, interface, property_name, value)

GetInternalProperty(self, property_name)

Module Contents

dbusmock.templates.iio-sensors-proxy.__author__ = 'Marco Trevisan'[source]
Show Value
"""
(c) 2021 Canonical Ltd.
(c) 2017 - 2022 Martin Pitt <martin@piware.de>
"""
dbusmock.templates.iio-sensors-proxy.BUS_NAME = 'net.hadess.SensorProxy'[source]
dbusmock.templates.iio-sensors-proxy.MAIN_OBJ = '/net/hadess/SensorProxy'[source]
dbusmock.templates.iio-sensors-proxy.MAIN_IFACE = 'net.hadess.SensorProxy'[source]
dbusmock.templates.iio-sensors-proxy.COMPASS_IFACE = 'net.hadess.SensorProxy.Compass'[source]
dbusmock.templates.iio-sensors-proxy.SYSTEM_BUS = True[source]
dbusmock.templates.iio-sensors-proxy.CAMEL_TO_SNAKE_CASE_RE[source]
dbusmock.templates.iio-sensors-proxy.load(mock, parameters=None)[source]
dbusmock.templates.iio-sensors-proxy.emit_signal_to_destination(mock, interface, name, signature, destination, *args)[source]
dbusmock.templates.iio-sensors-proxy.emit_properties_changed(mock, interface=MAIN_IFACE, properties=None, destination=None)[source]
dbusmock.templates.iio-sensors-proxy.GetAll(self, interface)[source]
dbusmock.templates.iio-sensors-proxy.register_owner(self, owners_dict, name)[source]
dbusmock.templates.iio-sensors-proxy.unregister_owner(owners_dict, name)[source]
dbusmock.templates.iio-sensors-proxy.ClaimAccelerometer(self, sender)[source]
dbusmock.templates.iio-sensors-proxy.ReleaseAccelerometer(self, sender)[source]
dbusmock.templates.iio-sensors-proxy.ClaimLight(self, sender)[source]
dbusmock.templates.iio-sensors-proxy.ReleaseLight(self, sender)[source]
dbusmock.templates.iio-sensors-proxy.ClaimProximity(self, sender)[source]
dbusmock.templates.iio-sensors-proxy.ReleaseProximity(self, sender)[source]
dbusmock.templates.iio-sensors-proxy.ClaimCompass(self, sender)[source]
dbusmock.templates.iio-sensors-proxy.ReleaseCompass(self, sender)[source]
dbusmock.templates.iio-sensors-proxy.sensor_to_attribute(sensor)[source]
dbusmock.templates.iio-sensors-proxy.is_valid_sensor_for_interface(sensor, interface)[source]
dbusmock.templates.iio-sensors-proxy.SetInternalProperty(self, interface, property_name, value)[source]
dbusmock.templates.iio-sensors-proxy.GetInternalProperty(self, property_name)[source]