Searched refs:bus (Results 1 - 25 of 276) sorted by relevance

1234567891011>>

/external/libusb-compat/examples/
H A Dlsusb.c26 struct usb_bus *bus; local
33 for (bus = busses; bus; bus = bus->next) {
35 for (dev = bus->devices; dev; dev = dev->next) {
/external/chromium_org/dbus/
H A Dmock_exported_object.cc9 MockExportedObject::MockExportedObject(Bus* bus, argument
11 : ExportedObject(bus, object_path) {
H A Dbus_unittest.cc5 #include "dbus/bus.h"
78 scoped_refptr<Bus> bus = new Bus(options); local
81 bus->GetObjectProxy("org.chromium.TestService",
87 bus->GetObjectProxy("org.chromium.TestService",
94 bus->GetObjectProxy(
100 bus->ShutdownAndBlock();
105 scoped_refptr<Bus> bus = new Bus(options); local
108 bus->GetObjectProxyWithOptions(
116 bus->GetObjectProxyWithOptions(
125 bus
148 scoped_refptr<Bus> bus = new Bus(options); local
196 scoped_refptr<Bus> bus = new Bus(options); local
228 scoped_refptr<Bus> bus = new Bus(options); local
260 scoped_refptr<Bus> bus = new Bus(options); local
278 scoped_refptr<Bus> bus = new Bus(options); local
289 scoped_refptr<Bus> bus = new Bus(options); local
310 scoped_refptr<Bus> bus = new Bus(options); local
355 scoped_refptr<Bus> bus = new Bus(bus_options); local
[all...]
H A Dmock_object_manager.cc9 MockObjectManager::MockObjectManager(Bus* bus, argument
12 : ObjectManager(bus, service_name, object_path) {
H A Dmock_object_proxy.cc9 MockObjectProxy::MockObjectProxy(Bus* bus, argument
12 : ObjectProxy(bus, service_name, object_path, DEFAULT_OPTIONS) {
/external/chromium_org/third_party/WebKit/Source/platform/mediastream/
H A DMediaStreamWebAudioSource.cpp51 void MediaStreamWebAudioSource::provideInput(AudioBus* bus, size_t framesToProcess) argument
53 ASSERT(bus);
54 if (!bus)
58 bus->zero();
63 size_t n = bus->numberOfChannels();
66 webAudioData[i] = bus->channel(i)->mutableData();
H A DMediaStreamComponent.cpp69 void MediaStreamComponent::AudioSourceProviderImpl::provideInput(AudioBus* bus, size_t framesToProcess) argument
71 ASSERT(bus);
72 if (!bus)
77 bus->zero();
82 size_t n = bus->numberOfChannels();
85 webAudioData[i] = bus->channel(i)->mutableData();
/external/chromium_org/media/base/
H A Daudio_fifo_unittest.cc34 // Pushes audio bus objects to a FIFO and fill it up to different degrees.
41 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount / 2); local
43 fifo.Push(bus.get());
44 EXPECT_EQ(fifo.frames(), bus->frames());
49 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount); local
51 fifo.Push(bus.get());
52 EXPECT_EQ(fifo.frames(), bus->frames());
57 // Consumes audio bus objects from a FIFO and empty it to different degrees.
63 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount); local
64 fifo.Push(bus
69 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount / 2); local
77 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kMaxFrameCount); local
94 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, 1); local
135 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kFrameCount); local
[all...]
H A Daudio_bus_perftest.cc16 void RunInterleaveBench(AudioBus* bus, const std::string& trace_name) { argument
17 const int frame_size = bus->frames() * bus->channels();
23 bus->ToInterleaved(bus->frames(), byte_size, interleaved.get());
33 bus->FromInterleaved(interleaved.get(), bus->frames(), byte_size);
44 scoped_ptr<AudioBus> bus = AudioBus::Create(2, 48000 * 120); local
46 callback.Render(bus.get(), 0);
48 RunInterleaveBench<int8>(bus
[all...]
H A Daudio_bus_unittest.cc31 void VerifyParams(AudioBus* bus) { argument
32 EXPECT_EQ(kChannels, bus->channels());
33 EXPECT_EQ(kFrameCount, bus->frames());
68 void VerifyChannelData(AudioBus* bus) { argument
69 for (int i = 0; i < bus->channels(); ++i) {
71 bus->channel(i)) & (AudioBus::kChannelAlignment - 1));
72 std::fill(bus->channel(i), bus->channel(i) + bus->frames(), i);
75 for (int i = 0; i < bus
108 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kFrameCount); local
115 scoped_ptr<AudioBus> bus = AudioBus::Create(AudioParameters( local
130 scoped_ptr<AudioBus> bus = AudioBus::WrapVector(kFrameCount, data_); local
149 scoped_ptr<AudioBus> bus = AudioBus::WrapMemory(params, data.get()); local
203 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kFrameCount); local
264 scoped_ptr<AudioBus> bus = AudioBus::Create( local
304 scoped_ptr<AudioBus> bus = AudioBus::Create( local
324 scoped_ptr<AudioBus> bus = AudioBus::Create( local
386 scoped_ptr<AudioBus> bus = AudioBus::Create(kChannels, kFrameCount); local
[all...]
H A Daudio_buffer_unittest.cc14 static void VerifyBusWithOffset(AudioBus* bus, argument
20 for (int ch = 0; ch < bus->channels(); ++ch) {
21 const float v = start_offset + start + ch * bus->frames() * increment;
23 ASSERT_FLOAT_EQ(v + i * increment, bus->channel(ch)[i]) << "i=" << i
29 static void VerifyBus(AudioBus* bus, int frames, float start, float increment) { argument
30 VerifyBusWithOffset(bus, 0, frames, start, 0, increment);
51 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, frames); local
54 buffer->ReadFrames(frames, 0, 0, bus.get());
55 VerifyBus(bus.get(), frames, 0, 1);
65 bus
228 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, frames); local
252 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, frames); local
276 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, frames); local
299 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, frames); local
323 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, frames); local
361 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); local
384 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, frames); local
411 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, frames); local
[all...]
H A Daudio_buffer_queue_unittest.cc20 static void VerifyBus(AudioBus* bus, argument
26 for (int ch = 0; ch < bus->channels(); ++ch) {
29 ASSERT_FLOAT_EQ(v + (i - offset) * increment, bus->channel(ch)[i])
89 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); local
97 EXPECT_EQ(4, buffer.ReadFrames(4, 0, bus.get()));
99 VerifyBus(bus.get(), 0, 4, bus->frames(), 10, 1);
109 EXPECT_EQ(4, buffer.ReadFrames(4, 0, bus.get()));
111 VerifyBus(bus.get(), 0, 4, bus
166 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); local
197 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, frames); local
217 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, buffer.frames()); local
237 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); local
262 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); local
282 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); local
304 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, 100); local
[all...]
/external/chromium_org/components/copresence/test/
H A Daudio_test_support.cc22 scoped_ptr<media::AudioBus> bus = media::AudioBus::Create(channels, samples); local
24 PopulateSamples(random_seed, samples, bus->channel(ch));
25 return bus.Pass();
30 scoped_refptr<media::AudioBusRefCounted> bus = local
33 PopulateSamples(random_seed, samples, bus->channel(ch));
34 return bus;
/external/guava/guava-tests/test/com/google/common/eventbus/
H A DReentrantEventsTest.java34 final EventBus bus = new EventBus(); field in class:ReentrantEventsTest
38 bus.register(hater);
40 bus.post(FIRST);
55 bus.post(SECOND);
70 bus.register(processor);
73 bus.register(recorder);
75 bus.post(FIRST);
83 bus.post(SECOND);
H A DEventBusTest.java32 private static final String BUS_IDENTIFIER = "test-bus";
34 private EventBus bus; field in class:EventBusTest
38 bus = new EventBus(BUS_IDENTIFIER);
43 bus.register(catcher);
45 Set<EventHandler> wrappers = bus.getHandlersForEventType(String.class);
49 bus.post(EVENT);
84 bus.register(stringCatcher);
85 bus.register(objCatcher);
86 bus.register(compCatcher);
92 bus
[all...]
/external/chromium_org/third_party/skia/src/core/
H A DSkMessageBus.h52 SK_DECLARE_STATIC_LAZY_PTR(SkMessageBus<Message>, bus, New); \
53 return bus.get(); \
60 // Register ourselves with the corresponding message bus.
61 SkMessageBus<Message>* bus = SkMessageBus<Message>::Get(); local
62 SkAutoMutexAcquire lock(bus->fInboxesMutex);
63 bus->fInboxes.push(this);
68 // Remove ourselves from the corresponding message bus.
69 SkMessageBus<Message>* bus = SkMessageBus<Message>::Get(); local
70 SkAutoMutexAcquire lock(bus->fInboxesMutex);
72 for (int i = 0; i < bus
106 SkMessageBus<Message>* bus = SkMessageBus<Message>::Get(); local
[all...]
/external/skia/src/core/
H A DSkMessageBus.h52 SK_DECLARE_STATIC_LAZY_PTR(SkMessageBus<Message>, bus, New); \
53 return bus.get(); \
60 // Register ourselves with the corresponding message bus.
61 SkMessageBus<Message>* bus = SkMessageBus<Message>::Get(); local
62 SkAutoMutexAcquire lock(bus->fInboxesMutex);
63 bus->fInboxes.push(this);
68 // Remove ourselves from the corresponding message bus.
69 SkMessageBus<Message>* bus = SkMessageBus<Message>::Get(); local
70 SkAutoMutexAcquire lock(bus->fInboxesMutex);
72 for (int i = 0; i < bus
106 SkMessageBus<Message>* bus = SkMessageBus<Message>::Get(); local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/examples/
H A Dwpas-dbus-new-wps.py38 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
[all...]
H A Ddbus-listen-preq.py32 global bus
39 bus = dbus.SystemBus()
40 wpas_obj = bus.get_object(WPAS_DBUS_SERVICE, WPAS_DBUS_OPATH)
53 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
56 bus.add_signal_receiver(ProbeRequest,
H A Dwpas-dbus-new-getall.py9 bus = dbus.SystemBus()
10 wpas_obj = bus.get_object("fi.w1.wpa_supplicant1",
24 if_obj = bus.get_object("fi.w1.wpa_supplicant1", path)
40 bss_obj = bus.get_object("fi.w1.wpa_supplicant1", res[0])
50 net_obj = bus.get_object("fi.w1.wpa_supplicant1", res[0])
H A Dwpas-dbus-new-signals.py32 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
[all...]
/external/qemu/include/hw/
H A Daudiodev.h2 int es1370_init(PCIBus *bus);
/external/qemu/hw/pci/
H A Dpci.c2 * QEMU PCI bus manager
46 /* The bus IRQ state is the logical OR of the connected devices.
62 PCIBus *bus = (PCIBus *)opaque; local
65 qemu_put_be32(f, bus->nirq);
66 for (i = 0; i < bus->nirq; i++)
67 qemu_put_be32(f, bus->irq_count[i]);
72 PCIBus *bus = (PCIBus *)opaque; local
79 if (bus->nirq != nirq) {
81 nirq, bus->nirq);
86 bus
95 PCIBus *bus; local
114 PCIBus *bus; local
174 unsigned long dom = 0, bus = 0; local
243 do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn, PCIConfigReadFunc *config_read, PCIConfigWriteFunc *config_write) argument
273 pci_register_device(PCIBus *bus, const char *name, int instance_size, int devfn, PCIConfigReadFunc *config_read, PCIConfigWriteFunc *config_write) argument
649 PCIBus *bus; local
774 PCIBus *bus = first_bus; local
819 pci_nic_init(PCIBus *bus, NICInfo *nd, int devfn, const char *default_model) argument
843 PCIBus *bus; member in struct:PCIBridge
865 PCIBus *bus = first_bus; local
875 PCIBus *bus = pci_find_bus(bus_num); local
883 pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did, pci_map_irq_fn map_irq, const char *name) argument
918 PCIBus *bus; local
943 pci_create_simple(PCIBus *bus, int devfn, const char *name) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
H A DAudioBuffer.cpp113 RefPtr<AudioBus> bus = createBusFromInMemoryAudioFile(data, dataSize, mixToMono, sampleRate); local
114 if (bus.get()) {
115 AudioBuffer* buffer = new AudioBuffer(bus.get());
116 if (buffer->createdSuccessfully(bus->numberOfChannels()))
123 AudioBuffer* AudioBuffer::createFromAudioBus(AudioBus* bus) argument
125 if (!bus)
127 AudioBuffer* buffer = new AudioBuffer(bus);
128 if (buffer->createdSuccessfully(bus->numberOfChannels()))
157 AudioBuffer::AudioBuffer(AudioBus* bus) argument
158 : m_sampleRate(bus
[all...]
/external/qemu/hw/core/
H A Dqdev.c26 inherit from a particular bus (e.g. PCI or I2C) rather than
50 /* This is a nasty hack to allow passing a NULL bus to qdev_create. */
71 DeviceState *qdev_create(BusState *bus, const char *name) argument
88 if (!bus) {
92 NULL, "main-system-bus");
94 bus = main_system_bus;
96 if (t->info->bus_type != bus->type) {
97 /* TODO: Print bus type names. */
98 hw_error("Device '%s' on wrong bus type (%d/%d)", name,
99 t->info->bus_type, bus
408 BusState *bus; local
424 int bus = next_scsi_bus++; local
440 BusState *bus; local
506 qbus_print(Monitor *mon, BusState *bus, int indent) argument
[all...]

Completed in 511 milliseconds

1234567891011>>