Home
last modified time | relevance | path

Searched refs:guid (Results 1 – 7 of 7) sorted by relevance

/system/core/adb/daemon/
Dmdns.cpp165 std::string guid = "adb-"; in GenerateDeviceGuid() local
172 guid += serial + '-'; in GenerateDeviceGuid()
174 guid += RandomAlphaNumString(6); in GenerateDeviceGuid()
175 return guid; in GenerateDeviceGuid()
179 std::string guid = android::base::GetProperty("persist.adb.wifi.guid", ""); in ReadDeviceGuid() local
180 if (guid.empty()) { in ReadDeviceGuid()
181 guid = GenerateDeviceGuid(); in ReadDeviceGuid()
182 CHECK(!guid.empty()); in ReadDeviceGuid()
183 android::base::SetProperty("persist.adb.wifi.guid", guid); in ReadDeviceGuid()
185 return guid; in ReadDeviceGuid()
[all …]
Dusb_ffs.cpp92 usb_os_desc_guid_t guid; member
96 .guid = os_desc_guid,
/system/core/adb/client/pairing/tests/
Dpairing_connection_test.cpp128 .guid = "my_server_guid",
133 .guid = "my_client_guid",
204 ASSERT_EQ(strlen(peer_info->guid), strlen(client_info_.guid)); in TEST_F()
205 EXPECT_EQ(::memcmp(peer_info->guid, client_info_.guid, strlen(client_info_.guid)), 0); in TEST_F()
229 ASSERT_EQ(strlen(peer_info->guid), strlen(server_info_.guid)); in TEST_F()
230 EXPECT_EQ(::memcmp(peer_info->guid, server_info_.guid, strlen(server_info_.guid)), 0); in TEST_F()
386 ASSERT_EQ(strlen(peer_info->guid), strlen(client_info_.guid)); in TEST_F()
387 EXPECT_EQ(::memcmp(peer_info->guid, client_info_.guid, strlen(client_info_.guid)), 0); in TEST_F()
422 ASSERT_EQ(strlen(peer_info->guid), strlen(server_info_.guid)); in TEST_F()
423 EXPECT_EQ(::memcmp(peer_info->guid, server_info_.guid, strlen(server_info_.guid)), in TEST_F()
Dpairing_server.cpp138 '\0' == peer_info.guid[kPeerGuidLength - 1] && strlen(peer_info.name) > 0 && in PairingServerImpl()
139 strlen(peer_info.guid) > 0); in PairingServerImpl()
328 std::string(peer_info->guid), Data(*cert)); in connectionEventsWorker()
347 auto [fd, name, guid, cert] = std::move(*p); in connectionEventsWorker()
348 if (name.has_value() && guid.has_value() && cert.has_value() && !name->empty() && in connectionEventsWorker()
349 !guid->empty() && !cert->empty()) { in connectionEventsWorker()
356 CHECK_LE(guid->size(), kPeerGuidLength); in connectionEventsWorker()
359 strncpy(info.guid, guid->data(), guid->size()); in connectionEventsWorker()
411 '\0' != peer_info.guid[kPeerGuidLength - 1] || strlen(peer_info.name) == 0 || in create()
412 strlen(peer_info.guid) == 0) { in create()
/system/core/adb/proto/
Dadb_known_hosts.proto26 string guid = 1; field
/system/core/adb/client/
Dadb_wifi.cpp173 if (host == host_info.guid()) { in adb_wifi_is_known_host()
/system/bt/build/secondary/third_party/libchrome/
DBUILD.gn57 "base/guid.cc",