/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | native_token_receptor_test.cpp | 85 std::vector<std::shared_ptr<NativeTokenInfoInner>> tokenInfos; variable 86 receptor.ParserNativeRawData(testStr, tokenInfos); 87 ASSERT_EQ(static_cast<uint32_t>(2), tokenInfos.size()); 88 ASSERT_NE(nullptr, tokenInfos[0]); 89 ASSERT_NE(nullptr, tokenInfos[1]); 91 ASSERT_EQ("process6", tokenInfos[0]->GetProcessName()); 92 ASSERT_EQ(static_cast<AccessTokenID>(685266937), tokenInfos[0]->GetTokenID()); 93 ASSERT_EQ(static_cast<uint32_t>(2), tokenInfos[0]->GetDcap().size()); 94 ASSERT_EQ("AT_CAP", (tokenInfos[0]->GetDcap())[0]); 95 ASSERT_EQ("ST_CAP", (tokenInfos[0]->GetDcap())[1]); [all …]
|
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/ |
D | native_token_receptor.h | 47 std::vector<std::shared_ptr<NativeTokenInfoInner>>& tokenInfos); 49 std::vector<std::shared_ptr<NativeTokenInfoInner>>& tokenInfos);
|
D | accesstoken_info_manager.h | 55 …void ProcessNativeTokenInfos(const std::vector<std::shared_ptr<NativeTokenInfoInner>>& tokenInfos);
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/ |
D | native_token_receptor.cpp | 162 std::vector<std::shared_ptr<NativeTokenInfoInner>>& tokenInfos) in ParserNativeRawData() argument 172 tokenInfos.emplace_back(token); in ParserNativeRawData() 226 std::vector<std::shared_ptr<NativeTokenInfoInner>> tokenInfos; in Init() local 227 ret = ParserNativeRawData(nativeRawData, tokenInfos); in Init() 232 AccessTokenInfoManager::GetInstance().ProcessNativeTokenInfos(tokenInfos); in Init()
|
/base/account/os_account/frameworks/appaccount/native/include/ |
D | app_account_info.h | 83 ErrCode GetAllOAuthTokens(std::vector<OAuthTokenInfo> &tokenInfos) const; 103 … bool WriteTokenInfos(const std::map<std::string, OAuthTokenInfo> &tokenInfos, Parcel &data) const; 104 bool ReadTokenInfos(std::map<std::string, OAuthTokenInfo> &tokenInfos, Parcel &data);
|
D | iapp_account.h | 83 std::vector<OAuthTokenInfo> &tokenInfos) = 0;
|
D | app_account.h | 82 const std::string &name, const std::string &owner, std::vector<OAuthTokenInfo> &tokenInfos);
|
D | app_account_proxy.h | 80 …const std::string &name, const std::string &owner, std::vector<OAuthTokenInfo> &tokenInfos) overri…
|
/base/account/os_account/frameworks/appaccount/native/src/ |
D | app_account_info.cpp | 404 ErrCode AppAccountInfo::GetAllOAuthTokens(std::vector<OAuthTokenInfo> &tokenInfos) const in GetAllOAuthTokens() 406 tokenInfos.clear(); in GetAllOAuthTokens() 408 tokenInfos.push_back(it->second); in GetAllOAuthTokens() 678 bool AppAccountInfo::WriteTokenInfos(const std::map<std::string, OAuthTokenInfo> &tokenInfos, Parce… in WriteTokenInfos() argument 680 if (!data.WriteUint32(tokenInfos.size())) { in WriteTokenInfos() 684 for (auto& it : tokenInfos) { in WriteTokenInfos() 730 bool AppAccountInfo::ReadTokenInfos(std::map<std::string, OAuthTokenInfo> &tokenInfos, Parcel &data) in ReadTokenInfos() argument 741 tokenInfos.clear(); in ReadTokenInfos() 756 tokenInfos.emplace(tokenInfo.authType, tokenInfo); in ReadTokenInfos()
|
D | app_account_manager.cpp | 178 const std::string &name, const std::string &owner, std::vector<OAuthTokenInfo> &tokenInfos) in GetAllOAuthTokens() argument 180 return AppAccount::GetInstance().GetAllOAuthTokens(name, owner, tokenInfos); in GetAllOAuthTokens()
|
D | app_account_proxy.cpp | 747 const std::string &name, const std::string &owner, std::vector<OAuthTokenInfo> &tokenInfos) in GetAllOAuthTokens() argument 749 tokenInfos.clear(); in GetAllOAuthTokens() 760 tokenInfos.push_back(tokenInfo); in GetAllOAuthTokens()
|
/base/account/os_account/services/accountmgr/test/unittest/app_account/ |
D | app_account_info_test.cpp | 574 std::map<std::string, OAuthTokenInfo> tokenInfos; variable 579 tokenInfos[key] = testOAuthTokenInfo; 582 EXPECT_EQ(appAccountInfo.WriteTokenInfos(tokenInfos, data), true); 583 EXPECT_EQ(appAccountInfo.ReadTokenInfos(tokenInfos, data), false); 595 std::map<std::string, OAuthTokenInfo> tokenInfos; variable 604 bool result = appAccountInfo.ReadTokenInfos(tokenInfos, data); 606 ASSERT_EQ(tokenInfos.empty(), false); 607 ASSERT_EQ(tokenInfos[STRING_AUTH_TYPE].authType, STRING_AUTH_TYPE); 608 ASSERT_EQ(tokenInfos[STRING_AUTH_TYPE].token, STRING_TOKEN);
|
/base/account/os_account/services/accountmgr/test/moduletest/app_account/ |
D | app_account_control_manager_module_test.cpp | 228 std::vector<OAuthTokenInfo> tokenInfos; variable 249 result = AppAccountControlManager::GetInstance().GetAllOAuthTokens(request, tokenInfos); 251 EXPECT_EQ(tokenInfos.size(), 1);
|
D | app_account_manager_service_module_test.cpp | 1293 std::vector<OAuthTokenInfo> tokenInfos; variable 1294 …ErrCode result = g_accountManagerService->GetAllOAuthTokens(STRING_NAME, STRING_OWNER, tokenInfos); 1318 std::vector<OAuthTokenInfo> tokenInfos; variable 1319 result = g_accountManagerService->GetAllOAuthTokens(STRING_NAME, owner, tokenInfos); 1321 ASSERT_EQ(tokenInfos.size(), static_cast<size_t>(0)); 1329 tokenInfos.clear(); 1330 result = g_accountManagerService->GetAllOAuthTokens(STRING_NAME, owner, tokenInfos); 1332 ASSERT_EQ(tokenInfos.size(), SIZE_TWO); 1333 EXPECT_EQ(tokenInfos[0].token, STRING_TOKEN); 1334 EXPECT_EQ(tokenInfos[1].token, STRING_TOKEN_TWO);
|
/base/account/os_account/frameworks/appaccount/native/test/unittest/ |
D | app_account_manager_test.cpp | 1709 std::vector<OAuthTokenInfo> tokenInfos; variable 1710 ErrCode result = AppAccountManager::GetAllOAuthTokens(STRING_EMPTY, STRING_OWNER, tokenInfos); 1712 EXPECT_EQ(tokenInfos.size(), 0); 1714 result = AppAccountManager::GetAllOAuthTokens(STRING_NAME, STRING_EMPTY, tokenInfos); 1716 EXPECT_EQ(tokenInfos.size(), 0); 1728 std::vector<OAuthTokenInfo> tokenInfos; variable 1729 … result = AppAccountManager::GetAllOAuthTokens(STRING_NAME_OUT_OF_RANGE, STRING_OWNER, tokenInfos); 1731 EXPECT_EQ(tokenInfos.size(), 0); 1733 … result = AppAccountManager::GetAllOAuthTokens(STRING_NAME, STRING_OWNER_OUT_OF_RANGE, tokenInfos); 1735 EXPECT_EQ(tokenInfos.size(), 0); [all …]
|
/base/account/os_account/frameworks/test/unittest/ |
D | account_appaccount_proxy_mock_test.cpp | 412 std::vector<OAuthTokenInfo> tokenInfos; variable 413 ErrCode result = AppAccountManager::GetAllOAuthTokens(STRING_NAME, STRING_OWNER, tokenInfos);
|
/base/account/os_account/interfaces/innerkits/appaccount/native/include/ |
D | app_account_manager.h | 362 std::vector<OAuthTokenInfo> &tokenInfos);
|
/base/account/os_account/services/accountmgr/include/appaccount/ |
D | inner_app_account_manager.h | 80 …llOAuthTokens(const AuthenticatorSessionRequest &request, std::vector<OAuthTokenInfo> &tokenInfos);
|
D | app_account_manager_service.h | 83 std::vector<OAuthTokenInfo> &tokenInfos) override;
|
D | app_account_control_manager.h | 83 …llOAuthTokens(const AuthenticatorSessionRequest &request, std::vector<OAuthTokenInfo> &tokenInfos);
|
/base/account/os_account/services/accountmgr/src/appaccount/ |
D | inner_app_account_manager.cpp | 328 const AuthenticatorSessionRequest &request, std::vector<OAuthTokenInfo> &tokenInfos) in GetAllOAuthTokens() argument 330 return controlManager_.GetAllOAuthTokens(request, tokenInfos); in GetAllOAuthTokens()
|
D | app_account_stub.cpp | 768 std::vector<OAuthTokenInfo> tokenInfos; in ProcGetAllOAuthTokens() local 769 ErrCode result = GetAllOAuthTokens(name, owner, tokenInfos); in ProcGetAllOAuthTokens() 770 if ((!reply.WriteInt32(result)) || (!reply.WriteUint32(tokenInfos.size()))) { in ProcGetAllOAuthTokens() 774 for (auto tokenInfo : tokenInfos) { in ProcGetAllOAuthTokens()
|
D | app_account_control_manager.cpp | 563 const AuthenticatorSessionRequest &request, std::vector<OAuthTokenInfo> &tokenInfos) in GetAllOAuthTokens() argument 565 tokenInfos.clear(); in GetAllOAuthTokens() 581 tokenInfos = allTokenInfos; in GetAllOAuthTokens() 591 tokenInfos.push_back(tokenInfo); in GetAllOAuthTokens()
|
/base/account/os_account/services/accountmgr/test/mock/app_account/ |
D | mock_app_account_stub.h | 76 std::vector<OAuthTokenInfo> &tokenInfos) override;
|
D | mock_app_account_stub.cpp | 266 std::vector<OAuthTokenInfo> &tokenInfos) in GetAllOAuthTokens() argument
|