/foundation/communication/bluetooth_service/test/fuzztest/host/setlocalname_fuzzer/ |
H A D | setlocalname_fuzzer.cpp | 33 std::string localName(reinterpret_cast<const char*>(data), len); in DoSomethingInterestingWithMyAPI() 35 char c = localName[i]; in DoSomethingInterestingWithMyAPI() 38 localName[i] = 'a'; in DoSomethingInterestingWithMyAPI() 42 HILOGI("name:%{public}s", localName.c_str()); in DoSomethingInterestingWithMyAPI() 43 result = host->SetLocalName(localName); in DoSomethingInterestingWithMyAPI()
|
/foundation/communication/bluetooth/frameworks/cj/connection/src/ |
H A D | bluetooth_connection_impl.cpp | 102 std::string localName = INVALID_NAME; in GetLocalName() local 103 *errCode = host->GetLocalName(localName); in GetLocalName() 104 return MallocCString(localName); in GetLocalName() 177 void ConnectionImpl::SetLocalName(std::string localName, int32_t* errCode) in SetLocalName() argument 180 *errCode = host->SetLocalName(localName); in SetLocalName()
|
H A D | bluetooth_connection_ffi.cpp | 78 void FfiBluetoothConSetLocalName(const char* localName, int32_t* errCode) in FfiBluetoothConSetLocalName() argument 80 return ConnectionImpl::SetLocalName(localName, errCode); in FfiBluetoothConSetLocalName()
|
/foundation/communication/bluetooth/frameworks/inner/c_adapter/ |
H A D | ohos_bt_gap.cpp | 406 bool SetLocalName(unsigned char *localName, unsigned char length) in SetLocalName() argument 409 if (localName == nullptr) { in SetLocalName() 410 HILOGE("localName is null"); in SetLocalName() 418 string newName(reinterpret_cast<const char *>(localName)); in SetLocalName()
|
/foundation/communication/dsoftbus/tests/adapter/bluetooth/ |
H A D | bluetooth_mock.cpp | 79 bool SetLocalName(unsigned char *localName, unsigned char length) in SetLocalName() argument 81 return MockBluetooth::GetMocker()->SetLocalName(localName, length); in SetLocalName()
|
H A D | bluetooth_mock.h | 36 virtual bool SetLocalName(unsigned char *localName, unsigned char length) = 0; 89 MOCK_METHOD(bool, SetLocalName, (unsigned char *localName, unsigned char length), (override));
|
/foundation/communication/bluetooth/frameworks/cj/connection/include/ |
H A D | bluetooth_connection_ffi.h | 67 FFI_EXPORT void FfiBluetoothConSetLocalName(const char* localName, int32_t* errCode);
|
H A D | bluetooth_connection_impl.h | 48 static void SetLocalName(std::string localName, int32_t* errCode);
|
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/broadcast/adapter/include/ |
H A D | softbus_broadcast_adapter_type.h | 135 uint8_t localName[SOFTBUS_LOCAL_NAME_LEN_MAX]; member
|
/foundation/communication/bluetooth/frameworks/js/napi/src/connection/ |
H A D | napi_bluetooth_connection.cpp | 264 std::string localName = INVALID_NAME; in GetLocalName() local 265 int32_t err = host->GetLocalName(localName); in GetLocalName() 266 napi_create_string_utf8(env, localName.c_str(), localName.size(), &result); in GetLocalName() 350 std::string localName = INVALID_NAME; in SetLocalName() local 351 bool checkRet = CheckLocalNameParam(env, info, localName); in SetLocalName() 355 int32_t ret = host->SetLocalName(localName); in SetLocalName()
|
/foundation/communication/bluetooth/interfaces/inner_api/include/c_header/ |
H A D | ohos_bt_gap.h | 143 * @param localName Device name. 144 * @param length localName length, The maximum length of the name is {@link OHOS_BD_NAME_LEN}. 148 bool SetLocalName(unsigned char *localName, unsigned char length);
|
/foundation/communication/dsoftbus/tests/adapter/broadcast/ |
H A D | bluetooth_mock.cpp | 98 bool SetLocalName(unsigned char *localName, unsigned char length) in SetLocalName() argument 100 return MockBluetooth::GetMocker()->SetLocalName(localName, length); in SetLocalName()
|
H A D | bluetooth_mock.h | 36 virtual bool SetLocalName(unsigned char *localName, unsigned char length) = 0; 102 MOCK_METHOD(bool, SetLocalName, (unsigned char *localName, unsigned char length), (override));
|
/foundation/communication/dsoftbus/tests/core/discovery/ble/bluetooth_mock/ |
H A D | bluetooth_mock.h | 41 virtual bool SetLocalName(unsigned char *localName, unsigned char length) = 0; 85 MOCK_METHOD(bool, SetLocalName, (unsigned char *localName, unsigned char length), (override));
|
H A D | bluetooth_mock.cpp | 407 bool SetLocalName(unsigned char *localName, unsigned char length) in SetLocalName() argument 410 return BluetoothMock::GetMock()->SetLocalName(localName, length); in SetLocalName()
|
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/broadcast/interface/ |
H A D | softbus_broadcast_type.h | 376 uint8_t localName[BC_LOCAL_NAME_LEN_MAX]; member
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/ |
H A D | hci_def_controller_baseband_cmd.h | 179 uint8_t localName[248]; member 190 uint8_t localName[248]; member
|
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/broadcast/adapter/ble/src/ |
H A D | softbus_ble_utils.c | 460 if (memcpy_s(dst->localName, sizeof(dst->localName), &advData[index + 1], len - 1) != EOK) { in ParseLocalName()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
H A D | gap.c | 1073 (void)memcpy_s(param.localName, sizeof(param.localName), name, length); in GAP_SetLocalName()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/ |
H A D | classic_adapter.cpp | 355 std::string localName = adapterProperties_.GetLocalName(); in SetLocalName() local 356 if (localName == name) { in SetLocalName()
|
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/broadcast/manager/src/ |
H A D | softbus_broadcast_mgr.c | 435 ret = memcpy_s(bcInfo->localName, BC_LOCAL_NAME_LEN_MAX, reportData->localName, SOFTBUS_LOCAL_NAME_LEN_MAX); in BuildBcInfoCommon() 436 DISC_CHECK_AND_RETURN_RET_LOGE(ret == SOFTBUS_OK, SOFTBUS_MEM_ERR, DISC_BROADCAST, "memcpy localName failed"); in BuildBcInfoCommon()
|