Home
last modified time | relevance | path

Searched refs:dlpType (Results 1 – 24 of 24) sorted by relevance

/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Ddlp_permission_set_manager.cpp72 int32_t DlpPermissionSetManager::UpdatePermStateWithDlpInfo(int32_t dlpType, in UpdatePermStateWithDlpInfo() argument
75 ACCESSTOKEN_LOG_DEBUG(LABEL, "dlpType: %{public}d", dlpType); in UpdatePermStateWithDlpInfo()
81 bool res = IsPermStateNeedUpdate(dlpType, dlpMode); in UpdatePermStateWithDlpInfo()
89 bool DlpPermissionSetManager::IsPermStateNeedUpdate(int32_t dlpType, int32_t dlpMode) in IsPermStateNeedUpdate() argument
91 ACCESSTOKEN_LOG_DEBUG(LABEL, "dlpType: %{public}d dlpMode %{public}d", dlpType, dlpMode); in IsPermStateNeedUpdate()
98 if (dlpMode == DLP_PERM_FULL_CONTROL && dlpType == DLP_FULL_CONTROL) { in IsPermStateNeedUpdate()
Dpermission_manager.cpp353 int32_t dlpType = infoPtr->GetDlpType(); in UpdateTokenPermissionState() local
354 if (isGranted && dlpType != DLP_COMMON) { in UpdateTokenPermissionState()
356 if (DlpPermissionSetManager::GetInstance().IsPermStateNeedUpdate(dlpType, dlpMode)) { in UpdateTokenPermissionState()
/base/security/access_token/frameworks/common/src/
Ddata_validator.cpp93 bool DataValidator::IsDlpTypeValid(int dlpType) in IsDlpTypeValid() argument
95 return ((dlpType == DLP_COMMON) || (dlpType == DLP_READ) || (dlpType == DLP_FULL_CONTROL)); in IsDlpTypeValid()
/base/notification/common_event_service/test/mock/
Dmock_accesstoken_kit.cpp32 hapTokenInfoRes.dlpType = DlpType::DLP_COMMON; in GetHapTokenInfo()
34 hapTokenInfoRes.dlpType = DlpType::DLP_READ; in GetHapTokenInfo()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Daccesstoken_id_manager.cpp71 AccessTokenID AccessTokenIDManager::CreateTokenId(ATokenTypeEnum type, int dlpType) const in CreateTokenId()
83 innerId.dlpFlag = (dlpType == 0) ? 0 : 1; in CreateTokenId()
89 AccessTokenID AccessTokenIDManager::CreateAndRegisterTokenId(ATokenTypeEnum type, int dlpType) in CreateAndRegisterTokenId() argument
94 tokenId = CreateTokenId(type, dlpType); in CreateAndRegisterTokenId()
Dhap_token_info_inner.cpp41 tokenInfoBasic_.dlpType = 0; in HapTokenInfoInner()
55 tokenInfoBasic_.dlpType = info.dlpType; in HapTokenInfoInner()
103 outGenericValues.Put(TokenFiledConst::FIELD_DLP_TYPE, tokenInfoBasic_.dlpType); in TranslationIntoGenericValues()
124 tokenInfoBasic_.dlpType = inGenericValues.GetInt(TokenFiledConst::FIELD_DLP_TYPE); in RestoreHapTokenBasicInfo()
209 return tokenInfoBasic_.dlpType; in GetDlpType()
262 info.append(R"( "dlpType": )" + std::to_string(tokenInfoBasic_.dlpType) + ",\n"); in ToString()
Daccesstoken_remote_token_manager.cpp56 int dlpType = AccessTokenIDManager::GetInstance().GetTokenIdDlpFlag(remoteID); in MapRemoteDeviceTokenToLocal() local
78 mapID = AccessTokenIDManager::GetInstance().CreateAndRegisterTokenId(tokeType, dlpType); in MapRemoteDeviceTokenToLocal()
Daccesstoken_info_manager.cpp418 (!DataValidator::IsDlpTypeValid(info.dlpType))) { in CreateHapTokenInfo()
423 …ID tokenId = AccessTokenIDManager::GetInstance().CreateAndRegisterTokenId(TOKEN_HAP, info.dlpType); in CreateHapTokenInfo()
430 if (info.dlpType != DLP_COMMON) { in CreateHapTokenInfo()
434 info.dlpType, policyNew.permStateList); in CreateHapTokenInfo()
711 } else if (!DataValidator::IsDlpTypeValid(hapSync.baseInfo.dlpType)) { in IsRemoteHapTokenValid()
/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/
Ddlp_permission_set_manager.h34 …int32_t UpdatePermStateWithDlpInfo(int32_t dlpType, std::vector<PermissionStateFull>& permStateLis…
35 bool IsPermStateNeedUpdate(int32_t dlpType, int32_t dlpMode);
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/
Daccesstoken_id_manager.h38 AccessTokenID CreateAndRegisterTokenId(ATokenTypeEnum type, int dlpType);
48 AccessTokenID CreateTokenId(ATokenTypeEnum type, int dlpType) const;
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Dhap_token_info.h33 int dlpType; variable
54 int dlpType; variable
/base/security/access_token/frameworks/accesstoken/src/
Dhap_info_parcel.cpp27 RETURN_IF_FALSE(out.WriteInt32(this->hapInfoParameter.dlpType)); in Marshalling()
42 RELEASE_IF_FALSE(in.ReadInt32(hapInfoParcel->hapInfoParameter.dlpType), hapInfoParcel); in Unmarshalling()
Dhap_token_info_parcel.cpp30 RETURN_IF_FALSE(out.WriteInt32(this->hapTokenInfoParams.dlpType)); in Marshalling()
55 …RELEASE_IF_FALSE(in.ReadInt32(hapTokenInfoParcel->hapTokenInfoParams.dlpType), hapTokenInfoParcel); in Unmarshalling()
/base/notification/distributed_notification_service/services/ans/src/
Daccess_token_helper.cpp65 if (info.dlpType == DlpType::DLP_READ || info.dlpType == DlpType::DLP_FULL_CONTROL) { in IsDlpHap()
/base/notification/common_event_service/services/src/
Daccess_token_helper.cpp65 return (info.dlpType == DlpType::DLP_READ || info.dlpType == DlpType::DLP_FULL_CONTROL); in IsDlpHap()
/base/security/access_token/frameworks/common/include/
Ddata_validator.h49 static bool IsDlpTypeValid(int dlpType);
/base/security/access_token/test/fuzztest/access_token/gethaptokeninfo_fuzzer/
Dgethaptokeninfo_fuzzer.cpp42 .dlpType = num, in GetHapTokenInfoFuzzTest()
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Dmock_accesstoken_kit.cpp62 info.dlpType = Notification::g_mockDlpType; in GetHapTokenInfo()
/base/security/access_token/services/tokensyncmanager/src/command/
Dsync_remote_hap_token_command.cpp45 hapTokenInfo_.baseInfo.dlpType = 0; in SyncRemoteHapTokenCommand()
60 hapTokenInfo_.baseInfo.dlpType = 0; in SyncRemoteHapTokenCommand()
Dbase_remote_command.cpp143 {"dlpType", tokenInfo.baseInfo.dlpType}, in ToHapTokenInfosJson()
174 hapTokenJson.at("dlpType").get_to(hapTokenBasicInfo.dlpType); in FromHapTokenBasicInfoJson()
/base/security/access_token/frameworks/test/unittest/
Daccesstoken_parcel_test.cpp256 hapTokenInfo.dlpType = 0;
287 hapTokenInfo.dlpType = 0;
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp406 .dlpType = -1,
878 wrongBaseInfo.dlpType = (HapDlpType)11;; // wrong dlpType
955 .dlpType = DLP_COMMON,
1009 .dlpType = DLP_READ,
1063 .dlpType = DLP_FULL_CONTROL,
1141 .dlpType = DLP_COMMON,
1199 .dlpType = DLP_READ,
1256 .dlpType = DLP_FULL_CONTROL,
/base/security/access_token/interfaces/innerkits/accesstoken/src/
Daccesstoken_kit.cpp46 … !DataValidator::IsDomainValid(policy.domain) || !DataValidator::IsDlpTypeValid(info.dlpType)) { in AllocHapToken()
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Daccesstoken_kit_test.cpp2019 .dlpType = DLP_COMMON,
2027 .dlpType = DLP_READ,
2035 .dlpType = DLP_FULL_CONTROL,
2052 ASSERT_EQ(hapTokenInfoRes.dlpType, DLP_COMMON);
2066 ASSERT_EQ(hapTokenInfoRes.dlpType, DLP_READ);
2081 ASSERT_EQ(hapTokenInfoRes.dlpType, DLP_FULL_CONTROL);
2108 .dlpType = INVALID_DLP_TYPE,