Home
last modified time | relevance | path

Searched refs:mapID (Results 1 – 6 of 6) sorted by relevance

/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Daccesstoken_remote_token_manager.cpp59 AccessTokenID mapID = 0; in MapRemoteDeviceTokenToLocal() local
65 mapID = device.MappingTokenIDPairMap_[remoteID]; in MapRemoteDeviceTokenToLocal()
68 ConstantCommon::EncryptDevId(deviceID).c_str(), remoteID, mapID); in MapRemoteDeviceTokenToLocal()
69 return mapID; in MapRemoteDeviceTokenToLocal()
79 mapID = AccessTokenIDManager::GetInstance().CreateAndRegisterTokenId(tokeType, dlpType); in MapRemoteDeviceTokenToLocal()
80 if (mapID == 0) { in MapRemoteDeviceTokenToLocal()
86 mapPtr->insert(std::pair<AccessTokenID, AccessTokenID>(remoteID, mapID)); in MapRemoteDeviceTokenToLocal()
87 return mapID; in MapRemoteDeviceTokenToLocal()
149 AccessTokenID mapID = remoteDeviceMap_[deviceID].MappingTokenIDPairMap_[remoteID]; in RemoveDeviceMappingTokenID() local
150 AccessTokenIDManager::GetInstance().ReleaseTokenId(mapID); in RemoveDeviceMappingTokenID()
Daccesstoken_info_manager.cpp681 int AccessTokenInfoManager::UpdateRemoteHapTokenInfo(AccessTokenID mapID, HapTokenInfoForSync& hapS… in UpdateRemoteHapTokenInfo() argument
683 std::shared_ptr<HapTokenInfoInner> infoPtr = GetHapTokenInfoInner(mapID); in UpdateRemoteHapTokenInfo()
685 … ACCESSTOKEN_LOG_INFO(LABEL, "token %{public}u is null or not remote, can not update!", mapID); in UpdateRemoteHapTokenInfo()
690 PermissionPolicySet::BuildPermissionPolicySet(mapID, hapSync.permStateList); in UpdateRemoteHapTokenInfo()
700 int AccessTokenInfoManager::CreateRemoteHapTokenInfo(AccessTokenID mapID, HapTokenInfoForSync& hapS… in CreateRemoteHapTokenInfo() argument
702 std::shared_ptr<HapTokenInfoInner> hap = std::make_shared<HapTokenInfoInner>(mapID, in CreateRemoteHapTokenInfo()
754 …AccessTokenID mapID = AccessTokenRemoteTokenManager::GetInstance().GetDeviceMappingTokenID(deviceI… in SetRemoteHapTokenInfo() local
755 if (mapID != 0) { in SetRemoteHapTokenInfo()
757 ConstantCommon::EncryptDevId(deviceID).c_str(), remoteID, mapID); in SetRemoteHapTokenInfo()
759 hapSync.baseInfo.tokenID = mapID; in SetRemoteHapTokenInfo()
[all …]
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Dremote_token_kit_test.cpp243 AccessTokenID mapID = AccessTokenKit::AllocLocalTokenID(networkId_, 0x20100000); variable
244 ASSERT_NE(mapID, 0);
248 ret = AccessTokenKit::GetHapTokenInfo(mapID, resultInfo);
260 ret = AccessTokenKit::VerifyAccessToken(mapID, "ohos.permission.test1");
385 AccessTokenID mapID = AccessTokenKit::AllocLocalTokenID(networkId_, 0x20100000); variable
386 ASSERT_NE(mapID, 0);
388 ret = AccessTokenKit::VerifyAccessToken(mapID, "ohos.permission.test1");
436 AccessTokenID mapID = AccessTokenKit::AllocLocalTokenID(networkId_, 0x20100000); variable
437 ASSERT_NE(mapID, 0);
439 ret = AccessTokenKit::VerifyAccessToken(mapID, "ohos.permission.test1");
[all …]
/base/security/access_token/services/tokensyncmanager/test/unittest/token_sync_service/
Dtoken_sync_service_test.cpp662 AccessTokenID mapID = AccessTokenKit::AllocLocalTokenID(g_udid, 0x20100000); variable
663 ASSERT_EQ(mapID, static_cast<AccessTokenID>(0));
695 AccessTokenID mapID = AccessTokenKit::AllocLocalTokenID(g_udid, 0x20100000); variable
696 ASSERT_EQ(mapID, static_cast<AccessTokenID>(0));
729 AccessTokenID mapID = AccessTokenKit::AllocLocalTokenID(g_udid, 0x20100000); variable
730 ASSERT_EQ(mapID, static_cast<AccessTokenID>(0));
764 AccessTokenID mapID = AccessTokenKit::AllocLocalTokenID(g_udid, 0x20100000); variable
765 ASSERT_EQ(mapID, static_cast<AccessTokenID>(0));
798 AccessTokenID mapID = AccessTokenKit::AllocLocalTokenID(g_udid, 0x20100000); variable
799 ASSERT_EQ(mapID, static_cast<AccessTokenID>(0));
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/
Daccesstoken_info_manager.h92 int CreateRemoteHapTokenInfo(AccessTokenID mapID, HapTokenInfoForSync& hapSync);
93 int UpdateRemoteHapTokenInfo(AccessTokenID mapID, HapTokenInfoForSync& hapSync);
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp778 AccessTokenID mapID = variable
780 ASSERT_EQ(mapID == 0, true);
945 AccessTokenID mapID = 0; variable
949 …ASSERT_NE(RET_SUCCESS, AccessTokenInfoManager::GetInstance().UpdateRemoteHapTokenInfo(mapID, hapSy…
951 mapID = 123; // 123 is random input
954 AccessTokenInfoManager::GetInstance().hapTokenInfoMap_[mapID] = info;
957 …ASSERT_EQ(RET_SUCCESS, AccessTokenInfoManager::GetInstance().UpdateRemoteHapTokenInfo(mapID, hapSy…
959 AccessTokenInfoManager::GetInstance().hapTokenInfoMap_.erase(mapID);
970 AccessTokenID mapID = 123; // 123 is random input variable
978 …ASSERT_NE(RET_SUCCESS, AccessTokenInfoManager::GetInstance().CreateRemoteHapTokenInfo(mapID, hapSy…