Home
last modified time | relevance | path

Searched refs:ids (Results 1 - 25 of 138) sorted by relevance

123456

/foundation/graphic/graphic_3d/lume/metaobject/include/meta/base/
H A Dinterface_utils.h22 #include <meta/base/ids.h>
36 const BASE_NS::shared_ptr<const CORE_NS::IInterface>& object, const BASE_NS::array_view<const TypeId>& ids) noexcept
39 for (const auto& id : ids) {
44 return ids.empty();
58 const BASE_NS::shared_ptr<const CORE_NS::IInterface>& object, const BASE_NS::array_view<const TypeId>& ids) noexcept
61 for (const auto& id : ids) {
81 const BASE_NS::array_view<const TypeId>& ids, bool strict) noexcept
83 return strict ? ObjectImplementsAll(object, ids) : ObjectImplementsAny(object, ids);
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dkey_crypto_utils.cpp30 std::vector<int32_t> ids; in ForceLockUserScreen() local
31 int32_t ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in ForceLockUserScreen()
32 if (ret != ERR_OK || ids.empty()) { in ForceLockUserScreen()
37 ret = ScreenLock::ScreenLockManager::GetInstance()->RequestStrongAuth(reasonFlag, ids[0]); in ForceLockUserScreen()
42 ret = ScreenLock::ScreenLockManager::GetInstance()->Lock(ids[0]); in ForceLockUserScreen()
47 LOGI("Force lock user screen and request strong auth success for userId = %{public}d.", ids[0]); in ForceLockUserScreen()
/foundation/distributeddatamgr/pasteboard/framework/uri/
H A Dcopy_uri_handler.cpp32 std::vector<int32_t> ids; in ToUri() local
33 auto ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in ToUri()
34 if (ret != ERR_OK || ids.empty()) { in ToUri()
38 PASTEBOARD_HILOGI(PASTEBOARD_MODULE_SERVICE, "fd: %{public}d, user:%{public}d", fd, ids[0]); in ToUri()
39 ret = RemoteFileShare::CreateSharePath(fd, uri_, ids[0]); in ToUri()
/foundation/window/window_manager/test/demo/
H A Ddemo_freeze_display.cpp25 std::vector<DisplayId> ids; in main() local
26 ids.push_back(displayId); in main()
32 if (DisplayManager::GetInstance().Freeze(ids)) { in main()
37 if (DisplayManager::GetInstance().Unfreeze(ids)) { in main()
H A Ddemo_mirror_screen_listener.cpp35 std::cout << "ids.size=" << std::to_string(info.ids.size()) << ", "; in main()
36 for (size_t i = 0; i < info.ids.size(); i++) { in main()
37 std::cout << "ids[" << std::to_string(i) << "]=" << std::to_string(info.ids[i]); in main()
/foundation/arkui/ace_engine/test/unittest/core/syntax/
H A Dfor_each_syntax_test_ng.cpp95 * @tc.desc: Create ForEach and set its ids.
102 std::list<std::string> ids = FOR_EACH_IDS; in HWTEST_F() local
103 forEach.SetNewIds(std::move(ids)); in HWTEST_F()
125 std::list<std::string> ids = FOR_EACH_IDS; in HWTEST_F() local
126 forEach.SetNewIds(std::move(ids)); in HWTEST_F()
164 std::list<std::string> ids = FOR_EACH_ARRAY; in HWTEST_F() local
165 forEach.SetNewIds(std::move(ids)); in HWTEST_F()
197 std::list<std::string> ids = FOR_EACH_ARRAY; in HWTEST_F() local
198 forEach.SetNewIds(std::move(ids)); in HWTEST_F()
245 std::list<std::string> ids in HWTEST_F() local
282 std::list<std::string> ids = FOR_EACH_ARRAY; HWTEST_F() local
318 std::list<std::string> ids = FOR_EACH_ARRAY; HWTEST_F() local
344 std::list<std::string> ids = FOR_EACH_ARRAY; HWTEST_F() local
380 std::list<std::string> ids = FOR_EACH_ARRAY; HWTEST_F() local
426 std::list<std::string> ids = FOR_EACH_ARRAY; HWTEST_F() local
467 std::list<std::string> ids = FOR_EACH_ARRAY; HWTEST_F() local
510 std::list<std::string> ids = FOR_EACH_ARRAY; HWTEST_F() local
551 std::list<std::string> ids = FOR_EACH_ARRAY; HWTEST_F() local
577 std::list<std::string> ids = FOR_EACH_ARRAY; HWTEST_F() local
626 std::list<std::string> ids = FOR_EACH_ARRAY; HWTEST_F() local
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/engine/
H A Dutil.h58 TypeId ids[] = { IEngineValue::UID }; in SetEngineValueToProperty() local
59 for (auto&& v : i->GetValues(ids, false)) { in SetEngineValueToProperty()
73 TypeId ids[] = { IEngineValue::UID }; in GetEngineValueFromProperty() local
74 auto values = i->GetValues(ids, false); in GetEngineValueFromProperty()
/foundation/distributedhardware/device_manager/commondependency/src/
H A Dmultiple_user_connector.cpp44 std::vector<int> ids; in GetCurrentAccountUserID()
45 ErrCode ret = OsAccountManager::QueryActiveOsAccountIds(ids); in GetCurrentAccountUserID()
46 if (ret != 0 || ids.empty()) { in GetCurrentAccountUserID()
50 return ids[0]; in GetCurrentAccountUserID()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/device/
H A Dmock_other_method.cpp22 ErrCode AccountSA::OsAccountManager::QueryActiveOsAccountIds(std::vector<int32_t>& ids) in QueryActiveOsAccountIds() argument
24 return DfsDeviceOtherMethod::otherMethod->QueryActiveOsAccountIds(ids); in QueryActiveOsAccountIds()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/device/include/
H A Dmock_other_method.h30 virtual int QueryActiveOsAccountIds(std::vector<int32_t>& ids) = 0;
37 MOCK_METHOD1(QueryActiveOsAccountIds, int(std::vector<int32_t>& ids));
/foundation/ability/dmsfwk/services/dtbschedmgr/src/bundle/
H A Dbundle_manager_internal.cpp202 std::vector<int32_t> ids; in IsSameDeveloperId() local
203 ErrCode ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in IsSameDeveloperId()
204 if (ret != ERR_OK || ids.empty()) { in IsSameDeveloperId()
208 bundleMgr->GetAppProvisionInfo(bundleNameInCurrentSide, ids[0], targetAppProvisionInfo); in IsSameDeveloperId()
289 std::vector<int32_t> ids; in GetAppProvisionInfo4CurrentUser() local
290 ErrCode ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in GetAppProvisionInfo4CurrentUser()
291 if (ret != ERR_OK || ids.empty()) { in GetAppProvisionInfo4CurrentUser()
295 ErrCode result = bundleMgr->GetAppProvisionInfo(bundleName, ids[0], appProvisionInfo); in GetAppProvisionInfo4CurrentUser()
493 std::vector<int32_t> ids; in QueryOsAccount() local
494 ErrCode err = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in QueryOsAccount()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/systemtest/
H A Drs_interfaces_virtual_screen_test.cpp106 auto ids = RSInterfaces::GetInstance().GetAllScreenIds(); in HWTEST_F() local
108 std::cout << "ids.size = " << ids.size() << ", defaultScreenId:" << defaultScreenId << std::endl; in HWTEST_F()
109 for (ScreenId screenId : ids) { in HWTEST_F()
122 for (ScreenId screenId : ids) { in HWTEST_F()
/foundation/filemanagement/storage_service/services/storage_manager/crypto/
H A Dfilesystem_crypto.cpp209 std::vector<int32_t> ids; in DeleteAppkey() local
210 int ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in DeleteAppkey()
211 if (ret != 0 || ids.empty()) { in DeleteAppkey()
215 int32_t userId = ids[0]; in DeleteAppkey()
245 std::vector<int32_t> ids; in SetRecoverKey() local
246 int ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in SetRecoverKey()
247 if (ret != 0 || ids.empty()) { in SetRecoverKey()
251 int32_t userId = ids[0]; in SetRecoverKey()
/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/
H A Dlazy_layout_wrapper_builder.h39 void UpdateIndexRange(int32_t startIndex, int32_t endIndex, const std::list<std::optional<std::string>>& ids) in UpdateIndexRange() argument
41 auto size = static_cast<int32_t>(ids.size()); in UpdateIndexRange()
50 preNodeIds_ = ids; in UpdateIndexRange()
H A Drepeat_node.h61 void SetIds(std::list<std::string>&& ids) in SetIds() argument
63 ids_ = std::move(ids); in SetIds()
/foundation/window/window_manager/test/systemtest/dms/
H A Ddisplay_minimal_test.cpp79 std::vector<DisplayId> ids = DisplayManager::GetInstance().GetAllDisplayIds(); in HWTEST_F() local
80 for (DisplayId id : ids) { in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_part_upd/foreach/
H A Dforeach_element.cpp34 void ForEachElement::MakeElementByIdMap(const std::list<RefPtr<Element>>& elmts, const std::list<std::string>& ids, in MakeElementByIdMap() argument
39 ACE_DCHECK(ids.size() == elmts.size()); in MakeElementByIdMap()
49 // 2. map elmts by their id. Note ids list is in slot order in MakeElementByIdMap()
50 auto idsIter = ids.begin(); in MakeElementByIdMap()
52 while (idsIter != ids.end()) { in MakeElementByIdMap()
/foundation/ability/dmsfwk/services/dtbschedmgr/src/
H A Ddistributed_sched_permission.cpp183 std::vector<int32_t> ids; in GetOsAccountData() local
184 ErrCode ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in GetOsAccountData()
185 if (ret != ERR_OK || ids.empty()) { in GetOsAccountData()
189 dmsAccountInfo.userId = ids[0]; in GetOsAccountData()
382 std::vector<int32_t> ids; in IsSceneBoardCall() local
383 int32_t errCode = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in IsSceneBoardCall()
384 if (errCode != ERR_OK || ids.empty()) { in IsSceneBoardCall()
388 activeAccountId = ids[0]; in IsSceneBoardCall()
447 std::vector<int32_t> ids; in MarkUriPermission() local
448 int32_t errCode = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in MarkUriPermission()
[all...]
/foundation/communication/dsoftbus/tests/core/adapter/unittest/
H A Dlnn_ohos_account_adapter_mock.h59 virtual OHOS::ErrCode QueryActiveOsAccountIds(std::vector<int32_t> &ids);
67 MOCK_METHOD1(QueryActiveOsAccountIds, OHOS::ErrCode(std::vector<int32_t> &ids));
/foundation/ability/ability_runtime/interfaces/inner_api/deps_wrapper/src/
H A Dos_account_manager_wrapper.cpp33 ErrCode OsAccountManagerWrapper::QueryActiveOsAccountIds(std::vector<int32_t>& ids) in QueryActiveOsAccountIds() argument
37 ids.emplace_back(DEFAULT_OS_ACCOUNT_ID); in QueryActiveOsAccountIds()
41 return AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in QueryActiveOsAccountIds()
/foundation/arkui/ace_engine/frameworks/core/gestures/
H A Ddrag_recognizer.cpp235 std::set<size_t> ids; in Accept() local
236 ids.insert(touchId); in Accept()
237 BatchAdjudicate(ids, Claim(this), GestureDisposal::ACCEPT); in Accept()
242 std::set<size_t> ids; in Reject() local
243 ids.insert(touchId); in Reject()
244 BatchAdjudicate(ids, Claim(this), GestureDisposal::REJECT); in Reject()
/foundation/filemanagement/storage_service/services/storage_manager/account_subscriber/
H A Daccount_subscriber.cpp169 std::vector<int32_t> ids; in HandleScreenLockedEvent() local
170 int ret = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in HandleScreenLockedEvent()
171 if (ret != 0 || ids.empty()) { in HandleScreenLockedEvent()
175 userId = ids[0]; in HandleScreenLockedEvent()
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/data/
H A Dlink_manager_test.cpp41 std::set<int> ids; in HWTEST_F() local
44 EXPECT_TRUE(ids.find(id) == ids.end()); in HWTEST_F()
45 ids.insert(id); in HWTEST_F()
/foundation/distributeddatamgr/kv_store/frameworks/common/test/
H A Dexecutor_pool_test.cpp109 std::set<ExecutorPool::TaskId> ids; in HWTEST_F() local
112 ASSERT_EQ(ids.count(id), 0); in HWTEST_F()
113 ids.insert(id); in HWTEST_F()
117 for (auto id : ids) { in HWTEST_F()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_session_listener.cpp43 std::vector<int32_t> ids; in QueryActiveUserId() local
44 ErrCode errCode = AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids); in QueryActiveUserId()
45 if (errCode != FileManagement::ERR_OK || ids.empty()) { in QueryActiveUserId()
49 return ids[0]; in QueryActiveUserId()

Completed in 10 milliseconds

123456