/external/guava/guava-tests/test/com/google/common/eventbus/ |
D | EventBusTest.java | 41 private EventBus bus; field in EventBusTest 45 bus = new EventBus(BUS_IDENTIFIER); in setUp() 50 bus.register(catcher); in testBasicCatcherDistribution() 51 bus.post(EVENT); in testBasicCatcherDistribution() 86 bus.register(stringCatcher); in testPolymorphicDistribution() 87 bus.register(objCatcher); in testPolymorphicDistribution() 88 bus.register(compCatcher); in testPolymorphicDistribution() 94 bus.post(EVENT); in testPolymorphicDistribution() 95 bus.post(OBJ_EVENT); in testPolymorphicDistribution() 96 bus.post(COMP_EVENT); in testPolymorphicDistribution() [all …]
|
D | ReentrantEventsTest.java | 36 final EventBus bus = new EventBus(); field in ReentrantEventsTest 40 bus.register(hater); in testNoReentrantEvents() 42 bus.post(FIRST); in testNoReentrantEvents() 57 bus.post(SECOND); in listenForStrings() 72 bus.register(processor); in testEventOrderingIsPredictable() 75 bus.register(recorder); in testEventOrderingIsPredictable() 77 bus.post(FIRST); in testEventOrderingIsPredictable() 85 bus.post(SECOND); in listenForStrings()
|
/external/syslinux/gpxe/src/drivers/nvs/ |
D | spi.c | 58 struct spi_bus *bus = device->bus; in spi_wait() local 65 if ( ( rc = bus->rw ( bus, device, SPI_RDSR, -1, NULL, in spi_wait() 87 struct spi_bus *bus = device->bus; in spi_read() local 93 if ( ( rc = bus->rw ( bus, device, command, address, in spi_read() 114 struct spi_bus *bus = device->bus; in spi_write() local 121 if ( ( rc = bus->rw ( bus, device, SPI_WREN, -1, in spi_write() 127 if ( ( rc = bus->rw ( bus, device, command, address, in spi_write()
|
D | threewire.c | 45 struct spi_bus *bus = device->bus; in threewire_read() local 48 assert ( bus->mode == SPI_MODE_THREEWIRE ); in threewire_read() 53 if ( ( rc = bus->rw ( bus, device, THREEWIRE_READ, address, in threewire_read() 75 struct spi_bus *bus = device->bus; in threewire_write() local 78 assert ( bus->mode == SPI_MODE_THREEWIRE ); in threewire_write() 84 if ( ( rc = bus->rw ( bus, device, THREEWIRE_EWEN, in threewire_write() 92 if ( ( rc = bus->rw ( bus, device, THREEWIRE_WRITE, address, in threewire_write()
|
/external/skia/include/private/ |
D | SkMessageBus.h | 53 static SkMessageBus<Message>* bus; \ 54 once([] { bus = new SkMessageBus<Message>(); }); \ 55 return bus; \ 63 SkMessageBus<Message>* bus = SkMessageBus<Message>::Get(); in Inbox() local 64 SkAutoMutexAcquire lock(bus->fInboxesMutex); in Inbox() 65 bus->fInboxes.push(this); in Inbox() 71 SkMessageBus<Message>* bus = SkMessageBus<Message>::Get(); in ~Inbox() local 72 SkAutoMutexAcquire lock(bus->fInboxesMutex); in ~Inbox() 74 for (int i = 0; i < bus->fInboxes.count(); i++) { in ~Inbox() 75 if (this == bus->fInboxes[i]) { in ~Inbox() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/examples/ |
D | wpas-dbus-new-signals.py | 32 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path) 48 net_obj = bus.get_object(WPAS_DBUS_SERVICE, bss) 128 global bus 129 bus = dbus.SystemBus() 130 wpas_obj = bus.get_object(WPAS_DBUS_SERVICE, WPAS_DBUS_OPATH) 137 bus.add_signal_receiver(interfaceAdded, 140 bus.add_signal_receiver(interfaceRemoved, 143 bus.add_signal_receiver(propertiesChanged, 149 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path) 154 bus.add_signal_receiver(scanDone, [all …]
|
D | wpas-dbus-new-wps.py | 38 global bus 39 bus = dbus.SystemBus() 40 wpas_obj = bus.get_object(WPAS_DBUS_SERVICE, WPAS_DBUS_OPATH) 47 bus.add_signal_receiver(scanDone, 50 bus.add_signal_receiver(bssAdded, 53 bus.add_signal_receiver(bssRemoved, 56 bus.add_signal_receiver(propertiesChanged, 59 bus.add_signal_receiver(wpsEvent, 62 bus.add_signal_receiver(credentials, 69 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
|
D | wpas-dbus-new.py | 31 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path) 41 net_obj = bus.get_object(WPAS_DBUS_SERVICE, bss) 98 global bus 99 bus = dbus.SystemBus() 100 wpas_obj = bus.get_object(WPAS_DBUS_SERVICE, WPAS_DBUS_OPATH) 107 bus.add_signal_receiver(scanDone, 110 bus.add_signal_receiver(bssAdded, 113 bus.add_signal_receiver(bssRemoved, 116 bus.add_signal_receiver(propertiesChanged, 138 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
|
/external/libusb-compat/libusb/ |
D | core.c | 175 struct usb_bus *bus; in find_busses() local 203 bus = busses; in find_busses() 206 if (bus_num == bus->location) { in find_busses() 210 } while ((bus = bus->next) != NULL); in find_busses() 216 bus = malloc(sizeof(*bus)); in find_busses() 217 if (!bus) in find_busses() 220 memset(bus, 0, sizeof(*bus)); in find_busses() 221 bus->location = bus_num; in find_busses() 222 sprintf(bus->dirname, "%03d", bus_num); in find_busses() 223 LIST_ADD(busses, bus); in find_busses() [all …]
|
/external/chromium-trace/catapult/devil/devil/utils/ |
D | reset_usb.py | 32 def reset_usb(bus, device): argument 34 usb_file_path = '/dev/bus/usb/%03d/%03d' % (bus, device) 44 bus = None 49 bus = int(device_info.get('bus')) 52 if bus and device: 53 reset_usb(bus, device) 57 % (bus, device, serial)) 69 bus = int(device_info.get('bus')) 72 reset_usb(bus, device) 77 bus, device, serial) [all …]
|
/external/libmojo/third_party/catapult/devil/devil/utils/ |
D | reset_usb.py | 24 def reset_usb(bus, device): argument 26 usb_file_path = '/dev/bus/usb/%03d/%03d' % (bus, device) 36 bus = None 41 bus = int(device_info.get('bus')) 44 if bus and device: 45 reset_usb(bus, device) 60 bus = int(device_info.get('bus')) 63 reset_usb(bus, device) 67 bus, device, serial) 70 bus, device) [all …]
|
/external/ltp/testcases/kernel/device-drivers/pci/tpci_kernel/ |
D | ltp_tpci.c | 87 struct pci_bus *bus; member 98 static int probe_pci_dev(unsigned int bus, unsigned int slot) in probe_pci_dev() argument 107 dev = pci_get_bus_and_slot(bus, slot); in probe_pci_dev() 112 pci_name(dev), bus, slot); in probe_pci_dev() 115 ltp_pci.bus = dev->bus; in probe_pci_dev() 116 prk_info("Bus number: %d", dev->bus->number); in probe_pci_dev() 186 int num = ltp_pci.bus->number; in test_find_bus() 191 temp = pci_find_bus(pci_domain_nr(ltp_pci.bus), num); in test_find_bus() 295 struct pci_bus *bus = ltp_pci.bus; in test_scan_bus() local 299 num = pci_rescan_bus(bus); in test_scan_bus() [all …]
|
/external/autotest/client/cros/networking/ |
D | mm1_proxy.py | 37 def get_proxy(cls, bus=None, timeout_seconds=10): argument 54 def _connect_to_mm1(bus): argument 60 return cls(bus=bus) 69 lambda: _connect_to_mm1(bus) is not None, 74 connection = _connect_to_mm1(bus) 83 def __init__(self, bus=None): argument 84 if bus is None: 86 bus = dbus.SystemBus() 87 self._bus = bus 173 def __init__(self, bus, path): argument [all …]
|
/external/syslinux/gpxe/src/drivers/bitbash/ |
D | spi_bit.c | 62 state ^= ( spibit->bus.mode & SPI_MODE_SSPOL ); in spi_bit_set_slave_select() 89 struct spi_bus *bus = &spibit->bus; in spi_bit_transfer() local 91 unsigned int sclk = ( ( bus->mode & SPI_MODE_CPOL ) ? 1 : 0 ); in spi_bit_transfer() 92 unsigned int cpha = ( ( bus->mode & SPI_MODE_CPHA ) ? 1 : 0 ); in spi_bit_transfer() 100 spibit, len, bus->mode ); in spi_bit_transfer() 156 static int spi_bit_rw ( struct spi_bus *bus, struct spi_device *device, in spi_bit_rw() argument 160 = container_of ( bus, struct spi_bit_basher, bus ); in spi_bit_rw() 167 ( bus->mode & SPI_MODE_CPOL ) ); in spi_bit_rw() 224 spibit->bus.rw = spi_bit_rw; in init_spi_bit_basher()
|
/external/autotest/client/site_tests/hardware_I2CProbe/ |
D | hardware_I2CProbe.py | 19 def i2c_detect(bus, addr): argument 20 full_cmd = 'i2cdetect -y %d 0x%x 0x%x' % (bus, addr, addr) 26 def i2c_probe(bus, addr): argument 27 response = i2c_detect(bus, addr) 34 def run_once(self, bus, addr): argument 35 if not i2c_probe(bus, addr): 37 (bus, addr))
|
/external/autotest/client/cros/cellular/pseudomodem/ |
D | dbus_std_ifaces.py | 56 def __init__(self, path, bus=None, config=None): argument 73 if bus: 74 dbus.service.Object.__init__(self, bus, path) 78 self.bus = bus 96 def SetBus(self, bus): argument 104 self.bus = bus 105 self.add_to_connection(bus, self.path) 121 self.add_to_connection(self.bus, path) 334 def __init__(self, bus, path): argument 335 dbus.service.Object.__init__(self, bus, path) [all …]
|
D | sms_handler.py | 33 def __init__(self, modem, bus=None): argument 36 self._bus = bus 40 def bus(self): member in SmsHandler 51 @bus.setter 52 def bus(self, bus): member in SmsHandler 59 self._bus = bus
|
/external/libusb-compat/examples/ |
D | lsusb.c | 26 struct usb_bus *bus; in main() local 33 for (bus = busses; bus; bus = bus->next) { in main() 35 for (dev = bus->devices; dev; dev = dev->next) { in main()
|
D | testlibusb.c | 131 struct usb_bus *bus; in main() local 141 for (bus = usb_busses; bus; bus = bus->next) { in main() 142 if (bus->root_dev && !verbose) in main() 143 print_device(bus->root_dev, 0); in main() 147 for (dev = bus->devices; dev; dev = dev->next) in main()
|
/external/selinux/restorecond/ |
D | user.c | 85 DBusConnection *bus; in dbus_server() local 88 bus = dbus_bus_get (DBUS_BUS_SESSION, &error); in dbus_server() 89 if (bus) { in dbus_server() 90 dbus_connection_setup_with_g_main (bus, NULL); in dbus_server() 93 dbus_bus_add_match (bus, RULE, &error); // see signals from the given interfacey in dbus_server() 94 dbus_connection_add_filter (bus, signal_filter, loop, NULL); in dbus_server() 170 DBusConnection *bus; in start() local 176 bus = dbus_bus_get (DBUS_BUS_SESSION, &error); in start() 177 if (!bus) { in start() 190 dbus_connection_send (bus, message, NULL); in start()
|
/external/syslinux/com32/include/sys/ |
D | pci.h | 72 struct pci_bus *bus[MAX_PCI_BUSES]; member 78 if ((domain)->bus[__pci_bus]) \ 80 if ((domain)->bus[__pci_bus]->slot[__pci_slot]) \ 82 if (((funcp) = (domain)->bus[__pci_bus]->slot[__pci_slot]-> \ 87 if ((domain)->bus[__pci_bus]) \ 89 if ((domain)->bus[__pci_bus]->slot[__pci_slot]) \ 92 ((funcp) = (domain)->bus[__pci_bus]->slot[__pci_slot]-> \ 105 static inline pciaddr_t pci_mkaddr(uint32_t bus, uint32_t dev, in pci_mkaddr() argument 108 return 0x80000000 | ((bus & 0xff) << 16) | ((dev & 0x1f) << 11) | in pci_mkaddr()
|
/external/syslinux/gpxe/src/drivers/bus/ |
D | pci.c | 152 "Updating PCI command %04x->%04x\n", pci->bus, in adjust_pci_device() 161 "low at %d. Setting to 32.\n", pci->bus, in adjust_pci_device() 184 "irq %d)\n", pci->bus, PCI_SLOT ( pci->devfn ), in pci_probe() 219 DBG ( "Removed PCI device %02x:%02x.%x\n", pci->bus, in pci_remove() 234 unsigned int bus; in pcibus_probe() local 241 for ( bus = 0 ; bus <= max_bus ; bus++ ) { in pcibus_probe() 252 pci->bus = bus; in pcibus_probe() 281 "PCI%02x:%02x.%x", bus, in pcibus_probe() 284 pci->dev.desc.location = PCI_BUSDEVFN (bus, devfn); in pcibus_probe()
|
/external/autotest/client/cros/cellular/ |
D | modem.py | 73 self.bus = manager.bus 78 obj = self.bus.get_object(self.service, self.path) 82 obj = self.bus.get_object(self.service, self.path) 86 obj = self.bus.get_object(self.service, self.path) 90 obj = self.bus.get_object(self.service, self.path) 94 obj = self.bus.get_object(self.service, self.path) 98 obj = self.bus.get_object(self.service, self.path) 102 obj = self.bus.get_object(self.service, self.path) 106 obj = self.bus.get_object(self.service, self.path) 110 obj = self.bus.get_object(self.service, self.path) [all …]
|
D | modem1.py | 47 self.bus = manager.bus 52 obj = self.bus.get_object(self.service, self.path) 56 obj = self.bus.get_object(self.service, self.path) 60 obj = self.bus.get_object(self.service, self.path) 64 obj = self.bus.get_object(self.service, self.path) 68 obj = self.bus.get_object(self.service, self.path) 72 obj = self.bus.get_object(self.service, self.path) 109 sim_obj = self.bus.get_object(self.service, props['Sim']) 246 self.bus = dbus.SystemBus() 250 self.bus.get_object(self.service, self.path), [all …]
|
/external/ltp/testcases/kernel/device-drivers/usb/tusb/ |
D | st_tusb.h | 23 extern void usb_free_bus(struct usb_bus *bus); 24 extern void usb_register_bus(struct usb_bus *bus); 25 extern void usb_deregister_bus(struct usb_bus *bus); 40 void *(*buffer_alloc)(struct usb_bus *bus, size_t size, 43 void (*buffer_free)(struct usb_bus *bus, size_t size, 100 struct usb_bus *bus; member
|