/system/core/libcutils/ |
D | threads.c | 49 void* thread_store_get( thread_store_t* store ) in thread_store_get() argument 51 if (!store->has_tls) in thread_store_get() 54 return pthread_getspecific( store->tls ); in thread_store_get() 57 extern void thread_store_set( thread_store_t* store, in thread_store_set() argument 61 pthread_mutex_lock( &store->lock ); in thread_store_set() 62 if (!store->has_tls) { in thread_store_set() 63 if (pthread_key_create( &store->tls, destroy) != 0) { in thread_store_set() 64 pthread_mutex_unlock(&store->lock); in thread_store_set() 67 store->has_tls = 1; in thread_store_set() 69 pthread_mutex_unlock( &store->lock ); in thread_store_set() [all …]
|
/system/connectivity/shill/ |
D | property_store_unittest.cc | 111 PropertyStore store(Bind(&PropertyStoreTest::TestCallback, in TEST_P() local 115 EXPECT_FALSE(store.SetAnyProperty("", GetParam(), &error)); in TEST_P() 138 PropertyStore* store, const string& name, Error* error); 144 PropertyStore store(Bind(&PropertyStoreTest::TestCallback, in TYPED_TEST() local 148 PropertyStoreTest::RegisterProperty(&store, "some property", &property); in TYPED_TEST() 149 EXPECT_TRUE(store.Contains("some property")); in TYPED_TEST() 153 PropertyStore store(Bind(&PropertyStoreTest::TestCallback, in TYPED_TEST() local 157 PropertyStoreTest::RegisterProperty(&store, "some property", &property); in TYPED_TEST() 162 store, "some property", &read_value, &error)); in TYPED_TEST() 167 PropertyStore store(Bind(&PropertyStoreTest::TestCallback, in TYPED_TEST() local [all …]
|
D | property_store_unittest.h | 76 static bool GetProperty(const PropertyStore& store, const std::string& name, in GetProperty() argument 78 return store.GetBoolProperty(name, storage, error); in GetProperty() 81 static bool GetProperty(const PropertyStore& store, const std::string& name, in GetProperty() argument 83 return store.GetInt16Property(name, storage, error); in GetProperty() 86 static bool GetProperty(const PropertyStore& store, const std::string& name, in GetProperty() argument 88 return store.GetInt32Property(name, storage, error); in GetProperty() 91 static bool GetProperty(const PropertyStore& store, const std::string& name, in GetProperty() argument 93 return store.GetStringProperty(name, storage, error); in GetProperty() 96 static bool GetProperty(const PropertyStore& store, const std::string& name, in GetProperty() argument 98 return store.GetStringmapProperty(name, storage, error); in GetProperty() [all …]
|
D | static_ip_parameters_unittest.cc | 90 void ExpectPropertiesWithVersion(PropertyStore* store, in ExpectPropertiesWithVersion() argument 95 EXPECT_TRUE(store->GetStringProperty(property_prefix + ".Address", in ExpectPropertiesWithVersion() 99 EXPECT_TRUE(store->GetStringProperty(property_prefix + ".Gateway", in ExpectPropertiesWithVersion() 104 EXPECT_TRUE(store->GetInt32Property(property_prefix + ".Mtu", &int_value, in ExpectPropertiesWithVersion() 107 EXPECT_TRUE(store->GetStringProperty(property_prefix + ".NameServers", in ExpectPropertiesWithVersion() 113 EXPECT_TRUE(store->GetStringProperty(property_prefix + ".PeerAddress", in ExpectPropertiesWithVersion() 117 EXPECT_TRUE(store->GetInt32Property(property_prefix + ".Prefixlen", in ExpectPropertiesWithVersion() 122 void ExpectProperties(PropertyStore* store, const string& property_prefix) { in ExpectProperties() argument 123 ExpectPropertiesWithVersion(store, property_prefix, 0); in ExpectProperties() 134 void SetStaticPropertiesWithVersion(PropertyStore* store, int version) { in SetStaticPropertiesWithVersion() argument [all …]
|
D | dhcp_properties_unittest.cc | 62 PropertyStore store; in TEST_F() local 63 dhcp_properties_.InitPropertyStore(&store); in TEST_F() 68 EXPECT_FALSE(store.GetStringProperty("DHCPProperty.Hostname", in TEST_F() 74 EXPECT_FALSE(store.GetStringProperty("DHCPProperty.VendorClass", in TEST_F() 80 EXPECT_FALSE(store.GetStringProperty("DHCPProperty.NotAProp", in TEST_F() 87 PropertyStore store; in TEST_F() local 88 dhcp_properties_.InitPropertyStore(&store); in TEST_F() 92 EXPECT_TRUE(store.SetStringProperty("DHCPProperty.Hostname", kOverrideValue, &error)); in TEST_F() 97 PropertyStore store; in TEST_F() local 98 dhcp_properties_.InitPropertyStore(&store); in TEST_F() [all …]
|
D | eap_credentials.cc | 184 void EapCredentials::InitPropertyStore(PropertyStore* store) { in InitPropertyStore() argument 186 store->RegisterString(kEapAnonymousIdentityProperty, &anonymous_identity_); in InitPropertyStore() 187 store->RegisterString(kEapCertIdProperty, &cert_id_); in InitPropertyStore() 188 store->RegisterString(kEapClientCertProperty, &client_cert_); in InitPropertyStore() 189 store->RegisterString(kEapIdentityProperty, &identity_); in InitPropertyStore() 190 store->RegisterString(kEapKeyIdProperty, &key_id_); in InitPropertyStore() 191 HelpRegisterDerivedString(store, in InitPropertyStore() 195 HelpRegisterWriteOnlyDerivedString(store, in InitPropertyStore() 200 store->RegisterString(kEapPinProperty, &pin_); in InitPropertyStore() 201 store->RegisterString(kEapPrivateKeyProperty, &private_key_); in InitPropertyStore() [all …]
|
D | default_profile.cc | 95 PropertyStore* store = this->mutable_store(); in DefaultProfile() local 96 store->RegisterConstBool(kArpGatewayProperty, &manager_props.arp_gateway); in DefaultProfile() 97 store->RegisterConstString(kCheckPortalListProperty, in DefaultProfile() 99 store->RegisterConstString(kCountryProperty, &manager_props.country); in DefaultProfile() 100 store->RegisterConstString(kIgnoredDNSSearchPathsProperty, in DefaultProfile() 102 store->RegisterConstString(kLinkMonitorTechnologiesProperty, in DefaultProfile() 104 store->RegisterConstString(kNoAutoConnectTechnologiesProperty, in DefaultProfile() 106 store->RegisterConstBool(kOfflineModeProperty, &manager_props.offline_mode); in DefaultProfile() 107 store->RegisterConstString(kPortalURLProperty, &manager_props.portal_url); in DefaultProfile() 108 store->RegisterConstInt32(kPortalCheckIntervalProperty, in DefaultProfile() [all …]
|
D | key_value_store_unittest.cc | 611 KeyValueStore store; in TEST_F() local 612 store.SetString(kStringKey, kStringValue); in TEST_F() 613 store.SetStringmap(kStringmapKey, kStringmapValue); in TEST_F() 614 store.SetStrings(kStringsKey, kStringsValue); in TEST_F() 615 store.SetBool(kBoolKey, kBoolValue); in TEST_F() 616 store.SetInt(kInt32Key, kInt32Value); in TEST_F() 617 store.SetUint(kUint32Key, kUint32Value); in TEST_F() 618 store.SetByteArrays(kByteArraysKey, kByteArraysValue); in TEST_F() 619 store.SetInt16(kInt16Key, kInt16Value); in TEST_F() 620 store.SetRpcIdentifier(kRpcIdentifierKey, kRpcIdentifierValue); in TEST_F() [all …]
|
D | eap_credentials_unittest.cc | 147 PropertyStore store; in TEST_F() local 148 eap_.InitPropertyStore(&store); in TEST_F() 151 EXPECT_TRUE(store.SetStringProperty(kEapIdentityProperty, kIdentity, &error)); in TEST_F() 268 MockStore store; in TEST_F() local 270 EXPECT_CALL(store, GetCryptedString(_, _, _)).WillRepeatedly(Return(false)); in TEST_F() 271 EXPECT_CALL(store, GetString(_, _, _)).WillRepeatedly(Return(false)); in TEST_F() 275 EXPECT_CALL(store, GetCryptedString( in TEST_F() 279 EXPECT_CALL(store, GetString( in TEST_F() 283 EXPECT_CALL(store, GetCryptedString( in TEST_F() 287 eap_.Load(&store, kId); in TEST_F() [all …]
|
D | eap_credentials.h | 66 void InitPropertyStore(PropertyStore* store); 80 virtual void Load(StoreInterface* store, const std::string& id); 102 virtual void Save(StoreInterface* store, const std::string& id, 136 PropertyStore* store, 150 PropertyStore* store,
|
D | mock_dhcp_properties.h | 31 MOCK_CONST_METHOD2(Save, void(StoreInterface* store, const std::string& id)); 32 MOCK_METHOD2(Load, void(StoreInterface* store, const std::string& id));
|
D | dhcp_properties.h | 44 void InitPropertyStore(PropertyStore* store); 47 virtual void Load(StoreInterface* store, const std::string& id); 50 virtual void Save(StoreInterface* store, const std::string& id) const;
|
/system/core/bootstat/ |
D | boot_event_record_store_test.cpp | 134 BootEventRecordStore store; in TEST_F() local 135 store.SetStorePath(GetStorePathForTesting()); in TEST_F() 140 store.AddBootEvent("cenozoic"); in TEST_F() 142 auto events = store.GetAllBootEvents(); in TEST_F() 149 BootEventRecordStore store; in TEST_F() local 150 store.SetStorePath(GetStorePathForTesting()); in TEST_F() 155 store.AddBootEvent("cretaceous"); in TEST_F() 156 store.AddBootEvent("jurassic"); in TEST_F() 157 store.AddBootEvent("triassic"); in TEST_F() 165 auto events = store.GetAllBootEvents(); in TEST_F() [all …]
|
/system/weaved/buffet/ |
D | buffet_config.cc | 99 brillo::KeyValueStore store; in LoadDefaults() local 100 if (!store.Load(options_.defaults)) in LoadDefaults() 102 bool result = LoadDefaults(store, settings); in LoadDefaults() 119 bool BuffetConfig::LoadDefaults(const brillo::KeyValueStore& store, in LoadDefaults() argument 121 store.GetString(config_keys::kClientId, &settings->client_id); in LoadDefaults() 122 store.GetString(config_keys::kClientSecret, &settings->client_secret); in LoadDefaults() 123 store.GetString(config_keys::kApiKey, &settings->api_key); in LoadDefaults() 124 store.GetString(config_keys::kOAuthURL, &settings->oauth_url); in LoadDefaults() 125 store.GetString(config_keys::kServiceURL, &settings->service_url); in LoadDefaults() 126 store.GetString(config_keys::kOemName, &settings->oem_name); in LoadDefaults() [all …]
|
/system/update_engine/payload_generator/ |
D | payload_generation_config_unittest.cc | 28 brillo::KeyValueStore store; in TEST_F() local 30 store.LoadFromString("RUN_POSTINSTALL_root=true\n" in TEST_F() 33 EXPECT_TRUE(image_config.LoadPostInstallConfig(store)); in TEST_F() 43 brillo::KeyValueStore store; in TEST_F() local 45 store.LoadFromString("RUN_POSTINSTALL_root=true\n" in TEST_F() 48 EXPECT_FALSE(image_config.LoadPostInstallConfig(store)); in TEST_F()
|
/system/connectivity/shill/vpn/ |
D | vpn_driver_unittest.cc | 144 bool GetProviderPropertyString(const PropertyStore& store, 148 bool GetProviderPropertyStrings(const PropertyStore& store, 160 bool VPNDriverTest::GetProviderPropertyString(const PropertyStore& store, in GetProviderPropertyString() argument 165 EXPECT_TRUE(store.GetKeyValueStoreProperty( in GetProviderPropertyString() 176 bool VPNDriverTest::GetProviderPropertyStrings(const PropertyStore& store, in GetProviderPropertyStrings() argument 181 EXPECT_TRUE(store.GetKeyValueStoreProperty( in GetProviderPropertyStrings() 293 PropertyStore store; in TEST_F() local 294 driver_.InitPropertyStore(&store); in TEST_F() 299 EXPECT_FALSE(store.GetStringProperty(kPortProperty, nullptr, &error)); in TEST_F() 305 store.GetStringsProperty(kEapCaCertPemProperty, nullptr, &error)); in TEST_F() [all …]
|
/system/update_engine/update_manager/ |
D | real_config_provider.cc | 41 KeyValueStore store; in Init() local 44 store.Load(base::FilePath(root_prefix_ + kConfigFilePath)); in Init() 46 if (store.Load(base::FilePath(root_prefix_ + in Init() 51 store.Load(base::FilePath(root_prefix_ + kConfigFilePath)); in Init() 56 if (!store.GetBoolean(kConfigOptsIsOOBEEnabled, &is_oobe_enabled)) in Init()
|
/system/core/crash_reporter/ |
D | crash_reporter_logs_test.cc | 36 brillo::KeyValueStore store; in TEST() local 37 ASSERT_TRUE(store.Load(base::FilePath(kConfigFile))); in TEST() 39 EXPECT_TRUE(store.GetString(kUserCollectorSignature, &command)); in TEST()
|
/system/connectivity/shill/dbus/ |
D | chromeos_dbus_adaptor.cc | 57 bool ChromeosDBusAdaptor::SetProperty(PropertyStore* store, in SetProperty() argument 62 store->SetAnyProperty(name, value, &e); in SetProperty() 68 const PropertyStore& store, in GetProperties() argument 72 store.GetProperties(out_properties, &e); in GetProperties() 77 bool ChromeosDBusAdaptor::ClearProperty(PropertyStore* store, in ClearProperty() argument 81 store->ClearProperty(name, &e); in ClearProperty()
|
D | chromeos_supplicant_bss_proxy.cc | 61 KeyValueStore store; in PropertiesChanged() local 62 KeyValueStore::ConvertFromVariantDictionary(properties, &store); in PropertiesChanged() 63 wifi_endpoint_->PropertiesChanged(store); in PropertiesChanged()
|
/system/connectivity/shill/wimax/ |
D | wimax_provider_unittest.cc | 432 FakeStore store; in TEST_F() local 433 store.SetString("no_type", "Name", "No Type Entry"); in TEST_F() 434 store.SetString("no_wimax", "Type", "vpn"); in TEST_F() 435 store.SetString("wimax_network_01234567", "Name", "network"); in TEST_F() 436 store.SetString("wimax_network_01234567", "Type", "wimax"); in TEST_F() 437 store.SetString("wimax_network_01234567", "NetworkId", "01234567"); in TEST_F() 438 store.SetString("no_network_id", "Type", "wimax"); in TEST_F() 439 store.SetString("no_name", "Type", "wimax"); in TEST_F() 440 store.SetString("no_name", "NetworkId", "76543210"); in TEST_F() 446 .WillRepeatedly(Return(&store)); in TEST_F() [all …]
|
/system/connectivity/shill/cellular/ |
D | cellular.cc | 1187 PropertyStore* store = this->mutable_store(); in RegisterProperties() local 1191 store->RegisterConstString(kDBusServiceProperty, &dbus_service_); in RegisterProperties() 1192 store->RegisterConstString(kDBusObjectProperty, &dbus_path_); in RegisterProperties() 1194 store->RegisterUint16(kScanIntervalProperty, &scan_interval_); in RegisterProperties() 1198 store->RegisterConstStringmap(kHomeProviderProperty, &home_provider_); in RegisterProperties() 1199 store->RegisterConstString(kCarrierProperty, &carrier_); in RegisterProperties() 1200 store->RegisterConstBool(kSupportNetworkScanProperty, &scanning_supported_); in RegisterProperties() 1201 store->RegisterConstString(kEsnProperty, &esn_); in RegisterProperties() 1202 store->RegisterConstString(kFirmwareRevisionProperty, &firmware_revision_); in RegisterProperties() 1203 store->RegisterConstString(kHardwareRevisionProperty, &hardware_revision_); in RegisterProperties() [all …]
|
D | cellular_service.cc | 85 PropertyStore* store = this->mutable_store(); in CellularService() local 89 store->RegisterConstString(kActivationStateProperty, &activation_state_); in CellularService() 93 store->RegisterConstStringmap(kCellularLastGoodApnProperty, in CellularService() 95 store->RegisterConstString(kNetworkTechnologyProperty, &network_technology_); in CellularService() 99 store->RegisterConstStringmap(kPaymentPortalProperty, &olp_); in CellularService() 100 store->RegisterConstString(kRoamingStateProperty, &roaming_state_); in CellularService() 101 store->RegisterConstStringmap(kServingOperatorProperty, &serving_operator_); in CellularService() 102 store->RegisterConstString(kUsageURLProperty, &usage_url_); in CellularService() 103 store->RegisterString(kCellularPPPUsernameProperty, &ppp_username_); in CellularService() 104 store->RegisterWriteOnlyString(kCellularPPPPasswordProperty, &ppp_password_); in CellularService()
|
/system/update_engine/ |
D | image_properties_chromeos.cc | 49 std::string GetStringWithDefault(const brillo::KeyValueStore& store, in GetStringWithDefault() argument 53 if (store.GetString(key, &result)) in GetStringWithDefault() 69 void LoadLsbRelease(LsbReleaseSource source, brillo::KeyValueStore* store) { in LoadLsbRelease() argument 75 store->Load(base::FilePath(path + kLsbRelease)); in LoadLsbRelease()
|
/system/connectivity/shill/pppoe/ |
D | pppoe_service.cc | 69 PropertyStore* store = this->mutable_store(); in PPPoEService() local 70 store->RegisterString(kPPPoEUsernameProperty, &username_); in PPPoEService() 71 store->RegisterString(kPPPoEPasswordProperty, &password_); in PPPoEService() 72 store->RegisterInt32(kPPPoELCPEchoIntervalProperty, &lcp_echo_interval_); in PPPoEService() 73 store->RegisterInt32(kPPPoELCPEchoFailureProperty, &lcp_echo_failure_); in PPPoEService() 74 store->RegisterInt32(kPPPoEMaxAuthFailureProperty, &max_auth_failure_); in PPPoEService()
|