Home
last modified time | relevance | path

Searched refs:ProfileId (Results 1 - 13 of 13) sorted by relevance

/foundation/communication/bluetooth/frameworks/js/napi/src/common/
H A Dnapi_bluetooth_profile.cpp21 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 Dnapi_bluetooth_utils.cpp350 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 Dnapi_bluetooth_constant.cpp58 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 Dnapi_bluetooth_profile.h31 static thread_local std::map<ProfileId, napi_ref> profiles_;
32 static void SetProfile(napi_env env, ProfileId code, napi_value profile);
H A Dnapi_bluetooth_utils.h416 enum ProfileId { enum in OHOS::Bluetooth::ScanDuty::PhyType::AdvertisingState::BluetoothState
/foundation/communication/bluetooth/frameworks/js/napi/src/hid/
H A Dnapi_bluetooth_hid_host.cpp62 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 Dnapi_bluetooth_hfp_ag.cpp68 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 Dnapi_bluetooth_hfp_hf.cpp52 NapiProfile::SetProfile(env, ProfileId::PROFILE_HANDS_FREE_UNIT, napiProfile); in DefineHandsFreeUnitJSClass()
/foundation/communication/bluetooth/frameworks/js/napi/src/pan/
H A Dnapi_bluetooth_pan.cpp39 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 Dnapi_bluetooth_a2dp_snk.cpp46 NapiProfile::SetProfile(env, ProfileId::PROFILE_A2DP_SINK, napiProfile); in DefineA2dpSinkJSClass()
H A Dnapi_bluetooth_avrcp_ct.cpp46 NapiProfile::SetProfile(env, ProfileId::PROFILE_AVRCP_CT, napiProfile); in DefineAvrcpControllerJSClass()
H A Dnapi_bluetooth_avrcp_tg.cpp46 NapiProfile::SetProfile(env, ProfileId::PROFILE_AVRCP_TG, napiProfile); in DefineAvrcpTargetJSClass()
/foundation/communication/bluetooth/frameworks/js/napi/src/a2dp/
H A Dnapi_bluetooth_a2dp_src.cpp143 NapiProfile::SetProfile(env, ProfileId::PROFILE_A2DP_SOURCE, napiProfile); in DefineA2dpSourceJSClass()

Completed in 10 milliseconds