Home
last modified time | relevance | path

Searched refs:to_string (Results 1 – 25 of 170) sorted by relevance

1234567

/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/bin/btmanagerd/
Dconfig_util.rs101 section.as_object_mut()?.insert("enabled".to_string(), Value::Bool(enabled)); in modify_hci_n_enabled_internal()
106 entry_map.insert("enabled".to_string(), Value::Bool(enabled)); in modify_hci_n_enabled_internal()
120 .map(|e| e.unwrap().path().file_name().unwrap().to_str().unwrap().to_string()) in list_hci_devices_string()
136 .map(|e| e.unwrap().path().file_name().unwrap().to_str().unwrap().to_string()) in list_pid_files()
153 get_log_level_internal("{\"log_level\": \"error\"}".to_string()).unwrap(), in parse_log_level()
157 get_log_level_internal("{\"log_level\": \"warn\"}".to_string()).unwrap(), in parse_log_level()
161 get_log_level_internal("{\"log_level\": \"info\"}".to_string()).unwrap(), in parse_log_level()
165 get_log_level_internal("{\"log_level\": \"debug\"}".to_string()).unwrap(), in parse_log_level()
169 get_log_level_internal("{\"log_level\": \"trace\"}".to_string()).unwrap(), in parse_log_level()
173 get_log_level_internal("{\"log_level\": \"random\"}".to_string()).is_none(), in parse_log_level()
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_bqr.cc50 << ": Parameter total length: " << std::to_string(length) in ParseBqrLinkQualityEvt()
52 << std::to_string(kLinkQualityParamTotalLen); in ParseBqrLinkQualityEvt()
82 << ": Parameter total length: " << std::to_string(length) in ParseBqrLinkQualityEvt()
89 << std::to_string(kLinkQualityParamTotalLen + in ParseBqrLinkQualityEvt()
158 << ", PwLv: " << std::to_string(bqr_link_quality_event_.tx_power_level) in ToString()
159 << ", RSSI: " << std::to_string(bqr_link_quality_event_.rssi) in ToString()
160 << ", SNR: " << std::to_string(bqr_link_quality_event_.snr) in ToString()
162 << std::to_string(bqr_link_quality_event_.unused_afh_channel_count) in ToString()
164 << std::to_string(bqr_link_quality_event_.afh_select_unideal_channel_count) in ToString()
166 << std::to_string(bqr_link_quality_event_.retransmission_count) in ToString()
[all …]
/packages/modules/Virtualization/compos/composd/src/
Dfd_server_helper.rs55 let mut args = vec![FD_SERVER_BIN.to_string()]; in do_spawn_fd_server()
57 args.push("--ro-fds".to_string()); in do_spawn_fd_server()
58 args.push(fd.to_string()); in do_spawn_fd_server()
62 args.push("--rw-fds".to_string()); in do_spawn_fd_server()
63 args.push(fd.to_string()); in do_spawn_fd_server()
67 args.push("--ro-dirs".to_string()); in do_spawn_fd_server()
68 args.push(fd.to_string()); in do_spawn_fd_server()
72 args.push("--rw-dirs".to_string()); in do_spawn_fd_server()
73 args.push(fd.to_string()); in do_spawn_fd_server()
77 args.push("--ready-fd".to_string()); in do_spawn_fd_server()
[all …]
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth_media.rs157 info!("[{}]: a2dp connected.", addr.to_string()); in dispatch_a2dp_callbacks()
164 warn!("[{}]: Unknown address a2dp disconnected.", addr.to_string()); in dispatch_a2dp_callbacks()
213 info!("[{}]: hfp connected.", addr.to_string()); in dispatch_hfp_callbacks()
216 info!("[{}]: hfp slc connected.", addr.to_string()); in dispatch_hfp_callbacks()
222 info!("[{}]: hfp disconnected.", addr.to_string()); in dispatch_hfp_callbacks()
226 warn!("[{}] Unknown address hfp disconnected.", addr.to_string()) in dispatch_hfp_callbacks()
232 info!("[{}]: hfp connecting.", addr.to_string()); in dispatch_hfp_callbacks()
235 info!("[{}]: hfp disconnecting.", addr.to_string()); in dispatch_hfp_callbacks()
245 warn!("[{}]: Unknown address hfp or slc not ready", addr.to_string()); in dispatch_hfp_callbacks()
250 info!("[{}]: hfp audio connected.", addr.to_string()); in dispatch_hfp_callbacks()
[all …]
/packages/modules/Virtualization/virtualizationservice/src/
Dpayload.rs443 let expected: HashSet<_> = expected.into_iter().map(ToString::to_string).collect(); in test_find_apex_names_in_classpath()
454 name: "com.android.adbd".to_string(), in test_collect_apexes()
464 name: "com.android.os.statsd".to_string(), in test_collect_apexes()
474 name: "com.android.os.statsd".to_string(), in test_collect_apexes()
484 name: "no_classpath".to_string(), in test_collect_apexes()
494 name: "has_classpath".to_string(), in test_collect_apexes()
504 name: "has_classpath".to_string(), in test_collect_apexes()
514 name: "apex-foo".to_string(), in test_collect_apexes()
524 name: "apex-foo".to_string(), in test_collect_apexes()
534 name: "sharedlibs".to_string(), in test_collect_apexes()
[all …]
/packages/modules/adb/
Dtransport_test.cpp24 TEST(ConnectionStateTest, to_string) { in TEST() argument
25 ASSERT_EQ("offline", to_string(ConnectionState::kCsOffline)); in TEST()
26 ASSERT_EQ("bootloader", to_string(ConnectionState::kCsBootloader)); in TEST()
27 ASSERT_EQ("device", to_string(ConnectionState::kCsDevice)); in TEST()
28 ASSERT_EQ("host", to_string(ConnectionState::kCsHost)); in TEST()
29 ASSERT_EQ("recovery", to_string(ConnectionState::kCsRecovery)); in TEST()
30 ASSERT_EQ("rescue", to_string(ConnectionState::kCsRescue)); in TEST()
31 ASSERT_EQ("sideload", to_string(ConnectionState::kCsSideload)); in TEST()
32 ASSERT_EQ("unauthorized", to_string(ConnectionState::kCsUnauthorized)); in TEST()
33 ASSERT_EQ("authorizing", to_string(ConnectionState::kCsAuthorizing)); in TEST()
[all …]
/packages/modules/Bluetooth/system/gd/storage/
Dconfig_cache_test.cc223 config.SetProperty(GetTestAddress(i), "Name", "Hello" + std::to_string(i)); in TEST()
225 config.SetProperty(GetTestAddress(i), "LinkKey", "Key" + std::to_string(i)); in TEST()
232 …_THAT(config.GetProperty(GetTestAddress(i), "Name"), Optional(StrEq("Hello" + std::to_string(i)))); in TEST()
235 …_THAT(config.GetProperty(GetTestAddress(i), "Name"), Optional(StrEq("Hello" + std::to_string(i)))); in TEST()
289 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::BR_EDR)))); in TEST()
298 …config.SetProperty("AA:BB:CC:DD:EE:FF", "DevType", std::to_string(bluetooth::hci::DeviceType::BR_E… in TEST()
301 …config.SetProperty("CC:DD:EE:FF:00:11", "DevType", std::to_string(bluetooth::hci::DeviceType::BR_E… in TEST()
311 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::BR_EDR)))); in TEST()
320 …config.SetProperty("AA:BB:CC:DD:EE:FF", "DevType", std::to_string(bluetooth::hci::DeviceType::BR_E… in TEST()
323 …config.SetProperty("CC:DD:EE:FF:00:11", "DevType", std::to_string(bluetooth::hci::DeviceType::BR_E… in TEST()
[all …]
Dconfig_cache_helper.cc44 config_cache_.SetProperty(section, property, std::to_string(value)); in SetUint64()
56 config_cache_.SetProperty(section, property, std::to_string(value)); in SetUint32()
75 config_cache_.SetProperty(section, property, std::to_string(value)); in SetInt64()
87 config_cache_.SetProperty(section, property, std::to_string(value)); in SetInt()
Dconfig_cache_helper_test.cc55 …ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<int>::… in TEST()
74 …config.GetProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<uint32_t>::max()) … in TEST()
88 …ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<int32_… in TEST()
93 …config.GetProperty("A", "B"), Optional(StrEq("-" + std::to_string(std::numeric_limits<int32_t>::ma… in TEST()
/packages/modules/Bluetooth/system/packet/tests/
Dpacket_test_helper.h69 inline std::string to_string(const Attribute& a) { in to_string() function
92 inline std::string to_string(const AttributeEntry& entry) { in to_string() function
94 ss << to_string(entry.attribute()) << ": " << entry.value(); in to_string()
99 std::string to_string(const Container& entries) { in to_string() function
102 ss << to_string(el) << std::endl; in to_string()
177 << to_string(_order_control) << "\n sended:\n" in finishTest()
178 << to_string(_sended_order) << "\n"; in finishTest()
212 _report << __func__ << "FAIL for \"" << to_string(entry) in wholeEntry()
229 _report << __func__ << "FAIL for \"" << to_string(entry) in fractionEntry()
235 _report << __func__ << "FAIL for \"" << to_string(entry) in fractionEntry()
[all …]
/packages/modules/Virtualization/compos/src/
Dcompilation.rs116 manifestPath: "/mnt/extra-apk/0/assets/build_manifest.pb".to_string(), in odrefresh()
117 prefix: "system/".to_string(), in odrefresh()
132 android_root.push(context.system_dir_fd.to_string()); in odrefresh()
137 let art_apex_data = mountpoint.join(context.output_dir_fd.to_string()); in odrefresh()
141 let staging_dir = mountpoint.join(context.staging_dir_fd.to_string()); in odrefresh()
146 "odrefresh".to_string(), in odrefresh()
147 "--compilation-os-mode".to_string(), in odrefresh()
151 "--no-refresh".to_string(), in odrefresh()
166 args.push(compile_flag.to_string()); in odrefresh()
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/
Dmain.rs186 assert_eq!(get_adapter_index(&vec! {"--bar".to_string(), "--hci".to_string()}), 0); in device_index_parsed()
187 assert_eq!(get_adapter_index(&vec! {"--hci=foo".to_string()}), 0); in device_index_parsed()
188 assert_eq!(get_adapter_index(&vec! {"--hci=12t".to_string()}), 0); in device_index_parsed()
191 assert_eq!(get_adapter_index(&vec! {"--hci=12".to_string()}), 12); in device_index_parsed()
192 assert_eq!(get_adapter_index(&vec! {"--hci=1".to_string(), "--hci=2".to_string()}), 1); in device_index_parsed()
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dtest_command_handler.cc139 std::to_string(dev_index) + std::string(":") + new_dev->ToString(); in Add()
167 response_string_ = args[0] + std::string("@") + std::to_string(port); in AddRemote()
176 std::to_string(dev_index); in Del()
201 std::to_string(phy_index); in DelPhy()
217 std::to_string(dev_index) + " and phy " + std::to_string(phy_index); in AddDeviceToPhy()
234 std::to_string(dev_index) + " and phy " + std::to_string(phy_index); in DelDeviceFromPhy()
/packages/modules/NeuralNetworks/runtime/test/
DTestServerFlag.cpp39 return std::to_string(kDefaultFeatureLevelNum); in fakeServerFuncDefault()
45 return std::to_string(kMaxFeatureLevelNum); in fakeServerFuncMax()
51 return std::to_string(kMinFeatureLevelNum); in fakeServerFuncMin()
57 return std::to_string(kMaxFeatureLevelNum + 1); in fakeServerFuncLarge()
63 return std::to_string(kMinFeatureLevelNum - 1); in fakeServerFuncSmall()
75 return std::to_string(kDefaultTelemetryEnableValue); in fakeServerTelemetryFuncDefault()
/packages/modules/Bluetooth/system/gd/rust/linux/dbus_projection/dbus_macros/src/
Dlib.rs27 .to_string(); in debug_output_to_file()
31 file.write_all(gen.to_string().as_bytes()).unwrap(); in debug_output_to_file()
84 if !attr.path.get_ident().unwrap().to_string().eq("dbus_method") { in generate_dbus_exporter()
112 let mut dbus_input_ident = ident.to_string(); in generate_dbus_exporter()
115 let ident_string = ident.to_string(); in generate_dbus_exporter()
145 e.to_string().as_str() in generate_dbus_exporter()
216 debug_output_to_file(&gen, format!("out-{}.rs", fn_ident.to_string())); in generate_dbus_exporter()
253 if !attr.path.get_ident().unwrap().to_string().eq("dbus_method") { in generate_dbus_interface_client()
282 if type_path.path.segments[0].ident.to_string().eq("Box") { in generate_dbus_interface_client()
383 .to_string(), in generate_dbus_interface_client()
[all …]
/packages/modules/DnsResolver/doh/
Dffi.rs52 CString::new(info.peer_addr.ip().to_string()), in wrap_validation_callback()
201 (url, None, ip_addr.to_string(), None) in doh_net_new()
203 (url, Some(domain.to_string()), ip_addr.to_string(), Some(cert_path.to_string())) in doh_net_new()
207 Some(domain.to_string()), in doh_net_new()
208 ip_addr.to_string(), in doh_net_new()
209 Some(SYSTEM_CERT_PATH.to_string()), in doh_net_new()
371 assert_eq!(ip_addr, expected_addr.ip().to_string()); in assert_validation_info()
Dconfig.rs182 cert_path: Some("data/local/tmp/".to_string()), in create_quiche_config()
204 let key_b = Key { cert_path: Some("a".to_string()), max_idle_timeout: 1000 }; in different_keys()
205 let key_c = Key { cert_path: Some("a".to_string()), max_idle_timeout: 5000 }; in different_keys()
223 let key_a = Key { cert_path: Some("a".to_string()), max_idle_timeout: 1000 }; in lifetimes()
224 let key_b = Key { cert_path: Some("b".to_string()), max_idle_timeout: 1000 }; in lifetimes()
/packages/modules/Bluetooth/system/gd/metrics/
Dcounter_metrics.cc58 LOG_WARN("count is not larger than 0. count: %s, key: %d", std::to_string(count).c_str(), key); in CacheCount()
68 std::to_string(count).c_str(), std::to_string(total).c_str(), key); in CacheCount()
82 LOG_WARN("count is not larger than 0. count: %s, key: %d", std::to_string(count).c_str(), key); in Count()
/packages/modules/Bluetooth/system/gd/os/linux_generic/
Dqueue_unittest.cc218 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
260 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
272 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
295 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
327 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
339 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
362 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
397 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
427 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
469 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
[all …]
/packages/modules/Virtualization/authfs/service/src/
Dauthfs.rs61 path.push(remote_fd_name.to_string()); in openFile()
73 Ok(s.to_string()) in getMountPoint()
147 args.push(OsString::from(conf.fd.to_string())); in run_authfs()
151 args.push(OsString::from(conf.fd.to_string())); in run_authfs()
159 args.push(OsString::from(conf.fd.to_string())); in run_authfs()
/packages/modules/Bluetooth/system/include/hardware/
Dbt_av.h246 " priority: " + std::to_string(codec_priority) + in ToString()
250 " codec_specific_1: " + std::to_string(codec_specific_1) + in ToString()
251 " codec_specific_2: " + std::to_string(codec_specific_2) + in ToString()
252 " codec_specific_3: " + std::to_string(codec_specific_3) + in ToString()
253 " codec_specific_4: " + std::to_string(codec_specific_4); in ToString()
/packages/modules/Bluetooth/system/gd/os/android/
Dmetrics.cc123 std::to_string(encoding_interval_nanos).c_str(), in LogMetricA2dpAudioUnderrunEvent()
154 std::to_string(encoding_interval_nanos).c_str(), in LogMetricA2dpAudioOverrunEvent()
290 std::to_string(event_value).c_str(), in LogMetricClassicPairingEvent()
356 std::to_string(tx_bytes).c_str(), in LogMetricSocketConnectionState()
357 std::to_string(rx_bytes).c_str(), in LogMetricSocketConnectionState()
435 std::to_string(features).c_str(), in LogMetricBluetoothLocalSupportedFeatures()
497 std::to_string(features).c_str(), in LogMetricBluetoothRemoteSupportedFeatures()
508 key, std::to_string(count).c_str(), ret); in LogMetricBluetoothCodePathCounterMetrics()
/packages/modules/Virtualization/microdroid_manager/src/
Dmain.rs87 MicrodroidError::PayloadChanged(msg) => (ERROR_PAYLOAD_CHANGED, msg.to_string()), in translate_error()
89 (ERROR_PAYLOAD_VERIFICATION_FAILED, msg.to_string()) in translate_error()
91 MicrodroidError::InvalidConfig(msg) => (ERROR_PAYLOAD_INVALID_CONFIG, msg.to_string()), in translate_error()
94 (ERROR_UNKNOWN, err.to_string()) in translate_error()
217 MicrodroidError::InvalidConfig("Found instance data on first boot.".to_string()) in try_run_payload()
222 MicrodroidError::InvalidConfig("Instance data not found.".to_string()) in try_run_payload()
257 MicrodroidError::InvalidConfig("No payload_config_path in metadata".to_string()) in try_run_payload()
283 MicrodroidError::InvalidConfig("No task in VM config".to_string()) in try_run_payload()
592 let value = watcher.read(|_name, value| Ok(value.trim().to_string()))?; in find_library_path()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/btif_macros/src/
Dlib.rs27 .to_string(); in debug_output_to_file()
31 file.write_all(gen.to_string().as_bytes()).unwrap(); in debug_output_to_file()
79 if !attr.path.get_ident().unwrap().to_string().eq("btif_callback") { in btif_callbacks_dispatcher()
135 debug_output_to_file(&gen, format!("out-{}.rs", fn_ident.to_string())); in btif_callbacks_dispatcher()
/packages/modules/SdkExtensions/derive_classpath/
Dderive_classpath_test.cpp448 jar->set_min_sdk_version(std::to_string(__ANDROID_API_R__)); in TEST_F()
453 jar->set_max_sdk_version(std::to_string(__ANDROID_API_R__)); in TEST_F()
459 jar->set_min_sdk_version(std::to_string(android_get_device_api_level())); in TEST_F()
464 jar->set_max_sdk_version(std::to_string(android_get_device_api_level())); in TEST_F()
473 jar->set_min_sdk_version(std::to_string(android_get_device_api_level() + 1)); in TEST_F()
477 jar->set_max_sdk_version(std::to_string(android_get_device_api_level() + 1)); in TEST_F()
484 jar->set_min_sdk_version(std::to_string(__ANDROID_API_R__)); in TEST_F()
485 jar->set_max_sdk_version(std::to_string(android_get_device_api_level() + 1)); in TEST_F()

1234567