/system/core/rootdir/ |
D | init.usb.configfs.rc | 1 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 …]
|
D | init.usb.rc | 32 on property:sys.usb.config=none && property:sys.usb.configfs=0 36 setprop sys.usb.state ${sys.usb.config} 41 on property:sys.usb.config=adb && property:sys.usb.configfs=0 45 write /sys/class/android_usb/android0/functions ${sys.usb.config} 48 setprop sys.usb.state ${sys.usb.config} 51 on property:sys.usb.config=accessory && property:sys.usb.configfs=0 55 write /sys/class/android_usb/android0/functions ${sys.usb.config} 57 setprop sys.usb.state ${sys.usb.config} 60 on property:sys.usb.config=accessory,adb && property:sys.usb.configfs=0 64 write /sys/class/android_usb/android0/functions ${sys.usb.config} [all …]
|
/system/nfc/utils/test/ |
D | config_test.cc | 72 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/ |
D | charger_test.cpp | 119 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/ |
D | sensor_test.cc | 66 auto config = static_cast<const Configuration *>(event->data); in TEST_F() local 68 config->sensorHandle, config->mode, config->interval, 0); in TEST_F() 84 Configuration config{.sensorHandle = 0, in TEST_F() local 87 sendEventToNanoapp(appId, CONFIGURE, config); in TEST_F() 92 EXPECT_EQ(event.sensorHandle, config.sensorHandle); in TEST_F() 93 EXPECT_EQ(event.status.interval, config.interval); in TEST_F() 97 config = {.sensorHandle = 0, in TEST_F() 100 sendEventToNanoapp(appId, CONFIGURE, config); in TEST_F() 133 auto config = static_cast<const Configuration *>(event->data); in TEST_F() local 135 config->sensorHandle, config->mode, config->interval, 0); in TEST_F() [all …]
|
D | wifi_nan_test.cc | 98 auto config = (chreWifiNanSubscribeConfig *)(event->data); in TEST_F() local 99 chreWifiNanSubscribe(config, &kSubscribeCookie); in TEST_F() 113 chreWifiNanSubscribeConfig config = { in TEST_F() local 117 sendEventToNanoapp(appId, NAN_SUBSCRIBE, config); in TEST_F() 158 auto config = (chreWifiNanSubscribeConfig *)(event->data); in TEST_F() local 160 chreWifiNanSubscribe(config, &kSubscribeCookie); in TEST_F() 172 chreWifiNanSubscribeConfig config = { in TEST_F() local 176 sendEventToNanoapp(appId, NAN_SUBSCRIBE, config); in TEST_F() 216 auto config = (chreWifiNanSubscribeConfig *)(event->data); in TEST_F() local 218 chreWifiNanSubscribe(config, &kSubscribeCookie); in TEST_F() [all …]
|
/system/linkerconfig/modules/ |
D | basecontext.cc | 70 const android::linkerconfig::proto::LinkerConfig& config) { in SetSystemConfig() argument 72 config.providelibs().begin(), in SetSystemConfig() 73 config.providelibs().end()); in SetSystemConfig() 75 config.requirelibs().begin(), in SetSystemConfig() 76 config.requirelibs().end()); in SetSystemConfig() 87 const android::linkerconfig::proto::LinkerConfig& config) { in SetVendorConfig() argument 88 vendor_provide_libs_ = {config.providelibs().begin(), in SetVendorConfig() 89 config.providelibs().end()}; in SetVendorConfig() 90 vendor_require_libs_ = {config.requirelibs().begin(), in SetVendorConfig() 91 config.requirelibs().end()}; in SetVendorConfig() [all …]
|
/system/logging/rust/ |
D | logger.rs | 85 pub fn init(config: Config) -> bool { in init() 92 if let Some(log_level) = config.log_level { in init() 95 if let Some(custom_format) = config.custom_format { in init() 103 if let Some(filter_str) = config.filter { in init() 113 pub fn init(config: Config) -> bool { in init() 122 if let Some(log_level) = config.log_level { in init() 125 if let Some(custom_format) = config.custom_format { in init() 131 if let Some(filter_str) = config.filter { in init() 135 if let Some(tag) = config.tag { in init() 152 let config = Config::default() in test_with_max_level() localVariable [all …]
|
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/ |
D | tracker_storage.cc | 19 const TrackerBatchConfig &config) { in Push() argument 22 UpdateTrackerReport(tracker_report, config); in Push() 26 AddTrackerReport(report, config); in Push() 29 void TrackerStorage::Refresh(const TrackerBatchConfig &config) { in Refresh() argument 31 if (config.lost_timeout_ms == 0) { in Refresh() 43 if (current_time_ms >= back.last_found_time_ms + config.lost_timeout_ms) { in Refresh() 51 const TrackerBatchConfig &config) { in UpdateTrackerReport() argument 60 config.sample_interval_ms) { in UpdateTrackerReport() 65 if (tracker_report.historian.size() > config.max_history_count) { in UpdateTrackerReport() 69 tracker_report.historian.size(), config.max_history_count); in UpdateTrackerReport() [all …]
|
D | app_manager.cc | 233 nearby_BleConfig config = nearby_BleConfig_init_zero; in HandleHostConfigRequest() local 235 if (!pb_decode(&stream, nearby_BleConfig_fields, &config)) { in HandleHostConfigRequest() 239 if (config.has_screen_on) { in HandleHostConfigRequest() 240 screen_on_ = config.screen_on; in HandleHostConfigRequest() 271 if (config.has_fast_pair_cache_expire_time_sec) { in HandleHostConfigRequest() 272 fp_filter_cache_expire_nanosec_ = config.fast_pair_cache_expire_time_sec; in HandleHostConfigRequest() 456 nearby_extension_ExtConfigRequest config = in HandleHostExtConfigRequest() local 461 if (!pb_decode(&stream, nearby_extension_ExtConfigRequest_fields, &config)) { in HandleHostExtConfigRequest() 471 GetExtConfigNameFromTag(config.which_config)); in HandleHostExtConfigRequest() 473 switch (config.which_config) { in HandleHostExtConfigRequest() [all …]
|
/system/update_engine/payload_generator/ |
D | delta_diff_generator.cc | 72 const PayloadGenerationConfig& config, in PartitionProcessor() argument 80 : config_(config), in PartitionProcessor() 170 bool GenerateUpdatePayloadFile(const PayloadGenerationConfig& config, in GenerateUpdatePayloadFile() argument 174 if (!config.version.Validate()) { in GenerateUpdatePayloadFile() 175 LOG(ERROR) << "Unsupported major.minor version: " << config.version.major in GenerateUpdatePayloadFile() 176 << "." << config.version.minor; in GenerateUpdatePayloadFile() 182 TEST_AND_RETURN_FALSE(payload.Init(config)); in GenerateUpdatePayloadFile() 188 if (config.is_delta) { in GenerateUpdatePayloadFile() 189 TEST_AND_RETURN_FALSE(config.source.partitions.size() == in GenerateUpdatePayloadFile() 190 config.target.partitions.size()); in GenerateUpdatePayloadFile() [all …]
|
D | full_update_generator.cc | 114 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 …]
|
D | payload_properties_unittest.cc | 56 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/ |
D | extensions.cpp | 100 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/ |
D | config_util.cc | 32 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/linkerconfig/contents/tests/configuration/ |
D | apexconfig_test.cc | 61 auto config = android::linkerconfig::contents::CreateApexConfiguration( in TEST_F() local 65 config.WriteConfig(config_writer); in TEST_F() 76 auto config = android::linkerconfig::contents::CreateApexConfiguration( in TEST_F() local 80 config.WriteConfig(config_writer); in TEST_F() 97 auto config = android::linkerconfig::contents::CreateApexConfiguration( in TEST_F() local 101 config.WriteConfig(config_writer); in TEST_F() 118 auto config = android::linkerconfig::contents::CreateApexConfiguration( in TEST_F() local 122 config.WriteConfig(config_writer); in TEST_F() 141 auto config = CreateApexConfiguration(ctx, vendor_apex); in TEST_F() local 143 auto* section = config.GetSection("com.android.vendor"); in TEST_F() [all …]
|
/system/extras/profcollectd/libprofcollectd/ |
D | scheduler.rs | 28 use crate::config::{get_sampling_period, 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() 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() 104 &config.binary_filter, in one_shot() 110 pub fn process(&self, config: &Config) -> Result<()> { in process() [all …]
|
/system/chre/platform/zephyr/ |
D | Kconfig | 4 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/linkerconfig/modules/tests/ |
D | namespace_test.cc | 108 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() 174 auto config = writer.ToString(); in TEST() local 176 ASSERT_EQ(config, kExpectedNamespaceWithLinkConfig); in TEST()
|
/system/media/alsa_utils/ |
D | alsa_device_proxy.c | 52 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 …]
|
D | alsa_device_profile.c | 236 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/ |
D | annotate.py | 147 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']: 194 lib.SetReportOptions(self.config['report_lib_options']) 225 for perf_data in self.config['perf_data_list']: [all …]
|
/system/extras/tests/icachetest/ |
D | Profiler.cpp | 84 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/apex/tests/testdata/sharedlibs/build/ |
D | shared_libs_repack.py | 255 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/ |
D | README.md | 6 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. 65 `linkerconfig` generates `apex.libraries.config.txt` file which lists public libraries provided APE… 70 ### /linkerconfig/ld.config.txt & /linkerconfig/*/ld.config.txt 75 [ld.config.format.md](https://android.googlesource.com/platform/bionic/+/master/linker/ld.config.fo…
|