Home
last modified time | relevance | path

Searched refs:localName (Results 1 - 21 of 21) sorted by relevance

/foundation/communication/bluetooth_service/test/fuzztest/host/setlocalname_fuzzer/
H A Dsetlocalname_fuzzer.cpp33 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 Dbluetooth_connection_impl.cpp102 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 Dbluetooth_connection_ffi.cpp78 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 Dohos_bt_gap.cpp406 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 Dbluetooth_mock.cpp79 bool SetLocalName(unsigned char *localName, unsigned char length) in SetLocalName() argument
81 return MockBluetooth::GetMocker()->SetLocalName(localName, length); in SetLocalName()
H A Dbluetooth_mock.h36 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 Dbluetooth_connection_ffi.h67 FFI_EXPORT void FfiBluetoothConSetLocalName(const char* localName, int32_t* errCode);
H A Dbluetooth_connection_impl.h48 static void SetLocalName(std::string localName, int32_t* errCode);
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/broadcast/adapter/include/
H A Dsoftbus_broadcast_adapter_type.h135 uint8_t localName[SOFTBUS_LOCAL_NAME_LEN_MAX]; member
/foundation/communication/bluetooth/frameworks/js/napi/src/connection/
H A Dnapi_bluetooth_connection.cpp264 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 Dohos_bt_gap.h143 * @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 Dbluetooth_mock.cpp98 bool SetLocalName(unsigned char *localName, unsigned char length) in SetLocalName() argument
100 return MockBluetooth::GetMocker()->SetLocalName(localName, length); in SetLocalName()
H A Dbluetooth_mock.h36 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 Dbluetooth_mock.h41 virtual bool SetLocalName(unsigned char *localName, unsigned char length) = 0;
85 MOCK_METHOD(bool, SetLocalName, (unsigned char *localName, unsigned char length), (override));
H A Dbluetooth_mock.cpp407 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 Dsoftbus_broadcast_type.h376 uint8_t localName[BC_LOCAL_NAME_LEN_MAX]; member
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/
H A Dhci_def_controller_baseband_cmd.h179 uint8_t localName[248]; member
190 uint8_t localName[248]; member
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/broadcast/adapter/ble/src/
H A Dsoftbus_ble_utils.c460 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 Dgap.c1073 (void)memcpy_s(param.localName, sizeof(param.localName), name, length); in GAP_SetLocalName()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/
H A Dclassic_adapter.cpp355 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 Dsoftbus_broadcast_mgr.c435 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()

Completed in 22 milliseconds