Searched refs:bt_device_class_t (Results 1 – 7 of 7) sorted by relevance
/system/bt/btcore/include/ |
D | device_class.h | 30 typedef struct bt_device_class_t { struct 32 } bt_device_class_t; typedef 36 void device_class_from_stream(bt_device_class_t* dc, const uint8_t* data); 41 int device_class_to_stream(const bt_device_class_t* dc, uint8_t* data, 46 void device_class_from_int(bt_device_class_t* dc, int data); 49 int device_class_to_int(const bt_device_class_t* dc); 53 bool device_class_equals(const bt_device_class_t* p1, 54 const bt_device_class_t* p2); 58 bool device_class_copy(bt_device_class_t* dest, const bt_device_class_t* src); 62 int device_class_get_major_device(const bt_device_class_t* dc); [all …]
|
D | property.h | 46 bt_property_t* property_new_device_class(const bt_device_class_t* dc); 73 const bt_device_class_t* property_as_device_class(
|
/system/bt/btcore/src/ |
D | device_class.cc | 37 static_assert(sizeof(_bt_device_class_t) == sizeof(bt_device_class_t), 57 static bool device_class_get_major_service_(const bt_device_class_t* dc, 59 static void device_class_clr_major_service_(bt_device_class_t* dc, int bitmask); 60 static void device_class_set_major_service_(bt_device_class_t* dc, int bitmask); 62 void device_class_from_stream(bt_device_class_t* dc, const uint8_t* data) { in device_class_from_stream() 65 *dc = *(bt_device_class_t*)data; in device_class_from_stream() 68 int device_class_to_stream(const bt_device_class_t* dc, uint8_t* data, in device_class_to_stream() 72 CHECK(len >= sizeof(bt_device_class_t)); in device_class_to_stream() 73 for (size_t i = 0; i < sizeof(bt_device_class_t); ++i) { in device_class_to_stream() 76 return sizeof(bt_device_class_t); in device_class_to_stream() [all …]
|
D | property.cc | 85 bt_property_t* property_new_device_class(const bt_device_class_t* dc) { in property_new_device_class() 87 return property_new_((void*)dc, sizeof(bt_device_class_t), in property_new_device_class() 180 const bt_device_class_t* property_as_device_class( in property_as_device_class() 183 return (const bt_device_class_t*)property->val; in property_as_device_class()
|
/system/bt/btcore/test/ |
D | device_class_test.cc | 48 bt_device_class_t dc0; in TEST_F() 54 uint8_t dc_stream[][sizeof(bt_device_class_t)] = { in TEST_F() 59 for (size_t i = 0; i < sizeof(dc_stream) / sizeof(bt_device_class_t); i++) { in TEST_F() 60 bt_device_class_t dc; in TEST_F() 75 bt_device_class_t dc; in TEST_F() 97 bt_device_class_t dc; in TEST_F() 115 bt_device_class_t dc; in TEST_F() 132 bt_device_class_t dc; in TEST_F() 167 bt_device_class_t dc0; in TEST_F() 169 bt_device_class_t dc1; in TEST_F() [all …]
|
D | property_test.cc | 49 bt_device_class_t dc0 = {{0x01, 0x23, 0x45}}; in TEST_F() 56 EXPECT_EQ((int)sizeof(bt_device_class_t), property->len); in TEST_F() 58 const bt_device_class_t* dc1 = property_as_device_class(property); in TEST_F() 182 bt_device_class_t dc0 = {{0x01, 0x23, 0x45}}; in TEST_F()
|
/system/bt/tools/bdtool/ |
D | adapter.c | 239 const bt_device_class_t* dc = property_as_device_class(property); in parse_properties()
|