/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
H A D | napi_bluetooth_profile.cpp | 39 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 D | napi_bluetooth_utils.cpp | 348 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 D | bluetooth_device_class.cpp | 48 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 D | bluetooth_host.cpp | 879 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 D | lnn_lane_model.c | 106 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(¶m); 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 D | lnn_lane.c | 238 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 D | lnn_lane_model.h | 35 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 D | napi_bluetooth_constant.cpp | 73 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 D | bt_statistic.cpp | 97 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 D | bluetooth_device_class.h | 105 * @param profileId Profile Id. 111 bool IsProfileSupported(int profileId) const; 116 * @param profileId Profile Id.
|
H A D | bluetooth_host.h | 478 int GetBtProfileConnState(uint32_t profileId, int &state) const;
|
/foundation/communication/bluetooth/frameworks/cj/connection/src/ |
H A D | bluetooth_connection_ffi.cpp | 63 int32_t FfiBluetoothConGetProfileConnectionState(int32_t profileId, int32_t* errCode) in FfiBluetoothConGetProfileConnectionState() argument 65 return ConnectionImpl::GetProfileConnectionState(profileId, errCode); in FfiBluetoothConGetProfileConnectionState()
|
H A D | bluetooth_connection_impl.cpp | 146 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 D | lnn_trans_lane_deps_mock.cpp | 89 void UnbindLaneReqIdFromProfile(uint32_t laneReqId, uint32_t profileId) in UnbindLaneReqIdFromProfile() argument 91 GetTransLaneIf()->UnbindLaneReqIdFromProfile(laneReqId, profileId); in UnbindLaneReqIdFromProfile()
|
H A D | lnn_trans_lane_deps_mock.h | 42 virtual void UnbindLaneReqIdFromProfile(uint32_t laneReqId, uint32_t profileId) = 0;
|
/foundation/communication/bluetooth/frameworks/cj/connection/include/ |
H A D | bluetooth_connection_ffi.h | 64 FFI_EXPORT int32_t FfiBluetoothConGetProfileConnectionState(int32_t profileId, int32_t* errCode);
|
H A D | bluetooth_connection_impl.h | 45 static int32_t GetProfileConnectionState(int32_t profileId, int32_t* errCode);
|
/foundation/communication/bluetooth/frameworks/js/napi/src/connection/ |
H A D | napi_bluetooth_connection.cpp | 295 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 D | napi_bluetooth_utils.h | 504 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 D | i_bluetooth_host.h | 76 virtual int32_t GetBtProfileConnState(uint32_t profileId, int &state) = 0;
|
/foundation/communication/bluetooth_service/services/bluetooth/server/include/ |
H A D | bluetooth_host_server.h | 72 int32_t GetBtProfileConnState(uint32_t profileId, int &state) override;
|
/foundation/communication/bluetooth/frameworks/inner/ipc/include/ |
H A D | bluetooth_host_proxy.h | 51 int32_t GetBtProfileConnState(uint32_t profileId, int &state) override;
|
/foundation/communication/bluetooth_service/services/bluetooth/ipc/src/ |
H A D | bluetooth_host_stub.cpp | 472 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 D | lnn_lane_test.cpp | 1280 uint32_t profileId = GenerateLaneProfileId(¶m); 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 D | bluetooth_host_proxy.cpp | 358 int32_t BluetoothHostProxy::GetBtProfileConnState(uint32_t profileId, int &state) in GetBtProfileConnState() argument 365 if (!data.WriteUint32(profileId)) { in GetBtProfileConnState()
|