Home
last modified time | relevance | path

Searched refs:FromString (Results 1 – 25 of 90) sorted by relevance

1234

/system/bt/bta/test/gatt/
Ddatabase_builder_sample_device_test.cc44 Uuid SERVICE_1_UUID = Uuid::FromString("00001800-0000-1000-8000-00805f9b34fb");
45 Uuid SERVICE_2_UUID = Uuid::FromString("00001801-0000-1000-8000-00805f9b34fb");
46 Uuid SERVICE_3_UUID = Uuid::FromString("0000180f-0000-1000-8000-00805f9b34fb");
47 Uuid SERVICE_4_UUID = Uuid::FromString("0000fef5-0000-1000-8000-00805f9b34fb");
48 Uuid SERVICE_5_UUID = Uuid::FromString("0000180a-0000-1000-8000-00805f9b34fb");
49 Uuid SERVICE_6_UUID = Uuid::FromString("0000fe55-0000-1000-8000-00805f9b34fb");
51 Uuid SERVICE_1_CHAR_1_UUID = Uuid::FromString("00002a00-0000-1000-8000-00805f9b34fb");
52 Uuid SERVICE_1_CHAR_2_UUID = Uuid::FromString("00002a01-0000-1000-8000-00805f9b34fb");
53 Uuid SERVICE_1_CHAR_3_UUID = Uuid::FromString("00002a04-0000-1000-8000-00805f9b34fb");
55 Uuid SERVICE_3_CHAR_1_UUID = Uuid::FromString("00002a19-0000-1000-8000-00805f9b34fb");
[all …]
Ddatabase_builder_test.cc38 Uuid SERVICE_1_UUID = Uuid::FromString("00001800-0000-1000-8000-00805f9b34fb");
39 Uuid SERVICE_2_UUID = Uuid::FromString("00001801-0000-1000-8000-00805f9b34fb");
40 Uuid SERVICE_3_UUID = Uuid::FromString("0000180f-0000-1000-8000-00805f9b34fb");
41 Uuid SERVICE_4_UUID = Uuid::FromString("0000fef5-0000-1000-8000-00805f9b34fb");
42 Uuid SERVICE_5_UUID = Uuid::FromString("0000180a-0000-1000-8000-00805f9b34fb");
44 Uuid::FromString("00002a00-0000-1000-8000-00805f9b34fb");
46 Uuid::FromString("00002902-0000-1000-8000-00805f9b34fb");
Ddatabase_test.cc39 Uuid SERVICE_1_UUID = Uuid::FromString("1800");
40 Uuid SERVICE_2_UUID = Uuid::FromString("1801");
41 Uuid SERVICE_1_CHAR_1_UUID = Uuid::FromString("2a00");
42 Uuid SERVICE_1_CHAR_1_DESC_1_UUID = Uuid::FromString("2902");
109 .value = {.service = {.uuid = Uuid::FromString("1800"), in TEST()
143 .uuid = Uuid::FromString("1801"), in TEST()
175 .uuid = Uuid::FromString("2a00")}}, in TEST()
203 attr = {.handle = 0x0003, .type = Uuid::FromString("2902"), .value = {}}; in TEST()
269 .type = Uuid::FromString("2900"), in TEST()
/system/bt/types/test/
Draw_address_unittest.cc43 RawAddress::FromString("00:00:00:00:00:00", empty); in TEST()
47 RawAddress::FromString("00:00:00:00:00:01", not_empty); in TEST()
53 RawAddress::FromString(test_addr, bdaddr); in TEST()
90 RawAddress::FromString(test_addr, bdaddr1); in TEST()
91 RawAddress::FromString(test_addr, bdaddr2); in TEST()
97 RawAddress::FromString(test_addr2, bdaddr3); in TEST()
106 RawAddress::FromString(test_addr, bdaddr1); in TEST()
107 RawAddress::FromString(test_addr, bdaddr2); in TEST()
111 RawAddress::FromString(test_addr2, bdaddr3); in TEST()
120 RawAddress::FromString(test_addr, bdaddr1); in TEST()
[all …]
Dclass_of_device_unittest.cc40 ClassOfDevice::FromString(test_class, cod); in TEST()
68 ClassOfDevice::FromString(test_class, cod1); in TEST()
89 EXPECT_TRUE(ClassOfDevice::FromString("000-0-00", cod)); in TEST()
93 EXPECT_TRUE(ClassOfDevice::FromString("ab2-1-4C", cod)); in TEST()
/system/bt/vendor_libs/test_vendor_lib/test/
Dsecurity_manager_unittest.cc50 Address::FromString(kTestAddr1, btaddr1); in TEST_F()
51 Address::FromString(kTestAddr2, btaddr2); in TEST_F()
52 Address::FromString(kTestAddr3, btaddr3); in TEST_F()
53 Address::FromString(kTestAddr4, btaddr4); in TEST_F()
68 Address::FromString(kTestAddr1, btaddr1); in TEST_F()
69 Address::FromString(kTestAddr2, btaddr2); in TEST_F()
70 Address::FromString(kTestAddr3, btaddr3); in TEST_F()
87 Address::FromString(kTestAddr1, btaddr1); in TEST_F()
88 Address::FromString(kTestAddr2, btaddr1); in TEST_F()
89 Address::FromString(kTestAddr3, btaddr1); in TEST_F()
[all …]
/system/bt/gd/hci/
Daddress_unittest.cc48 Address::FromString("00:00:00:00:00:00", empty); in TEST()
52 Address::FromString("00:00:00:00:00:01", not_empty); in TEST()
58 Address::FromString(test_addr, bdaddr); in TEST()
95 Address::FromString(test_addr, bdaddr1); in TEST()
96 Address::FromString(test_addr, bdaddr2); in TEST()
102 Address::FromString(test_addr2, bdaddr3); in TEST()
111 Address::FromString(test_addr, bdaddr1); in TEST()
112 Address::FromString(test_addr, bdaddr2); in TEST()
116 Address::FromString(test_addr2, bdaddr3); in TEST()
125 Address::FromString(test_addr, bdaddr1); in TEST()
[all …]
Duuid_unittest.cc65 auto uuid = Uuid::FromString("1ae8"); in TEST()
119 auto uuid = Uuid::FromString("e39c6285-867f-4b1d-9db0-35fbd9aebf22"); in TEST()
124 uuid = Uuid::FromString("1Ae8"); in TEST()
129 uuid = Uuid::FromString("12341128"); in TEST()
135 ASSERT_FALSE(Uuid::FromString("This is not a UUID")); in TEST()
136 ASSERT_FALSE(Uuid::FromString("11212")); in TEST()
137 ASSERT_FALSE(Uuid::FromString("1121 ")); in TEST()
138 ASSERT_FALSE(Uuid::FromString("AGFE")); in TEST()
139 ASSERT_FALSE(Uuid::FromString("ABFG")); in TEST()
140 ASSERT_FALSE(Uuid::FromString("e39c6285867f14b1d9db035fbd9aebf22")); in TEST()
[all …]
Daddress.cc61 return FromString(str); in FromLegacyConfigString()
64 std::optional<Address> Address::FromString(const std::string& from) { in FromString() function in bluetooth::hci::Address
103 bool Address::FromString(const std::string& from, Address& to) { in FromString() function in bluetooth::hci::Address
104 auto addr = FromString(from); in FromString()
119 return Address::FromString(address).has_value(); in IsValidAddress()
Dclass_of_device_unittest.cc43 ClassOfDevice::FromString(test_class, cod); in TEST()
71 ClassOfDevice::FromString(test_class, cod1); in TEST()
92 ASSERT_TRUE(ClassOfDevice::FromString("000-0-00", cod)); in TEST()
96 ASSERT_TRUE(ClassOfDevice::FromString("ab2-1-4C", cod)); in TEST()
Dclass_of_device.cc53 std::optional<ClassOfDevice> ClassOfDevice::FromString(const std::string& str) { in FromString() function in bluetooth::hci::ClassOfDevice
96 bool ClassOfDevice::FromString(const std::string& from, ClassOfDevice& to) { in FromString() function in bluetooth::hci::ClassOfDevice
97 auto new_cod = FromString(from); in FromString()
136 return ClassOfDevice::FromString(cod).has_value(); in IsValid()
Dclass_of_device.h51 static std::optional<ClassOfDevice> FromString(const std::string& str);
77 static bool FromString(const std::string& from, ClassOfDevice& to);
Daddress.h53 static std::optional<Address> FromString(const std::string& from);
83 static bool FromString(const std::string& from, Address& to);
/system/bt/device/test/
Dinterop_test.cc25 RawAddress::FromString("38:2c:4a:e6:67:89", test_address); in TEST()
28 RawAddress::FromString("9c:df:03:12:34:56", test_address); in TEST()
34 RawAddress::FromString("00:00:00:00:00:00", test_address); in TEST()
37 RawAddress::FromString("ff:ff:ff:ff:ff:ff", test_address); in TEST()
39 RawAddress::FromString("42:08:15:ae:ae:ae", test_address); in TEST()
42 RawAddress::FromString("38:2c:4a:59:67:89", test_address); in TEST()
49 RawAddress::FromString("11:22:33:44:55:66", test_address); in TEST()
58 RawAddress::FromString("66:55:44:33:22:11", test_address); in TEST()
/system/bt/service/example/heart_rate/
Dconstants.h31 const bluetooth::Uuid kCCCDescriptorUuid = bluetooth::Uuid::FromString("2902");
32 const bluetooth::Uuid kHRServiceUuid = bluetooth::Uuid::FromString("180D");
33 const bluetooth::Uuid kHRMeasurementUuid = bluetooth::Uuid::FromString("2A37");
35 bluetooth::Uuid::FromString("2A38");
36 const bluetooth::Uuid kHRControlPointUuid = bluetooth::Uuid::FromString("2A39");
/system/bt/types/test/bluetooth/
Duuid_unittest.cc68 EXPECT_TRUE(Uuid::FromString("1ae8").Is16Bit()); in TEST()
129 Uuid::FromString("e39c6285-867f-4b1d-9db0-35fbd9aebf22", &is_valid); in TEST()
136 uuid = Uuid::FromString("1Ae8", &is_valid); in TEST()
143 uuid = Uuid::FromString("12341128", &is_valid); in TEST()
150 Uuid uuid = Uuid::FromString("This is not a UUID", &is_valid); in TEST()
153 uuid = Uuid::FromString("11212", &is_valid); in TEST()
156 uuid = Uuid::FromString("1121 ", &is_valid); in TEST()
159 uuid = Uuid::FromString("AGFE", &is_valid); in TEST()
162 uuid = Uuid::FromString("ABFG", &is_valid); in TEST()
165 uuid = Uuid::FromString("e39c6285867f14b1d9db035fbd9aebf22", &is_valid); in TEST()
[all …]
/system/bt/vendor_libs/test_vendor_lib/types/test/bluetooth/
Duuid_unittest.cc63 EXPECT_TRUE(Uuid::FromString("1ae8").Is16Bit()); in TEST()
116 Uuid uuid = Uuid::FromString("e39c6285-867f-4b1d-9db0-35fbd9aebf22", &is_valid); in TEST()
122 uuid = Uuid::FromString("1Ae8", &is_valid); in TEST()
128 uuid = Uuid::FromString("12341128", &is_valid); in TEST()
135 Uuid uuid = Uuid::FromString("This is not a UUID", &is_valid); in TEST()
138 uuid = Uuid::FromString("11212", &is_valid); in TEST()
141 uuid = Uuid::FromString("1121 ", &is_valid); in TEST()
144 uuid = Uuid::FromString("AGFE", &is_valid); in TEST()
147 uuid = Uuid::FromString("ABFG", &is_valid); in TEST()
150 uuid = Uuid::FromString("e39c6285867f14b1d9db035fbd9aebf22", &is_valid); in TEST()
[all …]
/system/bt/gd/storage/
Dserializable.h39 static std::optional<T> FromString(const std::string& str) { in FromString() function
40 return T::FromString(str); in FromString()
/system/bt/service/ipc/
Dlinux_ipc_host.cc112 Uuid::FromString(service_uuid), &gattfd); in OnCreateService()
158 Uuid::FromString(characteristic_uuid), properties_mask, in OnAddCharacteristic()
161 gatt_servers_[service_uuid]->AddBlob(Uuid::FromString(characteristic_uuid), in OnAddCharacteristic()
162 Uuid::FromString(control_uuid), in OnAddCharacteristic()
175 Uuid::FromString(characteristic_uuid), blob_data); in OnSetCharacteristicValue()
193 ids.emplace_back(Uuid::FromString(uuid_token)); in OnSetAdvertisement()
221 ids.emplace_back(Uuid::FromString(uuid_token)); in OnSetScanResponse()
/system/bt/types/
Draw_address.cc42 bool RawAddress::FromString(const std::string& from, RawAddress& to) { in FromString() function in RawAddress
72 return RawAddress::FromString(address, tmp); in IsValidAddress()
Dclass_of_device.cc40 bool ClassOfDevice::FromString(const std::string& from, ClassOfDevice& to) { in FromString() function in ClassOfDevice
77 return ClassOfDevice::FromString(cod, tmp); in IsValid()
/system/iorap/src/db/
Dapp_component_name.h39 static AppComponentName FromString(const std::string& s) { in FromString() function
74 return FromString(cpy); in FromUrlEncodedString()
/system/bt/gd/common/
Dbyte_array.h78 static std::optional<ByteArray<kLength>> FromString(const std::string& from) { in FromString() function
94 return FromString(from); in FromLegacyConfigString()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Ddevice_properties.cc61 ASSERT(Address::FromString("BB:BB:BB:BB:BB:AD", address_)); in DeviceProperties()
62 ASSERT(Address::FromString("BB:BB:BB:BB:AD:1E", le_address_)); in DeviceProperties()
Dscripted_beacon.cc87 if (Address::FromString(args[1], addr)) properties_.SetLeAddress(addr); in Initialize()
222 Address::FromString(mac_address, next_ad_.address); in get_next_advertisement()
228 Address::FromString("BA:D0:AD:BA:D0:AD", next_ad_.address); in get_next_advertisement()

1234