/system/connectivity/shill/wimax/ |
wimax_unittest.cc | 59 device_(new WiMax(&control_, &dispatcher_, &metrics_, &manager_, 74 device_->set_dhcp_provider(&dhcp_provider_); 78 device_->SelectService(nullptr); 79 device_->pending_service_ = nullptr; 89 WiMaxRefPtr device_; member in class:shill::WiMaxTest 93 EXPECT_EQ(kTestPath, device_->path()); 94 EXPECT_FALSE(device_->scanning()); 98 EXPECT_FALSE(device_->proxy_.get()); 105 device_->Start(nullptr, EnabledStateChangedCallback()); 106 ASSERT_TRUE(device_->proxy_.get()) [all...] |
wimax_service_unittest.cc | 70 device_(new MockWiMax(&control_, nullptr, &metrics_, &manager_, 85 service_->device_ = nullptr; 109 scoped_refptr<MockWiMax> device_; member in class:shill::WiMaxServiceTest 124 service_->device_ = device_; 165 service_->device_ = device_; 166 EXPECT_CALL(*device_, OnServiceStopped(_)); 264 EXPECT_CALL(provider, SelectCarrier(_)).WillOnce(Return(device_)); 265 EXPECT_CALL(*device_, ConnectTo(_, _)) [all...] |
wimax_service.cc | 99 if (device_) { 100 device_->OnServiceStopped(this); 153 if (device_) { 185 if (!device_) { 191 device_->DisconnectFrom(this, error); 200 if (!device_) { 204 return device_->GetRpcIdentifier(); 250 if (device_ == new_device) 259 device_ = new_device;
|
/system/connectivity/shill/cellular/ |
cellular_unittest.cc | 95 device_(new Cellular(&modem_info_, 106 DeviceRefPtr device_; member in class:shill::CellularPropertyTest 110 EXPECT_TRUE(device_->store().Contains(kNameProperty)); 111 EXPECT_FALSE(device_->store().Contains("")); 118 EXPECT_TRUE(device_->mutable_store()->SetAnyProperty( 124 EXPECT_FALSE(device_->mutable_store()->SetAnyProperty( 131 EXPECT_FALSE(device_->mutable_store()->SetAnyProperty( 156 device_(new Cellular(&modem_info_, 164 modem_info_.metrics()->RegisterDevice(device_->interface_index(), 169 static_cast<Device*>(device_.get())->rtnl_handler_ = &rtnl_handler_ 625 CellularRefPtr device_; member in class:shill::CellularTest [all...] |
modem.cc | 67 if (device_) { 68 device_->DestroyService(); 69 modem_info_->manager()->device_info()->DeregisterDevice(device_); 111 if (device_.get()) { 154 device_ = ConstructCellular(link_name_, mac_address, interface_index); 158 device_->OnPropertiesChanged( 162 modem_info_->manager()->device_info()->RegisterDevice(device_); 189 if (device_.get()) { 190 device_->OnPropertiesChanged(interface,
|
/system/connectivity/apmanager/ |
device_unittest.cc | 66 device_ = new Device(&manager_, kDeviceName, 0); 71 EXPECT_EQ(interface_list.size(), device_->interface_list_.size()); 73 EXPECT_TRUE(interface_list[i].Equals(device_->interface_list_[i])); 78 EXPECT_EQ(interface_name, device_->GetPreferredApInterface()); 119 device_->supports_ap_mode_ = true; 123 EXPECT_EQ(supports_ap_mode, device_->supports_ap_mode_); 127 EXPECT_EQ(frequency_list, device_->band_capability_[band_id].frequencies); 133 scoped_refptr<Device> device_; member in class:apmanager::DeviceTest 142 device_->RegisterInterface(kApModeInterface0); 143 device_->RegisterInterface(kManagedModeInterface0) [all...] |
config.cc | 271 if (!device_) { 275 return device_->ClaimDevice(GetFullDeviceControl()); 279 if (!device_) { 283 return device_->ReleaseDevice(); 394 if (!device_->GetHTCapability(GetChannel(), &ht_cap)) { 452 device_ = manager_->GetAvailableDevice(); 453 if (!device_) { 459 device_ = manager_->GetDeviceFromInterfaceName(interface); 460 if (!device_) { 470 if (device_->GetInUse()) [all...] |
/system/connectivity/shill/ |
traffic_monitor.cc | 48 : device_(device), 61 SLOG(device_.get(), 2) << __func__; 71 SLOG(device_.get(), 2) << __func__; 82 SLOG(device_.get(), 2) << __func__ << ": Tx-queues decongested"; 89 SLOG(device_.get(), 3) << __func__; 90 string device_ip_address = device_->ipconfig()->properties().address; 92 SLOG(device_.get(), 4) << "SocketInfo(IP=" 103 SLOG(device_.get(), 4) << "Connection Filtered."; 106 SLOG(device_.get(), 3) << "Monitoring connection: TX=" 119 SLOG(device_.get(), 4) << __func__ [all...] |
virtual_device_unittest.cc | 47 device_(new VirtualDevice(&control_, 58 device_->rtnl_handler_ = &rtnl_handler_; 68 VirtualDeviceRefPtr device_; member in class:shill::VirtualDeviceTest 72 EXPECT_EQ(Technology::kVPN, device_->technology()); 73 EXPECT_NE(Technology::kEthernet, device_->technology()); 79 EXPECT_TRUE(device_->Load(&storage)); 85 EXPECT_TRUE(device_->Save(&storage)); 91 device_->Start(&error, EnabledStateChangedCallback()); 97 device_->Stop(&error, EnabledStateChangedCallback());
|
device_unittest.cc | 176 : device_(new TestDevice(control_interface(), 188 device_->time_ = &time_; 193 device_->metrics_ = &metrics_; 194 device_->rtnl_handler_ = &rtnl_handler_; 203 device_->OnIPConfigUpdated(ipconfig, true); 207 device_->OnIPConfigFailed(ipconfig); 211 device_->OnIPConfigExpired(ipconfig); 215 device_->SelectService(service); 219 device_->connection_ = connection; 223 device_->set_link_monitor(link_monitor); // Passes ownership 294 scoped_refptr<TestDevice> device_; member in class:shill::DeviceTest [all...] |
/system/connectivity/shill/dbus/ |
chromeos_device_dbus_adaptor.cc | 47 device_(device) { 55 device_ = nullptr; 138 return ChromeosDBusAdaptor::GetProperties(device_->store(), 147 return ChromeosDBusAdaptor::SetProperty(device_->mutable_store(), 156 return ChromeosDBusAdaptor::ClearProperty(device_->mutable_store(), 165 device_->SetEnabledPersistent(true, &e, callback); 170 SLOG(this, 2) << __func__ << ": Device " << device_->UniqueName(); 173 device_->SetEnabledPersistent(false, &e, callback); 183 device_->Scan(Device::kFullScan, &e, __func__); 201 device_->RegisterOnNetwork(network_id, &e, callback) [all...] |
/external/libweave/src/privet/ |
publisher.cc | 33 : dns_sd_{dns_sd}, device_{device}, cloud_{cloud}, wifi_{wifi} { 34 CHECK(device_); variable 45 if (device_->GetHttpEnpoint().first == 0) 56 const uint16_t port = device_->GetHttpEnpoint().first;
|
cloud_delegate.cc | 46 device_{device}, 48 device_->GetMutableConfig()->AddOnChangedCallback(base::Bind( 50 device_->AddGcdStateChangedCallback(base::Bind( 70 return device_->GetSettings().device_id; 74 CHECK_EQ(5u, device_->GetSettings().model_id.size()); 75 return device_->GetSettings().model_id; 78 std::string GetName() const override { return device_->GetSettings().name; } 81 return device_->GetSettings().description; 85 return device_->GetSettings().location; 91 device_->UpdateDeviceInfo(name, description, location) [all...] |
publisher.h | 44 const DeviceDelegate* device_{nullptr};
|
/system/core/trusty/gatekeeper/ |
trusty_gatekeeper.cpp | 38 static_assert(offsetof(TrustyGateKeeperDevice, device_) == 0, 39 "device_ must be the first member of TrustyGateKeeperDevice"); 40 static_assert(offsetof(TrustyGateKeeperDevice, device_.common) == 0, 43 assert(reinterpret_cast<gatekeeper_device_t *>(this) == &device_); 44 assert(reinterpret_cast<hw_device_t *>(this) == &(device_.common)); 47 memset(&device_, 0, sizeof(device_)); 48 device_.common.tag = HARDWARE_DEVICE_TAG; 49 device_.common.version = 1; 50 device_.common.module = const_cast<hw_module_t *>(module) [all...] |
/external/libweave/src/ |
base_api_handler.cc | 26 : device_info_{device_info}, device_{device} { 27 device_->AddTraitDefinitionsFromJson(R"({ 100 CHECK(device_->AddComponent(kBaseComponent, {kBaseTrait}, nullptr)); 101 OnConfigChanged(device_->GetSettings()); 106 CHECK(device_->SetStateProperty(kBaseComponent, kBaseStateFirmwareVersion, 110 device_->AddCommandHandler( 115 device_->AddCommandHandler(kBaseComponent, "base.updateDeviceInfo", 166 device_->SetStateProperties(kBaseComponent, state, nullptr);
|
access_api_handler.h | 38 Device* device_{nullptr};
|
base_api_handler.h | 36 Device* device_{nullptr};
|
base_api_handler_unittest.cc | 34 EXPECT_CALL(device_, AddTraitDefinitionsFromJson(_)) 38 EXPECT_CALL(device_, SetStateProperties(_, _, _)) 41 EXPECT_CALL(device_, SetStateProperty(_, _, _, _)) 44 EXPECT_CALL(device_, AddComponent(_, _, _)) 51 EXPECT_CALL(device_, 62 EXPECT_CALL(device_, GetSettings()) 65 handler_.reset(new BaseApiHandler{dev_reg_.get(), &device_}); 100 StrictMock<test::MockDevice> device_; member in class:weave::BaseApiHandlerTest
|
access_api_handler.cc | 55 : device_{device}, manager_{manager} { 56 device_->AddTraitDefinitionsFromJson(R"({ 118 CHECK(device_->AddComponent(kComponent, {kTrait}, nullptr)); 121 device_->AddCommandHandler( 124 device_->AddCommandHandler( 127 device_->AddCommandHandler( 224 device_->SetStateProperties(kComponent, state, nullptr);
|
access_api_handler_unittest.cc | 47 EXPECT_CALL(device_, AddTraitDefinitionsFromJson(_)) 51 EXPECT_CALL(device_, SetStateProperties(_, _, _)) 54 EXPECT_CALL(device_, SetStateProperty(_, _, _, _)) 57 EXPECT_CALL(device_, AddComponent(_, _, _)) 64 EXPECT_CALL(device_, 76 handler_.reset(new AccessApiHandler{&device_, &access_manager_}); 105 StrictMock<test::MockDevice> device_; member in class:weave::AccessApiHandlerTest
|
/system/weaved/buffet/ |
binder_weave_service.cc | 35 : device_{device}, client_{client} {} 41 // device_->RemoveComponent(component, nullptr); 52 if (!device_->AddComponent(component_name, supported_traits, &error)) 63 device_->AddCommandHandler(component_name, command_name, 74 return ToStatus(device_->SetStatePropertiesFromJson(ToString(component),
|
manager.cc | 233 if (device_) 236 device_ = weave::Device::Create(config_.get(), task_runner_.get(), 241 LoadTraitDefinitions(options_.config_options, device_.get()); 242 LoadCommandDefinitions(options_.config_options, device_.get()); 243 LoadStateDefinitions(options_.config_options, device_.get()); 244 LoadStateDefaults(options_.config_options, device_.get()); 246 device_->AddSettingsChangedCallback( 249 device_->AddTraitDefsChangedCallback( 252 device_->AddStateChangedCallback( 255 device_->AddComponentTreeChangedCallback [all...] |
/external/libweave/examples/daemon/common/ |
daemon.h | 85 device_ = weave::Device::Create(config_store_.get(), task_runner_.get(), 91 device_->Register(opts.registration_ticket_, 92 base::Bind(&OnRegisterDeviceDone, device_.get())); 98 weave::Device* GetDevice() const { return device_.get(); } 121 std::unique_ptr<weave::Device> device_; member in class:Daemon
|
/external/libweave/examples/daemon/sample/ |
sample.cc | 62 device_ = device; 109 device_->SetStateProperty(kComponent, "_sample.pingCount", 111 LOG(INFO) << "New component state: " << device_->GetComponents(); 156 weave::Device* device_{nullptr};
|