Searched refs:BluetoothCallbackInfo (Results 1 - 9 of 9) sorted by relevance
/foundation/communication/bluetooth/frameworks/js/napi/include/ |
H A D | napi_bluetooth_event.h | 25 class AsyncEventData : public BluetoothCallbackInfo { 29 explicit AsyncEventData(const std::shared_ptr<BluetoothCallbackInfo> &cb, std::function<napi_value ()> p) in AsyncEventData() 45 void UpdateCallbackInfo(std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> callbackInfos, 50 static napi_value CreateResult(const std::shared_ptr<BluetoothCallbackInfo> &cb, int value); 51 static napi_value CreateResult(const std::shared_ptr<BluetoothCallbackInfo> &cb, 54 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> &callbackInfos); 56 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> &callbackInfos); 60 static void CheckAndNotify(const std::shared_ptr<BluetoothCallbackInfo> &cb, const T& obj) in CheckAndNotify() 67 [](const std::shared_ptr<BluetoothCallbackInfo> &cb, T& obj) -> napi_value { in CheckAndNotify()
|
H A D | napi_bluetooth_spp_client.h | 38 struct BufferCallbackInfo : public BluetoothCallbackInfo { 76 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> callbackInfos_ = {};
|
H A D | napi_bluetooth_utils.h | 130 struct BluetoothCallbackInfo { struct 151 struct TransforInformationCallbackInfo : public BluetoothCallbackInfo { 156 using sysBLEMap = std::map<std::string, std::array<std::shared_ptr<BluetoothCallbackInfo>, ARGS_SIZE_THREE>>; 159 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> g_Observer; 162 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> GetObserver(); 165 void RegisterSysBLEObserver(const std::shared_ptr<BluetoothCallbackInfo> &, int32_t, const std::string &); 167 std::shared_ptr<BluetoothCallbackInfo> GetCallbackInfoByType(const std::string &type);
|
H A D | napi_bluetooth_ble_utils.h | 73 struct GattCharacteristicCallbackInfo : public BluetoothCallbackInfo { 77 struct GattDescriptorCallbackInfo : public BluetoothCallbackInfo {
|
/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
H A D | napi_bluetooth_event.cpp | 63 napi_value NapiEvent::CreateResult(const std::shared_ptr<BluetoothCallbackInfo> &cb, int value) in CreateResult() 76 napi_value NapiEvent::CreateResult(const std::shared_ptr<BluetoothCallbackInfo> &cb, in CreateResult() 87 void UpdateCallbackInfo(std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> callbackInfos, in UpdateCallbackInfo() 120 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> &callbackInfos) in OnEvent() 140 std::shared_ptr<BluetoothCallbackInfo> callbackInfo = std::make_shared<BluetoothCallbackInfo>(); in OnEvent() 158 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> &callbackInfos) in OffEvent()
|
H A D | napi_bluetooth_utils.cpp | 54 std::shared_ptr<BluetoothCallbackInfo> GetCallbackInfoByType(const std::string &type) in GetCallbackInfoByType() 57 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> observers = GetObserver(); in GetCallbackInfoByType() 310 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> GetObserver() in GetObserver() 419 const std::shared_ptr<BluetoothCallbackInfo> &info, int32_t callbackIndex, const std::string &type) in RegisterSysBLEObserver()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/ble/ |
H A D | napi_bluetooth_ble_central_manager_callback.cpp | 232 std::shared_ptr<BluetoothCallbackInfo> callbackInfo = GetCallbackInfoByType(REGISTER_BLE_FIND_DEVICE_TYPE); in OnBleBatchScanResultsEvent() 281 std::array<std::shared_ptr<BluetoothCallbackInfo>, ARGS_SIZE_THREE> callbackInfos; in OnStartOrStopScanEvent()
|
H A D | napi_bluetooth_ble.cpp | 76 std::shared_ptr<BluetoothCallbackInfo> pCallbackInfo = std::make_shared<BluetoothCallbackInfo>(); in RegisterBLEObserver()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/socket/ |
H A D | napi_bluetooth_spp_client.cpp | 317 std::shared_ptr<BluetoothCallbackInfo> callbackInfo = std::make_shared<BufferCallbackInfo>(); in CheckSppClientOn()
|
Completed in 8 milliseconds