/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
H A D | napi_bluetooth_profile.cpp | 21 thread_local std::map<ProfileId, napi_ref> NapiProfile::profiles_; 35 void NapiProfile::SetProfile(napi_env env, ProfileId code, napi_value profile) in SetProfile() 61 napi_ref profileRef = profiles_[static_cast<ProfileId>(profileId)]; in GetProfile() 80 DECLARE_NAPI_PROPERTY("ProfileId", profileIdObj), in ProfileEnumInit() 110 SetNamedPropertyByInteger(env, profileId, ProfileId::PROFILE_A2DP_SINK, "PROFILE_A2DP_SINK"); in ProfileIdInit() 111 SetNamedPropertyByInteger(env, profileId, ProfileId::PROFILE_A2DP_SOURCE, "PROFILE_A2DP_SOURCE"); in ProfileIdInit() 112 SetNamedPropertyByInteger(env, profileId, ProfileId::PROFILE_AVRCP_CT, "PROFILE_AVRCP_CT"); in ProfileIdInit() 113 SetNamedPropertyByInteger(env, profileId, ProfileId::PROFILE_AVRCP_TG, "PROFILE_AVRCP_TG"); in ProfileIdInit() 114 SetNamedPropertyByInteger(env, profileId, ProfileId::PROFILE_HANDS_FREE_AUDIO_GATEWAY, in ProfileIdInit() 116 SetNamedPropertyByInteger(env, profileId, ProfileId in ProfileIdInit() [all...] |
H A D | napi_bluetooth_utils.cpp | 350 case static_cast<int32_t>(ProfileId::PROFILE_A2DP_SINK): in GetProfileId() 354 case static_cast<int32_t>(ProfileId::PROFILE_A2DP_SOURCE): in GetProfileId() 358 case static_cast<int32_t>(ProfileId::PROFILE_AVRCP_CT): in GetProfileId() 362 case static_cast<int32_t>(ProfileId::PROFILE_AVRCP_TG): in GetProfileId() 366 case static_cast<int32_t>(ProfileId::PROFILE_HANDS_FREE_AUDIO_GATEWAY): in GetProfileId() 370 case static_cast<int32_t>(ProfileId::PROFILE_HANDS_FREE_UNIT): in GetProfileId() 374 case static_cast<int32_t>(ProfileId::PROFILE_PBAP_CLIENT): in GetProfileId() 378 case static_cast<int32_t>(ProfileId::PROFILE_PBAP_SERVER): in GetProfileId() 382 case static_cast<int32_t>(ProfileId::PROFILE_HID_HOST): in GetProfileId()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/constant/ |
H A D | napi_bluetooth_constant.cpp | 58 DECLARE_NAPI_PROPERTY("ProfileId", profileIdObj), in ConstantPropertyValueInit() 75 SetNamedPropertyByInteger(env, profileId, ProfileId::PROFILE_A2DP_SINK, "PROFILE_A2DP_SINK"); in ProfileIdInit() 76 SetNamedPropertyByInteger(env, profileId, ProfileId::PROFILE_A2DP_SOURCE, "PROFILE_A2DP_SOURCE"); in ProfileIdInit() 77 SetNamedPropertyByInteger(env, profileId, ProfileId::PROFILE_AVRCP_CT, "PROFILE_AVRCP_CT"); in ProfileIdInit() 78 SetNamedPropertyByInteger(env, profileId, ProfileId::PROFILE_AVRCP_TG, "PROFILE_AVRCP_TG"); in ProfileIdInit() 81 env, profileId, ProfileId::PROFILE_HANDS_FREE_AUDIO_GATEWAY, "PROFILE_HANDSFREE_AUDIO_GATEWAY"); in ProfileIdInit() 84 env, profileId, ProfileId::PROFILE_HANDS_FREE_AUDIO_GATEWAY, "PROFILE_HANDS_FREE_AUDIO_GATEWAY"); in ProfileIdInit() 86 SetNamedPropertyByInteger(env, profileId, ProfileId::PROFILE_HANDS_FREE_UNIT, "PROFILE_HANDS_FREE_UNIT"); in ProfileIdInit() 87 SetNamedPropertyByInteger(env, profileId, ProfileId::PROFILE_HID_HOST, "PROFILE_HID_HOST"); in ProfileIdInit() 88 SetNamedPropertyByInteger(env, profileId, ProfileId in ProfileIdInit() [all...] |
/foundation/communication/bluetooth/frameworks/js/napi/include/ |
H A D | napi_bluetooth_profile.h | 31 static thread_local std::map<ProfileId, napi_ref> profiles_; 32 static void SetProfile(napi_env env, ProfileId code, napi_value profile);
|
H A D | napi_bluetooth_utils.h | 416 enum ProfileId { enum in OHOS::Bluetooth::ScanDuty::PhyType::AdvertisingState::BluetoothState
|
/foundation/communication/bluetooth/frameworks/js/napi/src/hid/ |
H A D | napi_bluetooth_hid_host.cpp | 62 NapiProfile::SetProfile(env, ProfileId::PROFILE_HID_HOST, napiProfile); in DefineHidHostJSClass() 85 NapiProfile::SetProfile(env, ProfileId::PROFILE_HID_HOST, napiProfile); in CreateHidHostProfile()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/hfp/ |
H A D | napi_bluetooth_hfp_ag.cpp | 68 NapiProfile::SetProfile(env, ProfileId::PROFILE_HANDS_FREE_AUDIO_GATEWAY, napiProfile); in DefineHandsFreeAudioGatewayJSClass() 89 NapiProfile::SetProfile(env, ProfileId::PROFILE_HANDS_FREE_AUDIO_GATEWAY, napiProfile); in CreateHfpAgProfile()
|
H A D | napi_bluetooth_hfp_hf.cpp | 52 NapiProfile::SetProfile(env, ProfileId::PROFILE_HANDS_FREE_UNIT, napiProfile); in DefineHandsFreeUnitJSClass()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/pan/ |
H A D | napi_bluetooth_pan.cpp | 39 NapiProfile::SetProfile(env, ProfileId::PROFILE_PAN_NETWORK, napiProfile); in CreatePanProfile() 78 NapiProfile::SetProfile(env, ProfileId::PROFILE_PAN_NETWORK, napiProfile); in DefinePanJSClass()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/ |
H A D | napi_bluetooth_a2dp_snk.cpp | 46 NapiProfile::SetProfile(env, ProfileId::PROFILE_A2DP_SINK, napiProfile); in DefineA2dpSinkJSClass()
|
H A D | napi_bluetooth_avrcp_ct.cpp | 46 NapiProfile::SetProfile(env, ProfileId::PROFILE_AVRCP_CT, napiProfile); in DefineAvrcpControllerJSClass()
|
H A D | napi_bluetooth_avrcp_tg.cpp | 46 NapiProfile::SetProfile(env, ProfileId::PROFILE_AVRCP_TG, napiProfile); in DefineAvrcpTargetJSClass()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/a2dp/ |
H A D | napi_bluetooth_a2dp_src.cpp | 143 NapiProfile::SetProfile(env, ProfileId::PROFILE_A2DP_SOURCE, napiProfile); in DefineA2dpSourceJSClass()
|