Home
last modified time | relevance | path

Searched refs:deviceList (Results 1 - 25 of 34) sorted by relevance

12

/base/security/device_security_level/test/dslm_unit_test/
H A Ddevice_manager_mock.cpp35 .WillByDefault([](const std::string &, const std::string &, std::vector<DmDeviceInfo> &deviceList) { in DeviceManagerMock()
40 deviceList.push_back(info1); in DeviceManagerMock()
41 deviceList.push_back(info2); in DeviceManagerMock()
42 deviceList.push_back(info3); in DeviceManagerMock()
43 deviceList.push_back(info4); in DeviceManagerMock()
H A Ddevice_manager.h39 std::vector<DmDeviceInfo> &deviceList) = 0;
H A Ddevice_manager_mock.h40 (const std::string &pkgName, const std::string &extra, std::vector<DmDeviceInfo> &deviceList), (override));
/base/useriam/user_auth_framework/services/remote_connect/src/
H A Ddevice_manager_util.cpp79 std::vector<DistributedHardware::DmDeviceInfo> deviceList; in GetNetworkIdByUdid() local
80 int32_t ret = DeviceManager::GetInstance().GetTrustedDeviceList(USER_AUTH_PACKAGE_NAME, "", deviceList); in GetNetworkIdByUdid()
84 for (auto &device : deviceList) { in GetNetworkIdByUdid()
/base/security/device_auth/services/legacy/group_manager/src/group_operation/identical_account_group/
H A Didentical_account_group.c282 DeviceEntryVec deviceList = CreateDeviceEntryVec(); in DelAcrossAccountGroupAndTokens() local
283 (void)GetTrustedDevices(osAccountId, groupId, &deviceList); in DelAcrossAccountGroupAndTokens()
285 DelAllPeerTokens(osAccountId, &deviceList); in DelAcrossAccountGroupAndTokens()
286 ClearDeviceEntryVec(&deviceList); in DelAcrossAccountGroupAndTokens()
327 DeviceEntryVec deviceList = CreateDeviceEntryVec(); in DelGroupAndTokens() local
328 (void)GetTrustedDevices(osAccountId, groupId, &deviceList); in DelGroupAndTokens()
332 DelAllTokens(osAccountId, &deviceList); in DelGroupAndTokens()
333 ClearDeviceEntryVec(&deviceList); in DelGroupAndTokens()
566 static void UpdateTrustedDeviceForMetaNode(int32_t osAccountId, CJson *jsonParams, CJson *deviceList) in UpdateTrustedDeviceForMetaNode() argument
574 int32_t deviceNum = GetItemNum(deviceList); in UpdateTrustedDeviceForMetaNode()
634 CJson *deviceList = GetObjFromJson(processResult, FIELD_DEVICE_LIST); AddMetaNodeDeviceToGroup() local
670 CJson *deviceList = GetObjFromJson(jsonParams, FIELD_DEVICE_LIST); AddMultiMembersToGroup() local
711 CJson *deviceList = GetObjFromJson(jsonParams, FIELD_DEVICE_LIST); DelMultiMembersFromGroup() local
[all...]
/base/security/access_token/services/tokensyncmanager/src/remote/
H A Dsoft_bus_device_connection_listener.cpp103 std::vector<DistributedHardware::DmDeviceInfo> deviceList; in OnDeviceOffline() local
106 extra, deviceList); in OnDeviceOffline()
112 if (deviceList.empty()) { in OnDeviceOffline()
H A Dsoft_bus_manager.cpp89 std::vector<DistributedHardware::DmDeviceInfo> deviceList; in AddTrustedDeviceInfo() local
92 extra, deviceList); in AddTrustedDeviceInfo()
98 for (const DistributedHardware::DmDeviceInfo& device : deviceList) { in AddTrustedDeviceInfo()
/base/security/device_auth/services/legacy/group_manager/src/group_operation/across_account_group/
H A Dacross_account_group.c330 DeviceEntryVec deviceList = CreateDeviceEntryVec(); in DelGroupAndTokens() local
331 (void)GetTrustedDevices(osAccountId, groupId, &deviceList); in DelGroupAndTokens()
333 DelAllPeerTokens(osAccountId, &deviceList); in DelGroupAndTokens()
334 ClearDeviceEntryVec(&deviceList); in DelGroupAndTokens()
576 CJson *deviceList = GetObjFromJson(jsonParams, FIELD_DEVICE_LIST); in AddMultiMembersToGroup() local
577 if (deviceList == NULL) { in AddMultiMembersToGroup()
578 LOGE("Failed to get deviceList from json!"); in AddMultiMembersToGroup()
581 int32_t deviceNum = GetItemNum(deviceList); in AddMultiMembersToGroup()
584 CJson *deviceInfo = GetItemFromArray(deviceList, i); in AddMultiMembersToGroup()
617 CJson *deviceList in DelMultiMembersFromGroup() local
[all...]
/base/security/device_security_level/baselib/msglib/src/standard/
H A Dmessenger_device_status_manager.cpp221 std::vector<DmDeviceInfo> deviceList; in MessengerGetDeviceNodeBasicInfo() local
222 int32_t ret = DeviceManager::GetInstance().GetTrustedDeviceList(name, "", deviceList); in MessengerGetDeviceNodeBasicInfo()
229 for (auto const &device : deviceList) { in MessengerGetDeviceNodeBasicInfo()
376 std::vector<DmDeviceInfo> deviceList; in MessengerForEachDeviceProcess() local
377 int32_t ret = DeviceManager::GetInstance().GetTrustedDeviceList(name, "", deviceList); in MessengerForEachDeviceProcess()
383 for (auto const &device : deviceList) { in MessengerForEachDeviceProcess()
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/
H A Dmock_device_manager_impl.cpp38 std::vector<DmDeviceInfo> &deviceList) in GetTrustedDeviceList()
50 deviceList.clear(); in GetTrustedDeviceList()
51 deviceList.push_back(localDevice); in GetTrustedDeviceList()
52 deviceList.push_back(remoteDevice); in GetTrustedDeviceList()
37 GetTrustedDeviceList(const std::string &pkgName, const std::string &extra, std::vector<DmDeviceInfo> &deviceList) GetTrustedDeviceList() argument
/base/msdp/device_status/intention/adapters/ddm_adapter/src/
H A Dddm_adapter_impl.cpp116 int32_t DDMAdapterImpl::GetTrustedDeviceList(std::vector<DistributedHardware::DmDeviceInfo> &deviceList) in GetTrustedDeviceList() argument
119 deviceList.clear(); in GetTrustedDeviceList()
120 if (int32_t ret = D_DEV_MGR.GetTrustedDeviceList(FI_PKG_NAME, "", deviceList); ret != RET_OK) { in GetTrustedDeviceList()
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/
H A Dmock_device_manager_impl.cpp73 std::vector<DmDeviceInfo> &deviceList) in GetTrustedDeviceList()
72 GetTrustedDeviceList(const std::string &pkgName, const std::string &extra, std::vector<DmDeviceInfo> &deviceList) GetTrustedDeviceList() argument
H A Ddistributed_database_branch_test.cpp494 std::vector<DistributedHardware::DmDeviceInfo> deviceList; in HWTEST_F() local
495 EXPECT_EQ(true, database_->GetDeviceInfoList(deviceList)); in HWTEST_F()
507 std::vector<DistributedHardware::DmDeviceInfo> deviceList; in HWTEST_F() local
508 EXPECT_EQ(false, database_->GetDeviceInfoList(deviceList)); in HWTEST_F()
521 std::vector<DistributedHardware::DmDeviceInfo> deviceList; in HWTEST_F() local
522 EXPECT_EQ(false, database_->GetDeviceInfoList(deviceList)); in HWTEST_F()
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_notification_manager_branch_test/
H A Dmock_distributed_database.cpp62 bool DistributedDatabase::GetDeviceInfoList(std::vector<DeviceInfo> &deviceList) in GetDeviceInfoList() argument
/base/security/access_token/services/tokensyncmanager/test/mock/include/
H A Ddevice_manager.h60 std::vector<DmDeviceInfo> &deviceList) in GetTrustedDeviceList()
59 GetTrustedDeviceList(const std::string &pkgName, const std::string &extra, std::vector<DmDeviceInfo> &deviceList) GetTrustedDeviceList() argument
/base/notification/distributed_notification_service/services/distributed/include/
H A Ddistributed_database.h114 * @param deviceList Indicates the infomation list of devices.
117 bool GetDeviceInfoList(std::vector<DeviceInfo> &deviceList);
/base/msdp/device_status/intention/adapters/ddm_adapter/include/
H A Dddm_adapter_impl.h44 int32_t GetTrustedDeviceList(std::vector<DistributedHardware::DmDeviceInfo> &deviceList);
/base/msdp/device_status/intention/adapters/dsoftbus_adapter/src/
H A Ddsoftbus_adapter_impl.cpp118 std::vector<DistributedHardware::DmDeviceInfo> deviceList; in CheckDeviceOnline() local
119 if (D_DEV_MGR.GetTrustedDeviceList(FI_PKG_NAME, "", deviceList) != RET_OK) { in CheckDeviceOnline()
123 if (deviceList.empty()) { in CheckDeviceOnline()
127 for (const auto &deviceInfo : deviceList) { in CheckDeviceOnline()
/base/notification/distributed_notification_service/services/distributed/src/
H A Ddistributed_notification_manager.cpp270 std::vector<DistributedDatabase::DeviceInfo> deviceList; in OnDeviceDisconnected()
271 if (database_->GetDeviceInfoList(deviceList) == ERR_OK && deviceList.empty()) { in OnDeviceDisconnected()
H A Ddistributed_database.cpp307 bool DistributedDatabase::GetDeviceInfoList(std::vector<DeviceInfo> &deviceList) in GetDeviceInfoList() argument
319 int32_t ret = DistributedHardware::DeviceManager::GetInstance().GetTrustedDeviceList(APP_ID, "", deviceList); in GetDeviceInfoList()
/base/usb/usb_manager/services/zidl/include/
H A Dusb_server_proxy.h36 int32_t GetDevices(std::vector<UsbDevice> &deviceList) override;
99 int32_t GetDeviceListMessageParcel(MessageParcel &data, std::vector<UsbDevice> &deviceList);
/base/usb/usb_manager/test/native/service_unittest/src/
H A Dusb_device_pipe_test.cpp79 * @tc.desc: Test functions to getDevices(std::vector<UsbDevice> &deviceList);
116 std::vector<UsbDevice> deviceList; in HWTEST_F() local
117 auto ret = UsbSrvClient.GetDevices(deviceList); in HWTEST_F()
120 EXPECT_TRUE(!(deviceList.empty())) << "delist NULL"; in HWTEST_F()
122 deviceList.size()); in HWTEST_F()
123 UsbDevice device = deviceList.front(); in HWTEST_F()
147 std::vector<UsbDevice> deviceList; in HWTEST_F() local
148 auto ret = UsbSrvClient.GetDevices(deviceList); in HWTEST_F()
151 EXPECT_TRUE(!(deviceList.empty())) << "delist NULL"; in HWTEST_F()
153 deviceList in HWTEST_F()
180 std::vector<UsbDevice> deviceList; HWTEST_F() local
214 std::vector<UsbDevice> deviceList; HWTEST_F() local
248 std::vector<UsbDevice> deviceList; HWTEST_F() local
[all...]
/base/usb/usb_manager/interfaces/innerkits/native/include/
H A Dusb_srv_client.h51 int32_t GetDevices(std::vector<UsbDevice> &deviceList);
/base/usb/usb_manager/services/zidl/src/
H A Dusb_srv_stub.cpp858 std::vector<UsbDevice> deviceList; in DoGetDevices() local
859 int32_t ret = GetDevices(deviceList); in DoGetDevices()
865 USB_HILOGI(MODULE_SERVICE, "list size = %{public}zu", deviceList.size()); in DoGetDevices()
866 ret = SetDeviceListMessageParcel(deviceList, reply); in DoGetDevices()
873 int32_t UsbServerStub::SetDeviceListMessageParcel(std::vector<UsbDevice> &deviceList, MessageParcel &data) in SetDeviceListMessageParcel() argument
875 int32_t deviceCount = (int32_t)deviceList.size(); in SetDeviceListMessageParcel()
878 UsbDevice &devInfo = deviceList[i]; in SetDeviceListMessageParcel()
/base/usb/usb_manager/interfaces/innerkits/native/src/
H A Dusb_srv_client.cpp166 int32_t UsbSrvClient::GetDevices(std::vector<UsbDevice> &deviceList) in GetDevices() argument
169 int32_t ret = proxy_->GetDevices(deviceList); in GetDevices()
174 USB_HILOGI(MODULE_USB_INNERKIT, "GetDevices deviceList size = %{public}zu!", deviceList.size()); in GetDevices()

Completed in 18 milliseconds

12