Home
last modified time | relevance | path

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

12

/system/bt/osi/test/
Dconfig_test.cpp62 config_t *config = config_new_empty(); in TEST_F() local
63 EXPECT_TRUE(config != NULL); in TEST_F()
64 config_free(config); in TEST_F()
68 config_t *config = config_new("/meow"); in TEST_F() local
69 EXPECT_TRUE(config == NULL); in TEST_F()
70 config_free(config); in TEST_F()
74 config_t *config = config_new(CONFIG_FILE); in TEST_F() local
75 EXPECT_TRUE(config != NULL); in TEST_F()
76 config_free(config); in TEST_F()
84 config_t *config = config_new(CONFIG_FILE); in TEST_F() local
[all …]
/system/bt/osi/src/
Dconfig.c51 static void config_parse(FILE *fp, config_t *config);
55 static section_t *section_find(const config_t *config, const char *section);
59 static entry_t *entry_find(const config_t *config, const char *section, const char *key);
62 config_t *config = osi_calloc(sizeof(config_t)); in config_new_empty() local
63 if (!config) { in config_new_empty()
68 config->sections = list_new(section_free); in config_new_empty()
69 if (!config->sections) { in config_new_empty()
74 return config; in config_new_empty()
77 config_free(config); in config_new_empty()
84 config_t *config = config_new_empty(); in config_new() local
[all …]
/system/bt/btif/src/
Dbtif_config.c86 static config_t *config; variable
93 config = config_new(CONFIG_FILE_PATH); in init()
94 if (!config) { in init()
96 config = btif_config_transcode(LEGACY_CONFIG_FILE_PATH); in init()
97 if (!config) { in init()
99 config = config_new_empty(); in init()
100 if (!config) { in init()
106 if (config_save(config, CONFIG_FILE_PATH)) in init()
123 config_free(config); in init()
126 config = NULL; in init()
[all …]
Dbtif_config_transcode.cpp44 config_t *config = config_new_empty(); in btif_config_transcode() local
45 if (!config) { in btif_config_transcode()
57 config_set_string(config, section, key, value); in btif_config_transcode()
61 return config; in btif_config_transcode()
/system/bt/osi/include/
Dconfig.h43 void config_free(config_t *config);
48 bool config_has_section(const config_t *config, const char *section);
52 bool config_has_key(const config_t *config, const char *section, const char *key);
58 int config_get_int(const config_t *config, const char *section, const char *key, int def_value);
63 bool config_get_bool(const config_t *config, const char *section, const char *key, bool def_value);
69 const char *config_get_string(const config_t *config, const char *section, const char *key, const c…
74 void config_set_int(config_t *config, const char *section, const char *key, int value);
79 void config_set_bool(config_t *config, const char *section, const char *key, bool value);
84 void config_set_string(config_t *config, const char *section, const char *key, const char *value);
89 bool config_remove_section(config_t *config, const char *section);
[all …]
/system/bt/main/
Dbte_conf.c38 config_t *config = config_new(path); in bte_load_ble_conf() local
39 if (!config) { in bte_load_ble_conf()
44 …const char* ble_adv_tx_power = config_get_string(config, CONFIG_DEFAULT_SECTION, "BLE_ADV_TX_POWER… in bte_load_ble_conf()
51 config_free(config); in bte_load_ble_conf()
60 config_t *config = config_new(p_path); in bte_load_did_conf() local
61 if (!config) { in bte_load_did_conf()
70 if (!config_has_section(config, section_name)) { in bte_load_did_conf()
76 record.vendor = config_get_int(config, section_name, "vendorId", LMP_COMPID_BROADCOM); in bte_load_did_conf()
77 …record.vendor_id_source = config_get_int(config, section_name, "vendorIdSource", DI_VENDOR_ID_SOUR… in bte_load_did_conf()
78 record.product = config_get_int(config, section_name, "productId", 0); in bte_load_did_conf()
[all …]
Dstack_config.c32 static config_t *config; variable
42 config = config_new(path); in init()
43 if (!config) { in init()
52 config_free(config); in clean_up()
70 …return config_get_string(config, CONFIG_DEFAULT_SECTION, BTSNOOP_LOG_PATH_KEY, "/data/misc/bluedro… in get_btsnoop_log_path()
74 return config_get_bool(config, CONFIG_DEFAULT_SECTION, BTSNOOP_TURNED_ON_KEY, false); in get_btsnoop_turned_on()
78 return config_get_bool(config, CONFIG_DEFAULT_SECTION, BTSNOOP_SHOULD_SAVE_LAST_KEY, false); in get_btsnoop_should_save_last()
82 return config_get_bool(config, CONFIG_DEFAULT_SECTION, TRACE_CONFIG_ENABLED_KEY, false); in get_trace_config_enabled()
86 return config; in get_all()
Dbte_logmsg.c227 static void load_levels_from_config(const config_t *config) { in load_levels_from_config() argument
228 assert(config != NULL); in load_levels_from_config()
232 int value = config_get_int(config, CONFIG_DEFAULT_SECTION, functions->trc_name, -1); in load_levels_from_config()
/system/extras/f2fs_utils/
Df2fs_utils.c45 struct f2fs_configuration config; variable
52 memset(&config, 0, sizeof(config)); in reset_f2fs_info()
53 config.fd = -1; in reset_f2fs_info()
67 f2fs_init_configuration(&config); in make_f2fs_sparse_fd()
69 config.total_sectors = len / config.sector_size; in make_f2fs_sparse_fd()
70 config.start_sector = 0; in make_f2fs_sparse_fd()
Df2fs_ioutils.c86 struct f2fs_configuration config; variable
99 if (lseek64(config.fd, (off64_t)offset, SEEK_SET) < 0) in dev_write_fd()
101 if (write(config.fd, buf, len) != len) in dev_write_fd()
162 if (config.fd >= 0) { in dev_write()
173 if (config.fd >= 0) { in dev_fill()
Df2fs_dlutils.c47 void f2fs_init_configuration(struct f2fs_configuration *config) { in f2fs_init_configuration() argument
49 f2fs_init_configuration_dl(config); in f2fs_init_configuration()
/system/core/rootdir/
Dinit.usb.rc13 on property:sys.usb.config=none
17 setprop sys.usb.state ${sys.usb.config}
22 on property:sys.usb.config=adb
26 write /sys/class/android_usb/android0/functions ${sys.usb.config}
29 setprop sys.usb.state ${sys.usb.config}
32 on property:sys.usb.config=accessory
36 write /sys/class/android_usb/android0/functions ${sys.usb.config}
38 setprop sys.usb.state ${sys.usb.config}
41 on property:sys.usb.config=accessory,adb
45 write /sys/class/android_usb/android0/functions ${sys.usb.config}
[all …]
/system/extras/simpleperf/
Dgenerate_event_type_table.py39 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 type(config) is 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()
Devent_type.cpp28 #define EVENT_TYPE_TABLE_ENTRY(name, type, config) \ argument
29 { name, type, config } \
71 const EventType* EventTypeFactory::FindEventTypeByConfig(uint32_t type, uint64_t config) { in FindEventTypeByConfig() argument
73 if (event_type.type == type && event_type.config == config) { in FindEventTypeByConfig()
Devent_type.h34 uint64_t config; member
42 static const EventType* FindEventTypeByConfig(uint32_t type, uint64_t config);
Devent_attr.cpp79 attr.config = event_type.config; in CreateDefaultPerfEventAttr()
93 const EventType* event_type = EventTypeFactory::FindEventTypeByConfig(attr.type, attr.config); in DumpPerfEventAttr()
100 PrintIndented(indent + 1, "type %u, size %u, config %llu\n", attr.type, attr.size, attr.config); in DumpPerfEventAttr()
/system/media/alsa_utils/
Dalsa_device_proxy.c43 struct pcm_config * config) in proxy_prepare() argument
50 log_pcm_config(config, "proxy_setup()"); in proxy_prepare()
54 config->format != PCM_FORMAT_INVALID && profile_is_format_valid(profile, config->format) in proxy_prepare()
55 ? config->format : profile->default_config.format; in proxy_prepare()
57 config->rate != 0 && profile_is_sample_rate_valid(profile, config->rate) in proxy_prepare()
58 ? config->rate : profile->default_config.rate; in proxy_prepare()
60 config->channels != 0 && profile_is_channel_count_valid(profile, config->channels) in proxy_prepare()
61 ? config->channels : profile->default_config.channels; in proxy_prepare()
76 if (config->format >= 0 && (size_t)config->format < ARRAY_SIZE(format_byte_size_map)) { in proxy_prepare()
77 proxy->frame_size = format_byte_size_map[config->format] * proxy->alsa_config.channels; in proxy_prepare()
Dalsa_logging.c103 void log_pcm_config(struct pcm_config * config, const char* label) { in log_pcm_config() argument
105 ALOGV(" channels:%d", config->channels); in log_pcm_config()
106 ALOGV(" rate:%d", config->rate); in log_pcm_config()
107 ALOGV(" period_size:%d", config->period_size); in log_pcm_config()
108 ALOGV(" period_count:%d", config->period_count); in log_pcm_config()
109 ALOGV(" format:%d", config->format); in log_pcm_config()
Dalsa_device_profile.c204 struct pcm_config config = profile->default_config; in profile_test_sample_rate() local
205 config.rate = rate; in profile_test_sample_rate()
209 profile->direction, &config); in profile_test_sample_rate()
298 static int read_alsa_device_config(alsa_device_profile * profile, struct pcm_config * config) in read_alsa_device_config() argument
328 config->channels = pcm_params_get_min(alsa_hw_params, PCM_PARAM_CHANNELS); in read_alsa_device_config()
329 config->rate = pcm_params_get_min(alsa_hw_params, PCM_PARAM_RATE); in read_alsa_device_config()
330 config->period_size = profile_calc_min_period_size(profile, config->rate); in read_alsa_device_config()
331 config->period_count = pcm_params_get_min(alsa_hw_params, PCM_PARAM_PERIODS); in read_alsa_device_config()
332 config->format = get_pcm_format_for_mask(pcm_params_get_mask(alsa_hw_params, PCM_PARAM_FORMAT)); in read_alsa_device_config()
334 log_pcm_config(config, "read_alsa_device_config"); in read_alsa_device_config()
[all …]
/system/extras/perfprofd/
Dperfprofdcore.cc445 static CKPROFILE_RESULT check_profiling_enabled(ConfigReader &config) in check_profiling_enabled() argument
458 if (access(config.getStringValue("config_directory").c_str(), F_OK) == -1) { in check_profiling_enabled()
460 config.getStringValue("config_directory").c_str(), strerror(errno)); in check_profiling_enabled()
466 std::string semaphore_filepath = config.getStringValue("config_directory") in check_profiling_enabled()
473 std::string pp = config.getStringValue("perf_path"); in check_profiling_enabled()
665 static void cleanup_destination_dir(const ConfigReader &config) in cleanup_destination_dir() argument
667 std::string dest_dir = config.getStringValue("destination_directory"); in cleanup_destination_dir()
692 static bool post_process(const ConfigReader &config, int current_seq) in post_process() argument
694 std::string dest_dir = config.getStringValue("destination_directory"); in post_process()
696 config.getStringValue("config_directory") + "/" + PROCESSED_FILENAME; in post_process()
[all …]
/system/bt/test/suite/
Dmain.c142 config_t *config = config_new(CONFIG_FILE_PATH); in main() local
143 if (!config) { in main()
149 …nst config_section_node_t *node = config_section_begin(config); node != config_section_end(config)… in main()
151 if (config_has_key(config, name, "LinkKey") && string_to_bdaddr(name, &bt_remote_bdaddr)) { in main()
156 config_free(config); in main()
/system/core/healthd/
Dhealthd.h83 void (*init)(struct healthd_config *config);
93 void healthd_mode_charger_init(struct healthd_config *config);
108 void healthd_board_init(struct healthd_config *config);
/system/extras/sound/
Dplaywav.c42 struct msm_audio_config config; in pcm_play() local
54 if(ioctl(afd, AUDIO_GET_CONFIG, &config)) { in pcm_play()
59 config.channel_count = channels; in pcm_play()
60 config.sample_rate = rate; in pcm_play()
61 if (ioctl(afd, AUDIO_SET_CONFIG, &config)) { in pcm_play()
65 sz = config.buffer_size; in pcm_play()
72 for (n = 0; n < config.buffer_count; n++) { in pcm_play()
/system/extras/tests/net_test/
Drun_net_test.sh70 [ -f .config ] || make defconfig ARCH=um SUBARCH=x86_64
74 ./scripts/config $cmdline
/system/media/alsa_utils/include/
Dalsa_logging.h24 void log_pcm_config(struct pcm_config * config, const char* label);

12