Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/system/bt/gd/storage/
Dconfig_cache_test.cc43 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local
44 config.SetProperty("A", "B", "C"); in TEST()
45 auto value = config.GetProperty("A", "B"); in TEST()
51 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local
52 ASSERT_DEATH({ config.SetProperty("", "B", "C"); }, "Empty section name not allowed"); in TEST()
53 ASSERT_DEATH({ config.SetProperty("A", "", "C"); }, "Empty property name not allowed"); in TEST()
55 config.SetProperty("A", "B", ""); in TEST()
56 auto value = config.GetProperty("A", "B"); in TEST()
62 ConfigCache config(2, Device::kLinkKeyProperties); in TEST() local
63 config.SetProperty("A", "B", "C"); in TEST()
[all …]
Dmutation_test.cc33 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local
35 config.SetProperty("A", "B", "C"); in TEST()
36 config.SetProperty("AA:BB:CC:DD:EE:FF", "B", "C"); in TEST()
37 config.SetProperty("AA:BB:CC:DD:EE:FF", "C", "D"); in TEST()
38 config.SetProperty("CC:DD:EE:FF:00:11", "LinkKey", "AABBAABBCCDDEE"); in TEST()
39 Mutation mutation(&config, &memory_only_config); in TEST()
43 ASSERT_THAT(config.GetPersistentSections(), ElementsAre("CC:DD:EE:FF:00:11")); in TEST()
44 Mutation mutation2(&config, &memory_only_config); in TEST()
47 …ASSERT_THAT(config.GetPersistentSections(), ElementsAre("CC:DD:EE:FF:00:11", "AA:BB:CC:DD:EE:FF")); in TEST()
51 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local
[all …]
Dconfig_cache_helper_test.cc34 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local
36 ConfigCacheHelper(config).SetBool("A", "B", true); in TEST()
37 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("true"))); in TEST()
38 ASSERT_THAT(ConfigCacheHelper(config).GetBool("A", "B"), Optional(IsTrue())); in TEST()
40 ConfigCacheHelper(config).SetBool("A", "B", false); in TEST()
41 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("false"))); in TEST()
42 ASSERT_THAT(ConfigCacheHelper(config).GetBool("A", "B"), Optional(IsFalse())); in TEST()
46 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local
48 ConfigCacheHelper(config).SetUint64("A", "B", 123); in TEST()
49 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("123"))); in TEST()
[all …]
Ddevice_test.cc36 ConfigCache config(10, Device::kLinkKeyProperties); in TEST() local
41 …Device device(&config, &memory_only_config, address, Device::ConfigKeyAddressType::LEGACY_KEY_ADDR… in TEST()
47 config.SetProperty(address2.ToString(), "Name", "hello"); in TEST()
48 …Device device2(&config, &memory_only_config, address2, Device::ConfigKeyAddressType::LEGACY_KEY_AD… in TEST()
54 …Device device3(&config, &memory_only_config, address3, Device::ConfigKeyAddressType::LEGACY_KEY_AD… in TEST()
61 ConfigCache config(10, Device::kLinkKeyProperties); in TEST() local
66 …Device device(&config, &memory_only_config, address, Device::ConfigKeyAddressType::CLASSIC_ADDRESS… in TEST()
72 config.SetProperty(address2.ToString(), "Name", "hello"); in TEST()
73 …Device device2(&config, &memory_only_config, address2, Device::ConfigKeyAddressType::CLASSIC_ADDRE… in TEST()
79 …Device device3(&config, &memory_only_config, address3, Device::ConfigKeyAddressType::CLASSIC_ADDRE… in TEST()
[all …]
Dlegacy_config_file_test.cc39 ConfigCache config(100, Device::kLinkKeyProperties); in TEST() local
40 config.SetProperty("A", "B", "C"); in TEST()
41 config.SetProperty("AA:BB:CC:DD:EE:FF", "B", "C"); in TEST()
42 config.SetProperty("AA:BB:CC:DD:EE:FF", "C", "D"); in TEST()
43 config.SetProperty("CC:DD:EE:FF:00:11", "LinkKey", "AABBAABBCCDDEE"); in TEST()
44 EXPECT_TRUE(config.HasProperty("CC:DD:EE:FF:00:11", "LinkKey")); in TEST()
45 EXPECT_THAT(config.GetPersistentSections(), ElementsAre("CC:DD:EE:FF:00:11")); in TEST()
47 EXPECT_TRUE(LegacyConfigFile::FromPath(temp_config.string()).Write(config)); in TEST()
51 config.RemoveSection("AA:BB:CC:DD:EE:FF"); in TEST()
52 EXPECT_EQ(config, *config_read); in TEST()
[all …]
Dadapter_config_test.cc34 ConfigCache config(10, Device::kLinkKeyProperties); in TEST() local
36 AdapterConfig adapter_config(&config, &memory_only_config, "Adapter"); in TEST()
41 ConfigCache config(10, Device::kLinkKeyProperties); in TEST() local
44 AdapterConfig adapter_config(&config, &memory_only_config, "Adapter"); in TEST()
46 Mutation mutation(&config, &memory_only_config); in TEST()
53 ConfigCache config(10, Device::kLinkKeyProperties); in TEST() local
56 AdapterConfig adapter_config_1(&config, &memory_only_config, "Adapter"); in TEST()
57 AdapterConfig adapter_config_2(&config, &memory_only_config, "Adapter"); in TEST()
60 AdapterConfig adapter_config_3(&config, &memory_only_config_2, "Adapter"); in TEST()
Dle_device_test.cc37 ConfigCache config(10, Device::kLinkKeyProperties); in TEST() local
40 LeDevice device(&config, &memory_only_config, address.ToString()); in TEST()
45 ConfigCache config(10, Device::kLinkKeyProperties); in TEST() local
48 LeDevice device(&config, &memory_only_config, address.ToString()); in TEST()
50 Mutation mutation(&config, &memory_only_config); in TEST()
57 ConfigCache config(10, Device::kLinkKeyProperties); in TEST() local
60 LeDevice device1(&config, &memory_only_config, address.ToString()); in TEST()
61 LeDevice device2(&config, &memory_only_config, address.ToString()); in TEST()
64 LeDevice device3(&config, &memory_only_config, address3.ToString()); in TEST()
Dclassic_device_test.cc37 ConfigCache config(10, Device::kLinkKeyProperties); in TEST() local
40 ClassicDevice device(&config, &memory_only_config, address.ToString()); in TEST()
45 ConfigCache config(10, Device::kLinkKeyProperties); in TEST() local
48 ClassicDevice device(&config, &memory_only_config, address.ToString()); in TEST()
50 Mutation mutation(&config, &memory_only_config); in TEST()
57 ConfigCache config(10, Device::kLinkKeyProperties); in TEST() local
60 ClassicDevice device1(&config, &memory_only_config, address.ToString()); in TEST()
61 ClassicDevice device2(&config, &memory_only_config, address.ToString()); in TEST()
64 ClassicDevice device3(&config, &memory_only_config, address3.ToString()); in TEST()
Dstorage_module_test.cc147 auto config = LegacyConfigFile::FromPath(temp_config_.string()).Read(10); in TEST_F() local
148 ASSERT_TRUE(config); in TEST_F()
149 ASSERT_TRUE(config->HasSection(StorageModule::kInfoSection)); in TEST_F()
151config->GetProperty(StorageModule::kInfoSection, StorageModule::kFileSourceProperty), Optional(Str… in TEST_F()
154 …auto timestamp = config->GetProperty(StorageModule::kInfoSection, StorageModule::kTimeCreatedPrope… in TEST_F()
231 auto config = bluetooth::os::ReadSmallFile(temp_config_.string()); in TEST_F() local
232 ASSERT_TRUE(config); in TEST_F()
233 ASSERT_EQ(*config, kReadTestConfigCorrected); in TEST_F()
254 auto config = LegacyConfigFile::FromPath(temp_config_.string()).Read(10); in TEST_F() local
255 ASSERT_TRUE(config); in TEST_F()
[all …]
/system/core/rootdir/
Dinit.usb.configfs.rc1 on property:sys.usb.config=none && property:sys.usb.configfs=1
2 write /config/usb_gadget/g1/UDC "none"
5 write /config/usb_gadget/g1/bDeviceClass 0
6 write /config/usb_gadget/g1/bDeviceSubClass 0
7 write /config/usb_gadget/g1/bDeviceProtocol 0
8 rm /config/usb_gadget/g1/configs/b.1/f1
9 rm /config/usb_gadget/g1/configs/b.1/f2
10 rm /config/usb_gadget/g1/configs/b.1/f3
11 rmdir /config/usb_gadget/g1/functions/rndis.gs4
12 setprop sys.usb.state ${sys.usb.config}
[all …]
/system/nfc/utils/test/
Dconfig_test.cc66 ConfigFile config; in TEST() local
67 config.parseFromString(SIMPLE_CONFIG); in TEST()
68 EXPECT_FALSE(config.hasKey("UNKNOWN_VALUE")); in TEST()
69 EXPECT_FALSE(config.hasKey("COMMENTED_OUT_VALUE")); in TEST()
70 EXPECT_TRUE(config.hasKey("NUM_VALUE")); in TEST()
71 EXPECT_TRUE(config.hasKey("STRING_VALUE")); in TEST()
72 EXPECT_TRUE(config.hasKey("BYTES_VALUE")); in TEST()
76 ConfigFile config; in TEST() local
77 config.parseFromString(SIMPLE_CONFIG); in TEST()
78 EXPECT_EQ(config.getUnsigned("NUM_VALUE"), 42u); in TEST()
[all …]
/system/bt/osi/test/
Dconfig_test.cc91 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F() local
92 ASSERT_NE(config, nullptr); in TEST_F()
93 EXPECT_TRUE(config->Has("DID")); in TEST_F()
94 auto section_iter = config->Find("DID"); in TEST_F()
95 ASSERT_NE(section_iter, config->sections.end()); in TEST_F()
96 EXPECT_FALSE(config->Has("random")); in TEST_F()
97 EXPECT_EQ(config->Find("random"), config->sections.end()); in TEST_F()
101 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F() local
102 ASSERT_NE(config, nullptr); in TEST_F()
103 EXPECT_TRUE(config->Has("DID")); in TEST_F()
[all …]
/system/bt/gd/hci/
Dle_advertising_manager.cc46 …ingConfig::ExtendedAdvertisingConfig(const AdvertisingConfig& config) : AdvertisingConfig(config) { in ExtendedAdvertisingConfig() argument
47 switch (config.event_type) { in ExtendedAdvertisingConfig()
70 if (config.address_type == AddressType::PUBLIC_DEVICE_ADDRESS) { in ExtendedAdvertisingConfig()
72 } else if (config.address_type == AddressType::RANDOM_DEVICE_ADDRESS) { in ExtendedAdvertisingConfig()
171 void create_advertiser(AdvertiserId id, const AdvertisingConfig& config, in create_advertiser()
188 config.interval_min, in create_advertiser()
189 config.interval_max, in create_advertiser()
190 config.event_type, in create_advertiser()
191 config.address_type, in create_advertiser()
192 config.peer_address_type, in create_advertiser()
[all …]
/system/extras/profcollectd/libprofcollectd/
Dscheduler.cpp63 bool ClearOnConfigChange(const ProfcollectdScheduler::Config& config) { in ClearOnConfigChange() argument
64 const fs::path configFile = config.profileOutputDir / "config.json"; in ClearOnConfigChange()
73 if (oldConfig != config) { in ClearOnConfigChange()
75 ClearDir(config.traceOutputDir); in ClearOnConfigChange()
76 ClearDir(config.profileOutputDir); in ClearOnConfigChange()
80 ofs << config; in ClearOnConfigChange()
114 config.buildFingerprint = GetProperty("ro.build.fingerprint", "unknown"); in ReadConfig()
115 config.collectionInterval = std::chrono::seconds( in ReadConfig()
118 config.samplingPeriod = std::chrono::milliseconds(GetIntProperty( in ReadConfig()
120 config.traceOutputDir = GetProperty("profcollectd.trace_output_dir", in ReadConfig()
[all …]
/system/bt/main/
Dstack_config.cc37 static std::unique_ptr<config_t> config; variable
53 config = config_new(path); in init()
54 if (!config) { in init()
56 config = config_new_empty(); in init()
63 config.reset(); in clean_up()
77 return config_get_bool(*config, CONFIG_DEFAULT_SECTION, in get_trace_config_enabled()
82 return config_get_bool(*config, CONFIG_DEFAULT_SECTION, PTS_AVRCP_TEST, in get_pts_avrcp_test()
87 return config_get_bool(*config, CONFIG_DEFAULT_SECTION, PTS_SECURE_ONLY_MODE, in get_pts_secure_only_mode()
92 return config_get_bool(*config, CONFIG_DEFAULT_SECTION, in get_pts_conn_updates_disabled()
97 return config_get_bool(*config, CONFIG_DEFAULT_SECTION, in get_pts_crosskey_sdp_disable()
[all …]
Dbte_conf.cc36 std::unique_ptr<config_t> config = config_new(p_path); in bte_load_did_conf() local
37 if (!config) { in bte_load_did_conf()
46 if (!config_has_section(*config, section_name)) { in bte_load_did_conf()
53 config_get_int(*config, section_name, "vendorId", LMP_COMPID_GOOGLE); in bte_load_did_conf()
55 *config, section_name, "vendorIdSource", DI_VENDOR_ID_SOURCE_BTSIG); in bte_load_did_conf()
56 record.product = config_get_int(*config, section_name, "productId", 0); in bte_load_did_conf()
57 record.version = config_get_int(*config, section_name, "version", 0); in bte_load_did_conf()
59 config_get_bool(*config, section_name, "primaryRecord", false); in bte_load_did_conf()
63 config_get_string(*config, section_name, "clientExecutableURL", &empty) in bte_load_did_conf()
68 config_get_string(*config, section_name, "serviceDescription", &empty) in bte_load_did_conf()
[all …]
/system/update_engine/payload_generator/
Ddelta_diff_generator.cc57 const PayloadGenerationConfig& config, in PartitionProcessor() argument
63 : config_(config), in PartitionProcessor()
93 bool GenerateUpdatePayloadFile(const PayloadGenerationConfig& config, in GenerateUpdatePayloadFile() argument
97 if (!config.version.Validate()) { in GenerateUpdatePayloadFile()
98 LOG(ERROR) << "Unsupported major.minor version: " << config.version.major in GenerateUpdatePayloadFile()
99 << "." << config.version.minor; in GenerateUpdatePayloadFile()
105 TEST_AND_RETURN_FALSE(payload.Init(config)); in GenerateUpdatePayloadFile()
119 if (config.is_delta) { in GenerateUpdatePayloadFile()
120 TEST_AND_RETURN_FALSE(config.source.partitions.size() == in GenerateUpdatePayloadFile()
121 config.target.partitions.size()); in GenerateUpdatePayloadFile()
[all …]
/system/core/healthd/
Dcharger_test.cpp119 void healthd_board_init(struct healthd_config* config) { in healthd_board_init() argument
120 config->periodic_chores_interval_fast = 60; in healthd_board_init()
121 config->periodic_chores_interval_slow = 600; in healthd_board_init()
123 config->batteryStatusPath = createFile("/data/local/tmp/batteryStatus", "Not charging"); in healthd_board_init()
124 config->batteryHealthPath = createFile("/data/local/tmp/batteryHealth", "Unspecified failure"); in healthd_board_init()
125 config->batteryPresentPath = createFile("/data/local/tmp/batteryPresent", "1"); in healthd_board_init()
126 config->batteryCapacityPath = createFile("/data/local/tmp/batteryCapacity", "47"); in healthd_board_init()
127 config->batteryVoltagePath = createFile("/data/local/tmp/batteryVoltage", "45000"); in healthd_board_init()
128 config->batteryTemperaturePath = createFile("/data/local/tmp/batteryTemperature", "987"); in healthd_board_init()
129 config->batteryTechnologyPath = createFile("/data/local/tmp/batteryTechnology", "NiCd"); in healthd_board_init()
[all …]
/system/bt/service/
Da2dp_source.cc51 btav_a2dp_codec_config_t CodecConfigToFluoride(const A2dpCodecConfig& config) { in CodecConfigToFluoride() argument
53 .codec_type = static_cast<btav_a2dp_codec_index_t>(config.codec_type()), in CodecConfigToFluoride()
55 static_cast<btav_a2dp_codec_priority_t>(config.codec_priority()), in CodecConfigToFluoride()
57 static_cast<btav_a2dp_codec_sample_rate_t>(config.sample_rate()), in CodecConfigToFluoride()
59 config.bits_per_sample()), in CodecConfigToFluoride()
61 static_cast<btav_a2dp_codec_channel_mode_t>(config.channel_mode()), in CodecConfigToFluoride()
62 .codec_specific_1 = config.codec_specific_1(), in CodecConfigToFluoride()
63 .codec_specific_2 = config.codec_specific_2(), in CodecConfigToFluoride()
64 .codec_specific_3 = config.codec_specific_3(), in CodecConfigToFluoride()
65 .codec_specific_4 = config.codec_specific_4(), in CodecConfigToFluoride()
[all …]
/system/bt/osi/src/
Dconfig.cc69 static bool config_parse(FILE* fp, config_t* config);
74 static auto section_find(T& config, const std::string& section) { in section_find() argument
76 config.sections.begin(), config.sections.end(), in section_find()
80 static const entry_t* entry_find(const config_t& config, in entry_find() argument
83 auto sec = section_find(config, section); in entry_find()
84 if (sec == config.sections.end()) return nullptr; in entry_find()
100 std::unique_ptr<config_t> config = config_new_empty(); in config_new() local
109 if (!config_parse(fp, config.get())) { in config_new()
110 config.reset(); in config_new()
114 return config; in config_new()
[all …]
/system/bt/osi/include/
Dconfig.h69 bool config_has_section(const config_t& config, const std::string& section);
73 bool config_has_key(const config_t& config, const std::string& section,
79 int config_get_int(const config_t& config, const std::string& section,
85 uint64_t config_get_uint64(const config_t& config, const std::string& section,
91 bool config_get_bool(const config_t& config, const std::string& section,
98 const std::string* config_get_string(const config_t& config,
105 void config_set_int(config_t* config, const std::string& section,
110 void config_set_uint64(config_t* config, const std::string& section,
115 void config_set_bool(config_t* config, const std::string& section,
120 void config_set_string(config_t* config, const std::string& section,
[all …]
/system/core/fastboot/fuzzy_fastboot/
Dextensions.cpp100 bool ExtractPartitions(tinyxml2::XMLConstHandle handle, Configuration* config) { in ExtractPartitions() argument
119 if (XMLAssert(config->partitions.find(name) == config->partitions.end(), part, in ExtractPartitions()
126 config->partitions[name] = part_info; in ExtractPartitions()
132 bool ExtractPacked(tinyxml2::XMLConstHandle handle, Configuration* config) { in ExtractPacked() argument
142 XMLAssert(config->partitions.find(name) == config->partitions.end(), part, in ExtractPacked()
144 XMLAssert(config->partitions.find(name) == config->partitions.end(), part, in ExtractPacked()
155 if (XMLAssert(config->partitions.find(text) != config->partitions.end(), child, in ExtractPacked()
189 config->packed[name] = packed_info; in ExtractPacked()
195 bool ExtractGetVars(tinyxml2::XMLConstHandle handle, Configuration* config) { in ExtractGetVars() argument
202 if (XMLAssert(config->getvars.find(key) == config->getvars.end(), var, in ExtractGetVars()
[all …]
/system/extras/simpleperf/
Dgenerate_event_type_table.py45 for config in hardware_configs:
46 event_type_name = config
47 event_config = "PERF_COUNT_HW_" + config.replace('-', '_').upper()
67 for config in software_configs:
68 if isinstance(config, list):
69 event_type_name = config[0]
70 event_config = config[1]
72 event_type_name = config
73 event_config = "PERF_COUNT_SW_" + config.replace('-', '_').upper()
/system/bt/gd/hci/facade/
Dle_advertising_manager_facade.cc53 …AdvertisingConfigFromProto(const AdvertisingConfig& config_proto, hci::AdvertisingConfig* config) { in AdvertisingConfigFromProto() argument
55 config->advertisement.push_back(GapDataFromProto(elem)); in AdvertisingConfigFromProto()
59 config->scan_response.push_back(GapDataFromProto(elem)); in AdvertisingConfigFromProto()
66 config->interval_min = static_cast<uint16_t>(config_proto.interval_min()); in AdvertisingConfigFromProto()
72 config->interval_max = static_cast<uint16_t>(config_proto.interval_max()); in AdvertisingConfigFromProto()
74 config->event_type = static_cast<hci::AdvertisingType>(config_proto.event_type()); in AdvertisingConfigFromProto()
76 config->address_type = static_cast<::bluetooth::hci::AddressType>(config_proto.address_type()); in AdvertisingConfigFromProto()
78config->peer_address_type = static_cast<::bluetooth::hci::PeerAddressType>(config_proto.peer_addre… in AdvertisingConfigFromProto()
80 hci::Address::FromString(config_proto.peer_address().address(), config->peer_address); in AdvertisingConfigFromProto()
86 config->channel_map = static_cast<uint8_t>(config_proto.channel_map()); in AdvertisingConfigFromProto()
[all …]
/system/media/alsa_utils/
Dalsa_device_proxy.c47 struct pcm_config * config) in proxy_prepare() argument
56 log_pcm_config(config, "proxy_setup()"); in proxy_prepare()
59 if (config->format != PCM_FORMAT_INVALID && profile_is_format_valid(profile, config->format)) { in proxy_prepare()
60 proxy->alsa_config.format = config->format; in proxy_prepare()
64 config->format, profile->default_config.format); in proxy_prepare()
66 if (config->format != PCM_FORMAT_INVALID) { in proxy_prepare()
71 if (config->rate != 0 && profile_is_sample_rate_valid(profile, config->rate)) { in proxy_prepare()
72 proxy->alsa_config.rate = config->rate; in proxy_prepare()
76 config->rate, profile->default_config.rate); in proxy_prepare()
78 if (config->rate != 0) { in proxy_prepare()
[all …]

12345678910>>...14