/external/libbrillo/brillo/dbus/ |
D | data_serialization.cc | 14 void AppendValueToWriter(dbus::MessageWriter* writer, bool value) { in AppendValueToWriter() 18 void AppendValueToWriter(dbus::MessageWriter* writer, uint8_t value) { in AppendValueToWriter() 22 void AppendValueToWriter(dbus::MessageWriter* writer, int16_t value) { in AppendValueToWriter() 26 void AppendValueToWriter(dbus::MessageWriter* writer, uint16_t value) { in AppendValueToWriter() 30 void AppendValueToWriter(dbus::MessageWriter* writer, int32_t value) { in AppendValueToWriter() 34 void AppendValueToWriter(dbus::MessageWriter* writer, uint32_t value) { in AppendValueToWriter() 38 void AppendValueToWriter(dbus::MessageWriter* writer, int64_t value) { in AppendValueToWriter() 42 void AppendValueToWriter(dbus::MessageWriter* writer, uint64_t value) { in AppendValueToWriter() 46 void AppendValueToWriter(dbus::MessageWriter* writer, double value) { in AppendValueToWriter() 50 void AppendValueToWriter(dbus::MessageWriter* writer, in AppendValueToWriter() [all …]
|
D | data_serialization.h | 128 void AppendValueToWriter(dbus::MessageWriter* writer, char value) = delete; 129 void AppendValueToWriter(dbus::MessageWriter* writer, float value) = delete; 136 void PopValueFromReader(dbus::MessageReader* reader, char* value) = delete; 137 void PopValueFromReader(dbus::MessageReader* reader, float* value) = delete; 156 inline bool DescendIntoVariantIfPresent(dbus::MessageReader** reader_ref, 157 dbus::MessageReader* variant_reader) { 158 if ((*reader_ref)->GetDataType() != dbus::Message::VARIANT) 190 BRILLO_EXPORT void AppendValueToWriter(dbus::MessageWriter* writer, 192 BRILLO_EXPORT bool PopValueFromReader(dbus::MessageReader* reader, 200 inline static void Write(dbus::MessageWriter* writer, bool value) { [all …]
|
D | exported_property_set_unittest.cc | 55 const dbus::ObjectPath kMethodsExportedOnPath(std::string("/export")); 56 const dbus::ObjectPath kTestObjectPathInit(std::string("/path_init")); 57 const dbus::ObjectPath kTestObjectPathUpdate(std::string("/path_update")); 75 ExportedProperty<dbus::ObjectPath> path_prop_; 77 ExportedProperty<std::vector<dbus::ObjectPath>> pathlist_prop_; 80 Properties(scoped_refptr<dbus::Bus> bus, const dbus::ObjectPath& path) in Properties() 112 dbus::Bus::Options options; in SetUp() 113 options.bus_type = dbus::Bus::SYSTEM; in SetUp() 114 bus_ = new dbus::MockBus(options); in SetUp() 120 new dbus::MockExportedObject(bus_.get(), kMethodsExportedOnPath); in SetUp() [all …]
|
D | dbus_object_unittest.cc | 82 dbus::Message* message, in TestWithMessage() 90 dbus::Message* message) { in TestWithMessageAsync() 103 dbus::Bus::Options options; in SetUp() 104 options.bus_type = dbus::Bus::SYSTEM; in SetUp() 105 bus_ = new dbus::MockBus(options); in SetUp() 110 const dbus::ObjectPath kMethodsExportedOnPath{ in SetUp() 113 new dbus::MockExportedObject(bus_.get(), kMethodsExportedOnPath); in SetUp() 149 void ExpectError(dbus::Response* response, const std::string& expected_code) { in ExpectError() 150 EXPECT_EQ(dbus::Message::MESSAGE_ERROR, response->GetMessageType()); in ExpectError() 154 scoped_refptr<dbus::MockBus> bus_; [all …]
|
D | exported_object_manager_unittest.cc | 28 const dbus::ObjectPath kTestPath(std::string("/test/om_path")); 29 const dbus::ObjectPath kClaimedTestPath(std::string("/test/claimed_path")); 38 void ReadTestPropertyDict(dbus::MessageReader* reader) { in ReadTestPropertyDict() 39 dbus::MessageReader all_properties(nullptr); in ReadTestPropertyDict() 40 dbus::MessageReader each_property(nullptr); in ReadTestPropertyDict() 53 void VerifyInterfaceClaimSignal(dbus::Signal* signal) { in VerifyInterfaceClaimSignal() 54 EXPECT_EQ(signal->GetInterface(), std::string(dbus::kObjectManagerInterface)); in VerifyInterfaceClaimSignal() 56 std::string(dbus::kObjectManagerInterfacesAdded)); in VerifyInterfaceClaimSignal() 60 dbus::MessageReader reader(signal); in VerifyInterfaceClaimSignal() 61 dbus::MessageReader all_interfaces(nullptr); in VerifyInterfaceClaimSignal() [all …]
|
D | dbus_method_invoker.h | 95 inline std::unique_ptr<dbus::Response> CallMethodAndBlockWithTimeout( in CallMethodAndBlockWithTimeout() 97 dbus::ObjectProxy* object, in CallMethodAndBlockWithTimeout() 102 dbus::MethodCall method_call(interface_name, method_name); in CallMethodAndBlockWithTimeout() 104 dbus::MessageWriter writer(&method_call); in CallMethodAndBlockWithTimeout() 106 dbus::ScopedDBusError dbus_error; in CallMethodAndBlockWithTimeout() 113 errors::dbus::kDomain, in CallMethodAndBlockWithTimeout() 119 errors::dbus::kDomain, in CallMethodAndBlockWithTimeout() 131 inline std::unique_ptr<dbus::Response> CallMethodAndBlock( in CallMethodAndBlock() 132 dbus::ObjectProxy* object, in CallMethodAndBlock() 137 return CallMethodAndBlockWithTimeout(dbus::ObjectProxy::TIMEOUT_USE_DEFAULT, in CallMethodAndBlock() [all …]
|
D | dbus_method_invoker_unittest.cc | 25 using dbus::MessageReader; 26 using dbus::MessageWriter; 27 using dbus::Response; 74 dbus::Bus::Options options; in SetUp() 75 options.bus_type = dbus::Bus::SYSTEM; in SetUp() 76 bus_ = new dbus::MockBus(options); in SetUp() 81 mock_object_proxy_ = new dbus::MockObjectProxy( in SetUp() 82 bus_.get(), kTestServiceName, dbus::ObjectPath(kTestPath)); in SetUp() 84 GetObjectProxy(kTestServiceName, dbus::ObjectPath(kTestPath))) in SetUp() 86 int def_timeout_ms = dbus::ObjectProxy::TIMEOUT_USE_DEFAULT; in SetUp() [all …]
|
D | dbus_object_internal_impl.h | 55 virtual void HandleMethod(dbus::MethodCall* method_call, 79 void HandleMethod(dbus::MethodCall* method_call, in HandleMethod() 87 dbus::MessageReader reader(method_call); in HandleMethod() 113 void HandleMethod(dbus::MethodCall* method_call, in HandleMethod() 119 dbus::MessageWriter writer(response.get()); in HandleMethod() 125 dbus::MessageReader reader(method_call); in HandleMethod() 159 void HandleMethod(dbus::MethodCall* method_call, in HandleMethod() 168 dbus::MessageWriter writer(response.get()); in HandleMethod() 175 dbus::MessageReader reader(method_call); in HandleMethod() 207 const base::Callback<bool(ErrorPtr*, dbus::Message*, Args...)>& handler) in SimpleDBusInterfaceMethodHandlerWithErrorAndMessage() [all …]
|
/external/autotest/client/cros/networking/ |
D | shill_proxy.py | 6 import dbus 7 import dbus.mainloop.glib 66 MANAGER_PROPERTY_DHCPPROPERTY_HOSTNAME: dbus.String, 67 MANAGER_PROPERTY_DHCPPROPERTY_VENDORCLASS: dbus.String, 68 MANAGER_PROPERTY_WIFI_GLOBAL_FT_ENABLED: dbus.Boolean 146 SERVICE_PROPERTY_AUTOCONNECT: dbus.Boolean, 147 SERVICE_PROPERTY_DEVICE: dbus.ObjectPath, 148 SERVICE_PROPERTY_GUID: dbus.String, 149 SERVICE_PROPERTY_HEX_SSID: dbus.String, 150 SERVICE_PROPERTY_HIDDEN: dbus.Boolean, [all …]
|
D | apmanager_proxy.py | 5 import dbus 6 import dbus.mainloop.glib 39 apmanager_constants.CONFIG_BRIDGE_INTERFACE: dbus.String, 40 apmanager_constants.CONFIG_CHANNEL: dbus.UInt16, 41 apmanager_constants.CONFIG_HIDDEN_NETWORK: dbus.Boolean, 42 apmanager_constants.CONFIG_HW_MODE: dbus.String, 43 apmanager_constants.CONFIG_INTERFACE_NAME: dbus.String, 44 apmanager_constants.CONFIG_OPERATION_MODE: dbus.String, 45 apmanager_constants.CONFIG_PASSPHRASE: dbus.String, 46 apmanager_constants.CONFIG_SECURITY_MODE: dbus.String, [all …]
|
D | mm1_proxy.py | 10 import dbus 11 import dbus.mainloop.glib 18 return (isinstance(e, dbus.exceptions.DBusException) and 61 except dbus.exceptions.DBusException as e: 85 dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) 86 bus = dbus.SystemBus() 88 self._manager = dbus.Interface( 119 object_manager = dbus.Interface( 124 except dbus.exceptions.DBusException as e: 141 except dbus.exceptions.DBusException as e: [all …]
|
/external/selinux/dbus/ |
D | selinux_server.py | 3 import dbus 4 import dbus.service 5 import dbus.mainloop.glib 7 import slip.dbus.service 8 from slip.dbus import polkit 14 class selinux_server(slip.dbus.service.Object): 24 @slip.dbus.polkit.require_auth("org.selinux.semanage") 25 @dbus.service.method("org.selinux", in_signature='s') 31 raise dbus.exceptions.DBusException(output[1]) 38 @slip.dbus.polkit.require_auth("org.selinux.customized") [all …]
|
/external/autotest/client/cros/bluetooth/ |
D | advertisement.py | 12 import dbus 13 import dbus.mainloop.glib 14 import dbus.service 23 class Advertisement(dbus.service.Object): 63 self.manufacturer_data = dbus.Dictionary({}, signature='qv') 66 self.manufacturer_data[int(key, 16)] = dbus.Array(value, 69 self.service_data = dbus.Dictionary({}, signature='sv') 72 self.service_data[uuid] = dbus.Array(data, signature='y') 83 return dbus.ObjectPath(self.path) 86 @dbus.service.method(DBUS_PROP_IFACE, in_signature='s', [all …]
|
/external/autotest/client/cros/cellular/pseudomodem/ |
D | modem_cdma.py | 5 import dbus 6 import dbus.types 84 'Sid' : dbus.types.UInt32(0), 85 'Nid' : dbus.types.UInt32(0), 87 dbus.types.UInt32( 90 dbus.types.UInt32( 92 'ActivationState' : dbus.types.UInt32(activation_state) 96 dbus.types.UInt32(mm1_constants.MM_MODEM_CAPABILITY_CDMA_EVDO) 99 dbus.types.UInt32(mm1_constants.MM_MODEM_CAPABILITY_CDMA_EVDO)) 100 props['MaxBearers'] = dbus.types.UInt32(1) [all …]
|
D | modem.py | 5 import dbus 6 import dbus.service 7 import dbus.types 109 'Ports': [dbus.types.Struct( 111 dbus.types.UInt32(self.device_port_type)], 113 dbus.types.Struct( 115 dbus.types.UInt32( 121 dbus.types.UInt32(mm1_constants.MM_MODEM_LOCK_NONE), 122 'UnlockRetries' : dbus.Dictionary(signature='uu'), 123 'State' : dbus.types.Int32(mm1_constants.MM_MODEM_STATE_DISABLED), [all …]
|
D | modem_3gpp.py | 5 import dbus 6 import dbus.types 54 'status': dbus.types.UInt32(self.status), 58 'access-technology': dbus.types.UInt32(self.access_technology), 91 dbus.types.UInt32(mm1_constants.MM_MODEM_CAPABILITY_GSM_UMTS), 92 dbus.types.UInt32(mm1_constants.MM_MODEM_CAPABILITY_LTE), 93 dbus.types.UInt32( 97 props['CurrentCapabilities'] = dbus.types.UInt32( 100 props['MaxBearers'] = dbus.types.UInt32(3) 101 props['MaxActiveBearers'] = dbus.types.UInt32(2) [all …]
|
D | sms.py | 5 import dbus 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 …]
|
/external/autotest/client/cros/tendo/n_faced_peerd/ |
D | object_manager.py | 4 import dbus 5 import dbus.service 9 class ObjectManager(dbus.service.Object): 60 interface2properties = dbus.Dictionary( 61 {dbus.String(interface_name): property_getter()}, 'sa{sv}') 62 self.InterfacesAdded(dbus.ObjectPath(path), interface2properties) 81 self.InterfacesRemoved(dbus.ObjectPath(path), 82 dbus.Array([dbus.String(interface_name)])) 85 @dbus.service.method(dbus_interface=OBJECT_MANAGER_INTERFACE, 94 result = dbus.Dictionary(dict(), 'oa{sa{sv}}') [all …]
|
D | dbus_property_exposer.py | 5 import dbus 6 import dbus.service 14 class DBusPropertyExposer(dbus.service.Object): 40 self.PropertiesChanged(dbus.String(self.interface_name), 42 dbus.Array([], 's')) 51 results = dbus.Dictionary(dict(), 'sv') 53 results[dbus.String(property_name)] = property_getter() 57 @dbus.service.method(dbus_interface=dbus.PROPERTIES_IFACE, 76 @dbus.service.method(dbus_interface=dbus.PROPERTIES_IFACE, 85 results = dbus.Dictionary(dict(), 'sv') [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/examples/ |
D | wpas-dbus-new.py | 3 import dbus 7 from dbus.mainloop.glib import DBusGMainLoop 29 dbus_interface=dbus.PROPERTIES_IFACE) 33 dbus_interface=dbus.PROPERTIES_IFACE) 42 net = dbus.Interface(net_obj, WPAS_DBUS_BSS_INTERFACE) 46 dbus_interface=dbus.PROPERTIES_IFACE) 52 dbus_interface=dbus.PROPERTIES_IFACE) 56 dbus_interface=dbus.PROPERTIES_IFACE) 61 dbus_interface=dbus.PROPERTIES_IFACE) 66 dbus_interface=dbus.PROPERTIES_IFACE) [all …]
|
D | wpas-dbus-new-getall.py | 3 import dbus 9 bus = dbus.SystemBus() 13 dbus_interface=dbus.PROPERTIES_IFACE) 22 wpas = dbus.Interface(wpas_obj, "fi.w1.wpa_supplicant1") 26 dbus_interface=dbus.PROPERTIES_IFACE) 32 dbus_interface=dbus.PROPERTIES_IFACE) 38 dbus_interface=dbus.PROPERTIES_IFACE) 42 dbus_interface=dbus.PROPERTIES_IFACE) 48 dbus_interface=dbus.PROPERTIES_IFACE) 52 dbus_interface=dbus.PROPERTIES_IFACE)
|
/external/autotest/client/site_tests/network_ShillInitScripts/ |
D | mock_flimflam.py | 2 import dbus 3 import dbus.service 4 import dbus.mainloop.glib 18 class FlimflamManager(dbus.service.Object): 22 dbus.service.Object.__init__(self, bus, object_path) 26 @dbus.service.method('org.chromium.flimflam.Manager', 38 @dbus.service.method('org.chromium.flimflam.Manager', 49 @dbus.service.method('org.chromium.flimflam.Manager', 61 @dbus.service.method('org.chromium.flimflam.Manager', 74 @dbus.service.method('org.chromium.flimflam.Manager', [all …]
|
/external/libbrillo/brillo/http/ |
D | http_proxy.cc | 23 bool ParseProxyInfo(dbus::Response* response, in ParseProxyInfo() 33 dbus::MessageReader reader(response); in ParseProxyInfo() 92 dbus::Response* response) { in OnResolveProxy() 102 bool GetChromeProxyServers(scoped_refptr<dbus::Bus> bus, const std::string& url, in GetChromeProxyServers() 104 dbus::ObjectProxy* proxy = in GetChromeProxyServers() 106 dbus::ObjectPath(chromeos::kNetworkProxyServicePath)); in GetChromeProxyServers() 107 dbus::MethodCall method_call( in GetChromeProxyServers() 110 dbus::MessageWriter writer(&method_call); in GetChromeProxyServers() 112 std::unique_ptr<dbus::Response> response = proxy->CallMethodAndBlock( in GetChromeProxyServers() 113 &method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT); in GetChromeProxyServers() [all …]
|
D | http_proxy_unittest.cc | 31 void ResolveProxyHandlerAsync(dbus::MethodCall* method_call, in ResolveProxyHandlerAsync() 33 dbus::ObjectProxy::ResponseCallback callback) { in ResolveProxyHandlerAsync() 41 dbus::Response* ResolveProxyHandler(dbus::MethodCall* method_call, in ResolveProxyHandler() 55 dbus::Bus::Options options; in HttpProxyTest() 56 options.bus_type = dbus::Bus::SYSTEM; in HttpProxyTest() 57 bus_ = new dbus::MockBus(options); in HttpProxyTest() 58 object_proxy_ = new dbus::MockObjectProxy( in HttpProxyTest() 60 dbus::ObjectPath(chromeos::kNetworkProxyServicePath)); in HttpProxyTest() 62 dbus::ObjectPath( in HttpProxyTest() 67 std::unique_ptr<dbus::Response> CreateDBusResponse( in CreateDBusResponse() [all …]
|
/external/autotest/client/common_lib/cros/ |
D | dbus_send.py | 6 import dbus 139 dbus.Int16: 'int16:', 140 dbus.Int32: 'int32:', 141 dbus.Int64: 'int64:', 142 dbus.UInt16: 'uint16:', 143 dbus.UInt32: 'uint32:', 144 dbus.UInt64: 'uint64:', 145 dbus.Double: 'double:', 146 dbus.Byte: 'byte:', 149 if isinstance(raw_arg, dbus.String): [all …]
|