/system/connectivity/shill/ |
D | property_store_unittest.h | 77 bool* storage, Error* error) { in GetProperty() argument 78 return store.GetBoolProperty(name, storage, error); in GetProperty() 82 int16_t* storage, Error* error) { in GetProperty() argument 83 return store.GetInt16Property(name, storage, error); in GetProperty() 87 int32_t* storage, Error* error) { in GetProperty() argument 88 return store.GetInt32Property(name, storage, error); in GetProperty() 92 std::string* storage, Error* error) { in GetProperty() argument 93 return store.GetStringProperty(name, storage, error); in GetProperty() 97 Stringmap* storage, Error* error) { in GetProperty() argument 98 return store.GetStringmapProperty(name, storage, error); in GetProperty() [all …]
|
D | default_profile_unittest.cc | 99 unique_ptr<MockStore> storage(new MockStore()); in TEST_F() local 101 EXPECT_CALL(*storage.get(), GetGroups()) in TEST_F() 103 profile_->set_storage(storage.release()); in TEST_F() 134 unique_ptr<MockStore> storage(new MockStore()); in TEST_F() local 135 EXPECT_CALL(*storage.get(), SetBool(DefaultProfile::kStorageId, in TEST_F() 139 EXPECT_CALL(*storage.get(), SetString(DefaultProfile::kStorageId, in TEST_F() 143 EXPECT_CALL(*storage.get(), SetString(DefaultProfile::kStorageId, in TEST_F() 147 EXPECT_CALL(*storage.get(), SetBool(DefaultProfile::kStorageId, in TEST_F() 151 EXPECT_CALL(*storage.get(), SetString(DefaultProfile::kStorageId, in TEST_F() 155 EXPECT_CALL(*storage.get(), in TEST_F() [all …]
|
D | default_profile.cc | 120 storage()->GetBool(kStorageId, kStorageArpGateway, in LoadManagerProperties() 122 storage()->GetString(kStorageId, kStorageHostName, &manager_props->host_name); in LoadManagerProperties() 123 storage()->GetBool(kStorageId, kStorageOfflineMode, in LoadManagerProperties() 125 if (!storage()->GetString(kStorageId, in LoadManagerProperties() 130 if (!storage()->GetInt(kStorageId, kStorageConnectionIdSalt, in LoadManagerProperties() 135 if (!storage()->GetString(kStorageId, in LoadManagerProperties() 141 if (!storage()->GetString(kStorageId, in LoadManagerProperties() 147 if (!storage()->GetString(kStorageId, in LoadManagerProperties() 152 if (!storage()->GetString(kStorageId, kStoragePortalURL, in LoadManagerProperties() 157 if (!storage()->GetString(kStorageId, kStoragePortalCheckInterval, in LoadManagerProperties() [all …]
|
D | eap_credentials.cc | 286 void EapCredentials::Load(StoreInterface* storage, const string& id) { in Load() argument 288 storage->GetCryptedString(id, in Load() 291 storage->GetString(id, kStorageEapCertID, &cert_id_); in Load() 292 storage->GetString(id, kStorageEapClientCert, &client_cert_); in Load() 293 storage->GetCryptedString(id, kStorageEapIdentity, &identity_); in Load() 294 storage->GetString(id, kStorageEapKeyID, &key_id_); in Load() 296 storage->GetString(id, kStorageEapKeyManagement, &key_management); in Load() 298 storage->GetCryptedString(id, kStorageEapPassword, &password_); in Load() 299 storage->GetString(id, kStorageEapPIN, &pin_); in Load() 300 storage->GetString(id, kStorageEapPrivateKey, &private_key_); in Load() [all …]
|
D | dhcp_properties_unittest.cc | 158 MockStore storage; in TEST_F() local 159 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.VendorClass", _)) in TEST_F() 161 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.Hostname", _)) in TEST_F() 163 dhcp_properties_.Load(&storage, kStorageID); in TEST_F() 168 MockStore storage; in TEST_F() local 169 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.VendorClass", _)) in TEST_F() 172 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.Hostname", _)) in TEST_F() 175 dhcp_properties_.Load(&storage, kStorageID); in TEST_F() 182 MockStore storage; in TEST_F() local 185 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.VendorClass", _)) in TEST_F() [all …]
|
D | virtual_device_unittest.cc | 77 StrictMock<MockStore> storage; in TEST_F() local 78 EXPECT_CALL(storage, ContainsGroup(_)).Times(0); in TEST_F() 79 EXPECT_TRUE(device_->Load(&storage)); in TEST_F() 83 StrictMock<MockStore> storage; in TEST_F() local 84 EXPECT_CALL(storage, SetBool(_, _, _)).Times(0); // Or any type, really. in TEST_F() 85 EXPECT_TRUE(device_->Save(&storage)); in TEST_F()
|
D | service_unittest.cc | 401 NiceMock<MockStore> storage; in TEST_F() local 402 EXPECT_CALL(storage, ContainsGroup(storage_id_)) in TEST_F() 405 EXPECT_EQ("", service_->GetLoadableStorageIdentifier(storage)); in TEST_F() 406 EXPECT_EQ(storage_id_, service_->GetLoadableStorageIdentifier(storage)); in TEST_F() 410 NiceMock<MockStore> storage; in TEST_F() local 411 EXPECT_CALL(storage, ContainsGroup(storage_id_)) in TEST_F() 414 EXPECT_FALSE(service_->IsLoadableFrom(storage)); in TEST_F() 415 EXPECT_TRUE(service_->IsLoadableFrom(storage)); in TEST_F() 453 NiceMock<MockStore> storage; in TEST_F() local 454 EXPECT_CALL(storage, ContainsGroup(storage_id_)).WillOnce(Return(true)); in TEST_F() [all …]
|
D | service.cc | 509 const StoreInterface& storage) const { in GetLoadableStorageIdentifier() 510 return IsLoadableFrom(storage) ? GetStorageIdentifier() : ""; in GetLoadableStorageIdentifier() 513 bool Service::IsLoadableFrom(const StoreInterface& storage) const { in IsLoadableFrom() 514 return storage.ContainsGroup(GetStorageIdentifier()); in IsLoadableFrom() 517 bool Service::Load(StoreInterface* storage) { in Load() argument 519 if (!storage->ContainsGroup(id)) { in Load() 526 storage->GetBool(id, kStorageAutoConnect, &auto_connect_); in Load() 528 storage->GetBool(id, kStorageFavorite, &retain_auto_connect_); in Load() 530 LoadString(storage, id, kStorageCheckPortal, kCheckPortalAuto, in Load() 532 LoadString(storage, id, kStorageGUID, "", &guid_); in Load() [all …]
|
D | pending_activation_store.cc | 105 std::unique_ptr<StoreInterface> storage( in InitStorage() local 107 bool already_exists = storage->IsNonEmpty(); in InitStorage() 108 if (!storage->Open()) { in InitStorage() 111 storage->MarkAsCorrupted(); in InitStorage() 115 storage->SetHeader("Identifiers pending cellular activation."); in InitStorage() 116 storage_.reset(storage.release()); in InitStorage()
|
D | profile_unittest.cc | 98 MockStore* storage(new StrictMock<MockStore>()); in TEST_F() local 99 profile_->storage_.reset(storage); // Passes ownership in TEST_F() 103 EXPECT_CALL(*storage, ContainsGroup(kEntryName)) in TEST_F() 111 Mock::VerifyAndClearExpectations(storage); in TEST_F() 115 EXPECT_CALL(*storage, ContainsGroup(kEntryName)) in TEST_F() 119 EXPECT_CALL(*storage, DeleteGroup(kEntryName)) in TEST_F() 121 EXPECT_CALL(*storage, Flush()) in TEST_F() 129 Mock::VerifyAndClearExpectations(storage); in TEST_F() 133 EXPECT_CALL(*storage, ContainsGroup(kEntryName)) in TEST_F() 137 EXPECT_CALL(*storage, DeleteGroup(kEntryName)) in TEST_F() [all …]
|
D | dhcp_properties.cc | 81 void DhcpProperties::Load(StoreInterface* storage, const string& id) { in Load() argument 86 if (storage->GetString(id, GetFullPropertyName(name), &property_value)) { in Load() 93 void DhcpProperties::Save(StoreInterface* storage, const string& id) const { in Save() argument 101 storage->SetString(id, GetFullPropertyName(name), property_value); in Save() 106 storage->DeleteKey(id, GetFullPropertyName(name)); in Save()
|
D | property_accessor_unittest.cc | 202 string storage; in TEST() local 205 string orig_value = storage; in TEST() 206 StringAccessor accessor(new PropertyAccessor<string>(&storage)); in TEST() 207 EXPECT_EQ(storage, accessor->Get(&error)); in TEST() 222 storage = "nooooo"; in TEST() 223 EXPECT_EQ(storage, accessor->Get(&error)); in TEST() 227 StringAccessor accessor(new ConstPropertyAccessor<string>(&storage)); in TEST() 228 EXPECT_EQ(storage, accessor->Get(&error)); in TEST() 234 EXPECT_EQ(storage, accessor->Get(&error)); in TEST() 236 storage = "nooooo"; in TEST() [all …]
|
D | profile.cc | 111 std::unique_ptr<StoreInterface> storage( in InitStorage() local 113 bool already_exists = storage->IsNonEmpty(); in InitStorage() 129 if (!storage->Open()) { in InitStorage() 138 storage->MarkAsCorrupted(); in InitStorage() 147 storage->SetHeader( in InitStorage() 151 set_storage(storage.release()); in InitStorage() 186 void Profile::set_storage(StoreInterface* storage) { in set_storage() argument 187 storage_.reset(storage); in set_storage()
|
/system/connectivity/shill/vpn/ |
D | vpn_driver_unittest.cc | 193 MockStore storage; in TEST_F() local 198 EXPECT_CALL(storage, GetString(kStorageID, _, _)) in TEST_F() 200 EXPECT_CALL(storage, GetStringList(kStorageID, _, _)) in TEST_F() 202 EXPECT_CALL(storage, GetString(_, kEapCaCertPemProperty, _)).Times(0); in TEST_F() 203 EXPECT_CALL(storage, GetString(_, kOTPProperty, _)).Times(0); in TEST_F() 204 EXPECT_CALL(storage, GetCryptedString(_, kOTPProperty, _)).Times(0); in TEST_F() 205 EXPECT_CALL(storage, GetStringList(_, kOTPProperty, _)).Times(0); in TEST_F() 207 EXPECT_CALL(storage, GetStringList(kStorageID, kEapCaCertPemProperty, _)) in TEST_F() 209 EXPECT_CALL(storage, GetString(kStorageID, kPortProperty, _)) in TEST_F() 211 EXPECT_CALL(storage, GetString(kStorageID, kPINProperty, _)) in TEST_F() [all …]
|
D | vpn_provider_unittest.cc | 257 FakeStore storage; in TEST_F() local 258 storage.SetString("no_type", "Name", "No Type Entry"); in TEST_F() 259 storage.SetString("no_vpn", "Type", "wimax"); in TEST_F() 260 storage.SetString("vpn_no_provider_type", "Type", "vpn"); in TEST_F() 261 storage.SetString("vpn_no_name", "Type", "vpn"); in TEST_F() 262 storage.SetString("vpn_no_name", "Provider.Type", "openvpn"); in TEST_F() 263 storage.SetString("vpn_no_host", "Type", "vpn"); in TEST_F() 264 storage.SetString("vpn_no_host", "Provider.Type", "openvpn"); in TEST_F() 265 storage.SetString("vpn_ho_host", "Name", "name"); in TEST_F() 266 storage.SetString("vpn_complete", "Type", "vpn"); in TEST_F() [all …]
|
D | vpn_driver.cc | 63 bool VPNDriver::Load(StoreInterface* storage, const string& storage_id) { in Load() argument 74 if (storage->GetStringList(storage_id, property, &value)) { in Load() 82 storage->GetCryptedString(storage_id, property, &value) : in Load() 83 storage->GetString(storage_id, property, &value); in Load() 94 bool VPNDriver::Save(StoreInterface* storage, in Save() argument 108 storage->DeleteKey(storage_id, property); in Save() 112 storage->SetStringList(storage_id, property, value); in Save() 116 storage->DeleteKey(storage_id, property); in Save() 121 storage->SetCryptedString(storage_id, property, value); in Save() 123 storage->SetString(storage_id, property, value); in Save()
|
D | vpn_service.cc | 127 bool VPNService::Load(StoreInterface* storage) { in Load() argument 128 return Service::Load(storage) && in Load() 129 driver_->Load(storage, GetStorageIdentifier()); in Load() 132 bool VPNService::Save(StoreInterface* storage) { in Save() argument 133 return Service::Save(storage) && in Save() 134 driver_->Save(storage, GetStorageIdentifier(), save_credentials()); in Save()
|
D | vpn_provider.cc | 95 bool VPNProvider::GetServiceParametersFromStorage(const StoreInterface* storage, in GetServiceParametersFromStorage() argument 102 if (!storage->GetString(entry_name, kTypeProperty, &service_type) || in GetServiceParametersFromStorage() 108 if (!storage->GetString(entry_name, kProviderTypeProperty, vpn_type_ptr) || in GetServiceParametersFromStorage() 114 if (!storage->GetString(entry_name, kNameProperty, name_ptr) || in GetServiceParametersFromStorage() 120 if (!storage->GetString(entry_name, kProviderHostProperty, host_ptr) || in GetServiceParametersFromStorage() 193 const StoreInterface* storage = profile->GetConstStorage(); in CreateServicesFromProfile() local 196 for (const auto& group : storage->GetGroupsWithProperties(args)) { in CreateServicesFromProfile() 200 if (!GetServiceParametersFromStorage(storage, in CreateServicesFromProfile()
|
/system/connectivity/shill/cellular/ |
D | cellular_service.cc | 247 bool CellularService::Load(StoreInterface* storage) { in Load() argument 249 if (!Service::Load(storage)) in Load() 253 LoadApn(storage, id, kStorageAPN, &apn_info_); in Load() 254 LoadApn(storage, id, kStorageLastGoodAPN, &last_good_apn_info_); in Load() 258 storage->GetString(id, kStoragePPPUsername, &ppp_username_); in Load() 259 storage->GetString(id, kStoragePPPPassword, &ppp_password_); in Load() 267 void CellularService::LoadApn(StoreInterface* storage, in LoadApn() argument 271 if (!LoadApnField(storage, storage_group, keytag, kApnProperty, apn_info)) in LoadApn() 273 LoadApnField(storage, storage_group, keytag, kApnUsernameProperty, apn_info); in LoadApn() 274 LoadApnField(storage, storage_group, keytag, kApnPasswordProperty, apn_info); in LoadApn() [all …]
|
D | cellular_service.h | 115 bool Load(StoreInterface* storage) override; 116 bool Save(StoreInterface* storage) override; 188 static void SaveApn(StoreInterface* storage, 192 static void SaveApnField(StoreInterface* storage, 197 static void LoadApn(StoreInterface* storage, 201 static bool LoadApnField(StoreInterface* storage,
|
/system/connectivity/shill/pppoe/ |
D | pppoe_service.cc | 152 bool PPPoEService::Load(StoreInterface* storage) { in Load() argument 153 if (!Service::Load(storage)) { in Load() 158 storage->GetString(id, kPPPoEUsernameProperty, &username_); in Load() 159 storage->GetString(id, kPPPoEPasswordProperty, &password_); in Load() 160 storage->GetInt(id, kPPPoELCPEchoIntervalProperty, &lcp_echo_interval_); in Load() 161 storage->GetInt(id, kPPPoELCPEchoFailureProperty, &lcp_echo_failure_); in Load() 162 storage->GetInt(id, kPPPoEMaxAuthFailureProperty, &max_auth_failure_); in Load() 167 bool PPPoEService::Save(StoreInterface* storage) { in Save() argument 168 if (!Service::Save(storage)) { in Save() 173 storage->SetString(id, kPPPoEUsernameProperty, username_); in Save() [all …]
|
/system/core/liblog/ |
D | log_event_list.c | 45 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD]; member 63 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in create_android_logger() 82 memcpy(context->storage, msg, len); in create_android_log_parser() 128 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in android_log_write_list_begin() 129 context->storage[context->pos + 1] = 0; in android_log_write_list_begin() 162 context->storage[context->pos + 0] = EVENT_TYPE_INT; in android_log_write_int32() 163 copy4LE(&context->storage[context->pos + 1], value); in android_log_write_int32() 198 context->storage[context->pos + 0] = EVENT_TYPE_LONG; in android_log_write_int64() 199 copy8LE(&context->storage[context->pos + 1], value); in android_log_write_int64() 232 context->storage[context->pos + 0] = EVENT_TYPE_STRING; in android_log_write_string8_len() [all …]
|
/system/update_engine/ |
D | metrics_utils_unittest.cc | 153 int64_t storage = 0; in TEST() local 165 &storage, in TEST() 170 &storage, in TEST() 177 &storage, in TEST() 181 &storage, in TEST() 189 &storage, in TEST() 193 &storage, in TEST() 200 &storage, in TEST() 204 &storage, in TEST()
|
/system/connectivity/shill/wifi/ |
D | wifi_service.cc | 334 const StoreInterface& storage) const { in GetLoadableStorageIdentifier() 335 set<string> groups = storage.GetGroupsWithProperties(GetStorageProperties()); in GetLoadableStorageIdentifier() 350 bool WiFiService::IsLoadableFrom(const StoreInterface& storage) const { in IsLoadableFrom() 351 return !storage.GetGroupsWithProperties(GetStorageProperties()).empty(); in IsLoadableFrom() 361 bool WiFiService::Load(StoreInterface* storage) { in Load() argument 362 string id = GetLoadableStorageIdentifier(*storage); in Load() 371 if (!Service::Load(storage)) { in Load() 376 storage->GetBool(id, kStorageHiddenSSID, &hidden_ssid_); in Load() 382 if (storage->GetCryptedString(id, kStoragePassphrase, &passphrase)) { in Load() 389 storage->GetString(id, kStoragePreferredDevice, &preferred_device); in Load() [all …]
|
D | wifi_provider.cc | 120 const StoreInterface* storage = profile->GetConstStorage(); in CreateServicesFromProfile() local 124 for (const auto& group : storage->GetGroupsWithProperties(args)) { in CreateServicesFromProfile() 129 if (!GetServiceParametersFromStorage(storage, in CreateServicesFromProfile() 376 StoreInterface* storage = profile->GetStorage(); in LoadAndFixupServiceEntries() local 378 if (WiFiService::FixupServiceEntries(storage)) { in LoadAndFixupServiceEntries() 379 storage->Flush(); in LoadAndFixupServiceEntries() 404 if (!storage->GetStringList(kStorageId, freq_string, &frequencies)) { in LoadAndFixupServiceEntries() 432 bool WiFiProvider::Save(StoreInterface* storage) const { in Save() 443 storage->SetStringList(kStorageId, freq_string, frequencies); in Save() 639 const StoreInterface* storage, in GetServiceParametersFromStorage() argument [all …]
|