Home
last modified time | relevance | path

Searched refs:tokenIdEx (Results 1 – 25 of 50) sorted by relevance

12

/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Daccesstoken_kit_test.cpp384 AccessTokenIDEx tokenIdEx = {0}; in AllocTestToken() local
385tokenIdEx = 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
721tokenIdEx = AccessTokenKit::AllocHapToken(g_infoManagerTestNormalInfoParms, g_infoManagerTestPolic…
722 ASSERT_NE(INVALID_TOKENID, tokenIdEx.tokenIDEx);
723 EXPECT_EQ(0, SetSelfTokenID(tokenIdEx.tokenIDEx));
[all …]
Daccesstoken_kit_extension_test.cpp1133 AccessTokenIDEx tokenIdEx = {0}; variable
1134tokenIdEx = 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
1309tokenIdEx = AccessTokenKit::AllocHapToken(g_infoManagerTestInfoParms, infoManagerTestPolicyPrams);
1311 AccessTokenID tokenID = tokenIdEx.tokenIdExStruct.tokenID;
[all …]
Daccesstoken_deny_test.cpp86 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/
Daccesstoken_info_manager_test.cpp289 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/
Dallochaptoken_fuzzer.cpp31 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/
Dapp_identity.h26 …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/
Dapp_identity.cpp30 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/
Dsms_mms_gtest.h115 … 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/
Daccess_mms_token.h115 … 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/
Dtest.h127 … 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/
Daccesstoken_kit_test.cpp63 AccessTokenIDEx tokenIdEx = {0}; variable
64tokenIdEx = 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/
Dstate_registry_test.h158 …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/
Dprivacy_kit_test.cpp198 …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/
Daccount_iam_client_test.cpp692 Security::AccessToken::AccessTokenIDEx tokenIdEx = {0}; variable
693tokenIdEx = 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
743tokenIdEx = 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
789tokenIdEx = AccessTokenKit::AllocHapToken(infoManagerTestSystemInfoParms, INFO_MANAGER_TEST_POLICY…
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/
Daccesstoken_info_manager.h46 …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/
Dnetwork_search_test.h167 … AccessTokenIDEx tokenIdEx = AccessTokenKit::AllocHapToken(testNetInfoParams, testNetPolicyParams); in AccessToken() local
168 accessID_ = tokenIdEx.tokenIdExStruct.tokenID; in AccessToken()
169 SetSelfTokenID(tokenIdEx.tokenIDEx); in AccessToken()
Dsim_test_util.h148 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/
Daccesstoken_manager_service.cpp265 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/
Daccesstoken_kit.cpp70 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()
Daccesstoken_manager_proxy.cpp496 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/
Daccesstoken_info_manager.cpp421 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/
Dnet_proxy_adapter_test.cpp164 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/
Dapp_account_associated_data_test.cpp105 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/
Dims_test.h117 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/
Dsensitive_manager_test.cpp244 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));

12