Home
last modified time | relevance | path

Searched refs:config_str (Results 1 – 9 of 9) sorted by relevance

/system/connectivity/apmanager/
Dconfig.cc202 bool Config::GenerateConfigFile(Error* error, string* config_str) { in GenerateConfigFile() argument
213 config_str, "%s=%s\n", kHostapdConfigKeySsid, ssid.c_str()); in GenerateConfigFile()
225 base::StringAppendF(config_str, in GenerateConfigFile()
233 config_str, "%s=%d\n", kHostapdConfigKeyChannel, GetChannel()); in GenerateConfigFile()
236 if (!AppendInterface(error, config_str)) { in GenerateConfigFile()
241 if (!AppendHwMode(error, config_str)) { in GenerateConfigFile()
246 if (!AppendSecurityMode(error, config_str)) { in GenerateConfigFile()
252 base::StringAppendF(config_str, in GenerateConfigFile()
256 base::StringAppendF(config_str, in GenerateConfigFile()
263 if (!AppendHostapdDefaults(error, config_str)) { in GenerateConfigFile()
[all …]
Dconfig.h54 virtual bool GenerateConfigFile(Error* error, std::string* config_str);
148 bool AppendHostapdDefaults(Error* error, std::string* config_str);
151 bool AppendHwMode(Error* error, std::string* config_str);
154 bool AppendInterface(Error* error, std::string* config_str);
157 bool AppendSecurityMode(Error* error, std::string* config_str);
Dmock_config.h35 bool(Error* error, std::string* config_str));
Ddhcp_server.cc80 string config_str = GenerateConfigFile(); in Start() local
83 if (!file_writer_->Write(file_name, config_str)) { in Start()
Dservice.cc108 string config_str; in StartInternal() local
109 if (!config_->GenerateConfigFile(error, &config_str)) { in StartInternal()
116 if (!file_writer_->Write(config_file_name, config_str)) { in StartInternal()
Dservice_unittest.cc148 std::string config_str(kHostapdConfig); in TEST_F() local
151 DoAll(SetArgPointee<1>(config_str), Return(true))); in TEST_F()
/system/core/libdiskconfig/
Ddiskconfig.c111 if (!(tmp = config_str(partnode, "type", NULL))) { in load_partitions()
126 if ((tmp = config_str(partnode, "len", NULL)) != NULL) { in load_partitions()
174 if (!(tmp = config_str(devroot, "path", path_override))) { in load_diskconfig()
181 if (!(tmp = config_str(devroot, "scheme", NULL))) { in load_diskconfig()
195 tmp = config_str(devroot, "sector_size", "512"); in load_diskconfig()
203 if (!(tmp = config_str(devroot, "start_lba", NULL))) { in load_diskconfig()
214 if (!(tmp = config_str(devroot, "num_lba", NULL))) { in load_diskconfig()
/system/core/include/cutils/
Dconfig_utils.h52 const char* config_str(cnode *root, const char *name, const char *_default);
/system/core/libcutils/
Dconfig_utils.c85 const char* config_str(cnode *root, const char *name, const char *_default) in config_str() function