/system/update_engine/ |
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,
|
H A D | metrics_utils.cc | 289 int64_t* storage, 294 if (*storage != 0) { 295 Time stored_time = Time::FromInternalValue(*storage); 299 *storage = now.ToInternalValue(); 288 MonotonicDurationHelper(SystemState* system_state, int64_t* storage, TimeDelta* out_duration) argument
|
/system/connectivity/shill/ |
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 | property_accessor_unittest.cc | 202 string storage; local 205 string orig_value = storage; 206 StringAccessor accessor(new PropertyAccessor<string>(&storage)); 207 EXPECT_EQ(storage, accessor->Get(&error)); 222 storage = "nooooo"; 223 EXPECT_EQ(storage, accessor->Get(&error)); 227 StringAccessor accessor(new ConstPropertyAccessor<string>(&storage)); 228 EXPECT_EQ(storage, accessor->Get(&error)); 234 EXPECT_EQ(storage, accessor->Get(&error)); 236 storage [all...] |
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 | profile.h | 83 // Set up persistent storage for this Profile. 87 // Set up stub storage for this Profile. The data will NOT be 91 // Remove the persistent storage for this Profile. It is an error to 92 // do so while the underlying storage is open via InitStorage() or 103 // Set the storage inteface. This is used for testing purposes. It 104 // takes ownership of |storage|. 105 void set_storage(StoreInterface* storage); 205 // Returns a read-only copy of the backing storage of the profile. 223 StoreInterface* storage() { return storage_.get(); } function in class:shill::Profile 260 // Allows this profile to be backed with on-disk storage [all...] |
H A D | static_ip_parameters.cc | 151 StoreInterface* storage, const string& storage_id) { 159 if (storage->GetInt(storage_id, name, &value)) { 169 if (storage->GetString(storage_id, name, &value)) { 178 // Name servers field is stored in storage as comma separated string. 181 if (storage->GetString(storage_id, name, &value)) { 198 StoreInterface* storage, const string& storage_id) { 207 storage->SetInt(storage_id, name, args_.GetInt(property.name)); 213 storage->SetString(storage_id, name, args_.GetString(property.name)); 219 // Name servers field is stored in storage as comma separated string. 221 storage 150 Load( StoreInterface* storage, const string& storage_id) argument 197 Save( StoreInterface* storage, const string& storage_id) argument [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 | 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...] |
/system/update_engine/common/ |
H A D | prefs.h | 32 // in a given storage passed during construction. 60 explicit PrefsBase(StorageInterface* storage) : storage_(storage) {} argument 82 // The concrete implementation of the storage used for the keys. 132 // The concrete file storage implementation. 161 // The concrete memory storage implementation.
|
/system/connectivity/shill/vpn/ |
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...] |
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 | vpn_provider.cc | 95 bool VPNProvider::GetServiceParametersFromStorage(const StoreInterface* storage, argument 102 if (!storage->GetString(entry_name, kTypeProperty, &service_type) || 108 if (!storage->GetString(entry_name, kProviderTypeProperty, vpn_type_ptr) || 114 if (!storage->GetString(entry_name, kNameProperty, name_ptr) || 120 if (!storage->GetString(entry_name, kProviderHostProperty, host_ptr) || 193 const StoreInterface* storage = profile->GetConstStorage(); local 196 for (const auto& group : storage->GetGroupsWithProperties(args)) { 200 if (!GetServiceParametersFromStorage(storage, 237 << " storage id " << storage_id;
|
H A D | vpn_service.cc | 127 bool VPNService::Load(StoreInterface* storage) { argument 128 return Service::Load(storage) && 129 driver_->Load(storage, GetStorageIdentifier()); 132 bool VPNService::Save(StoreInterface* storage) { argument 133 return Service::Save(storage) && 134 driver_->Save(storage, GetStorageIdentifier(), save_credentials()); 240 // Update the storage identifier before invoking DeleteEntry to prevent it
|
H A D | vpn_service_unittest.cc | 197 NiceMock<MockStore> storage; local 198 static const char kStorageID[] = "storage-id"; 200 EXPECT_CALL(storage, ContainsGroup(kStorageID)).WillOnce(Return(true)); 201 EXPECT_CALL(*driver_, Load(&storage, kStorageID)) 203 EXPECT_TRUE(service_->Load(&storage)); 207 NiceMock<MockStore> storage; local 208 static const char kStorageID[] = "storage-id"; 210 EXPECT_CALL(*driver_, Save(&storage, kStorageID, false)) 212 EXPECT_TRUE(service_->Save(&storage)); 216 NiceMock<MockStore> storage; local [all...] |
/system/connectivity/shill/wimax/ |
H A D | wimax_service_unittest.cc | 234 NiceMock<MockStore> storage; local 236 EXPECT_CALL(storage, SetString(storage_id, _, _)) 238 EXPECT_CALL(storage, DeleteKey(storage_id, _)).WillRepeatedly(Return(true)); 239 EXPECT_CALL(storage, SetString(storage_id, 242 EXPECT_TRUE(service_->Save(&storage));
|
H A D | wimax_service.cc | 69 // Initialize a default storage identifier based on the service's unique 262 bool WiMaxService::Save(StoreInterface* storage) { argument 264 if (!Service::Save(storage)) { 268 storage->SetString(id, kStorageNetworkId, network_id_);
|
/system/connectivity/shill/cellular/ |
H A D | cellular_service_unittest.cc | 417 NiceMock<MockStore> storage; local 418 EXPECT_CALL(storage, ContainsGroup(service_->GetStorageIdentifier())) 420 EXPECT_TRUE(service_->Load(&storage)); 443 NiceMock<MockStore> storage; local 444 EXPECT_CALL(storage, ContainsGroup(_)).WillRepeatedly(Return(true)); 445 EXPECT_CALL(storage, GetString(_, _, _)).WillRepeatedly(Return(true)); 459 EXPECT_CALL(storage, 465 EXPECT_CALL(storage, 470 EXPECT_TRUE(service_->Load(&storage));
|
/system/connectivity/shill/net/ |
H A D | ip_address_unittest.cc | 89 sockaddr_storage storage = {}; local 90 auto addr = reinterpret_cast<sockaddr*>(&storage); 118 EXPECT_EQ(0, memcmp(&storage2, &storage, sizeof(storage2)));
|
/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/include/utils/ |
H A D | SortedVector.h | 127 virtual void do_construct(void* storage, size_t num) const; 128 virtual void do_destroy(void* storage, size_t num) const; 243 void SortedVector<TYPE>::do_construct(void* storage, size_t num) const { argument 244 construct_type( reinterpret_cast<TYPE*>(storage), num ); 248 void SortedVector<TYPE>::do_destroy(void* storage, size_t num) const { argument 249 destroy_type( reinterpret_cast<TYPE*>(storage), num );
|
/system/core/liblog/ |
H A D | log_event_list.c | 45 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD]; member in struct:__anon1614 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/connectivity/shill/dhcp/ |
H A D | dhcpv4_config_unittest.cc | 137 MockStore storage; local 140 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.Hostname", _)) 144 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.Hostname", _)) 148 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.VendorClass", _)) 152 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.VendorClass", _)) 155 dhcp_props.Load(&storage, kStorageID); 172 MockStore storage; local 175 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.Hostname", _)) 179 EXPECT_CALL(storage, GetString(kStorageID, "DHCPProperty.Hostname", _)) 183 EXPECT_CALL(storage, GetStrin [all...] |