Home
last modified time | relevance | path

Searched refs:profileId (Results 1 - 25 of 26) sorted by relevance

12

/foundation/communication/bluetooth/frameworks/js/napi/src/common/
H A Dnapi_bluetooth_profile.cpp39 HILOGE("napi create reference failed, profileId:%{public}d", code); in SetProfile()
58 int32_t profileId; in GetProfile() local
59 NAPI_BT_RETURN_IF(!ParseInt32(env, profileId, argv[PARAM0]), "False type! Int32 required.", ret); in GetProfile()
61 napi_ref profileRef = profiles_[static_cast<ProfileId>(profileId)]; in GetProfile()
67 HILOGI("profileId:%{public}d", profileId); in GetProfile()
108 napi_value profileId = nullptr; in ProfileIdInit() local
109 napi_create_object(env, &profileId); in ProfileIdInit()
110 SetNamedPropertyByInteger(env, profileId, ProfileId::PROFILE_A2DP_SINK, "PROFILE_A2DP_SINK"); in ProfileIdInit()
111 SetNamedPropertyByInteger(env, profileId, ProfileI in ProfileIdInit()
[all...]
H A Dnapi_bluetooth_utils.cpp348 uint32_t profileId = 0; in GetProfileId() local
352 profileId = PROFILE_ID_A2DP_SINK; in GetProfileId()
356 profileId = PROFILE_ID_A2DP_SRC; in GetProfileId()
360 profileId = PROFILE_ID_AVRCP_CT; in GetProfileId()
364 profileId = PROFILE_ID_AVRCP_TG; in GetProfileId()
368 profileId = PROFILE_ID_HFP_AG; in GetProfileId()
372 profileId = PROFILE_ID_HFP_HF; in GetProfileId()
376 profileId = PROFILE_ID_PBAP_PCE; in GetProfileId()
380 profileId = PROFILE_ID_PBAP_PSE; in GetProfileId()
384 profileId in GetProfileId()
672 CheckProfileIdParam(napi_env env, napi_callback_info info, int &profileId) CheckProfileIdParam() argument
683 CheckProfileIdParamEx(napi_env env, napi_callback_info info, int &profileId, size_t &argc) CheckProfileIdParamEx() argument
[all...]
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_device_class.cpp48 bool BluetoothDeviceClass::IsProfileSupported(int profileId) const in IsProfileSupported()
50 if (profileId == BluetoothDevice::PROFILE_A2DP) { in IsProfileSupported()
52 } else if (profileId == BluetoothDevice::PROFILE_A2DP_SINK) { in IsProfileSupported()
54 } else if (profileId == BluetoothDevice::PROFILE_HEADSET) { in IsProfileSupported()
56 } else if (profileId == BluetoothDevice::PROFILE_OPP) { in IsProfileSupported()
58 } else if (profileId == BluetoothDevice::PROFILE_HID) { in IsProfileSupported()
61 } else if (profileId == BluetoothDevice::PROFILE_PANU || in IsProfileSupported()
62 profileId == BluetoothDevice::PROFILE_NAP) { in IsProfileSupported()
H A Dbluetooth_host.cpp879 int BluetoothHost::GetBtProfileConnState(uint32_t profileId, int &state) const in GetBtProfileConnState() argument
881 HILOGI("profileId: %{public}d", profileId); in GetBtProfileConnState()
888 return proxy->GetBtProfileConnState(profileId, state); in GetBtProfileConnState()
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_lane_model.c106 static int32_t AddLaneModel(uint64_t laneId, uint32_t profileId, LaneProfile *laneProfile) in AddLaneModel() argument
112 LaneModel *laneModel = (LaneModel *)LnnReadData(&g_profileMap, profileId); in AddLaneModel()
127 int32_t ret = LnnCreateData(&g_profileMap, profileId, &newModel, sizeof(LaneModel)); in AddLaneModel()
132 laneModel = (LaneModel *)LnnReadData(&g_profileMap, profileId); in AddLaneModel()
151 uint32_t profileId = GenerateLaneProfileId(&param); in BindLaneIdToProfile() local
152 profile->serialNum = profileId; in BindLaneIdToProfile()
153 int32_t ret = AddLaneModel(laneId, profileId, profile); in BindLaneIdToProfile()
160 void UnbindLaneIdFromProfile(uint64_t laneId, uint32_t profileId) in UnbindLaneIdFromProfile() argument
166 LaneModel *laneModel = (LaneModel *)LnnReadData(&g_profileMap, profileId); in UnbindLaneIdFromProfile()
173 LnnDeleteData(&g_profileMap, profileId); in UnbindLaneIdFromProfile()
178 GetLaneProfile(uint32_t profileId, LaneProfile *profile) GetLaneProfile() argument
202 GetLaneIdList(uint32_t profileId, uint64_t **laneIdList, uint32_t *listSize) GetLaneIdList() argument
[all...]
H A Dlnn_lane.c238 static void LaneIdEnabled(uint64_t laneId, uint32_t profileId) in LaneIdEnabled() argument
248 listener[i].OnLaneIdEnabled(laneId, profileId); in LaneIdEnabled()
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/include/
H A Dlnn_lane_model.h35 int32_t GetLaneProfile(uint32_t profileId, LaneProfile *profile);
36 int32_t GetLaneIdList(uint32_t profileId, uint64_t **laneIdList, uint32_t *listNum);
39 void UnbindLaneIdFromProfile(uint64_t laneId, uint32_t profileId);
/foundation/communication/bluetooth/frameworks/js/napi/src/constant/
H A Dnapi_bluetooth_constant.cpp73 napi_value profileId = nullptr; in ProfileIdInit() local
74 napi_create_object(env, &profileId); in ProfileIdInit()
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, ProfileI in ProfileIdInit()
[all...]
/foundation/communication/dsoftbus/core/common/dfx/statistics/instant/
H A Dbt_statistic.cpp97 cJSON *json, const std::vector<OHOS::Bluetooth::BluetoothRemoteDevice>& devices, uint32_t profileId) in AddDevicesToArray()
108 (void)AddNumberToJsonObject(deviceJson, "Profile", static_cast<int32_t>(profileId)); in AddDevicesToArray()
109 if (profileId == PROFILE_ID_A2DP_SRC) { in AddDevicesToArray()
112 } else if (profileId == PROFILE_ID_A2DP_SINK) { in AddDevicesToArray()
115 } else if (profileId == PROFILE_ID_HFP_HF) { in AddDevicesToArray()
118 } else if (profileId == PROFILE_ID_HFP_AG) { in AddDevicesToArray()
96 AddDevicesToArray( cJSON *json, const std::vector<OHOS::Bluetooth::BluetoothRemoteDevice>& devices, uint32_t profileId) AddDevicesToArray() argument
/foundation/communication/bluetooth/interfaces/inner_api/include/
H A Dbluetooth_device_class.h105 * @param profileId Profile Id.
111 bool IsProfileSupported(int profileId) const;
116 * @param profileId Profile Id.
H A Dbluetooth_host.h478 int GetBtProfileConnState(uint32_t profileId, int &state) const;
/foundation/communication/bluetooth/frameworks/cj/connection/src/
H A Dbluetooth_connection_ffi.cpp63 int32_t FfiBluetoothConGetProfileConnectionState(int32_t profileId, int32_t* errCode) in FfiBluetoothConGetProfileConnectionState() argument
65 return ConnectionImpl::GetProfileConnectionState(profileId, errCode); in FfiBluetoothConGetProfileConnectionState()
H A Dbluetooth_connection_impl.cpp146 int32_t ConnectionImpl::GetProfileConnectionState(int32_t profileId, int32_t* errCode) in GetProfileConnectionState() argument
150 *errCode = host->GetBtProfileConnState(Bluetooth::GetProfileId(profileId), state); in GetProfileConnectionState()
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/trans_lane/
H A Dlnn_trans_lane_deps_mock.cpp89 void UnbindLaneReqIdFromProfile(uint32_t laneReqId, uint32_t profileId) in UnbindLaneReqIdFromProfile() argument
91 GetTransLaneIf()->UnbindLaneReqIdFromProfile(laneReqId, profileId); in UnbindLaneReqIdFromProfile()
H A Dlnn_trans_lane_deps_mock.h42 virtual void UnbindLaneReqIdFromProfile(uint32_t laneReqId, uint32_t profileId) = 0;
/foundation/communication/bluetooth/frameworks/cj/connection/include/
H A Dbluetooth_connection_ffi.h64 FFI_EXPORT int32_t FfiBluetoothConGetProfileConnectionState(int32_t profileId, int32_t* errCode);
H A Dbluetooth_connection_impl.h45 static int32_t GetProfileConnectionState(int32_t profileId, int32_t* errCode);
/foundation/communication/bluetooth/frameworks/js/napi/src/connection/
H A Dnapi_bluetooth_connection.cpp295 int profileId = 0; in GetProfileConnectionState() local
296 bool checkRet = CheckProfileIdParam(env, info, profileId); in GetProfileConnectionState()
301 int32_t err = host->GetBtProfileConnState(GetProfileId(profileId), state); in GetProfileConnectionState()
313 int profileId = 0; in GetProfileConnectionStateEx() local
315 bool checkRet = CheckProfileIdParamEx(env, info, profileId, argSize); in GetProfileConnectionStateEx()
/foundation/communication/bluetooth/frameworks/js/napi/include/
H A Dnapi_bluetooth_utils.h504 bool CheckProfileIdParam(napi_env env, napi_callback_info info, int &profileId);
505 bool CheckProfileIdParamEx(napi_env env, napi_callback_info info, int &profileId, size_t &argc);
/foundation/communication/bluetooth/frameworks/inner/ipc/interface/
H A Di_bluetooth_host.h76 virtual int32_t GetBtProfileConnState(uint32_t profileId, int &state) = 0;
/foundation/communication/bluetooth_service/services/bluetooth/server/include/
H A Dbluetooth_host_server.h72 int32_t GetBtProfileConnState(uint32_t profileId, int &state) override;
/foundation/communication/bluetooth/frameworks/inner/ipc/include/
H A Dbluetooth_host_proxy.h51 int32_t GetBtProfileConnState(uint32_t profileId, int &state) override;
/foundation/communication/bluetooth_service/services/bluetooth/ipc/src/
H A Dbluetooth_host_stub.cpp472 uint32_t profileId; in GetBtProfileConnStateInner() local
473 data.ReadUint32(profileId); in GetBtProfileConnStateInner()
475 int32_t result = GetBtProfileConnState(profileId, state); in GetBtProfileConnStateInner()
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/src/
H A Dlnn_lane_test.cpp1280 uint32_t profileId = GenerateLaneProfileId(&param); in HWTEST_F() local
1282 ret = GetLaneProfile(profileId, &profile); in HWTEST_F()
1285 ret = GetLaneProfile(profileId, nullptr); in HWTEST_F()
1290 ret = GetLaneIdList(profileId, &laneReqIdList, &listSize); in HWTEST_F()
1296 (void)UnbindLaneIdFromProfile(laneId, profileId); in HWTEST_F()
1298 (void)UnbindLaneIdFromProfile(0, profileId); in HWTEST_F()
/foundation/communication/bluetooth/frameworks/inner/ipc/src/
H A Dbluetooth_host_proxy.cpp358 int32_t BluetoothHostProxy::GetBtProfileConnState(uint32_t profileId, int &state) in GetBtProfileConnState() argument
365 if (!data.WriteUint32(profileId)) { in GetBtProfileConnState()

Completed in 24 milliseconds

12