/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/ |
H A D | distributed_hardware_manager_factory.cpp | 56 std::vector<DmDeviceInfo> deviceList; in InitLocalDevInfo() local 57 DeviceManager::GetInstance().GetTrustedDeviceList(DH_FWK_PKG_NAME, "", deviceList); in InitLocalDevInfo() 58 if (deviceList.size() > 0 && deviceList.size() <= MAX_ONLINE_DEVICE_SIZE) { in InitLocalDevInfo() 69 deviceList.clear(); in InitLocalDevInfo() 70 DeviceManager::GetInstance().GetTrustedDeviceList(DH_FWK_PKG_NAME, "", deviceList); in InitLocalDevInfo() 71 if ((deviceList.size() == 0 || deviceList.size() > MAX_ONLINE_DEVICE_SIZE) && in InitLocalDevInfo() 109 DHLOGI("No device online or deviceList is over size, exit sa process"); in ExitDHFWK() 127 std::vector<DmDeviceInfo> deviceList; in CheckExitSAOrNot() local [all...] |
/foundation/multimodalinput/input/tools/event_inject/src/ |
H A D | get_device_node.cpp | 40 std::map<std::string, std::vector<std::string>> deviceList; in GetDeviceNodeName() local 41 AnalyseDevices(devices, deviceList); in GetDeviceNodeName() 42 if (deviceList.empty()) { in GetDeviceNodeName() 47 auto iter = deviceList.find(deviceName); in GetDeviceNodeName() 48 if (iter == deviceList.end()) { in GetDeviceNodeName() 110 std::map<std::string, std::vector<std::string>> &deviceList) const in AnalyseDevices() 131 deviceList[name].push_back(target); in AnalyseDevices()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_syncer_device_manager_test.cpp | 190 std::vector<std::string> deviceList; in HWTEST_F() local 196 g_deviceManager->GetOnlineDevices(deviceList); in HWTEST_F() 197 ASSERT_TRUE(deviceList.size() == 2); in HWTEST_F() 198 EXPECT_TRUE(deviceList[0] == g_deviceB->GetDeviceId()); in HWTEST_F() 199 EXPECT_TRUE(deviceList[1] == g_deviceC->GetDeviceId()); in HWTEST_F() 206 g_deviceManager->GetOnlineDevices(deviceList); in HWTEST_F() 207 ASSERT_TRUE(deviceList.size() == 1); in HWTEST_F() 208 EXPECT_TRUE(deviceList[0] == g_deviceB->GetDeviceId()); in HWTEST_F()
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/ |
H A D | softbus_handler_asset_test.cpp | 175 std::vector<DmDeviceInfo> deviceList; in HWTEST_F() local 177 deviceList.push_back(deviceInfo); in HWTEST_F() 179 .WillOnce(DoAll(SetArgReferee<2>(deviceList), Return(0))); in HWTEST_F() 184 .WillOnce(DoAll(SetArgReferee<2>(deviceList), Return(0))); in HWTEST_F() 190 .WillOnce(DoAll(SetArgReferee<2>(deviceList), Return(0))); in HWTEST_F() 211 std::vector<DmDeviceInfo> deviceList; in HWTEST_F() local 212 deviceList.push_back(deviceInfo); in HWTEST_F() 214 .WillOnce(DoAll(SetArgReferee<2>(deviceList), Return(0))); in HWTEST_F() 218 deviceList.clear(); in HWTEST_F() 220 deviceList in HWTEST_F() 256 std::vector<DmDeviceInfo> deviceList; HWTEST_F() local 361 std::vector<DmDeviceInfo> deviceList; HWTEST_F() local [all...] |
/foundation/multimodalinput/input/intention/adapters/ddm_adapter/src/ |
H A D | ddm_adapter_impl.cpp | 114 int32_t DDMAdapterImpl::GetTrustedDeviceList(std::vector<DistributedHardware::DmDeviceInfo> &deviceList) in GetTrustedDeviceList() argument 117 deviceList.clear(); in GetTrustedDeviceList() 118 if (int32_t ret = D_DEV_MGR.GetTrustedDeviceList(FI_PKG_NAME, "", deviceList); ret != RET_OK) { in GetTrustedDeviceList() 128 std::vector<DistributedHardware::DmDeviceInfo> deviceList; in CheckSameAccountToLocal() local 129 if (GetTrustedDeviceList(deviceList) != RET_OK) { in CheckSameAccountToLocal() 133 if (size_t size = deviceList.size(); size == 0 || size > MAX_ONLINE_DEVICE_SIZE) { in CheckSameAccountToLocal() 137 for (const auto &deviceInfo : deviceList) { in CheckSameAccountToLocal()
|
/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | kv_adapter_test.cpp | 339 vector<string> deviceList; in HWTEST_F() local 340 EXPECT_EQ(DP_KV_DB_PTR_NULL, kvStore->Sync(deviceList, SyncMode::PUSH)); in HWTEST_F() 345 * @tc.desc: Sync failed, deviceList is invalid. 351 vector<string> deviceList; in HWTEST_F() local 352 EXPECT_EQ(DP_INVALID_PARAMS, kvStore->Sync(deviceList, SyncMode::PUSH)); in HWTEST_F() 355 deviceList.emplace_back("deviceId"); in HWTEST_F() 357 EXPECT_EQ(DP_INVALID_PARAMS, kvStore->Sync(deviceList, SyncMode::PUSH)); in HWTEST_F() 368 vector<string> deviceList; in HWTEST_F() local 369 deviceList.emplace_back("deviceId"); in HWTEST_F() 371 kvStore->Sync(deviceList, mod in HWTEST_F() [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/device/ |
H A D | device_manager_agent_sup_test.cpp | 345 std::vector<DmDeviceInfo> deviceList; in HWTEST_F() local 346 deviceList.push_back(deviceInfo); in HWTEST_F() 348 .WillOnce(DoAll(SetArgReferee<2>(deviceList), Return(0))); in HWTEST_F() 370 std::vector<DmDeviceInfo> deviceList; in HWTEST_F() local 371 deviceList.push_back(deviceInfo); in HWTEST_F() 373 .WillOnce(DoAll(SetArgReferee<2>(deviceList), Return(0))); in HWTEST_F() 378 deviceList.clear(); in HWTEST_F() 379 deviceList.push_back(deviceInfo); in HWTEST_F() 381 .WillOnce(DoAll(SetArgReferee<2>(deviceList), Return(0))); in HWTEST_F() 385 deviceList in HWTEST_F() 409 std::vector<DmDeviceInfo> deviceList; HWTEST_F() local [all...] |
H A D | device_manager_agent_test.cpp | 260 std::vector<DmDeviceInfo> deviceList; in HWTEST_F() local 261 deviceList.push_back(deviceInfo); in HWTEST_F() 263 .WillOnce(DoAll(SetArgReferee<2>(deviceList), Return(0))); in HWTEST_F() 270 .WillOnce(DoAll(SetArgReferee<2>(deviceList), Return(0))); in HWTEST_F() 275 .WillOnce(DoAll(SetArgReferee<2>(deviceList), Return(0))); in HWTEST_F() 305 std::vector<DmDeviceInfo> deviceList; in HWTEST_F() local 306 deviceList.push_back(deviceInfo); in HWTEST_F() 308 .WillOnce(DoAll(SetArgReferee<2>(deviceList), Return(0))); in HWTEST_F() 316 .WillOnce(DoAll(SetArgReferee<2>(deviceList), Return(0))).WillOnce(Return(0)); in HWTEST_F() 364 std::vector<DmDeviceInfo> deviceList; in HWTEST_F() local 407 std::vector<DmDeviceInfo> deviceList; HWTEST_F() local 461 std::vector<DmDeviceInfo> deviceList; HWTEST_F() local 1058 std::vector<DmDeviceInfo> deviceList; HWTEST_F() local 1108 std::vector<DmDeviceInfo> deviceList; HWTEST_F() local 1224 std::vector<DmDeviceInfo> deviceList; HWTEST_F() local [all...] |
/foundation/CastEngine/castengine_cast_framework/client/src/ |
H A D | cast_service_listener_impl_stub.cpp | 58 bool CastServiceListenerImplStub::GetCastRemoteDevices(MessageParcel &data, std::vector<CastRemoteDevice> &deviceList) in GetCastRemoteDevices() argument 64 deviceList.resize(size); in GetCastRemoteDevices() 66 if (!ReadCastRemoteDevice(data, deviceList[i])) { in GetCastRemoteDevices() 130 void CastServiceListenerImplStub::OnDeviceFound(const std::vector<CastRemoteDevice> &deviceList) in OnDeviceFound() argument 132 static_cast<void>(deviceList); in OnDeviceFound()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/ |
H A D | nstackx_common.h | 28 NSTACKX_DeviceInfo *deviceList; member 43 void NotifyDeviceListChanged(const NSTACKX_DeviceInfo *deviceList, uint32_t deviceCount); 44 void NotifyDeviceFound(const NSTACKX_DeviceInfo *deviceList, uint32_t deviceCount);
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
H A D | gap_le_conn.c | 97 connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByHandle, (void *)&eventParam->connectionHandle); in GapOnLeConnectionUpdateCompleteEvent() 132 deviceInfo = ListForEachData(connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByAddr, (void *)addr); in GAP_LeConnParamUpdate() 205 connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByHandle, (void *)&eventParam->connectionHandle); in GapOnLeRemoteConnectionParameterRequestEvent() 281 deviceInfo = ListForEachData(connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByAddr, (void *)addr); in GAP_LeConnectionParameterRsp() 340 connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByHandle, (void *)¶m->connectionHandle); in GapLeReadChannelMapComplete() 400 deviceInfo = ListForEachData(connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByAddr, (void *)addr); in GAP_LeGetSecurityStatus() 424 LeDeviceInfo *deviceInfo = ListForEachData(GapGetLeConnectionInfoBlock()->deviceList, GapFindCmpListData, ctx); in GapWaitExAdvTerminatedTimeoutTask() 474 ListAddLast(leConnectionInfoBlock->deviceList, deviceInfo); in GapLeConnectionComplete() 506 ListForEachData(leConnectionInfoBlock->deviceList, GapFindLeConnectionDeviceByHandle, &connectionHandle); in GapLeDisconnectionComplete() 508 ListRemoveNode(leConnectionInfoBlock->deviceList, deviceInf in GapLeDisconnectionComplete() [all...] |
H A D | gap_le_sec.c | 80 deviceInfo = ListForEachData(connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByHandle, &handle); in GapDoLeSecurityCallback() 246 deviceInfo = ListForEachData(connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByHandle, &handle); in GapLeAuthenticationRequest() 345 ListForEachData(GapGetLeConnectionInfoBlock()->deviceList, GapFindLeConnectionDeviceByHandle, &handle); in GapSetLeSigningInfo() 387 ListForEachData(GapGetLeConnectionInfoBlock()->deviceList, GapFindLeConnectionDeviceByHandle, &handle); in GapLePairResult() 429 deviceInfo = ListForEachData(connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByHandle, &handle); in GapLeRemotePairRequest() 461 deviceInfo = ListForEachData(connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByHandle, &handle); in GapLeRemotePairResponse() 479 deviceInfo = ListForEachData(connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByHandle, &handle); in GapLeRemoteSecurityRequest() 501 deviceInfo = ListForEachData(connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByHandle, &handle); in GapLeLongTermKeyRequest() 523 deviceInfo = ListForEachData(connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByHandle, &handle); in GapLeEncryptionComplete() 584 deviceInfo = ListForEachData(connectionInfoBlock->deviceList, GapFindLeConnectionDeviceByAdd in GAP_LeRemoteEncryptionKeyRsp() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/ |
H A D | device_manager_mock.h | 40 std::vector<DmDeviceInfo> &deviceList);
43 bool isRefresh, std::vector<DmDeviceInfo> &deviceList);
46 std::vector<DmDeviceBasicInfo> &deviceList);
|
H A D | device_manager_mock.cpp | 39 std::vector<DmDeviceInfo> &deviceList)
in GetTrustedDeviceList() 51 bool isRefresh, std::vector<DmDeviceInfo> &deviceList)
in GetTrustedDeviceList() 57 std::vector<DmDeviceBasicInfo> &deviceList)
in GetAvailableDeviceList() 38 GetTrustedDeviceList(const std::string &pkgName, const std::string &extra, std::vector<DmDeviceInfo> &deviceList) GetTrustedDeviceList() argument 50 GetTrustedDeviceList(const std::string &pkgName, const std::string &extra, bool isRefresh, std::vector<DmDeviceInfo> &deviceList) GetTrustedDeviceList() argument 56 GetAvailableDeviceList(const std::string &pkgName, std::vector<DmDeviceBasicInfo> &deviceList) GetAvailableDeviceList() argument
|
/foundation/distributedhardware/device_manager/common/include/ipc/model/ |
H A D | ipc_credential_auth_status_req.h | 42 void SetDeviceList(const std::string &deviceList) in SetDeviceList() argument 44 deviceList_ = deviceList; in SetDeviceList()
|
/foundation/distributedhardware/device_manager/test/servicesfuzztest/gettrusteddevicelistservice_fuzzer/ |
H A D | get_trusted_devicelist_service_fuzzer.cpp | 30 std::vector<DmDeviceInfo> deviceList; in GetTrustedDeviceListFuzzTest() local 33 DeviceManagerService::GetInstance().GetTrustedDeviceList(pkgName, extra, deviceList); in GetTrustedDeviceListFuzzTest()
|
/foundation/deviceprofile/device_info_manager/old/services/core/src/devicemanager/ |
H A D | dp_device_manager.cpp | 115 std::vector<DmDeviceInfo> deviceList; in GetTrustedDeviceList() local 116 int32_t ret = DeviceManager::GetInstance().GetTrustedDeviceList(PKG_NAME, "", deviceList); in GetTrustedDeviceList() 121 if (deviceList.empty()) { in GetTrustedDeviceList() 122 HILOGI("deviceList is empty!"); in GetTrustedDeviceList() 125 for (const DmDeviceInfo& dmDeviceInfo : deviceList) { in GetTrustedDeviceList() 300 std::vector<DmDeviceInfo> deviceList; in RecoverDevicesIfNeeded() local 301 if (DeviceManager::GetInstance().GetTrustedDeviceList(PKG_NAME, "", deviceList) != ERR_OK) { in RecoverDevicesIfNeeded() 305 for (DmDeviceInfo dmDeviceInfo : deviceList) { in RecoverDevicesIfNeeded() 458 void DpDeviceManager::GetDeviceList(std::list<std::shared_ptr<DeviceInfo>>& deviceList) in GetDeviceList() argument 460 deviceList in GetDeviceList() [all...] |
/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/ |
H A D | profile_dm_test.cpp | 208 std::list<std::shared_ptr<DeviceInfo>> deviceList; in HWTEST_F() local 209 DpDeviceManager::GetInstance().GetDeviceList(deviceList); in HWTEST_F() 231 std::list<std::shared_ptr<DeviceInfo>> deviceList; in HWTEST_F() local 232 DpDeviceManager::GetInstance().GetDeviceList(deviceList); in HWTEST_F()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/accessmanager/ |
H A D | access_manager.cpp | 207 std::vector<DmDeviceInfo> deviceList; in CheckTrustedDeviceOnline() local 208 DeviceManager::GetInstance().GetTrustedDeviceList(DH_FWK_PKG_NAME, "", deviceList); in CheckTrustedDeviceOnline() 209 if (deviceList.size() == 0 || deviceList.size() > MAX_ONLINE_DEVICE_SIZE) { in CheckTrustedDeviceOnline() 213 for (const auto &deviceInfo : deviceList) { in CheckTrustedDeviceOnline()
|
/foundation/CastEngine/castengine_cast_framework/client/include/ |
H A D | cast_service_listener_impl_stub.h | 40 bool GetCastRemoteDevices(MessageParcel &data, std::vector<CastRemoteDevice> &deviceList); 46 void OnDeviceFound(const std::vector<CastRemoteDevice> &deviceList) override;
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | nstackx_device.c | 220 int32_t SetReservedInfoFromDeviceInfo(NSTACKX_DeviceInfo *deviceList, const DeviceInfo *deviceInfo) in SetReservedInfoFromDeviceInfo() argument 227 if (sprintf_s(deviceList->reservedInfo, sizeof(deviceList->reservedInfo), in SetReservedInfoFromDeviceInfo() 232 cJSON *item = cJSON_Parse(deviceList->reservedInfo); in SetReservedInfoFromDeviceInfo() 234 DFINDER_LOGE(TAG, "pares deviceList fails"); in SetReservedInfoFromDeviceInfo() 251 (void)memset_s(deviceList->reservedInfo, sizeof(deviceList->reservedInfo), in SetReservedInfoFromDeviceInfo() 252 0, sizeof(deviceList->reservedInfo)); in SetReservedInfoFromDeviceInfo() 253 if (strcpy_s(deviceList->reservedInfo, sizeof(deviceList in SetReservedInfoFromDeviceInfo() [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/device/ |
H A D | device_manager_agent.cpp | 646 std::vector<DistributedHardware::DmDeviceInfo> deviceList; in GetDeviceIdByNetworkId() local 647 DistributedHardware::DeviceManager::GetInstance().GetTrustedDeviceList(IDaemon::SERVICE_NAME, "", deviceList); in GetDeviceIdByNetworkId() 648 if (deviceList.size() == 0 || deviceList.size() > MAX_ONLINE_DEVICE_SIZE) { in GetDeviceIdByNetworkId() 649 LOGE("the size of trust device list is invalid, size=%zu", deviceList.size()); in GetDeviceIdByNetworkId() 653 for (const auto &device : deviceList) { in GetDeviceIdByNetworkId() 813 std::vector<DistributedHardware::DmDeviceInfo> deviceList; in IsSupportedDevice() local 814 DistributedHardware::DeviceManager::GetInstance().GetTrustedDeviceList(IDaemon::SERVICE_NAME, "", deviceList); in IsSupportedDevice() 815 if (deviceList.size() == 0 || deviceList in IsSupportedDevice() 877 vector<DistributedHardware::DmDeviceInfo> deviceList; GetRemoteDevicesInfo() local [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_agent.cpp | 61 std::vector<DistributedHardware::DmDeviceInfo> deviceList; in IsSameAccount() local 62 DistributedHardware::DeviceManager::GetInstance().GetTrustedDeviceList(IDaemon::SERVICE_NAME, "", deviceList); in IsSameAccount() 63 if (deviceList.size() == 0 || deviceList.size() > MAX_ONLINE_DEVICE_SIZE) { in IsSameAccount() 64 LOGE("trust device list size is invalid, size=%zu", deviceList.size()); in IsSameAccount() 67 for (const auto &deviceInfo : deviceList) { in IsSameAccount()
|
/foundation/filemanagement/dfs_service/test/mock/ |
H A D | device_manager_impl_mock.h | 35 const std::string &extra, std::vector<DmDeviceInfo> &deviceList) = 0; 52 const std::string &extra, std::vector<DmDeviceInfo> &deviceList));
|
/foundation/CastEngine/castengine_cast_framework/interfaces/kits/js/src/ |
H A D | napi_cast_session_manager_listener.cpp | 53 void NapiCastSessionManagerListener::OnDeviceFound(const std::vector<CastRemoteDevice> &deviceList) in OnDeviceFound() argument 56 NapiArgsGetter napiArgsGetter = [deviceList](napi_env env, int &argc, napi_value *argv) { in OnDeviceFound() 58 argv[0] = ConvertDeviceListToJS(env, deviceList); in OnDeviceFound()
|