Home
last modified time | relevance | path

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

123456789

/system/bt/osi/test/
Dconfig_test.cc63 std::unique_ptr<config_t> config = config_new_empty(); in TEST_F() local
64 EXPECT_TRUE(config.get() != NULL); in TEST_F()
68 std::unique_ptr<config_t> config = config_new("/meow"); in TEST_F() local
69 EXPECT_TRUE(config.get() == NULL); in TEST_F()
73 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F() local
74 EXPECT_TRUE(config.get() != NULL); in TEST_F()
78 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F() local
79 std::unique_ptr<config_t> clone = config_new_clone(*config); in TEST_F()
86 config_get_string(*config, CONFIG_DEFAULT_SECTION, "first_key", &one) in TEST_F()
93 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F() local
[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 …]
Dinit.usb.rc25 on property:sys.usb.config=none && property:sys.usb.configfs=0
29 setprop sys.usb.state ${sys.usb.config}
34 on property:sys.usb.config=adb && property:sys.usb.configfs=0
38 write /sys/class/android_usb/android0/functions ${sys.usb.config}
41 setprop sys.usb.state ${sys.usb.config}
44 on property:sys.usb.config=accessory && property:sys.usb.configfs=0
48 write /sys/class/android_usb/android0/functions ${sys.usb.config}
50 setprop sys.usb.state ${sys.usb.config}
53 on property:sys.usb.config=accessory,adb && property:sys.usb.configfs=0
57 write /sys/class/android_usb/android0/functions ${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/extras/simpleperf/scripts/
Dapp_profiler.py46 def __init__(self, config): argument
47 self.check_config(config)
48 self.config = config
49 self.adb = AdbHelper(enable_switch_to_root=not config['disable_adb_root'])
53 self.app_arch = self.config['app_arch']
54 self.app_program = self.config['app_package_name'] or self.config['native_program']
60 def check_config(self, config): argument
65 if name not in config:
67 if config['app_package_name'] and config['native_program']:
69 elif config['app_package_name'] and config['cmd']:
[all …]
Dannotate.py273 def __init__(self, config): argument
278 if name not in config:
286 source_dirs = config['source_dirs']
290 if not config['source_dirs']:
294 self.config = config
297 self.comm_filter = set(config['comm_filters']) if config.get('comm_filters') else None
298 if config.get('pid_filters'):
299 self.pid_filter = {int(x) for x in config['pid_filters']}
302 if config.get('tid_filters'):
303 self.tid_filter = {int(x) for x in config['tid_filters']}
[all …]
/system/extras/perfprofd/
Dconfigreader.cc67 DummyConfig config; in addDefaultEntries() local
73 addUnsignedEntry("collection_interval", config.collection_interval_in_s, 0, UINT32_MAX); in addDefaultEntries()
77 addUnsignedEntry("use_fixed_seed", config.use_fixed_seed, 0, UINT32_MAX); in addDefaultEntries()
81 addUnsignedEntry("main_loop_iterations", config.main_loop_iterations, 0, UINT32_MAX); in addDefaultEntries()
85 addStringEntry("destination_directory", config.destination_directory.c_str()); in addDefaultEntries()
88 addStringEntry("config_directory", config.config_directory.c_str()); in addDefaultEntries()
91 addStringEntry("perf_path", config.perf_path.c_str()); in addDefaultEntries()
94 addUnsignedEntry("sampling_period", config.sampling_period, 0, UINT32_MAX); in addDefaultEntries()
96 addUnsignedEntry("sampling_frequency", config.sampling_frequency, 0, UINT32_MAX); in addDefaultEntries()
100 addUnsignedEntry("sample_duration", config.sample_duration_in_s, 1, 600); in addDefaultEntries()
[all …]
Dperfprofdcore.cc139 static CKPROFILE_RESULT check_profiling_enabled(const Config& config) in check_profiling_enabled() argument
149 if (!config.IsProfilingEnabled()) { in check_profiling_enabled()
154 std::string pp = config.perf_path; in check_profiling_enabled()
358 const Config& config, in annotate_encoded_perf_profile() argument
364 if (config.collect_cpu_utilization) { in annotate_encoded_perf_profile()
385 if (config.collect_booting) { in annotate_encoded_perf_profile()
388 if (config.collect_camera_active) { in annotate_encoded_perf_profile()
391 if (config.collect_charging_state) { in annotate_encoded_perf_profile()
410 const Config& config, in encode_to_proto() argument
424 annotate_encoded_perf_profile(encodedProfile.get(), config, cpu_utilization); in encode_to_proto()
[all …]
Dperfprofd_cmdline.cc113 static bool post_process(const Config& config, int current_seq) in post_process() argument
115 const std::string& dest_dir = config.destination_directory; in post_process()
117 config.config_directory + "/" + PROCESSED_FILENAME; in post_process()
146 uint32_t maxLive = config.max_unprocessed_profiles; in post_process()
171 static void init(ConfigReader &config) in init() argument
173 if (!config.readFile()) { in init()
174 LOG(ERROR) << "unable to open configuration file " << config.getConfigFilePath(); in init()
177 CommonInit(static_cast<uint32_t>(config.getUnsignedValue("use_fixed_seed")), in init()
178 config.getStringValue("destination_directory").c_str()); in init()
192 int perfprofd_main(int argc, char** argv, Config* config) in perfprofd_main() argument
[all …]
/system/bt/osi/src/
Dconfig.cc39 static bool config_parse(FILE* fp, config_t* config);
44 static auto section_find(T& config, const std::string& section) { in section_find() argument
46 config.sections.begin(), config.sections.end(), in section_find()
50 static const entry_t* entry_find(const config_t& config, in entry_find() argument
53 auto sec = section_find(config, section); in entry_find()
54 if (sec == config.sections.end()) return nullptr; in entry_find()
70 std::unique_ptr<config_t> config = config_new_empty(); in config_new() local
79 if (!config_parse(fp, config.get())) { in config_new()
80 config.reset(); in config_new()
84 return config; in config_new()
[all …]
/system/bt/btif/src/
Dbtif_config.cc72 static void btif_config_remove_unpaired(config_t* config);
73 static void btif_config_remove_restricted(config_t* config);
118 static std::unique_ptr<config_t> config; variable
130 config = btif_config_open(CONFIG_FILE_PATH); in init()
132 if (!config) { in init()
135 config = btif_config_open(CONFIG_BACKUP_PATH); in init()
139 if (!config) { in init()
143 config = btif_config_transcode(CONFIG_LEGACY_FILE_PATH); in init()
147 if (!config) { in init()
151 config = config_new_empty(); in init()
[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.cc54 const PayloadGenerationConfig& config, in GenerateUpdatePayloadFile() argument
58 if (!config.version.Validate()) { in GenerateUpdatePayloadFile()
59 LOG(ERROR) << "Unsupported major.minor version: " << config.version.major in GenerateUpdatePayloadFile()
60 << "." << config.version.minor; in GenerateUpdatePayloadFile()
66 TEST_AND_RETURN_FALSE(payload.Init(config)); in GenerateUpdatePayloadFile()
80 if (config.is_delta) { in GenerateUpdatePayloadFile()
81 TEST_AND_RETURN_FALSE(config.source.partitions.size() == in GenerateUpdatePayloadFile()
82 config.target.partitions.size()); in GenerateUpdatePayloadFile()
85 for (size_t i = 0; i < config.target.partitions.size(); i++) { in GenerateUpdatePayloadFile()
87 config.is_delta ? config.source.partitions[i] : empty_part; in GenerateUpdatePayloadFile()
[all …]
Dpayload_signer_unittest.cc127 void DoWriteAndLoadPayloadTest(const PayloadGenerationConfig& config) { in DoWriteAndLoadPayloadTest() argument
129 payload.Init(config); in DoWriteAndLoadPayloadTest()
146 EXPECT_EQ(config.version.major, load_major_version); in DoWriteAndLoadPayloadTest()
154 PayloadGenerationConfig config; in TEST_F() local
155 config.version.major = kChromeOSMajorPayloadVersion; in TEST_F()
156 DoWriteAndLoadPayloadTest(config); in TEST_F()
160 PayloadGenerationConfig config; in TEST_F() local
161 config.version.major = kBrilloMajorPayloadVersion; in TEST_F()
162 DoWriteAndLoadPayloadTest(config); in TEST_F()
222 PayloadGenerationConfig config; in TEST_F() local
[all …]
Dfull_update_generator.cc117 const PayloadGenerationConfig& config, in GenerateOperations() argument
130 if (config.hard_chunk_size >= 0) { in GenerateOperations()
131 full_chunk_size = std::min(static_cast<size_t>(config.hard_chunk_size), in GenerateOperations()
132 config.soft_chunk_size); in GenerateOperations()
134 full_chunk_size = std::min(kDefaultFullChunkSize, config.soft_chunk_size); in GenerateOperations()
139 TEST_AND_RETURN_FALSE(full_chunk_size % config.block_size == 0); in GenerateOperations()
141 size_t chunk_blocks = full_chunk_size / config.block_size; in GenerateOperations()
145 << chunk_blocks << " blocks (" << config.block_size in GenerateOperations()
154 size_t partition_blocks = new_part.size / config.block_size; in GenerateOperations()
177 config.version, in GenerateOperations()
[all …]
/system/core/healthd/
Dcharger_test.cpp110 void healthd_board_init(struct healthd_config* config) { in healthd_board_init() argument
111 config->periodic_chores_interval_fast = 60; in healthd_board_init()
112 config->periodic_chores_interval_slow = 600; in healthd_board_init()
114 config->batteryStatusPath = createFile("/data/local/tmp/batteryStatus", "Not charging"); in healthd_board_init()
115 config->batteryHealthPath = createFile("/data/local/tmp/batteryHealth", "Unspecified failure"); in healthd_board_init()
116 config->batteryPresentPath = createFile("/data/local/tmp/batteryPresent", "1"); in healthd_board_init()
117 config->batteryCapacityPath = createFile("/data/local/tmp/batteryCapacity", "47"); in healthd_board_init()
118 config->batteryVoltagePath = createFile("/data/local/tmp/batteryVoltage", "45000"); in healthd_board_init()
119 config->batteryTemperaturePath = createFile("/data/local/tmp/batteryTemperature", "987"); in healthd_board_init()
120 config->batteryTechnologyPath = createFile("/data/local/tmp/batteryTechnology", "NiCd"); in healthd_board_init()
[all …]
/system/bt/osi/include/
Dconfig.h61 bool config_has_section(const config_t& config, const std::string& section);
65 bool config_has_key(const config_t& config, const std::string& section,
71 int config_get_int(const config_t& config, const std::string& section,
77 uint64_t config_get_uint64(const config_t& config, const std::string& section,
83 bool config_get_bool(const config_t& config, const std::string& section,
90 const std::string* config_get_string(const config_t& config,
97 void config_set_int(config_t* config, const std::string& section,
102 void config_set_uint64(config_t* config, const std::string& section,
107 void config_set_bool(config_t* config, const std::string& section,
112 void config_set_string(config_t* config, const std::string& section,
[all …]
/system/media/alsa_utils/
Dalsa_device_proxy.c45 struct pcm_config * config) in proxy_prepare() argument
54 log_pcm_config(config, "proxy_setup()"); in proxy_prepare()
57 if (config->format != PCM_FORMAT_INVALID && profile_is_format_valid(profile, config->format)) { in proxy_prepare()
58 proxy->alsa_config.format = config->format; in proxy_prepare()
62 config->format, profile->default_config.format); in proxy_prepare()
64 if (config->format != PCM_FORMAT_INVALID) { in proxy_prepare()
69 if (config->rate != 0 && profile_is_sample_rate_valid(profile, config->rate)) { in proxy_prepare()
70 proxy->alsa_config.rate = config->rate; in proxy_prepare()
74 config->rate, profile->default_config.rate); in proxy_prepare()
76 if (config->rate != 0) { in proxy_prepare()
[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/extras/perfprofd/binder_interface/
Dperfprofd_binder.cc79 Status startProfilingString(const String16& config) override;
125 auto config_fn = [&](ThreadedConfig& config) { in startProfiling() argument
126 config = ThreadedConfig(); // Reset to a default config. in startProfiling()
129 config.collection_interval_in_s = collectionInterval; in startProfiling()
132 config.main_loop_iterations = iterations; in startProfiling()
135 config.process = process; in startProfiling()
138 config.sampling_period = samplingPeriod; in startProfiling()
141 config.sampling_frequency = samplingFrequency; in startProfiling()
144 config.sample_duration_in_s = sampleDuration; in startProfiling()
146 config.stack_profile = stackProfile; in startProfiling()
[all …]
/system/bt/binder/android/bluetooth/
DIBluetoothHealth.aidl31 boolean registerAppConfiguration(in BluetoothHealthAppConfiguration config, in registerAppConfiguration() argument
33 boolean unregisterAppConfiguration(in BluetoothHealthAppConfiguration config); in unregisterAppConfiguration() argument
34 …olean connectChannelToSource(in BluetoothDevice device, in BluetoothHealthAppConfiguration config); in connectChannelToSource() argument
35 … boolean connectChannelToSink(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, in connectChannelToSink() argument
37 …boolean disconnectChannel(in BluetoothDevice device, in BluetoothHealthAppConfiguration config, in… in disconnectChannel() argument
38 …eDescriptor getMainChannelFd(in BluetoothDevice device, in BluetoothHealthAppConfiguration config); in getMainChannelFd() argument
/system/extras/perfprofd/scripts/
Dperf_config_proto.py50 config = perfprofd_config_pb2.ProfilingConfig()
72 setattr(config, option, option_val)
75 f.write(config.SerializeToString())
79 config = perfprofd_config_pb2.ProfilingConfig()
82 config.ParseFromString(f.read())
85 print config
/system/extras/tests/icachetest/
DProfiler.cpp84 pe.config = PERF_COUNT_HW_INSTRUCTIONS; in resetEvents()
104 pe.config = PERF_COUNT_HW_CPU_CYCLES; in resetEvents()
114 pe.config = PERF_COUNT_HW_CACHE_REFERENCES; in resetEvents()
124 pe.config = PERF_COUNT_HW_CACHE_MISSES; in resetEvents()
134 pe.config = PERF_COUNT_HW_BRANCH_INSTRUCTIONS; in resetEvents()
144 pe.config = PERF_COUNT_HW_BRANCH_MISSES; in resetEvents()
155 pe.config = ARMV8_PMUV3_PERFCTR_L1_ICACHE_ACCESS; in resetEvents()
165 pe.config = ARMV8_PMUV3_PERFCTR_L1_ICACHE_REFILL; in resetEvents()
175 pe.config = PERF_COUNT_HW_CACHE_L1I | in resetEvents()
186 pe.config = PERF_COUNT_HW_CACHE_L1I | in resetEvents()
/system/tools/hidl/docs/src/
Dmain.kt20 import parser.config
29 config.parseArgs(args) in main()
30 if (config.verbose) println("$LOG_NAME args: ${config}") in main()
37 for (fp in config.files) { in main()
50 if (config.skipError) { in main()
58 if (config.verbose) writer.printInfo() in main()

123456789