/system/bt/build/ |
H A D | BUILD.gn | 24 config("default_include_dirs") { 40 config("linux") { 79 config("pic") { 83 config("gc") {
|
/system/bt/osi/test/ |
H A D | config_test.cpp | 6 #include "osi/include/config.h" 62 config_t *config = config_new_empty(); local 63 EXPECT_TRUE(config != NULL); 64 config_free(config); 68 config_t *config = config_new("/meow"); local 69 EXPECT_TRUE(config == NULL); 70 config_free(config); 74 config_t *config = config_new(CONFIG_FILE); local 75 EXPECT_TRUE(config != NULL); 76 config_free(config); 84 config_t *config = config_new(CONFIG_FILE); local 97 config_t *config = config_new(CONFIG_FILE); local 103 config_t *config = config_new(CONFIG_FILE); local 110 config_t *config = config_new(CONFIG_FILE); local 119 config_t *config = config_new(CONFIG_FILE); local 127 config_t *config = config_new(CONFIG_FILE); local 133 config_t *config = config_new(CONFIG_FILE); local 139 config_t *config = config_new(CONFIG_FILE); local 147 config_t *config = config_new(CONFIG_FILE); local 153 config_t *config = config_new(CONFIG_FILE); local 161 config_t *config = config_new(CONFIG_FILE); local 169 config_t *config = config_new(CONFIG_FILE); local 179 config_t *config = config_new(CONFIG_FILE); local 191 config_t *config = config_new(CONFIG_FILE); local 200 config_t *config = config_new(CONFIG_FILE); local [all...] |
/system/bt/main/ |
H A D | stack_config.c | 38 static config_t *config; variable 53 config = config_new(path); 54 if (!config) { 63 config_free(config); 64 config = NULL; 82 return config_get_string(config, CONFIG_DEFAULT_SECTION, BTSNOOP_LOG_PATH_KEY, "/data/misc/bluedroid/btsnoop_hci.log"); 86 return config_get_bool(config, CONFIG_DEFAULT_SECTION, BTSNOOP_TURNED_ON_KEY, false); 90 return config_get_bool(config, CONFIG_DEFAULT_SECTION, BTSNOOP_SHOULD_SAVE_LAST_KEY, false); 94 return config_get_bool(config, CONFIG_DEFAULT_SECTION, TRACE_CONFIG_ENABLED_KEY, false); 98 return config_get_bool(config, CONFIG_DEFAULT_SECTIO [all...] |
H A D | bte_conf.c | 27 #include "osi/include/config.h" 35 config_t *config = config_new(p_path); local 36 if (!config) { 37 LOG_ERROR(LOG_TAG, "%s unable to load DID config '%s'.", __func__, p_path); 45 if (!config_has_section(config, section_name)) { 51 record.vendor = config_get_int(config, section_name, "vendorId", LMP_COMPID_BROADCOM); 52 record.vendor_id_source = config_get_int(config, section_name, "vendorIdSource", DI_VENDOR_ID_SOURCE_BTSIG); 53 record.product = config_get_int(config, section_name, "productId", 0); 54 record.version = config_get_int(config, section_name, "version", 0); 55 record.primary_record = config_get_bool(config, section_nam [all...] |
/system/bt/osi/include/ |
H A D | config.h | 28 // Creates a new config object with no entries (i.e. not backed by a file). 29 // This function returns a config object or NULL on error. Clients must call 33 // Loads the specified file and returns a handle to the config file. If there 41 // Returns a new config which is a copy and separated from the original; 42 // changes to the new config are not reflected in any way in the original. 49 // Frees resources associated with the config file. No further operations may 50 // be performed on the |config| object after calling this function. |config| 52 void config_free(config_t *config); 54 // Returns true if the config fil [all...] |
/system/bt/build/secondary/third_party/googletest/ |
H A D | BUILD.gn | 17 config("gtest_config") { 24 config("gtest_direct_config") { 54 config("gmock_config") {
|
/system/connectivity/shill/ |
H A D | ppp_device_unittest.cc | 37 map<string, string> config; local 38 config[kPPPInterfaceName] = "ppp0"; 39 config["foo"] = "bar"; 40 EXPECT_EQ("ppp0", PPPDevice::GetInterfaceName(config)); 49 map<string, string> config; local 50 config[kPPPInternalIP4Address] = "4.5.6.7"; 51 config[kPPPExternalIP4Address] = "33.44.55.66"; 52 config[kPPPGatewayAddress] = "192.168.1.1"; 53 config[kPPPDNS1] = "1.1.1.1"; 54 config[kPPPDNS [all...] |
/system/extras/f2fs_utils/ |
H A D | f2fs_utils.c | 45 struct f2fs_configuration config; variable in typeref:struct:f2fs_configuration 52 memset(&config, 0, sizeof(config)); 53 config.fd = -1; 67 f2fs_init_configuration(&config); 69 config.total_sectors = len / config.sector_size; 70 config.start_sector = 0;
|
H A D | f2fs_dlutils.c | 47 void f2fs_init_configuration(struct f2fs_configuration *config) { argument 49 f2fs_init_configuration_dl(config);
|
/system/bt/btif/src/ |
H A D | btif_config.c | 42 #include "osi/include/config.h" 79 static void btif_config_remove_unpaired(config_t *config); 80 static void btif_config_remove_restricted(config_t *config); 133 static pthread_mutex_t lock; // protects operations on |config|. 134 static config_t *config; variable 148 config = btif_config_open(CONFIG_FILE_PATH); 150 if (!config) { 151 LOG_WARN("%s unable to load config file: %s; using backup.", 153 config = btif_config_open(CONFIG_BACKUP_PATH); 157 if (!config) { 221 config_t *config = config_new(filename); local 565 btif_config_remove_restricted(config_t* config) argument [all...] |
H A D | btif_config_transcode.cpp | 24 #include "osi/include/config.h" 40 LOG_ERROR("%s unable to find root element; assuming corrupted config file.", __func__); 44 config_t *config = config_new_empty(); local 45 if (!config) { 46 LOG_ERROR("%s unable to allocate config object.", __func__); 57 config_set_string(config, section, key, value); 61 return config;
|
/system/extras/simpleperf/ |
H A D | event_type.h | 27 // (type, config) pair. EventType connects the two representations, and tells the user if 31 EventType(const std::string& name, uint32_t type, uint64_t config) argument 32 : name(name), type(type), config(config) { 35 EventType() : type(0), config(0) { 40 uint64_t config; member in struct:EventType 44 const EventType* FindEventTypeByConfig(uint32_t type, uint64_t config);
|
H A D | generate_event_type_table.py | 39 for config in hardware_configs: 40 event_type_name = config 41 event_config = "PERF_COUNT_HW_" + config.replace('-', '_').upper() 61 for config in software_configs: 62 if isinstance(config, list): 63 event_type_name = config[0] 64 event_config = config[1] 66 event_type_name = config 67 event_config = "PERF_COUNT_SW_" + config.replace('-', '_').upper()
|
/system/update_engine/payload_generator/ |
H A D | delta_diff_generator.cc | 54 const PayloadGenerationConfig& config, 58 if (!config.version.Validate()) { 59 LOG(ERROR) << "Unsupported major.minor version: " << config.version.major 60 << "." << config.version.minor; 66 TEST_AND_RETURN_FALSE(payload.Init(config)); 80 if (config.is_delta) { 81 TEST_AND_RETURN_FALSE(config.source.partitions.size() == 82 config.target.partitions.size()); 85 for (size_t i = 0; i < config.target.partitions.size(); i++) { 87 config 53 GenerateUpdatePayloadFile( const PayloadGenerationConfig& config, const string& output_path, const string& private_key_path, uint64_t* metadata_size) argument [all...] |
H A D | delta_diff_generator.h | 29 // The |config| describes the payload generation request, describing both 39 bool GenerateUpdatePayloadFile(const PayloadGenerationConfig& config,
|
H A D | full_update_generator.cc | 117 const PayloadGenerationConfig& config, 127 // limit can be changed in the config, and we will use the smaller of the two 130 if (config.hard_chunk_size >= 0) { 131 full_chunk_size = std::min(static_cast<size_t>(config.hard_chunk_size), 132 config.soft_chunk_size); 134 full_chunk_size = std::min(kDefaultFullChunkSize, config.soft_chunk_size); 139 TEST_AND_RETURN_FALSE(full_chunk_size % config.block_size == 0); 141 size_t chunk_blocks = full_chunk_size / config.block_size; 145 << chunk_blocks << " blocks (" << config.block_size 154 size_t partition_blocks = new_part.size / config 116 GenerateOperations( const PayloadGenerationConfig& config, const PartitionConfig& old_part, const PartitionConfig& new_part, BlobFileWriter* blob_file, vector<AnnotatedOperation>* aops) argument [all...] |
/system/bt/build/secondary/third_party/libchrome/ |
H A D | BUILD.gn | 224 config("libchrome_config") {
|
/system/webservd/webservd/ |
H A D | config_unittest.cc | 15 #include "webservd/config.h" 86 void ValidateConfig(const webservd::Config& config) { argument 87 EXPECT_FALSE(config.use_debug); 88 EXPECT_EQ("/var/log/mylogs", config.log_directory); 90 ASSERT_EQ(1u, config.protocol_handlers.size()); 92 auto it = config.protocol_handlers.begin(); 106 Config config; local 107 LoadDefaultConfig(&config); 108 EXPECT_FALSE(config.use_debug); 109 EXPECT_EQ("/var/log/webservd", config 135 Config config; local 148 Config config; local 154 Config config; local 168 Config config; local 178 Config config; local 188 Config config; local 202 Config config; local [all...] |
H A D | main.cc | 31 #include "webservd/config.h" 48 const char kDefaultConfigFilePath[] = "/etc/webservd/config"; 58 explicit Daemon(webservd::Config config) argument 60 config_{std::move(config)} {} 107 webservd::Config config; local 108 config.use_ipv6 = FLAGS_ipv6; 113 webservd::LoadConfigFromFile(base::FilePath{FLAGS_config_path}, &config); 118 CHECK(webservd::LoadConfigFromFile(default_file_path, &config)); 120 webservd::LoadDefaultConfig(&config); 126 for (auto& handler_config : config [all...] |
H A D | config.h | 82 // Initializes the config with default preset settings (two handlers, one for 84 void LoadDefaultConfig(Config* config); 90 bool LoadConfigFromFile(const base::FilePath& json_file_path, Config* config); 96 Config* config,
|
/system/bt/osi/src/ |
H A D | config.c | 21 #include "osi/include/config.h" 55 static bool config_parse(FILE *fp, config_t *config); 59 static section_t *section_find(const config_t *config, const char *section); 63 static entry_t *entry_find(const config_t *config, const char *section, const char *key); 66 config_t *config = osi_calloc(sizeof(config_t)); local 68 config->sections = list_new(section_free); 69 if (!config->sections) { 74 return config; 77 config_free(config); 84 config_t *config local 128 config_free(config_t *config) argument 136 config_has_section(const config_t *config, const char *section) argument 143 config_has_key(const config_t *config, const char *section, const char *key) argument 151 config_get_int(const config_t *config, const char *section, const char *key, int def_value) argument 165 config_get_bool(const config_t *config, const char *section, const char *key, bool def_value) argument 182 config_get_string(const config_t *config, const char *section, const char *key, const char *def_value) argument 194 config_set_int(config_t *config, const char *section, const char *key, int value) argument 204 config_set_bool(config_t *config, const char *section, const char *key, bool value) argument 212 config_set_string(config_t *config, const char *section, const char *key, const char *value) argument 232 config_remove_section(config_t *config, const char *section) argument 243 config_remove_key(config_t *config, const char *section, const char *key) argument 256 config_section_begin(const config_t *config) argument 261 config_section_end(const config_t *config) argument 278 config_save(const config_t *config, const char *filename) argument 409 config_parse(FILE *fp, config_t *config) argument 466 section_find(const config_t *config, const char *section) argument 494 entry_find(const config_t *config, const char *section, const char *key) argument [all...] |
/system/media/alsa_utils/include/ |
H A D | alsa_logging.h | 24 void log_pcm_config(struct pcm_config * config, const char* label);
|
/system/tpm/trunks/ |
H A D | Makefile | 32 CXX_BINARY(trunks_testrunner): CXXFLAGS += $(shell gtest-config --cxxflags) \ 33 $(shell gmock-config --cxxflags) 34 CXX_BINARY(trunks_testrunner): LDLIBS += $(shell gtest-config --libs) \ 35 $(shell gmock-config --libs)
|
/system/connectivity/apmanager/ |
H A D | dhcp_server.cc | 79 // Generate dnsmasq config file. 130 string config; local 131 config += "port=0\n"; 132 config += "bind-interfaces\n"; 133 config += "log-dhcp\n"; 140 config += "keep-in-foreground\n"; 142 &config, "dhcp-range=%s,%s\n", address_low.c_str(), address_high.c_str()); 143 base::StringAppendF(&config, "interface=%s\n", interface_name_.c_str()); 146 base::StringAppendF(&config, "user=%s\n", Daemon::kAPManagerUserName); 147 base::StringAppendF(&config, "dhc [all...] |
H A D | service_unittest.cc | 100 void SetConfig(Config* config) { argument 101 service_->config_.reset(config); 131 MockConfig* config = new MockConfig(&manager_); local 132 SetConfig(config); 135 EXPECT_CALL(*config, GenerateConfigFile(_, _)).WillOnce(Return(false)); 140 MockConfig* config = new MockConfig(&manager_); local 141 SetConfig(config); 150 EXPECT_CALL(*config, GenerateConfigFile(_, _)).WillOnce( 154 EXPECT_CALL(*config, ClaimDevice()).WillOnce(Return(true)); 176 MockConfig* config local [all...] |