/foundation/distributedhardware/device_manager/test/commonfuzztest/pinholder_fuzzer/ |
H A D | pinholder_fuzzer.cpp | 34 void OnPinHolderCreate(const std::string &deviceId, DmPinType pinType, const std::string &payload) override {} 35 void OnPinHolderDestroy(DmPinType pinType, const std::string &payload) override {} 56 DmPinType pinType = static_cast<DmPinType>(tmp); in PinHolderFuzzTest() local 61 DeviceManager::GetInstance().CreatePinHolder(pkgName, peerTargetId, pinType, payload); in PinHolderFuzzTest() 62 DeviceManager::GetInstance().DestroyPinHolder(pkgName, peerTargetId, pinType, payload); in PinHolderFuzzTest()
|
/foundation/distributedhardware/device_manager/test/unittest/ |
H A D | UTTest_dm_pin_holder.cpp | 95 void DmPinHolderCallbackTest::OnPinHolderDestroy(DmPinType pinType, const std::string &payload) in OnPinHolderDestroy() argument 98 std::cout << "pinType: " << pinType << std::endl; in OnPinHolderDestroy() 101 void DmPinHolderCallbackTest::OnPinHolderCreate(const std::string &deviceId, DmPinType pinType, in OnPinHolderCreate() argument 105 std::cout << "pinType: " << pinType << std::endl; in OnPinHolderCreate() 179 DmPinType pinType = NUMBER_PIN_CODE; in HWTEST_F() local 181 ret = DeviceManager::GetInstance().CreatePinHolder(packName, targetId, pinType, payload); in HWTEST_F() 190 DmPinType pinType = DmPinType::NUMBER_PIN_CODE; in HWTEST_F() local 195 int32_t ret = pinHolder->CreatePinHolder(packName, targetId, pinType, payloa in HWTEST_F() 203 DmPinType pinType = DmPinType::NUMBER_PIN_CODE; HWTEST_F() local 222 DmPinType pinType = DmPinType::NUMBER_PIN_CODE; HWTEST_F() local 241 DmPinType pinType = DmPinType::NUMBER_PIN_CODE; HWTEST_F() local 261 DmPinType pinType = DmPinType::NUMBER_PIN_CODE; HWTEST_F() local 281 DmPinType pinType = DmPinType::NUMBER_PIN_CODE; HWTEST_F() local 300 DmPinType pinType = DmPinType::NUMBER_PIN_CODE; HWTEST_F() local 318 DmPinType pinType = DmPinType::NUMBER_PIN_CODE; HWTEST_F() local 336 DmPinType pinType = DmPinType::NUMBER_PIN_CODE; HWTEST_F() local 354 DmPinType pinType = DmPinType::NUMBER_PIN_CODE; HWTEST_F() local 372 DmPinType pinType = DmPinType::NUMBER_PIN_CODE; HWTEST_F() local 390 DmPinType pinType = DmPinType::NUMBER_PIN_CODE; HWTEST_F() local [all...] |
H A D | UTTest_dm_pin_holder.h | 50 void OnPinHolderCreate(const std::string &deviceId, DmPinType pinType, const std::string &payload) override; 51 void OnPinHolderDestroy(DmPinType pinType, const std::string &payload) override; 146 void OnPinHolderCreate(const std::string &pkgName, const std::string &deviceId, DmPinType pinType, 151 (void)pinType; variable 155 void OnPinHolderDestroy(const std::string &pkgName, DmPinType pinType, const std::string &payload) override 158 (void)pinType; variable
|
H A D | UTTest_device_manager_notify.h | 116 void OnPinHolderCreate(const std::string &deviceId, DmPinType pinType, const std::string &payload) {} in OnPinHolderCreate() argument 117 void OnPinHolderDestroy(DmPinType pinType, const std::string &payload) {} in OnPinHolderDestroy() argument
|
H A D | UTTest_ipc_cmd_parser_client.cpp | 477 DmPinType pinType = NUMBER_PIN_CODE; in HWTEST_F() local 481 req->SetPinType(pinType); in HWTEST_F() 498 DmPinType pinType = NUMBER_PIN_CODE; in HWTEST_F() local 502 req->SetPinType(pinType); in HWTEST_F() 633 int32_t pinType = 1; in HWTEST_F() local 637 data.WriteInt32(pinType); in HWTEST_F() 653 int32_t pinType = 1; in HWTEST_F() local 656 data.WriteInt32(pinType); in HWTEST_F()
|
H A D | UTTest_device_manager_service_listener.cpp | 371 DmPinType pinType = static_cast<DmPinType>(1); in HWTEST_F() local 373 listener_->OnPinHolderCreate(pkgName, deviceId, pinType, payload); in HWTEST_F() 386 DmPinType pinType = static_cast<DmPinType>(1); in HWTEST_F() local 388 listener_->OnPinHolderDestroy(pkgName, pinType, payload); in HWTEST_F()
|
H A D | UTTest_device_manager_impl.cpp | 2427 DmPinType pinType = DmPinType::QR_CODE;
in HWTEST_F() local 2429 int32_t ret = DeviceManager::GetInstance().CreatePinHolder(pkgName, targetId, pinType, payload);
in HWTEST_F() 2436 pinType = static_cast<DmPinType>(6);
in HWTEST_F() 2437 ret = DeviceManager::GetInstance().CreatePinHolder(pkgName, targetId, pinType, payload);
in HWTEST_F() 2439 pinType = DmPinType::QR_CODE;
in HWTEST_F() 2441 ret = DeviceManager::GetInstance().CreatePinHolder(pkgName, targetId, pinType, payload);
in HWTEST_F() 2444 ret = DeviceManager::GetInstance().CreatePinHolder(pkgName, targetId, pinType, payload);
in HWTEST_F() 2449 ret = DeviceManager::GetInstance().CreatePinHolder(pkgName, targetId, pinType, payload);
in HWTEST_F() 2464 DmPinType pinType = DmPinType::QR_CODE;
in HWTEST_F() local 2466 int32_t ret = DeviceManager::GetInstance().DestroyPinHolder(pkgName, targetId, pinType, payloa in HWTEST_F() [all...] |
/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
H A D | napi_native_object.cpp | 118 static std::string GetFormatPinCode(uint32_t pinType, uint32_t pinCode) in GetFormatPinCode() argument 121 if (pinType != PIN_TYPE_CONFIRM_PASSKEY && pinType != PIN_TYPE_NOTIFY_PASSKEY) { in GetFormatPinCode() 145 std::string pinCodeStr = GetFormatPinCode(pairConfirmInfo_->pinType, pairConfirmInfo_->number); in ToNapiValue() 149 napi_value pinType = nullptr; in ToNapiValue() local 150 napi_create_int32(env, pairConfirmInfo_->pinType, &pinType); in ToNapiValue() 151 napi_set_named_property(env, result, "pinType", pinType); in ToNapiValue()
|
/foundation/communication/bluetooth/frameworks/cj/connection/src/ |
H A D | bluetooth_connection_common.cpp | 44 std::string GetFormatPinCode(uint32_t pinType, uint32_t pinCode) in GetFormatPinCode() argument 47 if (pinType != PIN_TYPE_CONFIRM_PASSKEY && pinType != PIN_TYPE_NOTIFY_PASSKEY) { in GetFormatPinCode()
|
/foundation/distributedhardware/device_manager/common/include/ipc/model/ |
H A D | ipc_create_pin_holder_req.h | 103 void SetPinType(int32_t pinType) in SetPinType() argument 105 pinType_ = pinType; in SetPinType()
|
H A D | ipc_destroy_pin_holder_req.h | 63 void SetPinType(int32_t pinType) in SetPinType() argument 65 pinType_ = pinType; in SetPinType()
|
/foundation/distributedhardware/device_manager/services/service/src/pinholder/ |
H A D | pin_holder.cpp | 91 const PeerTargetId &targetId, DmPinType pinType, const std::string &payload) in CreatePinHolder() 130 pinType_ = pinType; in CreatePinHolder() 135 int32_t PinHolder::DestroyPinHolder(const std::string &pkgName, const PeerTargetId &targetId, DmPinType pinType, in DestroyPinHolder() argument 167 jsonObj[TAG_PIN_TYPE] = pinType; in DestroyPinHolder() 169 pinType_ = pinType; in DestroyPinHolder() 172 pinType); in DestroyPinHolder() 249 DmPinType pinType = static_cast<DmPinType>(jsonObject[TAG_PIN_TYPE].get<int32_t>()); in ProcessCreateMsg() local 262 listener_->OnPinHolderCreate(registerPkgName_, remoteDeviceId_, pinType, payload); in ProcessCreateMsg() 264 jsonContent[TAG_PIN_TYPE] = pinType; in ProcessCreateMsg() 328 DmPinType pinType in ProcessDestroyMsg() local 90 CreatePinHolder(const std::string &pkgName, const PeerTargetId &targetId, DmPinType pinType, const std::string &payload) CreatePinHolder() argument 571 DmPinType pinType = static_cast<DmPinType>(jsonObject[TAG_PIN_TYPE].get<int32_t>()); NotifyPinHolderEvent() local 602 DmPinType pinType = static_cast<DmPinType>(jsonObject[TAG_PIN_TYPE].get<int32_t>()); ProcessChangeMsg() local [all...] |
/foundation/distributedhardware/device_manager/test/servicesfuzztest/devicemanagerservice_fuzzer/ |
H A D | device_manager_service_fuzzer.cpp | 31 DmPinType pinType = DmPinType::QR_CODE; in DeviceManagerServiceFuzzTest() local 61 DeviceManagerService::GetInstance().CreatePinHolder(inputStr, targetId, pinType, inputStr); in DeviceManagerServiceFuzzTest() 62 DeviceManagerService::GetInstance().DestroyPinHolder(inputStr, targetId, pinType, inputStr); in DeviceManagerServiceFuzzTest()
|
/foundation/communication/bluetooth/frameworks/cj/connection/include/ |
H A D | bluetooth_connection_common.h | 27 std::string GetFormatPinCode(uint32_t pinType, uint32_t pinCode);
|
/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include/ |
H A D | device_manager_callback.h | 129 virtual void OnPinHolderCreate(const std::string &deviceId, DmPinType pinType, const std::string &payload) = 0;
130 virtual void OnPinHolderDestroy(DmPinType pinType, const std::string &payload) = 0;
|
/foundation/distributedhardware/device_manager/services/service/include/pinholder/ |
H A D | pin_holder.h | 52 DmPinType pinType, const std::string &payload); 54 DmPinType pinType, const std::string &payload);
|
/foundation/distributedhardware/device_manager/services/service/include/ |
H A D | idevice_manager_service_listener.h | 116 virtual void OnPinHolderCreate(const std::string &pkgName, const std::string &deviceId, DmPinType pinType, 124 virtual void OnPinHolderDestroy(const std::string &pkgName, DmPinType pinType, const std::string &payload) = 0;
|
H A D | device_manager_service_listener.h | 67 void OnPinHolderCreate(const std::string &pkgName, const std::string &deviceId, DmPinType pinType, 69 void OnPinHolderDestroy(const std::string &pkgName, DmPinType pinType, const std::string &payload) override;
|
/foundation/communication/bluetooth/frameworks/js/napi/src/connection/ |
H A D | napi_bluetooth_connection.cpp | 884 napi_value pinType = nullptr; in PinTypeInit() local 885 napi_create_object(env, &pinType); in PinTypeInit() 887 env, pinType, static_cast<int>(PinType::PIN_TYPE_ENTER_PIN_CODE), "PIN_TYPE_ENTER_PIN_CODE"); in PinTypeInit() 889 env, pinType, static_cast<int>(PinType::PIN_TYPE_ENTER_PASSKEY), "PIN_TYPE_ENTER_PASSKEY"); in PinTypeInit() 891 env, pinType, static_cast<int>(PinType::PIN_TYPE_CONFIRM_PASSKEY), "PIN_TYPE_CONFIRM_PASSKEY"); in PinTypeInit() 893 env, pinType, static_cast<int>(PinType::PIN_TYPE_NO_PASSKEY_CONSENT), "PIN_TYPE_NO_PASSKEY_CONSENT"); in PinTypeInit() 895 env, pinType, static_cast<int>(PinType::PIN_TYPE_NOTIFY_PASSKEY), "PIN_TYPE_NOTIFY_PASSKEY"); in PinTypeInit() 897 env, pinType, static_cast<int>(PinType::PIN_TYPE_DISPLAY_PIN_CODE), "PIN_TYPE_DISPLAY_PIN_CODE"); in PinTypeInit() 898 SetNamedPropertyByInteger(env, pinType, static_cast<int>(PinType::PIN_TYPE_OOB_CONSENT), "PIN_TYPE_OOB_CONSENT"); in PinTypeInit() 900 env, pinType, static_cas in PinTypeInit() [all...] |
/foundation/communication/bluetooth/frameworks/js/napi/include/ |
H A D | napi_bluetooth_utils.h | 140 int pinType; member 143 PairConfirmedCallBackInfo(int number, int pinType, std::string deviceAddr) in PairConfirmedCallBackInfo() 146 this->pinType = pinType; in PairConfirmedCallBackInfo()
|
/foundation/distributedhardware/device_manager/services/implementation/src/ |
H A D | device_manager_service_impl_lite.cpp | 368 DmPinType pinType, const std::string &payload) in CreatePinHolder() 372 (void)pinType; in CreatePinHolder() 378 DmPinType pinType, const std::string &payload) in DestroyPinHolder() 382 (void)pinType; in DestroyPinHolder() 367 CreatePinHolder(const std::string &pkgName, const PeerTargetId &targetId, DmPinType pinType, const std::string &payload) CreatePinHolder() argument 377 DestroyPinHolder(const std::string &pkgName, const PeerTargetId &targetId, DmPinType pinType, const std::string &payload) DestroyPinHolder() argument
|
/foundation/distributedhardware/device_manager/services/implementation/include/ |
H A D | device_manager_service_impl_lite.h | 115 DmPinType pinType, const std::string &payload); 117 DmPinType pinType, const std::string &payload);
|
/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include/notify/ |
H A D | device_manager_notify.h | 111 void OnPinHolderCreate(const std::string &deviceId, const std::string &pkgName, DmPinType pinType, 113 void OnPinHolderDestroy(const std::string &pkgName, DmPinType pinType, const std::string &payload);
|
/foundation/distributedhardware/device_manager/services/service/src/ |
H A D | device_manager_service_listener.cpp | 375 DmPinType pinType, const std::string &payload) in OnPinHolderCreate() 383 pReq->SetPinType(pinType); in OnPinHolderCreate() 388 void DeviceManagerServiceListener::OnPinHolderDestroy(const std::string &pkgName, DmPinType pinType, in OnPinHolderDestroy() argument 396 pReq->SetPinType(pinType); in OnPinHolderDestroy() 374 OnPinHolderCreate(const std::string &pkgName, const std::string &deviceId, DmPinType pinType, const std::string &payload) OnPinHolderCreate() argument
|
/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/src/ipc/standard/ |
H A D | ipc_cmd_parser.cpp | 1345 int32_t pinType = pReq->GetPinType(); in ON_IPC_SET_REQUEST() local 1356 if (!data.WriteInt32(pinType)) { in ON_IPC_SET_REQUEST() 1374 int32_t pinType = pReq->GetPinType(); in ON_IPC_SET_REQUEST() local 1383 if (!data.WriteInt32(pinType)) { in ON_IPC_SET_REQUEST() 1458 DmPinType pinType = static_cast<DmPinType>(data.ReadInt32()); in ON_IPC_CMD() local 1461 DeviceManagerNotify::GetInstance().OnPinHolderCreate(pkgName, deviceId, pinType, payload); in ON_IPC_CMD() 1469 DmPinType pinType = static_cast<DmPinType>(data.ReadInt32()); in ON_IPC_CMD() local 1472 DeviceManagerNotify::GetInstance().OnPinHolderDestroy(pkgName, pinType, payload); in ON_IPC_CMD()
|