Home
last modified time | relevance | path

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

12345678910>>...18

/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.rc31 on property:sys.usb.config=none && property:sys.usb.configfs=0
35 setprop sys.usb.state ${sys.usb.config}
40 on property:sys.usb.config=adb && property:sys.usb.configfs=0
44 write /sys/class/android_usb/android0/functions ${sys.usb.config}
47 setprop sys.usb.state ${sys.usb.config}
50 on property:sys.usb.config=accessory && property:sys.usb.configfs=0
54 write /sys/class/android_usb/android0/functions ${sys.usb.config}
56 setprop sys.usb.state ${sys.usb.config}
59 on property:sys.usb.config=accessory,adb && property:sys.usb.configfs=0
63 write /sys/class/android_usb/android0/functions ${sys.usb.config}
[all …]
/system/nfc/utils/test/
Dconfig_test.cc72 ConfigFile config; in TEST() local
73 config.parseFromString(SIMPLE_CONFIG); in TEST()
74 EXPECT_FALSE(config.hasKey("UNKNOWN_VALUE")); in TEST()
75 EXPECT_FALSE(config.hasKey("COMMENTED_OUT_VALUE")); in TEST()
76 EXPECT_TRUE(config.hasKey("NUM_VALUE")); in TEST()
77 EXPECT_TRUE(config.hasKey("STRING_VALUE")); in TEST()
78 EXPECT_TRUE(config.hasKey("BYTES_VALUE")); in TEST()
82 ConfigFile config; in TEST() local
83 config.parseFromString(SIMPLE_CONFIG); in TEST()
84 EXPECT_EQ(config.getUnsigned("NUM_VALUE"), 42u); in TEST()
[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/chre/test/simulation/
Dsensor_test.cc64 auto config = static_cast<const Configuration *>(event->data); in TEST_F() local
66 config->sensorHandle, config->mode, config->interval, 0); in TEST_F()
81 Configuration config{.sensorHandle = 0, in TEST_F() local
84 sendEventToNanoapp(app, CONFIGURE, config); in TEST_F()
89 EXPECT_EQ(event.sensorHandle, config.sensorHandle); in TEST_F()
90 EXPECT_EQ(event.status.interval, config.interval); in TEST_F()
94 config = {.sensorHandle = 0, in TEST_F()
97 sendEventToNanoapp(app, CONFIGURE, config); in TEST_F()
129 auto config = static_cast<const Configuration *>(event->data); in TEST_F() local
131 config->sensorHandle, config->mode, config->interval, 0); in TEST_F()
[all …]
Dwifi_nan_test.cc94 auto config = (chreWifiNanSubscribeConfig *)(event->data); in TEST_F() local
95 chreWifiNanSubscribe(config, &kSubscribeCookie); in TEST_F()
109 chreWifiNanSubscribeConfig config = { in TEST_F() local
113 sendEventToNanoapp(app, NAN_SUBSCRIBE, config); in TEST_F()
153 auto config = (chreWifiNanSubscribeConfig *)(event->data); in TEST_F() local
155 chreWifiNanSubscribe(config, &kSubscribeCookie); in TEST_F()
168 chreWifiNanSubscribeConfig config = { in TEST_F() local
172 sendEventToNanoapp(app, NAN_SUBSCRIBE, config); in TEST_F()
211 auto config = (chreWifiNanSubscribeConfig *)(event->data); in TEST_F() local
213 chreWifiNanSubscribe(config, &kSubscribeCookie); in TEST_F()
[all …]
/system/linkerconfig/modules/
Dbasecontext.cc70 const android::linkerconfig::proto::LinkerConfig& config) { in SetSystemConfig() argument
71 system_provide_libs_ = {config.providelibs().begin(), in SetSystemConfig()
72 config.providelibs().end()}; in SetSystemConfig()
73 system_require_libs_ = {config.requirelibs().begin(), in SetSystemConfig()
74 config.requirelibs().end()}; in SetSystemConfig()
84 const android::linkerconfig::proto::LinkerConfig& config) { in SetVendorConfig() argument
85 vendor_provide_libs_ = {config.providelibs().begin(), in SetVendorConfig()
86 config.providelibs().end()}; in SetVendorConfig()
87 vendor_require_libs_ = {config.requirelibs().begin(), in SetVendorConfig()
88 config.requirelibs().end()}; in SetVendorConfig()
[all …]
/system/logging/rust/
Dlogger.rs81 pub fn init(config: Config) -> bool { in init()
88 if let Some(log_level) = config.log_level { in init()
91 if let Some(custom_format) = config.custom_format { in init()
99 if let Some(filter_str) = config.filter { in init()
109 pub fn init(config: Config) -> bool { in init()
118 if let Some(log_level) = config.log_level { in init()
121 if let Some(custom_format) = config.custom_format { in init()
127 if let Some(filter_str) = config.filter { in init()
131 if let Some(tag) = config.tag { in init()
148 let config = Config::default() in test_with_min_level() localVariable
[all …]
/system/update_engine/payload_generator/
Ddelta_diff_generator.cc72 const PayloadGenerationConfig& config, in PartitionProcessor() argument
80 : config_(config), in PartitionProcessor()
162 bool GenerateUpdatePayloadFile(const PayloadGenerationConfig& config, in GenerateUpdatePayloadFile() argument
166 if (!config.version.Validate()) { in GenerateUpdatePayloadFile()
167 LOG(ERROR) << "Unsupported major.minor version: " << config.version.major in GenerateUpdatePayloadFile()
168 << "." << config.version.minor; in GenerateUpdatePayloadFile()
174 TEST_AND_RETURN_FALSE(payload.Init(config)); in GenerateUpdatePayloadFile()
180 if (config.is_delta) { in GenerateUpdatePayloadFile()
181 TEST_AND_RETURN_FALSE(config.source.partitions.size() == in GenerateUpdatePayloadFile()
182 config.target.partitions.size()); in GenerateUpdatePayloadFile()
[all …]
Dfull_update_generator.cc114 const PayloadGenerationConfig& config, in GenerateOperations() argument
127 if (config.hard_chunk_size >= 0) { in GenerateOperations()
128 full_chunk_size = std::min(static_cast<size_t>(config.hard_chunk_size), in GenerateOperations()
129 config.soft_chunk_size); in GenerateOperations()
131 full_chunk_size = std::min(kDefaultFullChunkSize, config.soft_chunk_size); in GenerateOperations()
136 TEST_AND_RETURN_FALSE(full_chunk_size % config.block_size == 0); in GenerateOperations()
138 size_t chunk_blocks = full_chunk_size / config.block_size; in GenerateOperations()
142 << " blocks (" << config.block_size << " bytes each) using " in GenerateOperations()
151 size_t partition_blocks = new_part.size / config.block_size; in GenerateOperations()
174 config.version, in GenerateOperations()
[all …]
Dpayload_properties_unittest.cc56 PayloadGenerationConfig config; in SetUp() local
57 config.version.major = kBrilloMajorPayloadVersion; in SetUp()
58 config.version.minor = kSourceMinorPayloadVersion; in SetUp()
60 EXPECT_TRUE(payload.Init(config)); in SetUp()
63 [](PartitionConfig* config, const string& path, size_t size) { in SetUp() argument
64 config->path = path; in SetUp()
65 config->size = size; in SetUp()
89 config, old_part, new_part, &blob_file_writer, &aops)); in SetUp()
/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/chre/host/common/
Dconfig_util.cc32 Json::Value config; in getPreloadedNanoappsFromConfigFile() local
36 } else if (!Json::parseFromStream(builder, configFileStream, &config, in getPreloadedNanoappsFromConfigFile()
40 } else if (!config.isMember("nanoapps") || !config.isMember("source_dir")) { in getPreloadedNanoappsFromConfigFile()
45 outDirectory = config["source_dir"].asString(); in getPreloadedNanoappsFromConfigFile()
46 for (Json::ArrayIndex i = 0; i < config["nanoapps"].size(); ++i) { in getPreloadedNanoappsFromConfigFile()
47 const std::string &nanoappName = config["nanoapps"][i].asString(); in getPreloadedNanoappsFromConfigFile()
/system/extras/profcollectd/libprofcollectd/
Dscheduler.rs28 use crate::config::{Config, LOG_FILE, PROFILE_OUTPUT_DIR, TRACE_OUTPUT_DIR};
56 pub fn schedule_periodic(&mut self, config: &Config) -> Result<()> { in schedule_periodic()
63 let config = config.clone(); in schedule_periodic() localVariable
68 match receiver.recv_timeout(config.collection_interval) { in schedule_periodic()
72 if check_space_limit(&TRACE_OUTPUT_DIR, &config).unwrap() { in schedule_periodic()
76 &config.sampling_period, in schedule_periodic()
77 &config.binary_filter, in schedule_periodic()
97 pub fn one_shot(&self, config: &Config, tag: &str) -> Result<()> { in one_shot()
99 if check_space_limit(&TRACE_OUTPUT_DIR, config)? { in one_shot()
103 &config.sampling_period, in one_shot()
[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/linkerconfig/contents/tests/configuration/
Dapexconfig_test.cc62 auto config = android::linkerconfig::contents::CreateApexConfiguration( in TEST_F() local
66 config.WriteConfig(config_writer); in TEST_F()
77 auto config = android::linkerconfig::contents::CreateApexConfiguration( in TEST_F() local
81 config.WriteConfig(config_writer); in TEST_F()
98 auto config = android::linkerconfig::contents::CreateApexConfiguration( in TEST_F() local
102 config.WriteConfig(config_writer); in TEST_F()
119 auto config = android::linkerconfig::contents::CreateApexConfiguration( in TEST_F() local
123 config.WriteConfig(config_writer); in TEST_F()
142 auto config = CreateApexConfiguration(ctx, vendor_apex); in TEST_F() local
144 auto* section = config.GetSection("com.android.vendor"); in TEST_F()
[all …]
Dbaseconfig_test.cc72 auto config = CreateBaseConfiguration(ctx); in TEST() local
74 auto* section = config.GetSection("system"); in TEST()
81 config.WriteConfig(config_writer); in TEST()
122 auto config = CreateBaseConfiguration(ctx); in TEST() local
124 auto* section = config.GetSection("vendor"); in TEST()
135 config.WriteConfig(config_writer); in TEST()
/system/chre/platform/zephyr/
DKconfig4 config ZEPHYR_CHRE_MODULE
19 config CHRE_MESSAGE_TO_HOST_MAX_SIZE
25 config CHRE_ASSERTIONS
31 config CHRE_AUDIO_SUPPORT_ENABLED
37 config CHRE_GNSS_SUPPORT_ENABLED
43 config CHRE_SENSORS_SUPPORT_ENABLED
49 config CHRE_WIFI_SUPPORT_ENABLED
55 config CHRE_DYNAMIC_MEMORY_SIZE
59 config CHRE_TASK_NAME
63 config CHRE_TASK_STACK_SIZE
[all …]
/system/media/alsa_utils/
Dalsa_device_proxy.c52 struct pcm_config * config, bool require_exact_match) in proxy_prepare() argument
61 log_pcm_config(config, "proxy_setup()"); in proxy_prepare()
64 if (config->format != PCM_FORMAT_INVALID && profile_is_format_valid(profile, config->format)) { in proxy_prepare()
65 proxy->alsa_config.format = config->format; in proxy_prepare()
71 config->format, profile->default_config.format); in proxy_prepare()
73 if (config->format != PCM_FORMAT_INVALID) { in proxy_prepare()
78 if (config->rate != 0 && profile_is_sample_rate_valid(profile, config->rate)) { in proxy_prepare()
79 proxy->alsa_config.rate = config->rate; in proxy_prepare()
85 config->rate, profile->default_config.rate); in proxy_prepare()
87 if (config->rate != 0) { in proxy_prepare()
[all …]
Dalsa_device_profile.c236 struct pcm_config config = profile->default_config; in profile_test_sample_rate() local
237 config.rate = rate; in profile_test_sample_rate()
258 if (config.channels < FCC_LIMIT) { in profile_test_sample_rate()
259 config.channels = profile->max_channel_count; in profile_test_sample_rate()
260 if (config.channels > FCC_LIMIT) config.channels = FCC_LIMIT; in profile_test_sample_rate()
264 profile->direction, &config); in profile_test_sample_rate()
376 static int read_alsa_device_config(alsa_device_profile * profile, struct pcm_config * config) in read_alsa_device_config() argument
406 config->channels = pcm_params_get_min(alsa_hw_params, PCM_PARAM_CHANNELS); in read_alsa_device_config()
410 config->channels < 2 && pcm_params_get_max(alsa_hw_params, PCM_PARAM_CHANNELS) >= 2) { in read_alsa_device_config()
411 config->channels = 2; in read_alsa_device_config()
[all …]
/system/extras/simpleperf/scripts/
Dannotate.py147 def __init__(self, config): argument
151 if name not in config:
161 self.config = config
164 self.dso_filter = set(config['dso_filters']) if config.get('dso_filters') else None
166 config['annotate_dest_dir'] = 'annotated_files'
167 output_dir = config['annotate_dest_dir']
172 self.addr2line = Addr2Line(self.config['ndk_path'], symfs_dir, config.get('source_dirs'))
188 for perf_data in self.config['perf_data_list']:
195 lib.SetReportOptions(self.config['report_lib_options'])
226 for perf_data in self.config['perf_data_list']:
[all …]
/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/linkerconfig/modules/tests/
Dnamespace_test.cc108 auto config = writer.ToString(); in TEST() local
110 ASSERT_EQ(config, kExpectedSimpleNamespaceConfig); in TEST()
119 auto config = writer.ToString(); in TEST() local
121 ASSERT_EQ(config, kExpectedNamespaceWithLinkConfig); in TEST()
131 auto config = writer.ToString(); in TEST() local
133 ASSERT_EQ(config, kExpectedNamespaceWithAllowedLibs); in TEST()
/system/apex/tests/testdata/sharedlibs/build/
Dshared_libs_repack.py255 for config in configs:
256 result.append(config.split())
262 for config in configs:
263 result += ' '.join(config) + '\n'
350 canned_fs_config = [config for config in canned_fs_config
351 if not config[0].startswith('/bin')]
360 canned_fs_config_original_lib = {config[0] : config
361 for config in canned_fs_config
362 if config[0] in source_lib_paths}
364 canned_fs_config = [config for config in canned_fs_config
[all …]
/system/linkerconfig/
DREADME.md6 environment. Linkerconfig generates one or more ld.config.txt files and some
16 ### linker.config.json
23 A linker configuration file(linker.config.json) is compiled into a protobuf at build time
24 by `conv_linker_config`. You can find the compiled file under `<base>/etc/linker.config.pb`.
25 For example, `/apex/com.android.art/etc/linker.config.pb` is a configuration for the `com.android.a…
28 `/system/etc/linker.config.pb`(or its source module `system_linker_config`) is special because
33 linker.config.json file is in json format which can contain properties as below.
62 ### /linkerconfig/ld.config.txt & /linkerconfig/*/ld.config.txt
67 [ld.config.format.md](https://android.googlesource.com/platform/bionic/+/master/linker/ld.config.fo…

12345678910>>...18