Home
last modified time | relevance | path

Searched refs:Uuid (Results 1 – 25 of 167) sorted by relevance

1234567

/system/bt/vendor_libs/test_vendor_lib/types/test/bluetooth/
Duuid_unittest.cc22 using bluetooth::Uuid;
24 static const Uuid ONES = Uuid::From128BitBE(
25Uuid::UUID128Bit{{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x…
27 static const Uuid SEQUENTIAL = Uuid::From128BitBE(
28Uuid::UUID128Bit{{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xab, 0xcd, 0xef, 0x01, 0x23, 0x…
30 constexpr Uuid kBase = Uuid::From128BitBE(
31Uuid::UUID128Bit{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x…
34 EXPECT_TRUE(Uuid::kEmpty.IsEmpty()); in TEST()
39 EXPECT_TRUE(Uuid::kNumBytes16 == kBase.GetShortestRepresentationSize()); in TEST()
40 EXPECT_TRUE(Uuid::kNumBytes32 == Uuid::From32Bit(0x01234567).GetShortestRepresentationSize()); in TEST()
[all …]
/system/bt/types/test/bluetooth/
Duuid_unittest.cc22 using bluetooth::Uuid;
24 static const Uuid ONES = Uuid::From128BitBE(
25 Uuid::UUID128Bit{{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
28 static const Uuid SEQUENTIAL = Uuid::From128BitBE(
29 Uuid::UUID128Bit{{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xab,
32 constexpr Uuid kBase = Uuid::From128BitBE(
33 Uuid::UUID128Bit{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80,
37 EXPECT_TRUE(Uuid::kEmpty.IsEmpty()); in TEST()
42 EXPECT_TRUE(Uuid::kNumBytes16 == kBase.GetShortestRepresentationSize()); in TEST()
43 EXPECT_TRUE(Uuid::kNumBytes32 == in TEST()
[all …]
/system/bt/gd/hci/
Duuid_unittest.cc24 using bluetooth::hci::Uuid;
26 static const Uuid ONES = Uuid::From128BitBE(
27Uuid::UUID128Bit{{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x…
29 static const Uuid SEQUENTIAL = Uuid::From128BitBE(
30Uuid::UUID128Bit{{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xab, 0xcd, 0xef, 0x01, 0x23, 0x…
32 static const Uuid kBase = Uuid::From128BitBE(
33Uuid::UUID128Bit{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x…
36 ASSERT_TRUE(Uuid::kEmpty.IsEmpty()); in TEST()
41 ASSERT_TRUE(Uuid::kNumBytes16 == kBase.GetShortestRepresentationSize()); in TEST()
42 ASSERT_TRUE(Uuid::kNumBytes32 == Uuid::From32Bit(0x01234567).GetShortestRepresentationSize()); in TEST()
[all …]
Duuid.cc28 using UUID128Bit = Uuid::UUID128Bit;
30 const Uuid Uuid::kEmpty = Uuid::From128BitBE(UUID128Bit{{0x00}});
33 Uuid kBase = Uuid::From128BitBE(
37 size_t Uuid::GetShortestRepresentationSize() const { in GetShortestRepresentationSize()
49 bool Uuid::Is16Bit() const { in Is16Bit()
53 uint16_t Uuid::As16Bit() const { in As16Bit()
57 uint32_t Uuid::As32Bit() const { in As32Bit()
61 std::optional<Uuid> Uuid::FromString(const std::string& uuid) { in FromString()
66 Uuid ret = kBase; in FromString()
128 std::optional<Uuid> Uuid::FromLegacyConfigString(const std::string& uuid) { in FromLegacyConfigString()
[all …]
Duuid.h38 class Uuid final : public storage::Serializable<Uuid> {
46 static const Uuid kEmpty; // 00000000-0000-0000-0000-000000000000
50 Uuid() = default;
64 static std::optional<Uuid> FromString(const std::string& uuid);
65 static std::optional<Uuid> FromLegacyConfigString(const std::string& uuid);
72 static Uuid GetRandom();
90 static Uuid From16Bit(uint16_t uuid16bit);
93 static Uuid From32Bit(uint32_t uuid32bit);
96 static Uuid From128BitBE(const UUID128Bit& uuid) { in From128BitBE()
97 Uuid u(uuid); in From128BitBE()
[all …]
/system/bt/bta/test/gatt/
Ddatabase_builder_sample_device_test.cc27 using bluetooth::Uuid;
44 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");
[all …]
Ddatabase_test.cc27 using bluetooth::Uuid;
32 const Uuid PRIMARY_SERVICE = Uuid::From16Bit(GATT_UUID_PRI_SERVICE);
33 const Uuid SECONDARY_SERVICE = Uuid::From16Bit(GATT_UUID_SEC_SERVICE);
34 const Uuid INCLUDE = Uuid::From16Bit(GATT_UUID_INCLUDE_SERVICE);
35 const Uuid CHARACTERISTIC = Uuid::From16Bit(GATT_UUID_CHAR_DECLARE);
37 Uuid SERVICE_1_UUID = Uuid::FromString("1800");
38 Uuid SERVICE_2_UUID = Uuid::FromString("1801");
39 Uuid SERVICE_1_CHAR_1_UUID = Uuid::FromString("2a00");
40 Uuid SERVICE_1_CHAR_1_DESC_1_UUID = Uuid::FromString("2902");
98 .value = {.service = {.uuid = Uuid::FromString("1800"), in TEST()
[all …]
Ddatabase_builder_test.cc27 using bluetooth::Uuid;
38 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");
43 Uuid SERVICE_1_CHAR_1_UUID =
44 Uuid::FromString("00002a00-0000-1000-8000-00805f9b34fb");
45 Uuid SERVICE_1_CHAR_1_DESC_1_UUID =
46 Uuid::FromString("00002902-0000-1000-8000-00805f9b34fb");
/system/bt/vendor_libs/test_vendor_lib/types/bluetooth/
Duuid.cc27 static_assert(sizeof(Uuid) == 16, "Uuid must be 16 bytes long!");
29 using UUID128Bit = Uuid::UUID128Bit;
31 const Uuid Uuid::kEmpty = Uuid::From128BitBE(UUID128Bit{{0x00}});
34 constexpr Uuid kBase = Uuid::From128BitBE(
38 size_t Uuid::GetShortestRepresentationSize() const { in GetShortestRepresentationSize()
48 bool Uuid::Is16Bit() const { in Is16Bit()
52 uint16_t Uuid::As16Bit() const { in As16Bit()
56 uint32_t Uuid::As32Bit() const { in As32Bit()
60 Uuid Uuid::FromString(const std::string& uuid, bool* is_valid) { in FromString()
62 Uuid ret = kBase; in FromString()
[all …]
Duuid.h35 class Uuid final {
43 static const Uuid kEmpty; // 00000000-0000-0000-0000-000000000000
47 Uuid() = default;
50 static Uuid GetRandom();
71 static Uuid FromString(const std::string& uuid, bool* is_valid = nullptr);
74 static Uuid From16Bit(uint16_t uuid16bit);
77 static Uuid From32Bit(uint32_t uuid32bit);
80 static constexpr Uuid From128BitBE(const UUID128Bit& uuid) { in From128BitBE()
81 Uuid u(uuid); in From128BitBE()
87 static Uuid From128BitBE(const uint8_t* uuid);
[all …]
/system/bt/types/bluetooth/
Duuid.cc27 static_assert(sizeof(Uuid) == 16, "Uuid must be 16 bytes long!");
29 using UUID128Bit = Uuid::UUID128Bit;
31 const Uuid Uuid::kEmpty = Uuid::From128BitBE(UUID128Bit{{0x00}});
34 constexpr Uuid kBase = Uuid::From128BitBE(
39 size_t Uuid::GetShortestRepresentationSize() const { in GetShortestRepresentationSize()
50 bool Uuid::Is16Bit() const { in Is16Bit()
54 uint16_t Uuid::As16Bit() const { return (((uint16_t)uu[2]) << 8) + uu[3]; } in As16Bit()
56 uint32_t Uuid::As32Bit() const { in As32Bit()
61 Uuid Uuid::FromString(const std::string& uuid, bool* is_valid) { in FromString()
63 Uuid ret = kBase; in FromString()
[all …]
Duuid.h35 class Uuid final {
43 static const Uuid kEmpty; // 00000000-0000-0000-0000-000000000000
47 Uuid() = default;
50 static Uuid GetRandom();
71 static Uuid FromString(const std::string& uuid, bool* is_valid = nullptr);
74 static Uuid From16Bit(uint16_t uuid16bit);
77 static Uuid From32Bit(uint32_t uuid32bit);
80 static constexpr Uuid From128BitBE(const UUID128Bit& uuid) { in From128BitBE()
81 Uuid u(uuid); in From128BitBE()
87 static Uuid From128BitBE(const uint8_t* uuid);
[all …]
/system/bt/btif/include/
Dbtif_sock_sdp.h27 static const bluetooth::Uuid UUID_OBEX_OBJECT_PUSH =
28 bluetooth::Uuid::From16Bit(0x1105);
29 static const bluetooth::Uuid UUID_PBAP_PSE = bluetooth::Uuid::From16Bit(0x112F);
30 static const bluetooth::Uuid UUID_MAP_MAS = bluetooth::Uuid::From16Bit(0x1132);
31 static const bluetooth::Uuid UUID_SAP = bluetooth::Uuid::From16Bit(0x112D);
32 static const bluetooth::Uuid UUID_SPP = bluetooth::Uuid::From16Bit(0x1101);
34 int add_rfc_sdp_rec(const char* name, bluetooth::Uuid uuid, int scn);
37 int get_reserved_rfc_channel(const bluetooth::Uuid& uuid);
/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");
34 const bluetooth::Uuid kBodySensorLocationUuid =
35 bluetooth::Uuid::FromString("2A38");
36 const bluetooth::Uuid kHRControlPointUuid = bluetooth::Uuid::FromString("2A39");
/system/bt/service/test/
Dparcelable_unittest.cc40 using bluetooth::Uuid;
85 TEST(ParcelableTest, Uuid) { in TEST() argument
88 Uuid uuid = Uuid::GetRandom(); in TEST()
89 TestData<Uuid, android::bluetooth::UUID>(uuid); in TEST()
118 Uuid uuid = Uuid::GetRandom(); in TEST()
124 Uuid mask = Uuid::GetRandom(); in TEST()
149 Descriptor s = Descriptor(0x0000, Uuid::GetRandom(), in TEST()
151 Descriptor s2 = Descriptor(0xFFFE, Uuid::GetRandom(), in TEST()
153 Descriptor s3 = Descriptor(0x003D, Uuid::GetRandom(), in TEST()
171 Characteristic c = Characteristic(0x0004, Uuid::GetRandom(), 0, 0, in TEST()
[all …]
Dgatt_client_unittest.cc36 MOCK_METHOD1(RegisterClient, bt_status_t(const bluetooth::Uuid&));
88 Uuid cb_uuid; in TEST_F()
92 auto callback = [&](BLEStatus in_status, const Uuid& uuid, in TEST_F()
101 Uuid uuid0 = Uuid::GetRandom(); in TEST_F()
118 Uuid uuid1 = Uuid::GetRandom(); in TEST_F()
125 Uuid uuid2 = Uuid::GetRandom(); in TEST_F()
/system/bt/test/suite/gatt/
Dgatt_unittest.cc29 bluetooth::Uuid gatt_client_uuid = bluetooth::Uuid::GetRandom(); in TEST_F()
41 bluetooth::Uuid gatt_server_uuid = bluetooth::Uuid::GetRandom(); in TEST_F()
53 bluetooth::Uuid gatt_server_uuid = bluetooth::Uuid::GetRandom(); in TEST_F()
60 bluetooth::Uuid srvc_uuid = bluetooth::Uuid::GetRandom(); in TEST_F()
63 bluetooth::Uuid char_uuid = bluetooth::Uuid::GetRandom(); in TEST_F()
66 bluetooth::Uuid desc_uuid = bluetooth::Uuid::GetRandom(); in TEST_F()
/system/bt/service/common/bluetooth/
Dscan_filter.cc27 if (other.service_uuid_) service_uuid_.reset(new Uuid(*other.service_uuid_)); in ScanFilter()
30 service_uuid_mask_.reset(new Uuid(*other.service_uuid_mask_)); in ScanFilter()
38 service_uuid_.reset(new Uuid(*other.service_uuid_)); in operator =()
43 service_uuid_mask_.reset(new Uuid(*other.service_uuid_mask_)); in operator =()
57 void ScanFilter::SetServiceUuid(const Uuid& service_uuid) { in SetServiceUuid()
58 service_uuid_.reset(new Uuid(service_uuid)); in SetServiceUuid()
62 void ScanFilter::SetServiceUuidWithMask(const Uuid& service_uuid, in SetServiceUuidWithMask()
63 const Uuid& mask) { in SetServiceUuidWithMask()
64 service_uuid_.reset(new Uuid(service_uuid)); in SetServiceUuidWithMask()
65 service_uuid_mask_.reset(new Uuid(mask)); in SetServiceUuidWithMask()
Dscan_filter.h52 const Uuid* service_uuid() const { return service_uuid_.get(); } in service_uuid()
53 const Uuid* service_uuid_mask() const { return service_uuid_mask_.get(); } in service_uuid_mask()
56 void SetServiceUuid(const Uuid& service_uuid);
62 void SetServiceUuidWithMask(const Uuid& service_uuid, const Uuid& mask);
71 std::unique_ptr<Uuid> service_uuid_;
72 std::unique_ptr<Uuid> service_uuid_mask_;
/system/bt/service/
Dgatt_server_old.h74 bool Initialize(const Uuid& service_id, int* gatt_pipe);
77 bool SetAdvertisement(const std::vector<Uuid>& ids,
83 bool SetScanResponse(const std::vector<Uuid>& ids,
89 bool AddCharacteristic(const Uuid& id, int properties, int permissions);
93 bool AddBlob(const Uuid& id, const Uuid& control_id, int properties,
98 bool SetCharacteristicValue(const Uuid& id,
102 bool GetCharacteristicValue(const Uuid& id, std::vector<uint8_t>* value);
Dgatt_client.h38 const Uuid& GetAppIdentifier() const override;
46 GattClient(const Uuid& uuid, int client_id);
49 Uuid app_identifier_;
67 bool RegisterInstance(const Uuid& uuid,
74 const Uuid& app_uuid) override;
78 std::unordered_map<Uuid, RegisterCallback> pending_calls_;
Dlow_energy_advertiser.h78 const Uuid& GetAppIdentifier() const override;
86 LowEnergyAdvertiser(const Uuid& uuid, int advertiser_id);
98 Uuid app_identifier_;
127 bool RegisterInstance(const Uuid& app_uuid,
135 const Uuid& app_uuid, uint8_t advertiser_id,
140 std::unordered_set<Uuid> pending_calls_;
Dlow_energy_scanner.h84 const Uuid& GetAppIdentifier() const override;
96 LowEnergyScanner(Adapter& adapter, const Uuid& uuid, int scanner_id);
106 Uuid app_identifier_;
140 bool RegisterInstance(const Uuid& app_uuid,
148 const Uuid& app_uuid, uint8_t scanner_id,
153 std::unordered_set<Uuid> pending_calls_;
/system/bt/test/suite/rfcomm/
Drfcomm_test.cc22 using bluetooth::Uuid;
26 const Uuid RFCommTest::HFP_UUID = Uuid::From16Bit(0x111E);
55 Uuid* uuids = reinterpret_cast<Uuid*>(uuid_prop->val); in SetUp()
56 int num_uuids = uuid_prop->len / sizeof(Uuid); in SetUp()
59 if (!memcmp(uuids + j, &HFP_UUID, sizeof(Uuid))) { in SetUp()
/system/bt/bta/gatt/
Ddatabase.h36 bluetooth::Uuid type;
41 bluetooth::Uuid uuid;
49 bluetooth::Uuid uuid;
56 bluetooth::Uuid uuid;
69 bluetooth::Uuid uuid;
78 bluetooth::Uuid uuid;
85 bluetooth::Uuid uuid;
93 bluetooth::Uuid uuid;

1234567