/external/autotest/client/common_lib/cros/ |
dbus_send.py | 6 import dbus namespace 16 # Represents the result of a dbus-send call. |sender| refers to the temporary 17 # bus name of dbus-send, |responder| to the remote process, and |response| 27 """A tokenizer for dbus-send output. 32 @param headerless_dbus_send_output: list of lines of dbus-send output 34 @return list of tokens in dbus-send output. 40 """Turn a stream of tokens from dbus-send output into native python types. 77 raise error.TestError('Unhandled DBus type found: %s' % token_type) 81 """Turn dbus-send output into usable Python types. 85 localhost ~ # dbus-send --system --dest=org.chromium.flimflam [all...] |
/external/autotest/client/common_lib/cros/tendo/ |
buffet_dbus_helper.py | 5 import dbus namespace 17 DBUS_OBJECT_MANAGER_INTERFACE = 'org.freedesktop.DBus.ObjectManager' 18 DBUS_PROPERTY_INTERFACE = 'org.freedesktop.DBus.Properties' 31 @param manager_proxy: DBus proxy for the Manager object. 50 bus = dbus.SystemBus() 52 self.manager = dbus.Interface(manager_proxy, MANAGER_INTERFACE) 53 self.properties = dbus.Interface(manager_proxy, DBUS_PROPERTY_INTERFACE) 54 self.object_manager = dbus.Interface(
|
/external/autotest/client/cros/cellular/pseudomodem/ |
bearer.py | 5 import dbus namespace 36 'Connected': dbus.types.Boolean(False), 37 'Suspended': dbus.types.Boolean(False), 73 @dbus.service.method(mm1_constants.I_BEARER) 100 'method': dbus.types.UInt32(mm1_constants.MM_BEARER_IP_METHOD_DHCP, 104 self.Set(mm1_constants.I_BEARER, 'Connected', dbus.types.Boolean(True)) 108 @dbus.service.method(mm1_constants.I_BEARER) 121 dbus.types.Boolean(False))
|
messaging.py | 5 import dbus namespace 6 import dbus.service namespace 16 class Messaging(dbus.service.Interface): 25 @dbus.service.method(mm1_constants.I_MODEM_MESSAGING, out_signature='ao') 40 @dbus.service.method(mm1_constants.I_MODEM_MESSAGING, in_signature='o') 54 @dbus.service.method(mm1_constants.I_MODEM_MESSAGING, 69 @dbus.service.signal(mm1_constants.I_MODEM_MESSAGING, signature='ob') 88 @dbus.service.signal(mm1_constants.I_MODEM_MESSAGING, signature='o') 103 @dbus.service.signal(mm1_constants.I_MODEM_MESSAGING, signature='o')
|
modemmanager.py | 5 import dbus namespace 6 import dbus.service namespace 24 @dbus.service.method(mm1_constants.I_MODEM_MANAGER) 36 @dbus.service.method(mm1_constants.I_MODEM_MANAGER, in_signature='s')
|
sms.py | 5 import dbus namespace 84 props['State'] = dbus.types.UInt32(mm1_constants.MM_SMS_STATE_UNKNOWN) 85 props['PduType'] = dbus.types.UInt32( 92 dbus.types.Struct( 93 [dbus.types.UInt32( 95 dbus.types.UInt32(0)], 97 props['Class'] = self._props_template.get('Class', dbus.types.Int32(-1)) 100 dbus.types.Boolean(False)) 103 dbus.types.UInt32(mm1_constants.MM_SMS_STORAGE_UNKNOWN)) 107 props['MessageReference'] = dbus.types.UInt32(0 [all...] |
testing.py | 5 import dbus namespace 6 import dbus.service namespace 31 @dbus.service.method(pm_constants.I_TESTING, out_signature='b') 49 @dbus.service.method(pm_constants.I_TESTING, in_signature='ss') 62 @dbus.service.method(pm_constants.I_TESTING, in_signature='s') 76 @dbus.service.method(pm_constants.I_TESTING, in_signature='uu')
|
/external/autotest/client/cros/ |
dark_resume_listener.py | 8 import dbus namespace 9 import dbus.mainloop.glib namespace 14 """Server which listens for dark resume-related DBus signals to count how 21 dbus.mainloop.glib.threads_init() 24 dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) 25 self._bus = dbus.SystemBus() 32 """Handles DBus events on the system bus using the mainloop."""
|
/external/autotest/client/cros/networking/ |
pm_proxy.py | 10 import dbus namespace 21 """A wrapper around a DBus proxy for PseudoModem Manager.""" 28 """@return org.chromium.Pseudomodem.Testing DBus interface.""" 29 return dbus.Interface( 42 @return dbus.Interface for the testing interface of 44 @raise mm1_proxy.ModemManager1ProxyError if a valid DBus object can't 55 i_machine = dbus.Interface(machine, pm_constants.I_TESTING_ISM) 56 # Only way to know if this DBus object is valid is to call a 61 except dbus.exceptions.DBusException as e: 67 'state machine %s. DBus error: %s' [all...] |
wifi_proxy.py | 5 import dbus namespace 14 """Wrapper around shill dbus interface used by wifi tests.""" 37 except dbus.exceptions.DBusException as e: 80 except dbus.exceptions.DBusException as e: 169 except dbus.exceptions.DBusException: 201 except dbus.exceptions.DBusException, e: 292 attributes = {'ScanInterval': (dbus.UInt16, long_interval), 293 'BgscanMethod': (dbus.String, method), 294 'BgscanShortInterval': (dbus.UInt16, short_interval), 295 'BgscanSignalThreshold': (dbus.Int32, signal) [all...] |
/external/autotest/client/cros/tendo/n_faced_peerd/ |
dbus_property_exposer.py | 5 import dbus namespace 6 import dbus.service namespace 14 class DBusPropertyExposer(dbus.service.Object): 15 """Exports the org.freedesktop.DBus.Properties interface.""" 28 a value for the property, in its proper DBus typing. 40 self.PropertiesChanged(dbus.String(self.interface_name), 42 dbus.Array([], 's')) 48 @return map of DBus strings to variants. 51 results = dbus.Dictionary(dict(), 'sv') 53 results[dbus.String(property_name)] = property_getter( [all...] |
object_manager.py | 4 import dbus namespace 5 import dbus.service namespace 9 class ObjectManager(dbus.service.Object): 10 """Exports the org.freedesktop.DBus.ObjectManager interface: 23 org.freedesktop.DBus.Properties.GetAll() method for that 37 OBJECT_MANAGER_INTERFACE = 'org.freedesktop.DBus.ObjectManager' 49 @param interface_name: string DBus interface name of exposed object. 52 Both property names and values must be DBus types. 60 interface2properties = dbus.Dictionary( 61 {dbus.String(interface_name): property_getter()}, 'sa{sv}' [all...] |
peer.py | 5 import dbus namespace 6 import dbus.service namespace 19 """Construct a org.chromium.peerd.Peer DBus object. 21 @param bus: dbus.Bus object to export this object on. 55 @return dbus.String containing our peer ID. 58 return dbus.String(self.uuid) 64 @return dbus.UInt64 containing the last time this peer was seen 68 return dbus.UInt64(int(1000 * self._last_seen_seconds)) 86 """Releases interfaces claimed over DBus."""
|
service.py | 6 import dbus.service namespace 19 """Construct a org.chromium.peerd.Service DBus object. 21 @param bus: dbus.Bus object to export this object on. 56 @return dbus.String containing this service's peer_id. 59 return dbus.String(self.peer_id) 65 @return dbus.String containing this service's service_id. 68 return dbus.String(self.service_id) 74 @return dbus.Dictionary containing this service's metadata. 77 return dbus.Dictionary(self.service_info, 'ss') 83 @return dbus.Array of dbus.Struct objects containing an array of byte [all...] |
/external/autotest/client/site_tests/buffet_BasicDBusAPI/ |
buffet_BasicDBusAPI.py | 5 import dbus namespace 32 """Check that basic buffet daemon DBus APIs are functional.""" 48 buffet.manager.UpdateDeviceInfo(dbus.String('A'), 49 dbus.String('B'), 50 dbus.String('C'))
|
/external/autotest/client/site_tests/cellular_DeferredRegistration/ |
cellular_DeferredRegistration.py | 5 import dbus namespace 41 dbus.types.UInt32(state))
|
/external/autotest/client/site_tests/login_SameSessionTwice/ |
login_SameSessionTwice.py | 5 import dbus namespace 6 from dbus.mainloop.glib import DBusGMainLoop 38 except dbus.DBusException as d: 39 # If I knew how to get our custom dbus errors mapped into real
|
/external/autotest/client/site_tests/network_3GStressEnable/ |
network_3GStressEnable.py | 5 import dbus namespace 33 except dbus.exceptions.DBusException, err:
|
/external/autotest/client/site_tests/network_CDMAActivate/files/ |
modems.py | 5 import dbus namespace 6 import dbus.types namespace 42 'ActivateCount' : dbus.types.UInt32(self.activate_count)
|
/external/autotest/client/site_tests/network_LTEActivate/files/ |
modems.py | 5 import dbus namespace 6 import dbus.types namespace 45 modem_props['AccessTechnologies'] = dbus.types.UInt32( 47 modem_props['ModemCapabilities'] = dbus.types.UInt32( 49 modem_props['CurrentCapabilities'] = dbus.types.UInt32( 61 'ResetCalled' : dbus.types.Boolean(reset_called) 69 I_ACTIVATION_TEST, 'ResetCalled', dbus.types.Boolean(True))
|
/external/autotest/client/site_tests/peerd_MonitorsDBusConnections/ |
peerd_MonitorsDBusConnections.py | 5 import dbus namespace 17 """Test that peerd removes services when processes disconnect from DBus.""" 30 # services is a map of object path to dicts of DBus interface to 49 self._bus = dbus.SystemBus() 53 self._manager = dbus.Interface( 58 dbus.Dictionary(signature='ss'), 59 dbus.Dictionary(signature='sv')) 60 # Python keeps the DBus connection sitting around unless we 66 self._bus = dbus.SystemBus()
|
/external/autotest/client/site_tests/platform_DebugDaemonDumpDebugLogs/ |
platform_DebugDaemonDumpDebugLogs.py | 5 import dbus namespace 36 bus = dbus.SystemBus() 38 self.iface = dbus.Interface(proxy,
|
/external/autotest/client/site_tests/security_EnableChromeTesting/ |
security_EnableChromeTesting.py | 5 import dbus, logging, os, pwd namespace 39 bus = dbus.SystemBus() 42 session_manager = dbus.Interface(proxy, 47 # Try DBus call and make sure it fails. 49 # DBus cannot infer the type of an empty Python list. 50 # Pass an empty dbus.Array with the correct signature, taken from 52 empty_string_array = dbus.Array(signature="as") 54 except dbus.exceptions.DBusException as dbe: 57 raise error.TestFail('DBus EnableChromeTesting call '
|
/external/dbus/test/name-test/ |
test-wait-for-echo.py | 7 import dbus namespace 8 import dbus.mainloop.glib namespace 13 dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) 26 bus = dbus.SessionBus() 34 o = bus.get_object('org.freedesktop.DBus.TestSuiteEchoService', '/org/freedesktop/TestSuite') 35 i = dbus.Interface(o, 'org.freedesktop.TestSuite')
|
/external/libchrome/dbus/ |
dbus_statistics.h | 10 #include "dbus/dbus_export.h" 12 // The functions defined here are used to gather DBus statistics, and 17 namespace dbus { namespace 34 // Initializes / shuts down dbus statistics gathering. Calling Initialize 77 } // namespace dbus
|