Searched refs:props (Results 1 - 25 of 37) sorted by relevance

12

/system/connectivity/shill/
H A Dppp_device_unittest.cc60 IPConfig::Properties props = device->ParseIPConfiguration("in-test", config); local
61 EXPECT_EQ(IPAddress::kFamilyIPv4, props.address_family);
63 props.subnet_prefix);
64 EXPECT_EQ("4.5.6.7", props.address);
65 EXPECT_EQ("33.44.55.66", props.peer_address);
66 EXPECT_EQ("192.168.1.1", props.gateway);
67 ASSERT_EQ(2, props.dns_servers.size());
68 EXPECT_EQ("1.1.1.1", props.dns_servers[0]);
69 EXPECT_EQ("2.2.2.2", props.dns_servers[1]);
70 EXPECT_EQ("99.88.77.66/32", props
[all...]
H A Dstatic_ip_parameters.cc261 void StaticIPParameters::ApplyTo(IPConfig::Properties* props) { argument
262 if (props->address_family == IPAddress::kFamilyUnknown) {
266 props->address_family = IPAddress::kFamilyIPv4;
269 ApplyString(kAddressProperty, &props->address);
270 ApplyString(kGatewayProperty, &props->gateway);
271 ApplyInt(kMtuProperty, &props->mtu);
272 ApplyStrings(kNameServersProperty, &props->dns_servers);
273 ApplyString(kPeerAddressProperty, &props->peer_address);
274 ApplyInt(kPrefixlenProperty, &props->subnet_prefix);
277 void StaticIPParameters::RestoreTo(IPConfig::Properties* props) { argument
[all...]
H A Ddefault_profile_unittest.cc107 brillo::VariantDictionary props; local
109 profile_->store().GetProperties(&props, &error);
110 ASSERT_FALSE(props.find(kOfflineModeProperty) == props.end());
111 EXPECT_TRUE(props[kOfflineModeProperty].IsTypeCompatible<bool>());
112 EXPECT_FALSE(props[kOfflineModeProperty].Get<bool>());
116 brillo::VariantDictionary props; local
118 profile_->store().GetProperties(&props, &error);
119 ASSERT_FALSE(props.find(kOfflineModeProperty) == props
[all...]
H A Dstatic_ip_parameters.h53 void ApplyTo(IPConfig::Properties* props);
55 // Restore IP parameters from |saved_args_| to |props|, then clear
57 void RestoreTo(IPConfig::Properties* props);
H A Dstatic_ip_parameters_unittest.cc204 IPConfig::Properties props; local
206 props.address = kTestAddress;
208 props.mtu = kTestMtu;
209 static_params_.ApplyTo(&props);
210 EXPECT_EQ(kTestAddress, props.address);
211 EXPECT_EQ(kTestMtu, props.mtu);
H A Dipconfig.h158 void set_properties(const Properties& props) { properties_ = props; } argument
/system/core/healthd/
H A DBatteryMonitor.cpp61 static void initBatteryProperties(BatteryProperties* props) { argument
62 props->chargerAcOnline = false;
63 props->chargerUsbOnline = false;
64 props->chargerWirelessOnline = false;
65 props->maxChargingCurrent = 0;
66 props->maxChargingVoltage = 0;
67 props->batteryStatus = BATTERY_STATUS_UNKNOWN;
68 props->batteryHealth = BATTERY_HEALTH_UNKNOWN;
69 props->batteryPresent = false;
70 props
[all...]
H A Dhealthd_mode_android.cpp33 struct android::BatteryProperties *props) {
35 gBatteryPropertiesRegistrar->notifyListeners(*props);
32 healthd_mode_android_battery_update( struct android::BatteryProperties *props) argument
H A DBatteryPropertiesRegistrar.h34 void notifyListeners(struct BatteryProperties props);
H A DBatteryPropertiesRegistrar.cpp38 void BatteryPropertiesRegistrar::notifyListeners(struct BatteryProperties props) { argument
41 mListeners[i]->batteryPropertiesChanged(props);
H A Dhealthd.cpp86 struct android::BatteryProperties *props);
94 struct android::BatteryProperties *props);
102 struct android::BatteryProperties *props);
136 struct android::BatteryProperties* /*props*/) {
/system/core/healthd/include/healthd/
H A Dhealthd.h73 bool (*screen_on)(android::BatteryProperties *props);
88 void (*battery_update)(struct android::BatteryProperties *props);
99 struct android::BatteryProperties *props);
117 // props are the battery properties read from the kernel. These values may
124 int healthd_board_battery_update(struct android::BatteryProperties *props);
H A DBatteryMonitor.h54 struct BatteryProperties props; member in class:android::BatteryMonitor
/system/update_engine/payload_generator/
H A Dxz_android.cc91 CXzProps props;
92 XzProps_Init(&props);
96 props.checkId = XZ_CHECK_NO;
100 props.lzma2Props = &lzma2Props;
112 SRes res = Xz_Encode(&out_writer, &in_reader, &props, nullptr /* progress */);
H A Dcycle_breaker_unittest.cc100 EdgeProperties props; local
101 props.extents.resize(1);
102 props.extents[0].set_num_blocks(weight);
103 return make_pair(dest, props);
/system/connectivity/shill/cellular/
H A Dcellular_capability_classic.cc302 const KeyValueStore& props,
306 if (props.ContainsString("carrier")) {
307 string carrier = props.GetString("carrier");
311 if (props.ContainsString("meid")) {
312 cellular()->set_meid(props.GetString("meid"));
314 if (props.ContainsString("imei")) {
315 cellular()->set_imei(props.GetString("imei"));
317 if (props.ContainsString(kModemPropertyIMSI)) {
318 string imsi = props.GetString(kModemPropertyIMSI);
325 if (props
300 OnGetModemStatusReply( const ResultCallback& callback, const KeyValueStore& props, const Error& error) argument
[all...]
H A Dcellular_capability_classic_unittest.cc148 KeyValueStore props; local
149 props.SetString("carrier", kTestCarrier);
150 props.SetString("unknown-property", "irrelevant-value");
151 callback.Run(props, Error());
412 KeyValueStore props; local
418 props.Clear();
419 EXPECT_TRUE(props.IsEmpty());
420 gsm_capability->SetupConnectProperties(&props);
424 EXPECT_TRUE(props.ContainsString(kApnProperty));
425 EXPECT_EQ(kLastGoodApn, props
[all...]
H A Dcellular_capability_gsm_unittest.cc167 KeyValueStore props; local
168 callback.Run(props, Error());
175 void InvokeConnectFail(KeyValueStore props, Error* error, argument
667 KeyValueStore props; local
670 props.SetUint(CellularCapabilityGSM::kPropertyAccessTechnology,
672 props.SetUint(CellularCapabilityGSM::kPropertyEnabledFacilityLocks,
674 props.SetString(CellularCapabilityGSM::kPropertyUnlockRequired, kLockType);
675 props.SetUint(CellularCapabilityGSM::kPropertyUnlockRetries, kRetries);
677 capability_->OnPropertiesChanged(MM_MODEM_GSM_INTERFACE, props,
695 capability_->OnPropertiesChanged(MM_MODEM_GSM_NETWORK_INTERFACE, props,
782 KeyValueStore props; local
[all...]
H A Dcellular_capability_universal.cc721 KeyValueStore props; local
722 FillConnectPropertyMap(&props);
724 Connect(props, &error, callback);
1653 const KeyValueStore& props,
1656 if (props.ContainsString(MM_SIM_PROPERTY_SIMIDENTIFIER))
1657 OnSimIdentifierChanged(props.GetString(MM_SIM_PROPERTY_SIMIDENTIFIER));
1658 if (props.ContainsString(MM_SIM_PROPERTY_OPERATORIDENTIFIER))
1659 OnOperatorIdChanged(props.GetString(MM_SIM_PROPERTY_OPERATORIDENTIFIER));
1660 if (props.ContainsString(MM_SIM_PROPERTY_OPERATORNAME))
1661 OnSpnChanged(props
1652 OnSimPropertiesChanged( const KeyValueStore& props, const vector<string>& ) argument
[all...]
/system/connectivity/shill/vpn/
H A Dopenvpn_driver_unittest.cc171 KeyValueStore props; local
174 store.GetKeyValueStoreProperty(kProviderProperty, &props, &error));
175 return props;
550 IPConfig::Properties props; local
551 OpenVPNDriver::SetRoutes(routes, &props);
552 ASSERT_EQ(2, props.routes.size());
553 EXPECT_EQ(kGateway1, props.routes[0].gateway);
554 EXPECT_EQ(kNetmask1, props.routes[0].netmask);
555 EXPECT_EQ(kNetwork1, props.routes[0].host);
556 EXPECT_EQ(kGateway2, props
561 OpenVPNDriver::SetRoutes(OpenVPNDriver::RouteOptions(), &props); local
591 IPConfig::Properties props; local
616 IPConfig::Properties props; local
629 OpenVPNDriver::ParseForeignOptions(map<int, string>(), &props); local
636 IPConfig::Properties props; local
1341 KeyValueStore props = GetProviderProperties(store); local
[all...]
H A Dl2tp_ipsec_driver_unittest.cc612 KeyValueStore props; local
616 store.GetKeyValueStoreProperty(kProviderProperty, &props, &error));
617 EXPECT_TRUE(props.LookupBool(kPassphraseRequiredProperty, false));
618 EXPECT_TRUE(props.LookupBool(kL2tpIpsecPskRequiredProperty, false));
621 KeyValueStore props; local
625 store.GetKeyValueStoreProperty(kProviderProperty, &props, &error));
626 EXPECT_TRUE(props.LookupBool(kPassphraseRequiredProperty, false));
627 EXPECT_FALSE(props.LookupBool(kL2tpIpsecPskRequiredProperty, true));
631 KeyValueStore props; local
636 store.GetKeyValueStoreProperty(kProviderProperty, &props,
[all...]
H A Dl2tp_ipsec_driver.cc505 KeyValueStore props = VPNDriver::GetProvider(error); local
506 props.SetBool(kPassphraseRequiredProperty,
508 props.SetBool(kL2tpIpsecPskRequiredProperty, IsPskRequired());
509 return props;
/system/connectivity/shill/dbus/
H A Dchromeos_modem_simple_proxy.h51 const brillo::VariantDictionary& props);
H A Dchromeos_modem_simple_proxy.cc77 const brillo::VariantDictionary& props) {
80 KeyValueStore::ConvertFromVariantDictionary(props, &props_store);
75 OnGetStatusSuccess( const KeyValueStoreCallback& callback, const brillo::VariantDictionary& props) argument
/system/bt/service/test/
H A Dgatt_server_unittest.cpp539 const int props = bluetooth::kCharacteristicPropertyRead | local
546 EXPECT_EQ(nullptr, gatt_server_->AddCharacteristic(char_uuid, props, perms));
556 auto char_id0 = gatt_server_->AddCharacteristic(char_uuid, props, perms);
557 auto char_id1 = gatt_server_->AddCharacteristic(char_uuid, props, perms);
587 EXPECT_EQ(nullptr, gatt_server_->AddCharacteristic(char_uuid, props, perms));
609 char_id0 = gatt_server_->AddCharacteristic(char_uuid, props, perms);
610 char_id1 = gatt_server_->AddCharacteristic(char_uuid, props, perms);
628 char_id0 = gatt_server_->AddCharacteristic(char_uuid, props, perms);
629 char_id1 = gatt_server_->AddCharacteristic(char_uuid, props, perms);
648 char_id0 = gatt_server_->AddCharacteristic(char_uuid, props, perm
712 const int props = bluetooth::kCharacteristicPropertyRead | local
[all...]

Completed in 248 milliseconds

12