Home
last modified time | relevance | path

Searched refs:deviceIds (Results 1 - 25 of 28) sorted by relevance

12

/base/customization/enterprise_device_management/interfaces/inner_api/bluetooth_manager/include/
H A Dbluetooth_manager_proxy.h35 int32_t AddAllowedBluetoothDevices(const AppExecFwk::ElementName &admin, const std::vector<std::string> &deviceIds);
36 int32_t GetAllowedBluetoothDevices(const AppExecFwk::ElementName *admin, std::vector<std::string> &deviceIds);
38 const std::vector<std::string> &deviceIds);
44 const std::vector<std::string> &deviceIds, std::string function);
/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/
H A Dbluetooth_manager_proxy_test.cpp183 std::vector<std::string> deviceIds = { "00:1A:2B:3C:4D:5E", "AA:BB:CC:DD:EE:FF" }; in HWTEST_F() local
184 int32_t ret = proxy_->AddAllowedBluetoothDevices(admin, deviceIds); in HWTEST_F()
198 std::vector<std::string> deviceIds; in HWTEST_F() local
199 int32_t ret = proxy_->AddAllowedBluetoothDevices(admin, deviceIds); in HWTEST_F()
215 std::vector<std::string> deviceIds; in HWTEST_F() local
216 int32_t ret = proxy_->GetAllowedBluetoothDevices(&admin, deviceIds); in HWTEST_F()
230 std::vector<std::string> deviceIds; in HWTEST_F() local
231 int32_t ret = proxy_->GetAllowedBluetoothDevices(&admin, deviceIds); in HWTEST_F()
245 std::vector<std::string> deviceIds; in HWTEST_F() local
246 int32_t ret = proxy_->GetAllowedBluetoothDevices(nullptr, deviceIds); in HWTEST_F()
262 std::vector<std::string> deviceIds = { "00:1A:2B:3C:4D:5E", "AA:BB:CC:DD:EE:FF" }; HWTEST_F() local
277 std::vector<std::string> deviceIds; HWTEST_F() local
[all...]
/base/customization/enterprise_device_management/interfaces/inner_api/bluetooth_manager/src/
H A Dbluetooth_manager_proxy.cpp81 const std::vector<std::string> &deviceIds) in AddAllowedBluetoothDevices()
83 return AddOrRemoveAllowedBluetoothDevices(admin, deviceIds, "AddAllowedBluetoothDevices"); in AddAllowedBluetoothDevices()
87 std::vector<std::string> &deviceIds) in GetAllowedBluetoothDevices()
117 reply.ReadStringVector(&deviceIds); in GetAllowedBluetoothDevices()
122 const std::vector<std::string> &deviceIds) in RemoveAllowedBluetoothDevices()
124 return AddOrRemoveAllowedBluetoothDevices(admin, deviceIds, "RemoveAllowedBluetoothDevices"); in RemoveAllowedBluetoothDevices()
128 const std::vector<std::string> &deviceIds, std::string function) in AddOrRemoveAllowedBluetoothDevices()
144 data.WriteStringVector(deviceIds); in AddOrRemoveAllowedBluetoothDevices()
80 AddAllowedBluetoothDevices(const AppExecFwk::ElementName &admin, const std::vector<std::string> &deviceIds) AddAllowedBluetoothDevices() argument
86 GetAllowedBluetoothDevices(const AppExecFwk::ElementName *admin, std::vector<std::string> &deviceIds) GetAllowedBluetoothDevices() argument
121 RemoveAllowedBluetoothDevices(const AppExecFwk::ElementName &admin, const std::vector<std::string> &deviceIds) RemoveAllowedBluetoothDevices() argument
127 AddOrRemoveAllowedBluetoothDevices(const AppExecFwk::ElementName &admin, const std::vector<std::string> &deviceIds, std::string function) AddOrRemoveAllowedBluetoothDevices() argument
/base/security/appverify/interfaces/innerkits/appverify/src/ticket/
H A Dticket_verify.cpp67 bool CheckDevice(const std::vector<std::string>& deviceIds, const std::string& deviceId) in CheckDevice() argument
69 auto iter = find(deviceIds.begin(), deviceIds.end(), deviceId); in CheckDevice()
70 if (iter == deviceIds.end()) { in CheckDevice()
79 if (info.debugInfo.deviceIds.empty()) { in CheckDevice()
85 static_cast<uint32_t>(info.debugInfo.deviceIds.size())); in CheckDevice()
113 if (!CheckDevice(info.debugInfo.deviceIds, deviceId)) { in CheckDevice()
/base/customization/enterprise_device_management/interfaces/kits/bluetooth_manager/src/
H A Dbluetooth_manager_addon.cpp169 std::vector<std::string> deviceIds; in GetAllowedBluetoothDevices() local
172 retCode = bluetoothManagerProxy->GetAllowedBluetoothDevices(&elementName, deviceIds); in GetAllowedBluetoothDevices()
174 retCode = bluetoothManagerProxy->GetAllowedBluetoothDevices(nullptr, deviceIds); in GetAllowedBluetoothDevices()
182 for (size_t i = 0; i < deviceIds.size(); i++) { in GetAllowedBluetoothDevices()
184 napi_create_string_utf8(env, deviceIds[i].c_str(), NAPI_AUTO_LENGTH, &allowedDevices); in GetAllowedBluetoothDevices()
214 std::vector<std::string> deviceIds; in AddOrRemoveBluetoothDevices() local
215 ret = ParseStringArray(env, deviceIds, argv[ARR_INDEX_ONE]); in AddOrRemoveBluetoothDevices()
216 ASSERT_AND_THROW_PARAM_ERROR(env, ret, "param 'deviceIds' parse error"); in AddOrRemoveBluetoothDevices()
219 retCode = bluetoothManagerProxy->AddAllowedBluetoothDevices(elementName, deviceIds); in AddOrRemoveBluetoothDevices()
221 retCode = bluetoothManagerProxy->RemoveAllowedBluetoothDevices(elementName, deviceIds); in AddOrRemoveBluetoothDevices()
[all...]
/base/customization/enterprise_device_management/test/fuzztest/allowedbluetoothdevicesplugin_fuzzer/
H A Dallowed_bluetooth_devices_plugin_fuzzer.cpp60 std::vector<std::string> deviceIds; in LLVMFuzzerTestOneInput() local
61 deviceIds.push_back(CommonFuzzer::GetString(data, pos, stringSize, size)); in LLVMFuzzerTestOneInput()
62 parcel.WriteStringVector(deviceIds); in LLVMFuzzerTestOneInput()
/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Dallowed_bluetooth_devices_plugin.cpp77 std::vector<std::string> deviceIds; in OnGetPolicy() local
78 pluginInstance_->serializer_->Deserialize(policyData, deviceIds); in OnGetPolicy()
80 reply.WriteInt32(deviceIds.size()); in OnGetPolicy()
81 reply.WriteStringVector(deviceIds); in OnGetPolicy()
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/include/
H A Dmock_single_kv_store.h93 * @param deviceIds Indicates the device list to sync.
99 Status Sync(const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t delayMs) override;
278 * @param deviceIds Indicates the device list to sync, this is network id from soft bus.
284 virtual Status Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &query,
291 * @param deviceIds Indicates the device list to sync, this is network id from soft bus.
296 virtual Status SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
301 * @param deviceIds Indicates the device list to sync, this is network id from soft bus.
305 virtual Status UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_screen_status_manager_branch_test/
H A Dmock_single_kv_store.cpp66 Status MockSingleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t allowedDelayMs) in Sync() argument
169 Status MockSingleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, in Sync() argument
175 Status MockSingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
180 Status MockSingleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/
H A Dmock_single_kv_store.cpp52 Status MockSingleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t allowedDelayMs) in Sync() argument
155 Status MockSingleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, in Sync() argument
161 Status MockSingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
166 Status MockSingleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
H A Dmock_single_kv_store.h94 * @param deviceIds Indicates the device list to sync.
101 const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t allowedDelayMs = 0) override;
280 * @param deviceIds Indicates the device list to sync, this is network id from soft bus.
286 virtual Status Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &query,
293 * @param deviceIds Indicates the device list to sync, this is network id from soft bus.
298 virtual Status SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
303 * @param deviceIds Indicates the device list to sync, this is network id from soft bus.
307 virtual Status UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
H A Dmock_single_kv_store.cpp51 Status MockSingleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t delayMs) in Sync() argument
154 Status MockSingleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &query, in Sync() argument
160 Status MockSingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
165 Status MockSingleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
/base/notification/distributed_notification_service/services/test/moduletest/mock/include/
H A Dmock_single_kv_store.h93 * @param deviceIds Indicates the device list to sync.
100 const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t allowedDelayMs = 0) override;
279 * @param deviceIds Indicates the device list to sync, this is network id from soft bus.
285 virtual Status Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &query,
292 * @param deviceIds Indicates the device list to sync, this is network id from soft bus.
297 virtual Status SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
302 * @param deviceIds Indicates the device list to sync, this is network id from soft bus.
306 virtual Status UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
/base/notification/distributed_notification_service/services/test/moduletest/mock/
H A Dmock_single_kv_store.cpp52 const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t allowedDelayMs) in Sync()
155 Status MockSingleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &query, in Sync() argument
161 Status MockSingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
166 Status MockSingleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
51 Sync( const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t allowedDelayMs) Sync() argument
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/
H A Dmock_single_kv_store.cpp67 Status MockSingleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t allowedDelayMs) in Sync() argument
176 Status MockSingleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, in Sync() argument
182 Status MockSingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
187 Status MockSingleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_preferences_database_test/
H A Dmock_single_kv_store.cpp61 Status MockSingleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t allowedDelayMs) in Sync() argument
167 Status MockSingleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, in Sync() argument
173 Status MockSingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
178 Status MockSingleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
/base/msdp/device_status/rust/subsystem/device_profile/binding/src/
H A Dfusion_device_profile_adapter.cpp61 int32_t SyncCrossSwitchState(bool switchState, const std::vector<std::string> &deviceIds);
148 int32_t FusionDeviceProfileAdapter::SyncCrossSwitchState(bool switchState, const std::vector<std::string> &deviceIds) in SyncCrossSwitchState() argument
302 int32_t SyncCrossSwitchState(size_t switchState, CIStringVector* deviceIds) in SyncCrossSwitchState() argument
305 CHKPR(deviceIds, RET_ERR); in SyncCrossSwitchState()
306 CHKPR(deviceIds->get, RET_ERR); in SyncCrossSwitchState()
307 CHKPR(deviceIds->getSize, RET_ERR); in SyncCrossSwitchState()
310 for (size_t i = 0; i < deviceIds->getSize(deviceIds); ++i) { in SyncCrossSwitchState()
311 const char* device_id = deviceIds->get(deviceIds, in SyncCrossSwitchState()
[all...]
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/include/
H A Dmock_single_kv_store.h92 * @param deviceIds Indicates the device list to sync.
99 const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t allowedDelayMs = 0) override;
278 * @param deviceIds Indicates the device list to sync, this is network id from soft bus.
284 virtual Status Sync(const std::vector<std::string> &deviceIds, SyncMode mode,
291 * @param deviceIds Indicates the device list to sync, this is network id from soft bus.
296 virtual Status SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
301 * @param deviceIds Indicates the device list to sync, this is network id from soft bus.
305 virtual Status UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
/base/security/appverify/interfaces/innerkits/appverify/src/provision/
H A Dprovision_verify.cpp209 GetStringArrayIfExist(debugInfo, KEY_DEVICE_IDS, out.debugInfo.deviceIds); in ParseDebugInfo()
306 bool CheckDeviceID(const std::vector<std::string>& deviceIds, const std::string& deviceId) in CheckDeviceID() argument
308 auto iter = find(deviceIds.begin(), deviceIds.end(), deviceId); in CheckDeviceID()
309 if (iter == deviceIds.end()) { in CheckDeviceID()
323 if (info.debugInfo.deviceIds.empty()) { in CheckDeviceID()
329 static_cast<uint32_t>(info.debugInfo.deviceIds.size())); in CheckDeviceID()
357 if (!CheckDeviceID(info.debugInfo.deviceIds, deviceId)) { in CheckDeviceID()
/base/msdp/device_status/rust/subsystem/device_profile/binding/include/
H A Dfusion_device_profile_adapter.h42 int32_t SyncCrossSwitchState(size_t switchState, CIStringVector* deviceIds);
H A Dfusion_device_profile.h81 const char *const* deviceIds; member
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
H A Dmock_single_kv_store.cpp143 const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t allowedDelayMs) in Sync()
263 Status MockSingleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, in Sync() argument
269 Status MockSingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
274 Status MockSingleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
142 Sync( const std::vector<std::string> &deviceIds, SyncMode mode, uint32_t allowedDelayMs) Sync() argument
/base/security/appverify/interfaces/innerkits/appverify/include/provision/
H A Dprovision_info.h64 std::vector<std::string> deviceIds; member
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
H A Dadvancednotificationservice_fuzzer.cpp147 int32_t deviceIds = fuzzData.GenerateRandomInt32(); in DoSomethingInterestingWithMyAPI() local
148 service->SetNotificationsEnabledByUser(deviceIds, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannexthree_fuzzer/
H A Dansmanagerstubannexthree_fuzzer.cpp409 int32_t deviceIds = fuzzData.GetData<int32_t>(); in DoSomethingInterestingWithMyAPI() local
410 ansManagerStub.SetNotificationsEnabledByUser(deviceIds, enabled); in DoSomethingInterestingWithMyAPI()

Completed in 13 milliseconds

12