Home
last modified time | relevance | path

Searched refs:pinType (Results 1 - 25 of 35) sorted by relevance

12

/foundation/distributedhardware/device_manager/test/commonfuzztest/pinholder_fuzzer/
H A Dpinholder_fuzzer.cpp34 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 DUTTest_dm_pin_holder.cpp95 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 DUTTest_dm_pin_holder.h50 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 DUTTest_device_manager_notify.h116 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 DUTTest_ipc_cmd_parser_client.cpp477 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 DUTTest_device_manager_service_listener.cpp371 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 DUTTest_device_manager_impl.cpp2427 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 Dnapi_native_object.cpp118 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 Dbluetooth_connection_common.cpp44 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 Dipc_create_pin_holder_req.h103 void SetPinType(int32_t pinType) in SetPinType() argument
105 pinType_ = pinType; in SetPinType()
H A Dipc_destroy_pin_holder_req.h63 void SetPinType(int32_t pinType) in SetPinType() argument
65 pinType_ = pinType; in SetPinType()
/foundation/distributedhardware/device_manager/services/service/src/pinholder/
H A Dpin_holder.cpp91 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 Ddevice_manager_service_fuzzer.cpp31 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 Dbluetooth_connection_common.h27 std::string GetFormatPinCode(uint32_t pinType, uint32_t pinCode);
/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include/
H A Ddevice_manager_callback.h129 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 Dpin_holder.h52 DmPinType pinType, const std::string &payload);
54 DmPinType pinType, const std::string &payload);
/foundation/distributedhardware/device_manager/services/service/include/
H A Didevice_manager_service_listener.h116 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 Ddevice_manager_service_listener.h67 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 Dnapi_bluetooth_connection.cpp884 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 Dnapi_bluetooth_utils.h140 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 Ddevice_manager_service_impl_lite.cpp368 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 Ddevice_manager_service_impl_lite.h115 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 Ddevice_manager_notify.h111 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 Ddevice_manager_service_listener.cpp375 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 Dipc_cmd_parser.cpp1345 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()

Completed in 21 milliseconds

12