Home
last modified time | relevance | path

Searched refs:device_ (Results 1 – 25 of 44) sorted by relevance

12

/system/connectivity/shill/wimax/
Dwimax_unittest.cc59 device_(new WiMax(&control_, &dispatcher_, &metrics_, &manager_, in WiMaxTest()
74 device_->set_dhcp_provider(&dhcp_provider_); in SetUp()
78 device_->SelectService(nullptr); in TearDown()
79 device_->pending_service_ = nullptr; in TearDown()
89 WiMaxRefPtr device_; member in shill::WiMaxTest
93 EXPECT_EQ(kTestPath, device_->path()); in TEST_F()
94 EXPECT_FALSE(device_->scanning()); in TEST_F()
98 EXPECT_FALSE(device_->proxy_.get()); in TEST_F()
105 device_->Start(nullptr, EnabledStateChangedCallback()); in TEST_F()
106 ASSERT_TRUE(device_->proxy_.get()); in TEST_F()
[all …]
Dwimax_service_unittest.cc70 device_(new MockWiMax(&control_, nullptr, &metrics_, &manager_, in WiMaxServiceTest()
85 service_->device_ = nullptr; in TearDown()
109 scoped_refptr<MockWiMax> device_; member in shill::WiMaxServiceTest
124 service_->device_ = device_; in TEST_F()
165 service_->device_ = device_; in TEST_F()
166 EXPECT_CALL(*device_, OnServiceStopped(_)); in TEST_F()
264 EXPECT_CALL(provider, SelectCarrier(_)).WillOnce(Return(device_)); in TEST_F()
265 EXPECT_CALL(*device_, ConnectTo(_, _)); in TEST_F()
277 EXPECT_CALL(*device_, DisconnectFrom(_, _)); in TEST_F()
310 service_->device_ = device_; in TEST_F()
[all …]
Dwimax_service.cc99 if (device_) { in Stop()
100 device_->OnServiceStopped(this); in Stop()
153 if (device_) { in Connect()
185 if (!device_) { in Disconnect()
191 device_->DisconnectFrom(this, error); in Disconnect()
200 if (!device_) { in GetDeviceRpcId()
204 return device_->GetRpcIdentifier(); in GetDeviceRpcId()
250 if (device_ == new_device) in SetDevice()
259 device_ = new_device; in SetDevice()
/system/connectivity/shill/cellular/
Dcellular_unittest.cc95 device_(new Cellular(&modem_info_, in CellularPropertyTest()
106 DeviceRefPtr device_; member in shill::CellularPropertyTest
110 EXPECT_TRUE(device_->store().Contains(kNameProperty)); in TEST_F()
111 EXPECT_FALSE(device_->store().Contains("")); in TEST_F()
118 EXPECT_TRUE(device_->mutable_store()->SetAnyProperty( in TEST_F()
124 EXPECT_FALSE(device_->mutable_store()->SetAnyProperty( in TEST_F()
131 EXPECT_FALSE(device_->mutable_store()->SetAnyProperty( in TEST_F()
156 device_(new Cellular(&modem_info_, in CellularTest()
164 modem_info_.metrics()->RegisterDevice(device_->interface_index(), in CellularTest()
169 static_cast<Device*>(device_.get())->rtnl_handler_ = &rtnl_handler_; in SetUp()
[all …]
Dmodem.cc67 if (device_) { in ~Modem()
68 device_->DestroyService(); in ~Modem()
69 modem_info_->manager()->device_info()->DeregisterDevice(device_); in ~Modem()
111 if (device_.get()) { in CreateDeviceFromModemProperties()
154 device_ = ConstructCellular(link_name_, mac_address, interface_index); in CreateDeviceFromModemProperties()
158 device_->OnPropertiesChanged( in CreateDeviceFromModemProperties()
162 modem_info_->manager()->device_info()->RegisterDevice(device_); in CreateDeviceFromModemProperties()
189 if (device_.get()) { in OnPropertiesChanged()
190 device_->OnPropertiesChanged(interface, in OnPropertiesChanged()
Dmodem_unittest.cc132 EXPECT_FALSE(modem_->device_.get()); in TEST_F()
163 EXPECT_TRUE(modem_->device_.get()); in TEST_F()
174 EXPECT_FALSE(modem_->device_.get()); in TEST_F()
186 EXPECT_FALSE(modem_->device_.get()); in TEST_F()
197 EXPECT_FALSE(modem_->device_.get()); in TEST_F()
211 EXPECT_FALSE(modem_->device_.get()); in TEST_F()
245 EXPECT_TRUE(modem_->device_.get()); in TEST_F()
/system/connectivity/apmanager/
Ddevice_unittest.cc66 device_ = new Device(&manager_, kDeviceName, 0); in DeviceTest()
71 EXPECT_EQ(interface_list.size(), device_->interface_list_.size()); in VerifyInterfaceList()
73 EXPECT_TRUE(interface_list[i].Equals(device_->interface_list_[i])); in VerifyInterfaceList()
78 EXPECT_EQ(interface_name, device_->GetPreferredApInterface()); in VerifyPreferredApInterface()
119 device_->supports_ap_mode_ = true; in EnableApModeSupport()
123 EXPECT_EQ(supports_ap_mode, device_->supports_ap_mode_); in VerifyApModeSupport()
127 EXPECT_EQ(frequency_list, device_->band_capability_[band_id].frequencies); in VerifyFrequencyList()
133 scoped_refptr<Device> device_; member in apmanager::DeviceTest
142 device_->RegisterInterface(kApModeInterface0); in TEST_F()
143 device_->RegisterInterface(kManagedModeInterface0); in TEST_F()
[all …]
Dconfig.cc271 if (!device_) { in ClaimDevice()
275 return device_->ClaimDevice(GetFullDeviceControl()); in ClaimDevice()
279 if (!device_) { in ReleaseDevice()
283 return device_->ReleaseDevice(); in ReleaseDevice()
394 if (!device_->GetHTCapability(GetChannel(), &ht_cap)) { in AppendHwMode()
452 device_ = manager_->GetAvailableDevice(); in AppendInterface()
453 if (!device_) { in AppendInterface()
459 device_ = manager_->GetDeviceFromInterfaceName(interface); in AppendInterface()
460 if (!device_) { in AppendInterface()
470 if (device_->GetInUse()) { in AppendInterface()
[all …]
Dconfig_unittest.cc143 device_ = new MockDevice(&manager_); in SetupDevice()
144 device_->SetPreferredApInterface(interface); in SetupDevice()
146 .WillRepeatedly(Return(device_)); in SetupDevice()
160 scoped_refptr<MockDevice> device_; member in apmanager::ConfigTest
383 EXPECT_CALL(*device_.get(), GetHTCapability(k5GHzChannel, _))
392 Mock::VerifyAndClearExpectations(device_.get());
399 EXPECT_CALL(*device_.get(), GetHTCapability(k24GHzChannel, _))
408 Mock::VerifyAndClearExpectations(device_.get());
/system/connectivity/shill/
Ddevice_unittest.cc176 : device_(new TestDevice(control_interface(), in DeviceTest()
188 device_->time_ = &time_; in DeviceTest()
193 device_->metrics_ = &metrics_; in SetUp()
194 device_->rtnl_handler_ = &rtnl_handler_; in SetUp()
203 device_->OnIPConfigUpdated(ipconfig, true); in OnIPConfigUpdated()
207 device_->OnIPConfigFailed(ipconfig); in OnIPConfigFailed()
211 device_->OnIPConfigExpired(ipconfig); in OnIPConfigExpired()
215 device_->SelectService(service); in SelectService()
219 device_->connection_ = connection; in SetConnection()
223 device_->set_link_monitor(link_monitor); // Passes ownership. in SetLinkMonitor()
[all …]
Dtraffic_monitor.cc48 : device_(device), in TrafficMonitor()
61 SLOG(device_.get(), 2) << __func__; in Start()
71 SLOG(device_.get(), 2) << __func__; in Stop()
82 SLOG(device_.get(), 2) << __func__ << ": Tx-queues decongested"; in ResetCongestedTxQueuesStatsWithLogging()
89 SLOG(device_.get(), 3) << __func__; in BuildIPPortToTxQueueLength()
90 string device_ip_address = device_->ipconfig()->properties().address; in BuildIPPortToTxQueueLength()
92 SLOG(device_.get(), 4) << "SocketInfo(IP=" in BuildIPPortToTxQueueLength()
103 SLOG(device_.get(), 4) << "Connection Filtered."; in BuildIPPortToTxQueueLength()
106 SLOG(device_.get(), 3) << "Monitoring connection: TX=" in BuildIPPortToTxQueueLength()
119 SLOG(device_.get(), 4) << __func__; in IsCongestedTxQueues()
[all …]
Dvirtual_device_unittest.cc47 device_(new VirtualDevice(&control_, in VirtualDeviceTest()
58 device_->rtnl_handler_ = &rtnl_handler_; in SetUp()
68 VirtualDeviceRefPtr device_; member in shill::VirtualDeviceTest
72 EXPECT_EQ(Technology::kVPN, device_->technology()); in TEST_F()
73 EXPECT_NE(Technology::kEthernet, device_->technology()); in TEST_F()
79 EXPECT_TRUE(device_->Load(&storage)); in TEST_F()
85 EXPECT_TRUE(device_->Save(&storage)); in TEST_F()
91 device_->Start(&error, EnabledStateChangedCallback()); in TEST_F()
97 device_->Stop(&error, EnabledStateChangedCallback()); in TEST_F()
Ddefault_profile_unittest.cc74 device_(new MockDevice(control_interface(), in DefaultProfileTest()
89 scoped_refptr<MockDevice> device_; member in shill::DefaultProfileTest
186 EXPECT_CALL(*device_.get(), Save(storage.get())).Times(0); in TEST_F()
192 manager()->RegisterDevice(device_); in TEST_F()
194 manager()->DeregisterDevice(device_); in TEST_F()
395 EXPECT_CALL(*device_, Save(storage.get())) in TEST_F()
399 EXPECT_TRUE(profile_->UpdateDevice(device_)); in TEST_F()
400 EXPECT_FALSE(profile_->UpdateDevice(device_)); in TEST_F()
/system/core/trusty/gatekeeper/
Dtrusty_gatekeeper.cpp38 static_assert(offsetof(TrustyGateKeeperDevice, device_) == 0, in TrustyGateKeeperDevice()
40 static_assert(offsetof(TrustyGateKeeperDevice, device_.common) == 0, in TrustyGateKeeperDevice()
43 assert(reinterpret_cast<gatekeeper_device_t *>(this) == &device_); in TrustyGateKeeperDevice()
44 assert(reinterpret_cast<hw_device_t *>(this) == &(device_.common)); in TrustyGateKeeperDevice()
47 memset(&device_, 0, sizeof(device_)); in TrustyGateKeeperDevice()
48 device_.common.tag = HARDWARE_DEVICE_TAG; in TrustyGateKeeperDevice()
49 device_.common.version = 1; in TrustyGateKeeperDevice()
50 device_.common.module = const_cast<hw_module_t *>(module); in TrustyGateKeeperDevice()
51 device_.common.close = close_device; in TrustyGateKeeperDevice()
53 device_.enroll = enroll; in TrustyGateKeeperDevice()
[all …]
/system/connectivity/shill/dbus/
Dchromeos_device_dbus_adaptor.cc47 device_(device) { in ChromeosDeviceDBusAdaptor()
55 device_ = nullptr; in ~ChromeosDeviceDBusAdaptor()
138 return ChromeosDBusAdaptor::GetProperties(device_->store(), in GetProperties()
147 return ChromeosDBusAdaptor::SetProperty(device_->mutable_store(), in SetProperty()
156 return ChromeosDBusAdaptor::ClearProperty(device_->mutable_store(), in ClearProperty()
165 device_->SetEnabledPersistent(true, &e, callback); in Enable()
170 SLOG(this, 2) << __func__ << ": Device " << device_->UniqueName(); in Disable()
173 device_->SetEnabledPersistent(false, &e, callback); in Disable()
183 device_->Scan(Device::kFullScan, &e, __func__); in ProposeScan()
201 device_->RegisterOnNetwork(network_id, &e, callback); in Register()
[all …]
/system/weaved/buffet/
Dmanager.cc233 if (device_) in CreateDevice()
236 device_ = weave::Device::Create(config_.get(), task_runner_.get(), in CreateDevice()
241 LoadTraitDefinitions(options_.config_options, device_.get()); in CreateDevice()
242 LoadCommandDefinitions(options_.config_options, device_.get()); in CreateDevice()
243 LoadStateDefinitions(options_.config_options, device_.get()); in CreateDevice()
244 LoadStateDefaults(options_.config_options, device_.get()); in CreateDevice()
246 device_->AddSettingsChangedCallback( in CreateDevice()
249 device_->AddTraitDefsChangedCallback( in CreateDevice()
252 device_->AddStateChangedCallback( in CreateDevice()
255 device_->AddComponentTreeChangedCallback( in CreateDevice()
[all …]
Dbinder_weave_service.cc35 : device_{device}, client_{client} {} in BinderWeaveService()
52 if (!device_->AddComponent(component_name, supported_traits, &error)) in addComponent()
63 device_->AddCommandHandler(component_name, command_name, in registerCommandHandler()
74 return ToStatus(device_->SetStatePropertiesFromJson(ToString(component), in updateState()
/system/connectivity/shill/vpn/
Dl2tp_ipsec_driver_unittest.cc69 device_(new MockPPPDevice(&control_, &dispatcher_, &metrics_, &manager_, in L2TPIPSecDriverTest()
83 driver_->device_ = nullptr; in TearDown()
109 driver_->device_ = device; in SetDevice()
166 EXPECT_CALL(*device_, SetEnabled(true)); in ExpectDeviceConnected()
167 EXPECT_CALL(*device_, SelectService(static_cast<ServiceRefPtr>(service_))); in ExpectDeviceConnected()
168 EXPECT_CALL(*device_, UpdateIPConfigFromPPPWithMTU( in ExpectDeviceConnected()
205 scoped_refptr<MockPPPDevice> device_; member in shill::L2TPIPSecDriverTest
256 driver_->device_ = device_; in TEST_F()
262 EXPECT_CALL(*device_, DropConnection()); in TEST_F()
263 EXPECT_CALL(*device_, SetEnabled(false)); in TEST_F()
[all …]
Dopenvpn_driver_unittest.cc113 device_(new MockVirtualDevice( in OpenVPNDriverTest()
133 driver_->device_ = nullptr; in TearDown()
183 return device_->selected_service(); in GetSelectedService()
196 driver_->device_ = device; in SetDevice()
266 scoped_refptr<MockVirtualDevice> device_; member in shill::OpenVPNDriverTest
375 driver_->device_ = device_; in TEST_F()
377 EXPECT_CALL(*device_, in TEST_F()
385 EXPECT_CALL(*device_, in TEST_F()
393 driver_->device_ = device_; in TEST_P()
396 EXPECT_CALL(*device_, UpdateIPConfig(_)); in TEST_P()
[all …]
Dthird_party_vpn_driver.cc388 device_->SelectService(service_); in SetParameters()
389 device_->UpdateIPConfig(ip_properties_); in SetParameters()
390 device_->SetLooseRouting(true); in SetParameters()
418 if (device_) { in Cleanup()
419 interface_index = device_->interface_index(); in Cleanup()
420 device_->DropConnection(); in Cleanup()
421 device_->SetEnabled(false); in Cleanup()
422 device_ = nullptr; in Cleanup()
477 CHECK(!device_); in ClaimInterface()
478 device_ = new VirtualDevice(control_, dispatcher(), metrics_, manager(), in ClaimInterface()
[all …]
Dl2tp_ipsec_driver.cc198 if (device_) { in Cleanup()
199 device_->DropConnection(); in Cleanup()
200 device_->SetEnabled(false); in Cleanup()
201 device_ = nullptr; in Cleanup()
477 if (!device_) { in Notify()
478 device_ = ppp_device_factory_->CreatePPPDevice( in Notify()
482 device_->SetEnabled(true); in Notify()
483 device_->SelectService(service_); in Notify()
490 device_->UpdateIPConfigFromPPPWithMTU( in Notify()
Dthird_party_vpn_driver_unittest.cc52 device_(new MockVirtualDevice(&control_, &dispatcher_, &metrics_, in ThirdPartyVpnDriverTest()
64 driver_->device_ = nullptr; in TearDown()
83 scoped_refptr<MockVirtualDevice> device_; member in shill::ThirdPartyVpnDriverTest
115 ASSERT_TRUE(driver_->device_); in TEST_F()
116 EXPECT_EQ(kInterfaceIndex, driver_->device_->interface_index()); in TEST_F()
245 driver_->device_ = in TEST_F()
303 driver_->device_ = nullptr; in TEST_F()
/system/keymaster/
Dandroid_keymaster_test_utils.cpp177 device_ = GetParam()->CreateDevice(); in Keymaster2Test()
183 device_->common.close(reinterpret_cast<hw_device_t*>(device_)); in ~Keymaster2Test()
187 return device_; in device()
687 memset(&device_, 0, sizeof(device_)); in Sha256OnlyWrapper()
688 device_.common.module = &new_module; in Sha256OnlyWrapper()
690 device_.common.close = close_device; in Sha256OnlyWrapper()
691 device_.get_supported_algorithms = get_supported_algorithms; in Sha256OnlyWrapper()
692 device_.get_supported_block_modes = get_supported_block_modes; in Sha256OnlyWrapper()
693 device_.get_supported_padding_modes = get_supported_padding_modes; in Sha256OnlyWrapper()
694 device_.get_supported_digests = get_supported_digests; in Sha256OnlyWrapper()
[all …]
Dandroid_keymaster_test_utils.h316 keymaster2_device_t* device_;
329 Keymaster0CountingWrapper(keymaster0_device_t* device) : device_(device), counter_(0) { in Keymaster0CountingWrapper()
330 common = device_->common; in Keymaster0CountingWrapper()
332 client_version = device_->client_version; in Keymaster0CountingWrapper()
333 flags = device_->flags; in Keymaster0CountingWrapper()
365 return wrapper->device_; in device()
380 wrapper->device_->common.close(reinterpret_cast<hw_device_t*>(wrapper->device_)); in counting_close_device()
457 keymaster0_device_t* device_;
/system/connectivity/shill/binder/
Ddevice_binder_adaptor.h92 Device* device() const { return device_; } in device()
95 Device* device_;

12