/system/connectivity/shill/ |
H A D | property_store_unittest.h | 77 bool* storage, Error* error) { 78 return store.GetBoolProperty(name, storage, error); 82 int16_t* storage, Error* error) { 83 return store.GetInt16Property(name, storage, error); 87 int32_t* storage, Error* error) { 88 return store.GetInt32Property(name, storage, error); 92 std::string* storage, Error* error) { 93 return store.GetStringProperty(name, storage, error); 97 Stringmap* storage, Error* error) { 98 return store.GetStringmapProperty(name, storage, erro 76 GetProperty(const PropertyStore& store, const std::string& name, bool* storage, Error* error) argument 81 GetProperty(const PropertyStore& store, const std::string& name, int16_t* storage, Error* error) argument 86 GetProperty(const PropertyStore& store, const std::string& name, int32_t* storage, Error* error) argument 91 GetProperty(const PropertyStore& store, const std::string& name, std::string* storage, Error* error) argument 96 GetProperty(const PropertyStore& store, const std::string& name, Stringmap* storage, Error* error) argument 101 GetProperty(const PropertyStore& store, const std::string& name, Stringmaps* storage, Error* error) argument 106 GetProperty(const PropertyStore& store, const std::string& name, Strings* storage, Error* error) argument 111 GetProperty(const PropertyStore& store, const std::string& name, uint8_t* storage, Error* error) argument 116 GetProperty(const PropertyStore& store, const std::string& name, uint16_t* storage, Error* error) argument 121 GetProperty(const PropertyStore& store, const std::string& name, Uint16s* storage, Error* error) argument 126 GetProperty(const PropertyStore& store, const std::string& name, uint32_t* storage, Error* error) argument 133 RegisterProperty( PropertyStore* store, const std::string& name, bool* storage) argument 138 RegisterProperty( PropertyStore* store, const std::string& name, int16_t* storage) argument 143 RegisterProperty( PropertyStore* store, const std::string& name, int32_t* storage) argument 148 RegisterProperty( PropertyStore* store, const std::string& name, std::string* storage) argument 153 RegisterProperty( PropertyStore* store, const std::string& name, Stringmap* storage) argument 158 RegisterProperty( PropertyStore* store, const std::string& name, Stringmaps* storage) argument 163 RegisterProperty( PropertyStore* store, const std::string& name, Strings* storage) argument 168 RegisterProperty( PropertyStore* store, const std::string& name, uint8_t* storage) argument 173 RegisterProperty( PropertyStore* store, const std::string& name, uint16_t* storage) argument 178 RegisterProperty( PropertyStore* store, const std::string& name, Uint16s* storage) argument 183 RegisterProperty( PropertyStore* store, const std::string& name, uint32_t* storage) argument [all...] |
H A D | default_profile.cc | 120 storage()->GetBool(kStorageId, kStorageArpGateway, 122 storage()->GetString(kStorageId, kStorageHostName, &manager_props->host_name); 123 storage()->GetBool(kStorageId, kStorageOfflineMode, 125 if (!storage()->GetString(kStorageId, 130 if (!storage()->GetInt(kStorageId, kStorageConnectionIdSalt, 135 if (!storage()->GetString(kStorageId, 141 if (!storage()->GetString(kStorageId, 147 if (!storage()->GetString(kStorageId, 152 if (!storage()->GetString(kStorageId, kStoragePortalURL, 157 if (!storage() [all...] |
H A D | default_profile_unittest.cc | 99 unique_ptr<MockStore> storage(new MockStore()); 101 EXPECT_CALL(*storage.get(), GetGroups()) 103 profile_->set_storage(storage.release()); 134 unique_ptr<MockStore> storage(new MockStore()); 135 EXPECT_CALL(*storage.get(), SetBool(DefaultProfile::kStorageId, 139 EXPECT_CALL(*storage.get(), SetString(DefaultProfile::kStorageId, 143 EXPECT_CALL(*storage.get(), SetString(DefaultProfile::kStorageId, 147 EXPECT_CALL(*storage.get(), SetBool(DefaultProfile::kStorageId, 151 EXPECT_CALL(*storage.get(), SetString(DefaultProfile::kStorageId, 155 EXPECT_CALL(*storage [all...] |
H A D | eap_credentials.cc | 286 void EapCredentials::Load(StoreInterface* storage, const string& id) { argument 288 storage->GetCryptedString(id, 291 storage->GetString(id, kStorageEapCertID, &cert_id_); 292 storage->GetString(id, kStorageEapClientCert, &client_cert_); 293 storage->GetCryptedString(id, kStorageEapIdentity, &identity_); 294 storage->GetString(id, kStorageEapKeyID, &key_id_); 296 storage->GetString(id, kStorageEapKeyManagement, &key_management); 298 storage->GetCryptedString(id, kStorageEapPassword, &password_); 299 storage->GetString(id, kStorageEapPIN, &pin_); 300 storage 337 Save(StoreInterface* storage, const string& id, bool save_credentials) const argument [all...] |
H A D | virtual_device_unittest.cc | 77 StrictMock<MockStore> storage; local 78 EXPECT_CALL(storage, ContainsGroup(_)).Times(0); 79 EXPECT_TRUE(device_->Load(&storage)); 83 StrictMock<MockStore> storage; local 84 EXPECT_CALL(storage, SetBool(_, _, _)).Times(0); // Or any type, really. 85 EXPECT_TRUE(device_->Save(&storage));
|
H A D | dhcp_properties_unittest.cc | 158 MockStore storage; local 159 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.VendorClass", _)) 161 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.Hostname", _)) 163 dhcp_properties_.Load(&storage, kStorageID); 168 MockStore storage; local 169 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.VendorClass", _)) 172 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.Hostname", _)) 175 dhcp_properties_.Load(&storage, kStorageID); 182 MockStore storage; local 185 EXPECT_CALL(storage, GetStrin 196 MockStore storage; local 210 MockStore storage; local [all...] |
H A D | pending_activation_store.cc | 101 LOG(ERROR) << "Empty storage directory path provided."; 105 std::unique_ptr<StoreInterface> storage( 107 bool already_exists = storage->IsNonEmpty(); 108 if (!storage->Open()) { 111 storage->MarkAsCorrupted(); 115 storage->SetHeader("Identifiers pending cellular activation."); 116 storage_.reset(storage.release()); 126 LOG(ERROR) << "Underlying storage not initialized."; 149 LOG(ERROR) << "Underlying storage not initialized."; 175 LOG(ERROR) << "Underlying storage no [all...] |
H A D | service.cc | 509 const StoreInterface& storage) const { 510 return IsLoadableFrom(storage) ? GetStorageIdentifier() : ""; 513 bool Service::IsLoadableFrom(const StoreInterface& storage) const { 514 return storage.ContainsGroup(GetStorageIdentifier()); 517 bool Service::Load(StoreInterface* storage) { argument 519 if (!storage->ContainsGroup(id)) { 526 storage->GetBool(id, kStorageAutoConnect, &auto_connect_); 528 storage->GetBool(id, kStorageFavorite, &retain_auto_connect_); 530 LoadString(storage, id, kStorageCheckPortal, kCheckPortalAuto, 532 LoadString(storage, i 605 Save(StoreInterface* storage) argument 1415 LoadString(StoreInterface* storage, const string& id, const string& key, const string& default_value, string* value) argument 1426 SaveString(StoreInterface* storage, const string& id, const string& key, const string& value, bool crypted, bool save) argument [all...] |
H A D | virtual_device.h | 48 bool Load(StoreInterface* storage) override; 49 bool Save(StoreInterface* storage) override;
|
H A D | dhcp_properties.cc | 81 void DhcpProperties::Load(StoreInterface* storage, const string& id) { argument 86 if (storage->GetString(id, GetFullPropertyName(name), &property_value)) { 93 void DhcpProperties::Save(StoreInterface* storage, const string& id) const { argument 101 storage->SetString(id, GetFullPropertyName(name), property_value); 106 storage->DeleteKey(id, GetFullPropertyName(name));
|
H A D | service_unittest.cc | 401 NiceMock<MockStore> storage; local 402 EXPECT_CALL(storage, ContainsGroup(storage_id_)) 405 EXPECT_EQ("", service_->GetLoadableStorageIdentifier(storage)); 406 EXPECT_EQ(storage_id_, service_->GetLoadableStorageIdentifier(storage)); 410 NiceMock<MockStore> storage; local 411 EXPECT_CALL(storage, ContainsGroup(storage_id_)) 414 EXPECT_FALSE(service_->IsLoadableFrom(storage)); 415 EXPECT_TRUE(service_->IsLoadableFrom(storage)); 453 NiceMock<MockStore> storage; local 454 EXPECT_CALL(storage, ContainsGrou 528 StrictMock<MockStore> storage; local 534 NiceMock<MockStore> storage; local 620 MockStore storage; local 629 MockStore storage; local 638 MockStore storage; local 646 MockStore storage; local 654 NiceMock<MockStore> storage; local 680 NiceMock<MockStore> storage; local 710 NiceMock<MockStore> storage; local 739 NiceMock<MockStore> storage; local 835 NiceMock<MockStore> storage; local 1013 NiceMock<MockStore> storage; local 1421 NiceMock<MockStore> storage; local 2004 NiceMock<MockStore> storage; local [all...] |
H A D | profile_unittest.cc | 98 MockStore* storage(new StrictMock<MockStore>()); 99 profile_->storage_.reset(storage); // Passes ownership 102 // If entry does not appear in storage, DeleteEntry() should return an error. 103 EXPECT_CALL(*storage, ContainsGroup(kEntryName)) 111 Mock::VerifyAndClearExpectations(storage); 115 EXPECT_CALL(*storage, ContainsGroup(kEntryName)) 119 EXPECT_CALL(*storage, DeleteGroup(kEntryName)) 121 EXPECT_CALL(*storage, Flush()) 129 Mock::VerifyAndClearExpectations(storage); 133 EXPECT_CALL(*storage, ContainsGrou [all...] |
H A D | mock_device.h | 56 MOCK_METHOD1(Load, bool(StoreInterface* storage)); 57 MOCK_METHOD1(Save, bool(StoreInterface* storage));
|
/system/connectivity/shill/vpn/ |
H A D | vpn_provider_unittest.cc | 257 FakeStore storage; local 258 storage.SetString("no_type", "Name", "No Type Entry"); 259 storage.SetString("no_vpn", "Type", "wimax"); 260 storage.SetString("vpn_no_provider_type", "Type", "vpn"); 261 storage.SetString("vpn_no_name", "Type", "vpn"); 262 storage.SetString("vpn_no_name", "Provider.Type", "openvpn"); 263 storage.SetString("vpn_no_host", "Type", "vpn"); 264 storage.SetString("vpn_no_host", "Provider.Type", "openvpn"); 265 storage.SetString("vpn_ho_host", "Name", "name"); 266 storage 322 FakeStore storage; local [all...] |
H A D | vpn_driver_unittest.cc | 193 MockStore storage; local 198 EXPECT_CALL(storage, GetString(kStorageID, _, _)) 200 EXPECT_CALL(storage, GetStringList(kStorageID, _, _)) 202 EXPECT_CALL(storage, GetString(_, kEapCaCertPemProperty, _)).Times(0); 203 EXPECT_CALL(storage, GetString(_, kOTPProperty, _)).Times(0); 204 EXPECT_CALL(storage, GetCryptedString(_, kOTPProperty, _)).Times(0); 205 EXPECT_CALL(storage, GetStringList(_, kOTPProperty, _)).Times(0); 207 EXPECT_CALL(storage, GetStringList(kStorageID, kEapCaCertPemProperty, _)) 209 EXPECT_CALL(storage, GetString(kStorageID, kPortProperty, _)) 211 EXPECT_CALL(storage, GetStrin 240 MockStore storage; local 269 MockStore storage; local [all...] |
H A D | mock_vpn_driver.h | 38 MOCK_METHOD2(Load, bool(StoreInterface* storage, 40 MOCK_METHOD3(Save, bool(StoreInterface* storage,
|
H A D | vpn_driver.cc | 63 bool VPNDriver::Load(StoreInterface* storage, const string& storage_id) { argument 74 if (storage->GetStringList(storage_id, property, &value)) { 82 storage->GetCryptedString(storage_id, property, &value) : 83 storage->GetString(storage_id, property, &value); 94 bool VPNDriver::Save(StoreInterface* storage, argument 108 storage->DeleteKey(storage_id, property); 112 storage->SetStringList(storage_id, property, value); 116 storage->DeleteKey(storage_id, property); 121 storage->SetCryptedString(storage_id, property, value); 123 storage [all...] |
/system/connectivity/shill/cellular/ |
H A D | cellular_service.cc | 247 bool CellularService::Load(StoreInterface* storage) { argument 249 if (!Service::Load(storage)) 253 LoadApn(storage, id, kStorageAPN, &apn_info_); 254 LoadApn(storage, id, kStorageLastGoodAPN, &last_good_apn_info_); 258 storage->GetString(id, kStoragePPPUsername, &ppp_username_); 259 storage->GetString(id, kStoragePPPPassword, &ppp_password_); 267 void CellularService::LoadApn(StoreInterface* storage, argument 271 if (!LoadApnField(storage, storage_group, keytag, kApnProperty, apn_info)) 273 LoadApnField(storage, storage_group, keytag, kApnUsernameProperty, apn_info); 274 LoadApnField(storage, storage_grou 277 LoadApnField(StoreInterface* storage, const string& storage_group, const string& keytag, const string& apntag, Stringmap* apn_info) argument 291 Save(StoreInterface* storage) argument 304 SaveApn(StoreInterface* storage, const string& storage_group, const Stringmap* apn_info, const string& keytag) argument 313 SaveApnField(StoreInterface* storage, const string& storage_group, const Stringmap* apn_info, const string& keytag, const string& apntag) argument [all...] |
/system/connectivity/shill/pppoe/ |
H A D | pppoe_service.cc | 152 bool PPPoEService::Load(StoreInterface* storage) { argument 153 if (!Service::Load(storage)) { 158 storage->GetString(id, kPPPoEUsernameProperty, &username_); 159 storage->GetString(id, kPPPoEPasswordProperty, &password_); 160 storage->GetInt(id, kPPPoELCPEchoIntervalProperty, &lcp_echo_interval_); 161 storage->GetInt(id, kPPPoELCPEchoFailureProperty, &lcp_echo_failure_); 162 storage->GetInt(id, kPPPoEMaxAuthFailureProperty, &max_auth_failure_); 167 bool PPPoEService::Save(StoreInterface* storage) { argument 168 if (!Service::Save(storage)) { 173 storage [all...] |
/system/core/liblog/ |
H A D | log_event_list.c | 45 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD]; member in struct:__anon1613 63 context->storage[context->pos + 0] = EVENT_TYPE_LIST; 82 memcpy(context->storage, msg, len); 128 context->storage[context->pos + 0] = EVENT_TYPE_LIST; 129 context->storage[context->pos + 1] = 0; 162 context->storage[context->pos + 0] = EVENT_TYPE_INT; 163 copy4LE(&context->storage[context->pos + 1], value); 198 context->storage[context->pos + 0] = EVENT_TYPE_LONG; 199 copy8LE(&context->storage[context->pos + 1], value); 232 context->storage[contex [all...] |
/system/update_engine/ |
H A D | metrics_utils.h | 56 // last time it was called for the same |storage| pointer. 58 // You should pass a pointer to a 64-bit integer in |storage| which 65 int64_t* storage,
|
H A D | metrics_utils_unittest.cc | 153 int64_t storage = 0; local 165 &storage, 170 &storage, 177 &storage, 181 &storage, 189 &storage, 193 &storage, 200 &storage, 204 &storage,
|
/system/connectivity/shill/wifi/ |
H A D | wifi_service.cc | 334 const StoreInterface& storage) const { 335 set<string> groups = storage.GetGroupsWithProperties(GetStorageProperties()); 350 bool WiFiService::IsLoadableFrom(const StoreInterface& storage) const { 351 return !storage.GetGroupsWithProperties(GetStorageProperties()).empty(); 361 bool WiFiService::Load(StoreInterface* storage) { argument 362 string id = GetLoadableStorageIdentifier(*storage); 367 // Set our storage identifier to match the storage name in the Profile. 371 if (!Service::Load(storage)) { 376 storage 403 Save(StoreInterface* storage) argument 1094 FixupServiceEntries(StoreInterface* storage) argument [all...] |
H A D | mock_wifi_provider.h | 51 MOCK_METHOD1(LoadAndFixupServiceEntries, void(Profile* storage)); 52 MOCK_CONST_METHOD1(Save, bool(StoreInterface* storage));
|
/system/core/include/utils/ |
H A D | VectorImpl.h | 102 virtual void do_construct(void* storage, size_t num) const = 0; 103 virtual void do_destroy(void* storage, size_t num) const = 0; 113 inline void _do_construct(void* storage, size_t num) const; 114 inline void _do_destroy(void* storage, size_t num) const;
|