| /packages/modules/Bluetooth/system/gd/rust/linux/utils/src/ |
| D | at_command_parser.rs | 69 return Err("Cannot parse empty AT command".to_string()); in parse_at_command_data() 71 let at_type = parse_at_command_type(clean_at_string.to_string()); in parse_at_command_data() 85 None => return Err("No command supplied".to_string()), in parse_at_command_data() 88 AT_COMMAND_VENDOR_XAPL => Some(AT_COMMAND_VENDOR_APPLE.to_string()), in parse_at_command_data() 89 AT_COMMAND_VENDOR_IPHONEACCEV => Some(AT_COMMAND_VENDOR_APPLE.to_string()), in parse_at_command_data() 90 AT_COMMAND_VENDOR_XEVENT => Some(AT_COMMAND_VENDOR_PLANTRONICS.to_string()), in parse_at_command_data() 101 .map(|arg| arg.to_string()) in parse_at_command_data() 115 raw: at_string.to_string(), in parse_at_command_data() 117 command: command.to_string(), in parse_at_command_data() 139 Err(e) => return Err(e.to_string()), in calculate_battery_percent() [all …]
|
| D | adv_parser.rs | 79 .map_or("".to_string(), |v| String::from_utf8_lossy(v).to_string()) in extract_name() 88 .map(|uuid| (uuid.to_string(), slice[2..].to_vec())) in extract_service_data() 93 .map(|uuid| (uuid.to_string(), slice[4..].to_vec())) in extract_service_data() 98 .map(|uuid| (uuid.to_string(), slice[16..].to_vec())) in extract_service_data() 280 .to_string(); in test_extract_service_data() 285 .to_string(); in test_extract_service_data() 288 Uuid::from([15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]).to_string(); in test_extract_service_data() 291 Uuid::from([16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]).to_string(); in test_extract_service_data()
|
| /packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/ |
| D | migrate.rs | 774 Some(reverse_endianness(val[0..32].to_string(), true).unwrap_or_default()), in convert_floss_conf() 946 assert_eq!(key.apply_action("2360344".to_string()), Ok("0x240418".to_string())); in test_device_key_apply_dec_to_hex() 948 key.apply_action("236034B".to_string()), in test_device_key_apply_dec_to_hex() 950 .to_string()) in test_device_key_apply_dec_to_hex() 961 assert_eq!(key.apply_action("0x240418".to_string()), Ok("2360344".to_string())); in test_device_key_apply_to_section_hex_to_dec() 964 key.apply_action("236034T".to_string()), in test_device_key_apply_to_section_hex_to_dec() 966 .to_string()) in test_device_key_apply_to_section_hex_to_dec() 975 …3881069501050c0a38028106c0c00643ff0a0202a101851175089513150026ff000902810009029100c0".to_string()), in test_hex_to_base64() 976 …/B3UMlQIJMAkxgQYVgSV/dQiVAQk4gQaVAQUMCjgCgQbAwAZD/woCAqEBhRF1CJUTFQAm/wAJAoEACQKRAMA=".to_string()) in test_hex_to_base64() 979 …3881069501050c0a38028106c0c00643ff0a0202a101851175089513150026ff000902810009029100c0".to_string()), in test_hex_to_base64() [all …]
|
| D | config_util.rs | 118 section.as_object_mut()?.insert("enabled".to_string(), Value::Bool(enabled)); in modify_hci_n_enabled_internal() 123 entry_map.insert("enabled".to_string(), Value::Bool(enabled)); in modify_hci_n_enabled_internal() 159 .map(|e| e.unwrap().path().file_name().unwrap().to_str().unwrap().to_string()) in list_hci_devices_string() 186 .map(|e| e.unwrap().path().file_name().unwrap().to_str().unwrap().to_string()) in list_pid_files() 294 get_log_level_internal("{\"log_level\": \"error\"}".to_string()).unwrap(), in parse_log_level() 298 get_log_level_internal("{\"log_level\": \"warn\"}".to_string()).unwrap(), in parse_log_level() 302 get_log_level_internal("{\"log_level\": \"info\"}".to_string()).unwrap(), in parse_log_level() 306 get_log_level_internal("{\"log_level\": \"debug\"}".to_string()).unwrap(), in parse_log_level() 310 get_log_level_internal("{\"log_level\": \"trace\"}".to_string()).unwrap(), in parse_log_level() 314 get_log_level_internal("{\"log_level\": \"random\"}".to_string()).is_none(), in parse_log_level() [all …]
|
| /packages/modules/Virtualization/compos/composd/src/ |
| D | fd_server_helper.rs | 55 let mut args = vec![FD_SERVER_BIN.to_string()]; in do_spawn_fd_server() 58 args.push("--ro-fds".to_string()); in do_spawn_fd_server() 59 args.push(raw_fd.to_string()); in do_spawn_fd_server() 64 args.push("--rw-fds".to_string()); in do_spawn_fd_server() 65 args.push(raw_fd.to_string()); in do_spawn_fd_server() 70 args.push("--ro-dirs".to_string()); in do_spawn_fd_server() 71 args.push(raw_fd.to_string()); in do_spawn_fd_server() 76 args.push("--rw-dirs".to_string()); in do_spawn_fd_server() 77 args.push(raw_fd.to_string()); in do_spawn_fd_server() 81 args.push("--ready-fd".to_string()); in do_spawn_fd_server() [all …]
|
| /packages/modules/StatsD/statsd/tests/e2e/ |
| D | RestrictedEventMetric_e2e_test.cpp | 156 EXPECT_THAT(queryDataResult, ElementsAre(to_string(atomTag), to_string(configAddedTimeNs + 100), in TEST_F() 159 to_string(atomTag), to_string(configAddedTimeNs + 200), in TEST_F() 162 to_string(atomTag), to_string(configAddedTimeNs + 300), in TEST_F() 209 EXPECT_THAT(queryDataResult, ElementsAre(to_string(atomTag), to_string(configAddedTimeNs + 100), in TEST_F() 255 EXPECT_THAT(queryDataResult, ElementsAre(to_string(atomTag), to_string(configAddedTimeNs + 100), in TEST_F() 258 to_string(11) // field_2 in TEST_F() 301 EXPECT_THAT(queryDataResult, ElementsAre(to_string(atomTag), to_string(configAddedTimeNs + 100), in TEST_F() 325 ElementsAre(to_string(atomTag), to_string(originalEventElapsedTime), in TEST_F() 358 ElementsAre(to_string(atomTag), to_string(originalEventElapsedTime + 100), in TEST_F() 360 to_string(111), // field_1 in TEST_F() [all …]
|
| /packages/modules/Bluetooth/system/gd/rust/linux/client/src/ |
| D | callbacks.rs | 145 remote_device.address.to_string(), in on_device_properties_changed() 151 print_info!("Address changed to {}", addr.to_string()); in on_address_changed() 168 .entry(remote_device.address.to_string()) in on_device_found() 173 remote_device.address.to_string(), in on_device_found() 179 match self.context.lock().unwrap().found_devices.remove(&remote_device.address.to_string()) in on_device_cleared() 183 remote_device.address.to_string(), in on_device_cleared() 189 self.context.lock().unwrap().bonded_devices.remove(&remote_device.address.to_string()); in on_device_cleared() 209 remote_device.address.to_string(), in on_ssp_request() 245 remote_device.address.to_string(), in on_pin_request() 257 remote_device.address.to_string(), in on_pin_display() [all …]
|
| /packages/modules/Virtualization/virtualizationmanager/src/ |
| D | payload.rs | 500 let expected: HashSet<_> = expected.into_iter().map(ToString::to_string).collect(); in test_find_apex_names_in_classpath() 511 name: "com.android.adbd".to_string(), in test_collect_apexes() 524 name: "com.android.adbd".to_string(), in test_collect_apexes() 537 name: "no_classpath".to_string(), in test_collect_apexes() 549 name: "has_classpath".to_string(), in test_collect_apexes() 561 name: "has_classpath".to_string(), in test_collect_apexes() 574 name: "apex-foo".to_string(), in test_collect_apexes() 587 name: "apex-foo".to_string(), in test_collect_apexes() 600 name: "sharedlibs".to_string(), in test_collect_apexes() 612 name: "sharedlibs".to_string(), in test_collect_apexes() [all …]
|
| /packages/modules/Virtualization/compos/src/ |
| D | compilation.rs | 89 manifestPath: "/mnt/extra-apk/0/assets/build_manifest.pb".to_string(), in odrefresh() 90 prefix: "system/".to_string(), in odrefresh() 96 manifestPath: "/mnt/extra-apk/1/assets/build_manifest.pb".to_string(), in odrefresh() 97 prefix: "system_ext/".to_string(), in odrefresh() 117 android_root.push(args.systemDirFd.to_string()); in odrefresh() 124 system_ext_root.push(args.systemExtDirFd.to_string()); in odrefresh() 130 let art_apex_data = mountpoint.join(args.outputDirFd.to_string()); in odrefresh() 134 let staging_dir = mountpoint.join(args.stagingDirFd.to_string()); in odrefresh() 139 "odrefresh".to_string(), in odrefresh() 140 "--compilation-os-mode".to_string(), in odrefresh() [all …]
|
| /packages/modules/adb/ |
| D | transport_test.cpp | 24 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/Virtualization/libs/apkverify/tests/ |
| D | apkverify_test.rs | 91 assert_contains(&res.unwrap_err().to_string(), "No supported APK signatures found"); in apks_signed_with_v3_dsa_sha256_are_not_supported() 147 assert_contains(&res.unwrap_err().to_string(), "0 signers found"); in test_verify_v3_sig_min_max_sdk() 157 assert_contains(&res.unwrap_err().to_string(), "0 signers found"); in test_verify_v3_sig_min_max_sdk() 170 assert_contains(&res.unwrap_err().to_string(), "Signature is invalid"); in test_verify_v3_sig_does_not_verify() 179 assert_contains(&res.unwrap_err().to_string(), "Digest mismatch"); in test_verify_v3_digest_mismatch() 188 assert_contains(&res.unwrap_err().to_string(), "No APK Signing Block"); in test_verify_v3_wrong_apk_sig_block_magic() 200 &res.unwrap_err().to_string(), in test_verify_v3_apk_sig_block_size_mismatch() 210 assert_contains(&res.unwrap_err().to_string(), "Public key mismatch"); in test_verify_v3_cert_and_public_key_mismatch() 218 assert_contains(&res.unwrap_err().to_string(), "APK too small for APK Signing Block"); in test_verify_v3_empty() 226 assert_contains(&res.unwrap_err().to_string(), "No certificates listed"); in test_verify_v3_no_certs_in_sig() [all …]
|
| /packages/modules/Bluetooth/system/gd/storage/ |
| D | config_cache_test.cc | 224 config.SetProperty(GetTestAddress(i), BTIF_STORAGE_KEY_NAME, "Hello" + std::to_string(i)); in TEST() 226 config.SetProperty(GetTestAddress(i), BTIF_STORAGE_KEY_LINK_KEY, "Key" + std::to_string(i)); in TEST() 235 Optional(StrEq("Hello" + std::to_string(i)))); in TEST() 240 Optional(StrEq("Hello" + std::to_string(i)))); in TEST() 294 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::BR_EDR)))); in TEST() 306 std::to_string(bluetooth::hci::DeviceType::BR_EDR)); in TEST() 312 std::to_string(bluetooth::hci::DeviceType::BR_EDR)); in TEST() 322 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::BR_EDR)))); in TEST() 334 std::to_string(bluetooth::hci::DeviceType::BR_EDR)); in TEST() 340 std::to_string(bluetooth::hci::DeviceType::BR_EDR)); in TEST() [all …]
|
| /packages/modules/Bluetooth/system/packet/tests/ |
| D | packet_test_helper.h | 69 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/Bluetooth/system/btif/src/ |
| D | btif_bqr.cc | 210 << ", PwLv: " << std::to_string(bqr_link_quality_event_.tx_power_level) in ToString() 211 << ", RSSI: " << std::to_string(bqr_link_quality_event_.rssi) in ToString() 212 << ", SNR: " << std::to_string(bqr_link_quality_event_.snr) in ToString() 214 << std::to_string(bqr_link_quality_event_.unused_afh_channel_count) in ToString() 216 << std::to_string(bqr_link_quality_event_.afh_select_unideal_channel_count) in ToString() 218 << std::to_string(bqr_link_quality_event_.retransmission_count) in ToString() 219 << ", NoRX: " << std::to_string(bqr_link_quality_event_.no_rx_count) in ToString() 220 << ", NAK: " << std::to_string(bqr_link_quality_event_.nak_count) in ToString() 221 << ", FlowOff: " << std::to_string(bqr_link_quality_event_.flow_off_count) in ToString() 223 << std::to_string(bqr_link_quality_event_.buffer_overflow_bytes) in ToString() [all …]
|
| /packages/modules/Virtualization/microdroid_manager/src/ |
| D | main.rs | 107 MicrodroidError::PayloadChanged(msg) => (ErrorCode::PAYLOAD_CHANGED, msg.to_string()), in translate_error() 109 (ErrorCode::PAYLOAD_VERIFICATION_FAILED, msg.to_string()) in translate_error() 112 (ErrorCode::PAYLOAD_INVALID_CONFIG, msg.to_string()) in translate_error() 116 (ErrorCode::UNKNOWN, msg.to_string()) in translate_error() 120 (ErrorCode::UNKNOWN, err.to_string()) in translate_error() 217 .map_err(|e| MicrodroidError::FailedToConnectToVirtualizationService(e.to_string()))?; in try_main() 259 "Found instance data on first boot.".to_string() in verify_payload_with_instance_img() 265 MicrodroidError::PayloadInvalidConfig("Instance data not found.".to_string()) in verify_payload_with_instance_img() 273 .map_err(|e| MicrodroidError::PayloadVerificationFailed(e.to_string()))?; in verify_payload_with_instance_img() 325 MicrodroidError::PayloadInvalidConfig("No payload config in metadata".to_string()) in try_run_payload() [all …]
|
| D | dice.rs | 183 let payload_metadata = PayloadMetadata::ConfigPath("/config_path".to_string()); in payload_metadata_with_path_formats_correctly() 199 payload_binary_name: "payload_binary".to_string(), in payload_metadata_with_config_formats_correctly() 217 let payload_metadata = PayloadMetadata::ConfigPath("/config_path".to_string()); in payload_metadata_with_subcomponents_formats_correctly() 220 name: "apk1".to_string(), in payload_metadata_with_subcomponents_formats_correctly() 226 name: "apk2".to_string(), in payload_metadata_with_subcomponents_formats_correctly()
|
| /packages/modules/NeuralNetworks/runtime/test/ |
| D | TestServerFlag.cpp | 39 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/tools/rootcanal/model/setup/ |
| D | test_command_handler.cc | 122 std::to_string(dev_index) + std::string(":") + new_dev->ToString(); in AddDevice() 150 response_string_ = args[0] + std::string("@") + std::to_string(port); in AddRemote() 159 std::to_string(dev_index); in RemoveDevice() 184 std::to_string(phy_index); in RemovePhy() 200 std::to_string(dev_index) + " and phy " + std::to_string(phy_index); in AddDeviceToPhy() 216 std::to_string(dev_index) + " and phy " + std::to_string(phy_index); in RemoveDeviceFromPhy()
|
| /packages/modules/StatsD/statsd/benchmark/ |
| D | on_log_event_benchmark.cpp | 34 auto matcher = CreateSimpleAtomMatcher("name" + to_string(atomId), atomId); in BM_OnLogEvent() 35 *config.add_atom_matcher() = CreateSimpleAtomMatcher("name" + to_string(atomId), atomId); in BM_OnLogEvent() 36 *config.add_event_metric() = createEventMetric("Event" + to_string(atomId), matcher.id(), in BM_OnLogEvent() 46 "wl" + to_string(i))); in BM_OnLogEvent()
|
| /packages/modules/DnsResolver/doh/ |
| D | ffi.rs | 58 CString::new(info.peer_addr.ip().to_string()), in wrap_validation_callback() 216 (url, None, ip_addr.to_string(), None) in doh_net_new() 218 (url, Some(domain.to_string()), ip_addr.to_string(), Some(cert_path.to_string())) in doh_net_new() 222 Some(domain.to_string()), in doh_net_new() 223 ip_addr.to_string(), in doh_net_new() 224 Some(SYSTEM_CERT_PATH.to_string()), in doh_net_new() 397 assert_eq!(ip_addr, expected_addr.ip().to_string()); in assert_validation_info()
|
| D | config.rs | 187 cert_path: Some("data/local/tmp/".to_string()), in create_quiche_config() 214 Key { cert_path: Some("a".to_string()), max_idle_timeout: 1000, enable_early_data: false }; in different_keys() 216 Key { cert_path: Some("a".to_string()), max_idle_timeout: 5000, enable_early_data: false }; in different_keys() 218 Key { cert_path: Some("a".to_string()), max_idle_timeout: 5000, enable_early_data: true }; in different_keys() 240 Key { cert_path: Some("a".to_string()), max_idle_timeout: 1000, enable_early_data: true }; in lifetimes() 242 Key { cert_path: Some("b".to_string()), max_idle_timeout: 1000, enable_early_data: true }; in lifetimes()
|
| /packages/modules/Bluetooth/system/include/hardware/ |
| D | bt_le_audio.h | 181 codec_name_str = "Unknown LE codec " + std::to_string(codec_type); in ToString() 230 "Unknown LE sample rate " + std::to_string(sample_rate); in ToString() 249 "Unknown LE bits per sample " + std::to_string(bits_per_sample); in ToString() 265 "Unknown LE channel count " + std::to_string(channel_count); in ToString() 281 "Unknown LE frame duration " + std::to_string(frame_duration); in ToString() 287 "Unknown LE octets per frame " + std::to_string(octets_per_frame); in ToString() 289 octets_per_frame_str = std::to_string(octets_per_frame); in ToString() 294 "Unknown LE codec priority " + std::to_string(codec_priority); in ToString() 296 codec_priority_str = std::to_string(codec_priority); in ToString()
|
| /packages/modules/StatsD/statsd/tests/metrics/ |
| D | RestrictedEventMetricProducer_test.cpp | 80 EXPECT_EQ(/*tagId=*/rows[0][0], to_string(event1->GetTagId())); in TEST_F() 81 EXPECT_EQ(/*elapsedTimestampNs=*/rows[0][1], to_string(event1->GetElapsedTimestampNs())); in TEST_F() 82 EXPECT_EQ(/*elapsedTimestampNs=*/rows[1][1], to_string(event2->GetElapsedTimestampNs())); in TEST_F() 159 EXPECT_EQ(/*elapsedTimestampNs=*/rows[0][1], to_string(event1->GetElapsedTimestampNs())); in TEST_F() 241 EXPECT_THAT(rows[0], ElementsAre(to_string(event2->GetTagId()), in TEST_F() 242 to_string(event2->GetElapsedTimestampNs()), in TEST_F() 243 to_string(currentTimeNs), _)); in TEST_F()
|
| /packages/modules/Virtualization/authfs/service/src/ |
| D | authfs.rs | 58 path.push(remote_fd_name.to_string()); in openFile() 70 Ok(s.to_string()) in getMountPoint() 144 args.push(OsString::from(conf.fd.to_string())); in run_authfs() 148 args.push(OsString::from(conf.fd.to_string())); in run_authfs() 156 args.push(OsString::from(conf.fd.to_string())); in run_authfs()
|
| /packages/modules/Bluetooth/system/gd/os/linux_generic/ |
| D | queue_unittest.cc | 220 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F() 262 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F() 274 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F() 297 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F() 329 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F() 341 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F() 364 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F() 399 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F() 429 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F() 471 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F() [all …]
|