/packages/modules/Bluetooth/system/test/mock/ |
D | mock_stack_sdp_api.h | 45 std::function<bool(const tSDP_DISCOVERY_DB* p_db)> body{ 46 [](const tSDP_DISCOVERY_DB* /* p_db */) { return false; }}; 47 bool operator()(const tSDP_DISCOVERY_DB* p_db) { return body(p_db); }; in operator() 109 std::function<bool(tSDP_DISCOVERY_DB* p_db, uint32_t len, uint16_t num_uuid, 112 body{[](tSDP_DISCOVERY_DB* /* p_db */, uint32_t /* len */, 116 bool operator()(tSDP_DISCOVERY_DB* p_db, uint32_t len, uint16_t num_uuid, in operator() 127 std::function<bool(const RawAddress& p_bd_addr, tSDP_DISCOVERY_DB* p_db, 129 body{[](const RawAddress& /* p_bd_addr */, tSDP_DISCOVERY_DB* /* p_db */, 131 bool operator()(const RawAddress& p_bd_addr, tSDP_DISCOVERY_DB* p_db, in operator() 144 const RawAddress& p_bd_addr, tSDP_DISCOVERY_DB* p_db, [all …]
|
D | mock_stack_sdp_api.cc | 63 bool SDP_CancelServiceSearch(const tSDP_DISCOVERY_DB* p_db) { in SDP_CancelServiceSearch() 91 bool SDP_InitDiscoveryDb(tSDP_DISCOVERY_DB* p_db, uint32_t len, in SDP_InitDiscoveryDb() 99 tSDP_DISCOVERY_DB* p_db, in SDP_ServiceSearchAttributeRequest() 106 const RawAddress& p_bd_addr, tSDP_DISCOVERY_DB* p_db, in SDP_ServiceSearchAttributeRequest2() 113 tSDP_DISCOVERY_DB* p_db, in SDP_ServiceSearchRequest() 124 tSDP_DISC_REC* SDP_FindServiceInDb(const tSDP_DISCOVERY_DB* p_db, in SDP_FindServiceInDb() 131 tSDP_DISC_REC* SDP_FindServiceInDb_128bit(const tSDP_DISCOVERY_DB* p_db, in SDP_FindServiceInDb_128bit() 137 tSDP_DISC_REC* SDP_FindServiceUUIDInDb(const tSDP_DISCOVERY_DB* p_db, in SDP_FindServiceUUIDInDb() 145 tSDP_DISCOVERY_DB* p_db, uint32_t len, in SDP_DiDiscover() 153 const tSDP_DISCOVERY_DB* p_db) { in SDP_GetDiRecord() [all …]
|
D | mock_stack_hidh.cc | 44 tSDP_DISCOVERY_DB* /* p_db */, in HID_HostGetSDPRecord() argument
|
D | mock_stack_sdp_legacy_api.cc | 29 .SDP_InitDiscoveryDb = [](tSDP_DISCOVERY_DB*, uint32_t, uint16_t,
|
/packages/modules/Bluetooth/system/stack/sdp/internal/ |
D | sdp_api.h | 40 bool SDP_InitDiscoveryDb(tSDP_DISCOVERY_DB* p_db, uint32_t len, 54 bool SDP_CancelServiceSearch(const tSDP_DISCOVERY_DB* p_db); 66 tSDP_DISCOVERY_DB* p_db, tSDP_DISC_CMPL_CB* p_cb); 82 tSDP_DISCOVERY_DB* p_db, 100 const RawAddress& p_bd_addr, tSDP_DISCOVERY_DB* p_db, 130 tSDP_DISC_REC* SDP_FindServiceInDb(const tSDP_DISCOVERY_DB* p_db, 150 tSDP_DISC_REC* SDP_FindServiceUUIDInDb(const tSDP_DISCOVERY_DB* p_db, 198 tSDP_DISC_REC* SDP_FindServiceInDb_128bit(const tSDP_DISCOVERY_DB* p_db, 412 tSDP_DISCOVERY_DB* p_db, uint32_t len, 424 uint8_t SDP_GetNumDiRecords(const tSDP_DISCOVERY_DB* p_db); [all …]
|
/packages/modules/Bluetooth/system/stack/include/ |
D | sdp_api.h | 61 [[nodiscard]] bool (*SDP_InitDiscoveryDb)(tSDP_DISCOVERY_DB*, uint32_t, 78 [[nodiscard]] bool (*SDP_CancelServiceSearch)(const tSDP_DISCOVERY_DB*); 94 tSDP_DISCOVERY_DB*, 116 tSDP_DISCOVERY_DB*, 140 const RawAddress&, tSDP_DISCOVERY_DB*, 163 const tSDP_DISCOVERY_DB*, uint16_t, tSDP_DISC_REC*); 187 const tSDP_DISCOVERY_DB*, const bluetooth::Uuid&, tSDP_DISC_REC*); 206 const tSDP_DISCOVERY_DB*, tSDP_DISC_REC*); 543 tSDP_DISCOVERY_DB* p_db, 560 [[nodiscard]] uint8_t (*SDP_GetNumDiRecords)(const tSDP_DISCOVERY_DB* p_db); [all …]
|
D | hidh_api.h | 102 tSDP_DISCOVERY_DB* p_db, uint32_t db_len,
|
/packages/modules/Bluetooth/system/bta/sdp/ |
D | bta_sdp_cfg.cc | 31 static tSDP_DISCOVERY_DB 32 bta_sdp_db_data[BTA_SDP_DB_SIZE / sizeof(tSDP_DISCOVERY_DB)]; 36 (BTA_SDP_DB_SIZE / sizeof(tSDP_DISCOVERY_DB)) * sizeof(tSDP_DISCOVERY_DB),
|
/packages/modules/Bluetooth/system/test/headless/sdp/ |
D | sdp_db.cc | 27 db_ = (tSDP_DISCOVERY_DB*)malloc(max_records_ * sizeof(tSDP_DISC_REC) + in SdpDb() 28 sizeof(tSDP_DISCOVERY_DB)); in SdpDb() 33 tSDP_DISCOVERY_DB* SdpDb::RawPointer() { return db_; } in RawPointer() 36 return max_records_ * sizeof(tSDP_DISC_REC) + sizeof(tSDP_DISCOVERY_DB); in Length()
|
D | sdp_db.h | 33 tSDP_DISCOVERY_DB* RawPointer(); 41 tSDP_DISCOVERY_DB* db_;
|
/packages/modules/Bluetooth/system/stack/sdp/ |
D | sdp_api.cc | 70 bool SDP_InitDiscoveryDb(tSDP_DISCOVERY_DB* p_db, uint32_t len, in SDP_InitDiscoveryDb() 76 if (p_db == NULL || (sizeof(tSDP_DISCOVERY_DB) > len) || in SDP_InitDiscoveryDb() 88 p_db->mem_size = len - sizeof(tSDP_DISCOVERY_DB); in SDP_InitDiscoveryDb() 116 bool SDP_CancelServiceSearch(const tSDP_DISCOVERY_DB* p_db) { in SDP_CancelServiceSearch() 135 tSDP_DISCOVERY_DB* p_db, in SDP_ServiceSearchRequest() 166 tSDP_DISCOVERY_DB* p_db, in SDP_ServiceSearchAttributeRequest() 198 const RawAddress& bd_addr, tSDP_DISCOVERY_DB* p_db, in SDP_ServiceSearchAttributeRequest2() 370 tSDP_DISC_REC* SDP_FindServiceInDb(const tSDP_DISCOVERY_DB* p_db, in SDP_FindServiceInDb() 473 tSDP_DISC_REC* SDP_FindServiceInDb_128bit(const tSDP_DISCOVERY_DB* p_db, in SDP_FindServiceInDb_128bit() 531 tSDP_DISC_REC* SDP_FindServiceUUIDInDb(const tSDP_DISCOVERY_DB* p_db, in SDP_FindServiceUUIDInDb() [all …]
|
D | sdpint.h | 193 tSDP_DISCOVERY_DB* p_db; /* Database to save info into */ 255 void sdpu_log_attribute_metrics(const RawAddress& bda, tSDP_DISCOVERY_DB* p_db); 257 tCONN_CB* sdpu_find_ccb_by_db(const tSDP_DISCOVERY_DB* p_db); 280 void sdpu_sort_attr_list(uint16_t num_attr, tSDP_DISCOVERY_DB* p_db); 335 size_t sdp_get_num_records(const tSDP_DISCOVERY_DB& db);
|
D | sdp_discovery_db.h | 76 } tSDP_DISCOVERY_DB; typedef
|
/packages/modules/Bluetooth/system/stack/test/fuzzers/sdp/ |
D | sdpFuzzFunctions.h | 59 std::shared_ptr<tSDP_DISCOVERY_DB> p_db( 60 reinterpret_cast<tSDP_DISCOVERY_DB*>(malloc(db_size)), free); 83 tSDP_DISCOVERY_DB* db = 95 tSDP_DISCOVERY_DB* db = 110 tSDP_DISCOVERY_DB* db = 326 std::shared_ptr<tSDP_DISCOVERY_DB> p_db( 327 reinterpret_cast<tSDP_DISCOVERY_DB*>(malloc(db_size)), free);
|
/packages/modules/Bluetooth/system/profile/avrcp/ |
D | avrcp_internal.h | 76 virtual bool InitDiscoveryDb(tSDP_DISCOVERY_DB* a, uint32_t b, uint16_t c, 81 tSDP_DISCOVERY_DB* b, 84 virtual tSDP_DISC_REC* FindServiceInDb(tSDP_DISCOVERY_DB* a, uint16_t b,
|
/packages/modules/Bluetooth/system/bta/test/ |
D | bta_jv_test.cc | 56 .SDP_InitDiscoveryDb = [](tSDP_DISCOVERY_DB*, uint32_t, uint16_t, in FakeSdp() 64 tSDP_DISCOVERY_DB* /* p_db */, in FakeSdp() 74 [](const tSDP_DISCOVERY_DB* /* p_db */, in FakeSdp() 191 [](const tSDP_DISCOVERY_DB* /* p_db */, const bluetooth::Uuid& /* uuid */, in TEST_F() 280 [](const RawAddress& /* p_bd_addr */, tSDP_DISCOVERY_DB* /* p_db */, in TEST_F()
|
/packages/modules/Bluetooth/system/bta/dm/ |
D | bta_dm_disc_sdp.cc | 113 static void bta_dm_store_audio_profiles_version(tSDP_DISCOVERY_DB* p_sdp_db) { in bta_dm_store_audio_profiles_version() 168 tSDP_DISCOVERY_DB* p_sdp_db = (tSDP_DISCOVERY_DB*)sdp_state->sdp_db_buffer; in bta_dm_sdp_result() 345 tSDP_DISCOVERY_DB* p_sdp_db = (tSDP_DISCOVERY_DB*)sdp_state->sdp_db_buffer; in bta_dm_sdp_find_services()
|
/packages/modules/Bluetooth/system/profile/avrcp/tests/ |
D | avrcp_test_helper.h | 109 bool(tSDP_DISCOVERY_DB*, uint32_t, uint16_t, 112 bool(const RawAddress&, tSDP_DISCOVERY_DB*, tSDP_DISC_CMPL_CB*)); 114 tSDP_DISC_REC*(tSDP_DISCOVERY_DB*, uint16_t, t_sdp_disc_rec*));
|
/packages/modules/Bluetooth/system/stack/a2dp/ |
D | a2dp_int.h | 47 tSDP_DISCOVERY_DB* p_db; /* pointer to discovery database */
|
/packages/modules/Bluetooth/system/stack/test/sdp/ |
D | stack_sdp_parse_test.cc | 93 p_db_ = (tSDP_DISCOVERY_DB*)osi_malloc(kSdpDbSize); in SetUp() 103 tSDP_DISCOVERY_DB* p_db_{nullptr};
|
D | stack_sdp_test.cc | 40 static tSDP_DISCOVERY_DB* sdp_db = nullptr; 83 sdp_db = (tSDP_DISCOVERY_DB*)osi_malloc(BT_DEFAULT_BUFFER_SIZE); in SetUp() 281 static tSDP_DISCOVERY_DB db{};
|
/packages/modules/Bluetooth/system/stack/hid/ |
D | hidh_int.h | 61 tSDP_DISCOVERY_DB* p_sdp_db;
|
/packages/modules/Bluetooth/system/bta/include/ |
D | bta_sdp_api.h | 91 tSDP_DISCOVERY_DB* p_sdp_db; /* The data buffer to keep SDP database */
|
/packages/modules/Bluetooth/system/stack/fuzzers/ |
D | sdp_fuzzer.cc | 195 std::shared_ptr<tSDP_DISCOVERY_DB> p_db( in FuzzAsClient() 196 (tSDP_DISCOVERY_DB*)malloc(SDP_DB_SIZE), free); in FuzzAsClient()
|
/packages/modules/Bluetooth/system/stack/avrc/ |
D | avrc_int.h | 152 tSDP_DISCOVERY_DB* p_db; /* pointer to discovery database */
|