/foundation/graphic/graphic_3d/lume/metaobject/include/meta/base/ |
H A D | interface_utils.h | 22 #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 D | key_crypto_utils.cpp | 30 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 D | copy_uri_handler.cpp | 32 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 D | demo_freeze_display.cpp | 25 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 D | demo_mirror_screen_listener.cpp | 35 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 D | for_each_syntax_test_ng.cpp | 95 * @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 D | util.h | 58 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 D | multiple_user_connector.cpp | 44 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 D | mock_other_method.cpp | 22 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 D | mock_other_method.h | 30 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 D | bundle_manager_internal.cpp | 202 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 D | rs_interfaces_virtual_screen_test.cpp | 106 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 D | filesystem_crypto.cpp | 209 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 D | lazy_layout_wrapper_builder.h | 39 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 D | repeat_node.h | 61 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 D | display_minimal_test.cpp | 79 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 D | foreach_element.cpp | 34 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 D | distributed_sched_permission.cpp | 183 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 D | lnn_ohos_account_adapter_mock.h | 59 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 D | os_account_manager_wrapper.cpp | 33 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 D | drag_recognizer.cpp | 235 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 D | account_subscriber.cpp | 169 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 D | link_manager_test.cpp | 41 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 D | executor_pool_test.cpp | 109 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 D | softbus_session_listener.cpp | 43 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()
|