/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/ |
D | accesstoken_kit_test.cpp | 384 AccessTokenIDEx tokenIdEx = {0}; in AllocTestToken() local 385 …tokenIdEx = AccessTokenKit::AllocHapToken(g_infoManagerTestInfoParms, g_infoManagerTestPolicyPrams… in AllocTestToken() 386 ASSERT_NE(INVALID_TOKENID, tokenIdEx.tokenIdExStruct.tokenID); in AllocTestToken() 573 AccessTokenIDEx tokenIdEx = AccessTokenKit::GetHapTokenIDEx(TEST_USER_ID, TEST_BUNDLE_NAME, 0); variable 574 AccessTokenID tokenID = tokenIdEx.tokenIdExStruct.tokenID; 586 …ret = AccessTokenKit::UpdateHapToken(tokenIdEx, false, hapInfo.appID, DEFAULT_API_VERSION, policy); 720 AccessTokenIDEx tokenIdEx = {0}; variable 721 …tokenIdEx = AccessTokenKit::AllocHapToken(g_infoManagerTestNormalInfoParms, g_infoManagerTestPolic… 722 ASSERT_NE(INVALID_TOKENID, tokenIdEx.tokenIDEx); 723 EXPECT_EQ(0, SetSelfTokenID(tokenIdEx.tokenIDEx)); [all …]
|
D | accesstoken_kit_extension_test.cpp | 1133 AccessTokenIDEx tokenIdEx = {0}; variable 1134 …tokenIdEx = AccessTokenKit::AllocHapToken(g_infoManagerTestInfoParms, g_infoManagerTestPolicyPrams… 1135 ASSERT_NE(INVALID_TOKENID, tokenIdEx.tokenIdExStruct.tokenID); 1137 ATokenTypeEnum ret = AccessTokenKit::GetTokenTypeFlag(tokenIdEx.tokenIdExStruct.tokenID); 1140 int res = AccessTokenKit::DeleteToken(tokenIdEx.tokenIdExStruct.tokenID); 1225 …AccessTokenIDEx tokenIdEx = AccessTokenKit::AllocHapToken(g_infoManagerTestInfoParms, infoManagerT… variable 1226 AccessTokenID tokenID = tokenIdEx.tokenIdExStruct.tokenID; 1308 AccessTokenIDEx tokenIdEx = {0}; variable 1309 … tokenIdEx = AccessTokenKit::AllocHapToken(g_infoManagerTestInfoParms, infoManagerTestPolicyPrams); 1311 AccessTokenID tokenID = tokenIdEx.tokenIdExStruct.tokenID; [all …]
|
D | accesstoken_deny_test.cpp | 86 AccessTokenIDEx tokenIdEx = {0}; variable 87 tokenIdEx = AccessTokenKit::AllocHapToken(g_InfoParms, g_PolicyPrams); 88 ASSERT_EQ(INVALID_TOKENID, tokenIdEx.tokenIdExStruct.tokenID); 115 AccessTokenIDEx tokenIdEx = {0}; variable 116 tokenIdEx.tokenIdExStruct.tokenID = 123; 118 AccessTokenKit::UpdateHapToken(tokenIdEx, false, appIDDesc, apiVersion, g_PolicyPrams)); 292 AccessTokenIDEx tokenIdEx = AccessTokenKit::AllocHapToken(g_InfoParms, policyPrams); variable 293 ASSERT_NE(INVALID_TOKENID, tokenIdEx.tokenIdExStruct.tokenID); 294 EXPECT_EQ(0, SetSelfTokenID(tokenIdEx.tokenIDEx)); 306 EXPECT_EQ(0, SetSelfTokenID(tokenIdEx.tokenIDEx)); [all …]
|
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | accesstoken_info_manager_test.cpp | 289 AccessTokenIDEx tokenIdEx = {0}; variable 291 g_infoManagerTestPolicyPrams1, tokenIdEx); 296 …tokenInfo = AccessTokenInfoManager::GetInstance().GetHapTokenInfoInner(tokenIdEx.tokenIdExStruct.t… 302 … ret = AccessTokenInfoManager::GetInstance().RemoveHapTokenInfo(tokenIdEx.tokenIdExStruct.tokenID); 306 …tokenInfo = AccessTokenInfoManager::GetInstance().GetHapTokenInfoInner(tokenIdEx.tokenIdExStruct.t… 320 AccessTokenIDEx tokenIdEx = {0}; variable 322 g_infoManagerTestPolicyPrams1, tokenIdEx); 330 ASSERT_NE(tokenIdEx.tokenIdExStruct.tokenID, tokenIdEx1.tokenIdExStruct.tokenID); 358 AccessTokenIDEx tokenIdEx; variable 360 …NE(RET_SUCCESS, AccessTokenInfoManager::GetInstance().CreateHapTokenInfo(info, policy, tokenIdEx)); [all …]
|
/base/security/access_token/test/fuzztest/access_token/allochaptoken_fuzzer/ |
D | allochaptoken_fuzzer.cpp | 31 AccessTokenIDEx tokenIdEx = {0}; in AllocHapTokenFuzzTest() local 67 tokenIdEx = AccessTokenKit::AllocHapToken(TestInfoParms, TestPolicyPrams); in AllocHapTokenFuzzTest() 69 return tokenIdEx.tokenIdExStruct.tokenID != 0; in AllocHapTokenFuzzTest()
|
/base/location/interfaces/inner_api/include/ |
D | app_identity.h | 26 …explicit AppIdentity(pid_t uid, pid_t pid, uint32_t tokenId, uint64_t tokenIdEx, uint32_t firstTok… 64 inline void SetTokenIdEx(uint64_t tokenIdEx) in SetTokenIdEx() argument 66 tokenIdEx_ = tokenIdEx; in SetTokenIdEx()
|
/base/location/frameworks/location_common/common/source/ |
D | app_identity.cpp | 30 AppIdentity::AppIdentity(pid_t uid, pid_t pid, uint32_t tokenId, uint64_t tokenIdEx, uint32_t first… in AppIdentity() argument 31 : uid_(uid), pid_(pid), tokenId_(tokenId), tokenIdEx_(tokenIdEx), firstTokenId_(firstTokenId) in AppIdentity()
|
/base/telephony/sms_mms/test/gtest/ |
D | sms_mms_gtest.h | 115 … AccessTokenIDEx tokenIdEx = AccessTokenKit::AllocHapToken(testMmsInfoParams, testMmsPolicyParams); in AccessMmsToken() local 116 accessID_ = tokenIdEx.tokenIdExStruct.tokenID; in AccessMmsToken() 117 SetSelfTokenID(tokenIdEx.tokenIDEx); in AccessMmsToken()
|
/base/telephony/sms_mms/test/unittest/ |
D | access_mms_token.h | 115 … AccessTokenIDEx tokenIdEx = AccessTokenKit::AllocHapToken(testMmsInfoParams, testMmsPolicyParams); in AccessMmsToken() local 116 accessID_ = tokenIdEx.tokenIdExStruct.tokenID; in AccessMmsToken() 117 SetSelfTokenID(tokenIdEx.tokenIDEx); in AccessMmsToken()
|
/base/telephony/core_service/services/network_search/test/ |
D | test.h | 127 … AccessTokenIDEx tokenIdEx = AccessTokenKit::AllocHapToken(testNetInfoParams, testNetPolicyParams); in AccessToken() local 128 accessID_ = tokenIdEx.tokenIdExStruct.tokenID; in AccessToken() 129 SetSelfTokenID(tokenIdEx.tokenIDEx); in AccessToken()
|
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/accesstoken_mock_test/ |
D | accesstoken_kit_test.cpp | 63 AccessTokenIDEx tokenIdEx = {0}; variable 64 …tokenIdEx = AccessTokenKit::AllocHapToken(g_infoManagerTestInfoParms, g_infoManagerTestPolicyPrams… 65 ASSERT_EQ(INVALID_TOKENID, tokenIdEx.tokenIdExStruct.tokenID); 92 AccessTokenIDEx tokenIdEx = {0}; variable 93 tokenIdEx.tokenIdExStruct.tokenID = 123; 95 …AccessTokenKit::UpdateHapToken(tokenIdEx, false, appIDDesc, apiVersion, g_infoManagerTestPolicyPra…
|
/base/telephony/state_registry/test/unittest/state_test/ |
D | state_registry_test.h | 158 …AccessTokenIDEx tokenIdEx = AccessTokenKit::AllocHapToken(testStateRegistryParams, testPolicyParam… in AccessToken() local 159 accessID_ = tokenIdEx.tokenIdExStruct.tokenID; in AccessToken() 160 SetSelfTokenID(tokenIdEx.tokenIDEx); in AccessToken()
|
/base/security/access_token/interfaces/innerkits/privacy/test/unittest/src/ |
D | privacy_kit_test.cpp | 198 …AccessTokenIDEx tokenIdEx = AccessTokenKit::GetHapTokenIDEx(100, "com.ohos.permissionmanager", 0);… in SetUp() local 199 EXPECT_EQ(0, SetSelfTokenID(tokenIdEx.tokenIDEx)); in SetUp() 269 … AccessTokenIDEx tokenIdEx = AccessTokenKit::GetHapTokenIDEx(100, "com.ohos.permissionmanager", 0); in SetTokenID() local 270 EXPECT_EQ(0, SetSelfTokenID(tokenIdEx.tokenIDEx)); in SetTokenID() 525 AccessTokenIDEx tokenIdEx = {0}; variable 526 tokenIdEx = AccessTokenKit::AllocHapToken(g_normalInfoParms, g_policyPramsA); 527 ASSERT_NE(INVALID_TOKENID, tokenIdEx.tokenIDEx); 528 EXPECT_EQ(0, SetSelfTokenID(tokenIdEx.tokenIDEx)); 712 AccessTokenIDEx tokenIdEx = {0}; variable 713 tokenIdEx = AccessTokenKit::AllocHapToken(g_normalInfoParms, g_policyPramsA); [all …]
|
/base/account/os_account/frameworks/account_iam/test/unittest/src/ |
D | account_iam_client_test.cpp | 692 Security::AccessToken::AccessTokenIDEx tokenIdEx = {0}; variable 693 …tokenIdEx = AccessTokenKit::AllocHapToken(infoManagerTestNormalInfoParms, INFO_MANAGER_TEST_POLICY… 694 ASSERT_NE(INVALID_TOKEN_ID, tokenIdEx.tokenIDEx); 695 SetSelfTokenID(tokenIdEx.tokenIDEx); 742 Security::AccessToken::AccessTokenIDEx tokenIdEx = {0}; variable 743 …tokenIdEx = AccessTokenKit::AllocHapToken(infoManagerTestNormalInfoParms, INFO_MANAGER_TEST_POLICY… 744 ASSERT_NE(INVALID_TOKEN_ID, tokenIdEx.tokenIDEx); 745 SetSelfTokenID(tokenIdEx.tokenIDEx); 788 Security::AccessToken::AccessTokenIDEx tokenIdEx = {0}; variable 789 …tokenIdEx = AccessTokenKit::AllocHapToken(infoManagerTestSystemInfoParms, INFO_MANAGER_TEST_POLICY… [all …]
|
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/ |
D | accesstoken_info_manager.h | 46 …AllocAccessTokenIDEx(const HapInfoParams& info, AccessTokenID tokenId, AccessTokenIDEx& tokenIdEx); 51 …HapTokenInfo(const HapInfoParams& info, const HapPolicyParams& policy, AccessTokenIDEx& tokenIdEx); 56 int UpdateHapToken(AccessTokenIDEx& tokenIdEx,
|
/base/telephony/core_service/test/unittest/core_service_gtest/ |
D | network_search_test.h | 167 … AccessTokenIDEx tokenIdEx = AccessTokenKit::AllocHapToken(testNetInfoParams, testNetPolicyParams); in AccessToken() local 168 accessID_ = tokenIdEx.tokenIdExStruct.tokenID; in AccessToken() 169 SetSelfTokenID(tokenIdEx.tokenIDEx); in AccessToken()
|
D | sim_test_util.h | 148 AccessTokenIDEx tokenIdEx = AccessTokenKit::AllocHapToken(testInfoParams, testPolicyParams); in AccessToken() local 149 accessID_ = tokenIdEx.tokenIdExStruct.tokenID; in AccessToken() 150 SetSelfTokenID(tokenIdEx.tokenIDEx); in AccessToken()
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/service/ |
D | accesstoken_manager_service.cpp | 265 AccessTokenIDEx tokenIdEx; in AllocHapToken() local 266 tokenIdEx.tokenIDEx = 0LL; in AllocHapToken() 269 info.hapInfoParameter, policy.hapPolicyParameter, tokenIdEx); in AllocHapToken() 273 return tokenIdEx; in AllocHapToken() 313 int AccessTokenManagerService::UpdateHapToken(AccessTokenIDEx& tokenIdEx, in UpdateHapToken() argument 316 ACCESSTOKEN_LOG_INFO(LABEL, "tokenID: 0x%{public}x", tokenIdEx.tokenIdExStruct.tokenID); in UpdateHapToken() 318 …return AccessTokenInfoManager::GetInstance().UpdateHapToken(tokenIdEx, isSystemApp, appIDDesc, api… in UpdateHapToken()
|
/base/security/access_token/interfaces/innerkits/accesstoken/src/ |
D | accesstoken_kit.cpp | 70 int AccessTokenKit::UpdateHapToken(AccessTokenIDEx& tokenIdEx, in UpdateHapToken() argument 74 …if ((tokenIdEx.tokenIdExStruct.tokenID == INVALID_TOKENID) || (!DataValidator::IsAppIDDescValid(ap… in UpdateHapToken() 80 tokenIdEx, isSystemApp, appIDDesc, apiVersion, policy); in UpdateHapToken() 159 AccessTokenIDEx tokenIdEx = in GetHapTokenID() local 161 return tokenIdEx.tokenIdExStruct.tokenID; in GetHapTokenID() 166 AccessTokenIDEx tokenIdEx = {0}; in GetHapTokenIDEx() local 171 return tokenIdEx; in GetHapTokenIDEx()
|
D | accesstoken_manager_proxy.cpp | 496 AccessTokenIDEx tokenIdEx = {0}; in GetHapTokenID() local 502 return tokenIdEx; in GetHapTokenID() 506 return tokenIdEx; in GetHapTokenID() 510 return tokenIdEx; in GetHapTokenID() 517 return tokenIdEx; in GetHapTokenID() 523 return tokenIdEx; in GetHapTokenID() 526 tokenIdEx.tokenIDEx = reply.ReadUint64(); in GetHapTokenID() 527 ACCESSTOKEN_LOG_INFO(LABEL, "result from server data = %{public}llu", tokenIdEx.tokenIDEx); in GetHapTokenID() 528 return tokenIdEx; in GetHapTokenID() 620 int AccessTokenManagerProxy::UpdateHapToken(AccessTokenIDEx& tokenIdEx, in UpdateHapToken() argument [all …]
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/ |
D | accesstoken_info_manager.cpp | 421 const HapInfoParams& info, const HapPolicyParams& policy, AccessTokenIDEx& tokenIdEx) in CreateHapTokenInfo() argument 462 AllocAccessTokenIDEx(info, tokenId, tokenIdEx); in CreateHapTokenInfo() 468 const HapInfoParams& info, AccessTokenID tokenId, AccessTokenIDEx& tokenIdEx) in AllocAccessTokenIDEx() argument 470 tokenIdEx.tokenIdExStruct.tokenID = tokenId; in AllocAccessTokenIDEx() 472 tokenIdEx.tokenIdExStruct.tokenAttr |= SYSTEM_APP_FLAG; in AllocAccessTokenIDEx() 499 AccessTokenIDEx tokenIdEx = {0}; in GetHapTokenID() local 507 return tokenIdEx; in GetHapTokenID() 510 tokenIdEx.tokenIdExStruct.tokenID = info.tokenID; in GetHapTokenID() 511 tokenIdEx.tokenIdExStruct.tokenAttr = info.tokenAttr; in GetHapTokenID() 514 return tokenIdEx; in GetHapTokenID() [all …]
|
/base/web/webview/test/unittest/ohos_adapter/net_proxy_adapter_test/ |
D | net_proxy_adapter_test.cpp | 164 AccessTokenIDEx tokenIdEx = AccessTokenKit::AllocHapToken(testInfoParms, testPolicyPrams); in AccessToken() local 165 accessID_ = tokenIdEx.tokenIdExStruct.tokenID; in AccessToken() 166 SetSelfTokenID(tokenIdEx.tokenIDEx); in AccessToken()
|
/base/account/os_account/services/accountmgr/test/moduletest/app_account/ |
D | app_account_associated_data_test.cpp | 105 OHOS::Security::AccessToken::AccessTokenIDEx tokenIdEx = {0}; in SetUpTestCase() local 106 tokenIdEx = OHOS::Security::AccessToken::AccessTokenKit::AllocHapToken(g_info, g_PolicyPrams1); in SetUpTestCase() 107 SetSelfTokenID(tokenIdEx.tokenIDEx); in SetUpTestCase()
|
/base/telephony/cellular_call/test/unittest/imstest/ |
D | ims_test.h | 117 AccessTokenIDEx tokenIdEx = AccessTokenKit::AllocHapToken(testInfoParams, testPolicyParams); in AccessToken() local 118 accessID_ = tokenIdEx.tokenIdExStruct.tokenID; in AccessToken() 119 SetSelfTokenID(tokenIdEx.tokenIDEx); in AccessToken()
|
/base/security/access_token/services/privacymanager/test/unittest/ |
D | sensitive_manager_test.cpp | 244 AccessTokenIDEx tokenIdEx = {0}; variable 245 tokenIdEx = AccessTokenKit::AllocHapToken(g_infoManagerTestSystemInfoParms, g_PolicyPrams1); 246 ASSERT_NE(INVALID_TOKENID, tokenIdEx.tokenIDEx); 247 EXPECT_EQ(0, SetSelfTokenID(tokenIdEx.tokenIDEx));
|