| /packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/ |
| D | migrate.rs | 854 assert_eq!(key.apply_action("2360344".to_string()), Ok("0x240418".to_string())); in test_device_key_apply_dec_to_hex() 856 key.apply_action("236034B".to_string()), in test_device_key_apply_dec_to_hex() 858 .to_string()) in test_device_key_apply_dec_to_hex() 869 assert_eq!(key.apply_action("0x240418".to_string()), Ok("2360344".to_string())); in test_device_key_apply_to_section_hex_to_dec() 872 key.apply_action("236034T".to_string()), in test_device_key_apply_to_section_hex_to_dec() 874 .to_string()) in test_device_key_apply_to_section_hex_to_dec() 883 …3881069501050c0a38028106c0c00643ff0a0202a101851175089513150026ff000902810009029100c0".to_string()), in test_hex_to_base64() 884 …/B3UMlQIJMAkxgQYVgSV/dQiVAQk4gQaVAQUMCjgCgQbAwAZD/woCAqEBhRF1CJUTFQAm/wAJAoEACQKRAMA=".to_string()) in test_hex_to_base64() 887 …3881069501050c0a38028106c0c00643ff0a0202a101851175089513150026ff000902810009029100c0".to_string()), in test_hex_to_base64() 888 …Err("Error converting from hex string to base64 string: invalid digit found in string".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() 157 .map(|e| e.unwrap().path().file_name().unwrap().to_str().unwrap().to_string()) in list_hci_devices_string() 190 .map(|e| e.unwrap().path().file_name().unwrap().to_str().unwrap().to_string()) in list_pid_files() 268 get_log_level_internal("{\"log_level\": \"error\"}".to_string()).unwrap(), in parse_log_level() 272 get_log_level_internal("{\"log_level\": \"warn\"}".to_string()).unwrap(), in parse_log_level() 276 get_log_level_internal("{\"log_level\": \"info\"}".to_string()).unwrap(), in parse_log_level() 280 get_log_level_internal("{\"log_level\": \"debug\"}".to_string()).unwrap(), in parse_log_level() 284 get_log_level_internal("{\"log_level\": \"trace\"}".to_string()).unwrap(), in parse_log_level() 288 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 | 160 EXPECT_THAT(queryDataResult, ElementsAre(to_string(atomTag), to_string(configAddedTimeNs + 100), in TEST_F() 163 to_string(atomTag), to_string(configAddedTimeNs + 200), in TEST_F() 166 to_string(atomTag), to_string(configAddedTimeNs + 300), in TEST_F() 213 EXPECT_THAT(queryDataResult, ElementsAre(to_string(atomTag), to_string(configAddedTimeNs + 100), in TEST_F() 259 EXPECT_THAT(queryDataResult, ElementsAre(to_string(atomTag), to_string(configAddedTimeNs + 100), in TEST_F() 262 to_string(11) // field_2 in TEST_F() 305 EXPECT_THAT(queryDataResult, ElementsAre(to_string(atomTag), to_string(configAddedTimeNs + 100), in TEST_F() 329 ElementsAre(to_string(atomTag), to_string(originalEventElapsedTime), in TEST_F() 362 ElementsAre(to_string(atomTag), to_string(originalEventElapsedTime + 100), in TEST_F() 364 to_string(111), // field_1 in TEST_F() [all …]
|
| /packages/modules/Bluetooth/system/btif/src/ |
| D | btif_bqr.cc | 58 << ": Parameter total length: " << std::to_string(length) in ParseBqrLinkQualityEvt() 60 << std::to_string(kLinkQualityParamTotalLen); in ParseBqrLinkQualityEvt() 92 << ": Parameter total length: " << std::to_string(length) in ParseBqrLinkQualityEvt() 99 << std::to_string(kLinkQualityParamTotalLen + in ParseBqrLinkQualityEvt() 168 << ", PwLv: " << std::to_string(bqr_link_quality_event_.tx_power_level) in ToString() 169 << ", RSSI: " << std::to_string(bqr_link_quality_event_.rssi) in ToString() 170 << ", SNR: " << std::to_string(bqr_link_quality_event_.snr) in ToString() 172 << std::to_string(bqr_link_quality_event_.unused_afh_channel_count) in ToString() 174 << std::to_string(bqr_link_quality_event_.afh_select_unideal_channel_count) in ToString() 176 << std::to_string(bqr_link_quality_event_.retransmission_count) in ToString() [all …]
|
| /packages/modules/Virtualization/libs/apkverify/tests/ |
| D | apkverify_test.rs | 63 assert_contains(&res.unwrap_err().to_string(), "No supported APK signatures found"); in apks_signed_with_v3_dsa_sha256_are_not_supported() 119 assert_contains(&res.unwrap_err().to_string(), "0 signers found"); in test_verify_v3_sig_min_max_sdk() 129 assert_contains(&res.unwrap_err().to_string(), "0 signers found"); in test_verify_v3_sig_min_max_sdk() 142 assert_contains(&res.unwrap_err().to_string(), "Signature is invalid"); in test_verify_v3_sig_does_not_verify() 151 assert_contains(&res.unwrap_err().to_string(), "Digest mismatch"); in test_verify_v3_digest_mismatch() 160 assert_contains(&res.unwrap_err().to_string(), "No APK Signing Block"); in test_verify_v3_wrong_apk_sig_block_magic() 172 &res.unwrap_err().to_string(), in test_verify_v3_apk_sig_block_size_mismatch() 182 assert_contains(&res.unwrap_err().to_string(), "Public key mismatch"); in test_verify_v3_cert_and_public_key_mismatch() 190 assert_contains(&res.unwrap_err().to_string(), "APK too small for APK Signing Block"); in test_verify_v3_empty() 198 assert_contains(&res.unwrap_err().to_string(), "No certificates listed"); in test_verify_v3_no_certs_in_sig() [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/virtualizationmanager/src/ |
| D | payload.rs | 473 let expected: HashSet<_> = expected.into_iter().map(ToString::to_string).collect(); in test_find_apex_names_in_classpath() 484 name: "com.android.adbd".to_string(), in test_collect_apexes() 494 name: "com.android.os.statsd".to_string(), in test_collect_apexes() 504 name: "com.android.os.statsd".to_string(), in test_collect_apexes() 514 name: "no_classpath".to_string(), in test_collect_apexes() 524 name: "has_classpath".to_string(), in test_collect_apexes() 534 name: "has_classpath".to_string(), in test_collect_apexes() 544 name: "apex-foo".to_string(), in test_collect_apexes() 554 name: "apex-foo".to_string(), in test_collect_apexes() 564 name: "sharedlibs".to_string(), in test_collect_apexes() [all …]
|
| /packages/modules/Bluetooth/system/gd/storage/ |
| D | config_cache_test.cc | 223 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 …]
|
| /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/gd/rust/common/src/ |
| D | parameter_provider.rs | 43 path.to_string() in config_file_path() 49 self.configuration_file_path = path.to_string(); in override_config_file_path() 58 path.to_string() in snoop_log_file_path() 64 self.btsnoop_log_file_path = path.to_string(); in override_snoop_file_path() 73 path.to_string() in snooz_log_file_path() 79 self.btsnooz_log_file_path = path.to_string(); in override_snooz_file_path() 163 param_provider_cur.lock().await.override_config_file_path(&c.to_string()).await; in test_config_file_path() 166 param_provider_cur.lock().await.override_config_file_path(&c.to_string()).await; in test_config_file_path() 196 param_provider_cur.lock().await.override_snoop_file_path(&c.to_string()).await; in test_snoop_log_file_path() 199 param_provider_cur.lock().await.override_snoop_file_path(&c.to_string()).await; in test_snoop_log_file_path() [all …]
|
| /packages/modules/Bluetooth/system/gd/rust/linux/utils/src/ |
| D | adv_parser.rs | 80 .map_or("".to_string(), |v| String::from_utf8_lossy(v).to_string()) in extract_name() 89 .map(|uuid| (uuid.to_string(), slice[2..].to_vec())) in extract_service_data() 94 .map(|uuid| (uuid.to_string(), slice[4..].to_vec())) in extract_service_data() 99 .map(|uuid| (uuid.to_string(), slice[16..].to_vec())) in extract_service_data() 283 .to_string(); in test_extract_service_data() 288 .to_string(); in test_extract_service_data() 291 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() 294 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/tools/rootcanal/model/setup/ |
| D | test_command_handler.cc | 116 std::to_string(dev_index) + std::string(":") + new_dev->ToString(); in AddDevice() 144 response_string_ = args[0] + std::string("@") + std::to_string(port); in AddRemote() 153 std::to_string(dev_index); in RemoveDevice() 178 std::to_string(phy_index); in RemovePhy() 194 std::to_string(dev_index) + " and phy " + std::to_string(phy_index); in AddDeviceToPhy() 210 std::to_string(dev_index) + " and phy " + std::to_string(phy_index); in RemoveDeviceFromPhy()
|
| /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/DnsResolver/doh/ |
| D | ffi.rs | 54 CString::new(info.peer_addr.ip().to_string()), in wrap_validation_callback() 203 (url, None, ip_addr.to_string(), None) in doh_net_new() 205 (url, Some(domain.to_string()), ip_addr.to_string(), Some(cert_path.to_string())) in doh_net_new() 209 Some(domain.to_string()), in doh_net_new() 210 ip_addr.to_string(), in doh_net_new() 211 Some(SYSTEM_CERT_PATH.to_string()), in doh_net_new() 374 assert_eq!(ip_addr, expected_addr.ip().to_string()); in assert_validation_info()
|
| /packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
| D | bluetooth_media.rs | 462 self.disconnect(addr.to_string()); in dispatch_a2dp_callbacks() 490 match self.uinput.create(self.adapter_get_remote_name(addr), addr.to_string()) { in dispatch_avrcp_callbacks() 533 self.uinput.close(addr.to_string()); in dispatch_avrcp_callbacks() 605 self.uinput.set_active_device(addr.to_string()); in dispatch_avrcp_callbacks() 649 self.start_sco_call_impl(addr.to_string(), false, false); in dispatch_hfp_callbacks() 659 self.disconnect(addr.to_string()); in dispatch_hfp_callbacks() 709 callback.on_hfp_audio_disconnected(addr.to_string()); in dispatch_hfp_callbacks() 736 warn!("[{}]: Unknown address hfp or slc not ready", addr.to_string()); in dispatch_hfp_callbacks() 753 callback.on_hfp_volume_changed(volume, addr.to_string()); in dispatch_hfp_callbacks() 761 addr.to_string(), in dispatch_hfp_callbacks() [all …]
|
| /packages/modules/Bluetooth/system/gd/metrics/ |
| D | counter_metrics.cc | 58 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/Virtualization/microdroid_manager/src/ |
| D | main.rs | 109 MicrodroidError::PayloadChanged(msg) => (ErrorCode::PAYLOAD_CHANGED, msg.to_string()), in translate_error() 111 (ErrorCode::PAYLOAD_VERIFICATION_FAILED, msg.to_string()) in translate_error() 114 (ErrorCode::PAYLOAD_CONFIG_INVALID, msg.to_string()) in translate_error() 119 (ErrorCode::UNKNOWN, msg.to_string()) in translate_error() 123 (ErrorCode::UNKNOWN, err.to_string()) in translate_error() 217 .map_err(|e| MicrodroidError::FailedToConnectToVirtualizationService(e.to_string()))?; in try_main() 346 MicrodroidError::InvalidConfig("Found instance data on first boot.".to_string()) in try_run_payload() 351 MicrodroidError::InvalidConfig("Instance data not found.".to_string()) in try_run_payload() 359 .map_err(|e| MicrodroidError::PayloadVerificationFailed(e.to_string()))?; in try_run_payload() 387 MicrodroidError::InvalidConfig("No payload config in metadata".to_string()) in try_run_payload() [all …]
|
| /packages/modules/StatsD/statsd/tests/metrics/ |
| D | RestrictedEventMetricProducer_test.cpp | 82 EXPECT_EQ(/*tagId=*/rows[0][0], to_string(event1->GetTagId())); in TEST_F() 83 EXPECT_EQ(/*elapsedTimestampNs=*/rows[0][1], to_string(event1->GetElapsedTimestampNs())); in TEST_F() 84 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() 238 EXPECT_THAT(rows[0], ElementsAre(to_string(event2->GetTagId()), in TEST_F() 239 to_string(event2->GetElapsedTimestampNs()), in TEST_F() 240 to_string(currentTimeNs), _)); in TEST_F()
|
| /packages/modules/Bluetooth/system/gd/rust/linux/dbus_projection/dbus_macros/src/ |
| D | lib.rs | 31 .to_string(); in debug_output_to_file() 35 file.write_all(gen.to_string().as_bytes()).unwrap(); in debug_output_to_file() 119 if !attr.path.get_ident().unwrap().to_string().eq("dbus_method") { in generate_dbus_exporter() 147 let mut dbus_input_ident = ident.to_string(); in generate_dbus_exporter() 150 let ident_string = ident.to_string(); in generate_dbus_exporter() 180 e.to_string().as_str() in generate_dbus_exporter() 259 debug_output_to_file(&gen, format!("out-{}.rs", fn_ident.to_string())); in generate_dbus_exporter() 281 let rpc_struct_name = attr.to_string(); in generate_dbus_interface_client() 311 if !attr.path.get_ident().unwrap().to_string().eq("dbus_method") { in generate_dbus_interface_client() 356 if type_path.path.segments[0].ident.to_string().eq("Box") { in generate_dbus_interface_client() [all …]
|
| /packages/modules/Bluetooth/tools/pdl/tests/generated/ |
| D | packet_decl_grand_children_big_endian.rs | 159 obj: "Parent".to_string(), in parse_inner() 166 obj: "Parent".to_string(), in parse_inner() 167 field: "foo".to_string(), in parse_inner() 169 type_: "Enum16".to_string(), in parse_inner() 174 obj: "Parent".to_string(), in parse_inner() 181 obj: "Parent".to_string(), in parse_inner() 182 field: "bar".to_string(), in parse_inner() 184 type_: "Enum16".to_string(), in parse_inner() 189 obj: "Parent".to_string(), in parse_inner() 196 obj: "Parent".to_string(), in parse_inner() [all …]
|
| D | packet_decl_grand_children_little_endian.rs | 159 obj: "Parent".to_string(), in parse_inner() 166 obj: "Parent".to_string(), in parse_inner() 167 field: "foo".to_string(), in parse_inner() 169 type_: "Enum16".to_string(), in parse_inner() 174 obj: "Parent".to_string(), in parse_inner() 181 obj: "Parent".to_string(), in parse_inner() 182 field: "bar".to_string(), in parse_inner() 184 type_: "Enum16".to_string(), in parse_inner() 189 obj: "Parent".to_string(), in parse_inner() 196 obj: "Parent".to_string(), in parse_inner() [all …]
|
| D | packet_decl_mixed_scalars_enums_big_endian.rs | 208 obj: "Foo".to_string(), in parse_inner() 216 obj: "Foo".to_string(), in parse_inner() 217 field: "x".to_string(), in parse_inner() 219 type_: "Enum7".to_string(), in parse_inner() 224 obj: "Foo".to_string(), in parse_inner() 225 field: "z".to_string(), in parse_inner() 227 type_: "Enum9".to_string(), in parse_inner()
|
| D | packet_decl_mixed_scalars_enums_little_endian.rs | 208 obj: "Foo".to_string(), in parse_inner() 216 obj: "Foo".to_string(), in parse_inner() 217 field: "x".to_string(), in parse_inner() 219 type_: "Enum7".to_string(), in parse_inner() 224 obj: "Foo".to_string(), in parse_inner() 225 field: "z".to_string(), in parse_inner() 227 type_: "Enum9".to_string(), in parse_inner()
|