/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
D | dlp_permission_set_manager.cpp | 72 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()
|
D | permission_manager.cpp | 353 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/ |
D | data_validator.cpp | 93 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/ |
D | mock_accesstoken_kit.cpp | 32 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/ |
D | accesstoken_id_manager.cpp | 71 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()
|
D | hap_token_info_inner.cpp | 41 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()
|
D | accesstoken_remote_token_manager.cpp | 56 int dlpType = AccessTokenIDManager::GetInstance().GetTokenIdDlpFlag(remoteID); in MapRemoteDeviceTokenToLocal() local 78 mapID = AccessTokenIDManager::GetInstance().CreateAndRegisterTokenId(tokeType, dlpType); in MapRemoteDeviceTokenToLocal()
|
D | accesstoken_info_manager.cpp | 418 (!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/ |
D | dlp_permission_set_manager.h | 34 …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/ |
D | accesstoken_id_manager.h | 38 AccessTokenID CreateAndRegisterTokenId(ATokenTypeEnum type, int dlpType); 48 AccessTokenID CreateTokenId(ATokenTypeEnum type, int dlpType) const;
|
/base/security/access_token/interfaces/innerkits/accesstoken/include/ |
D | hap_token_info.h | 33 int dlpType; variable 54 int dlpType; variable
|
/base/security/access_token/frameworks/accesstoken/src/ |
D | hap_info_parcel.cpp | 27 RETURN_IF_FALSE(out.WriteInt32(this->hapInfoParameter.dlpType)); in Marshalling() 42 RELEASE_IF_FALSE(in.ReadInt32(hapInfoParcel->hapInfoParameter.dlpType), hapInfoParcel); in Unmarshalling()
|
D | hap_token_info_parcel.cpp | 30 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/ |
D | access_token_helper.cpp | 65 if (info.dlpType == DlpType::DLP_READ || info.dlpType == DlpType::DLP_FULL_CONTROL) { in IsDlpHap()
|
/base/notification/common_event_service/services/src/ |
D | access_token_helper.cpp | 65 return (info.dlpType == DlpType::DLP_READ || info.dlpType == DlpType::DLP_FULL_CONTROL); in IsDlpHap()
|
/base/security/access_token/frameworks/common/include/ |
D | data_validator.h | 49 static bool IsDlpTypeValid(int dlpType);
|
/base/security/access_token/test/fuzztest/access_token/gethaptokeninfo_fuzzer/ |
D | gethaptokeninfo_fuzzer.cpp | 42 .dlpType = num, in GetHapTokenInfoFuzzTest()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
D | mock_accesstoken_kit.cpp | 62 info.dlpType = Notification::g_mockDlpType; in GetHapTokenInfo()
|
/base/security/access_token/services/tokensyncmanager/src/command/ |
D | sync_remote_hap_token_command.cpp | 45 hapTokenInfo_.baseInfo.dlpType = 0; in SyncRemoteHapTokenCommand() 60 hapTokenInfo_.baseInfo.dlpType = 0; in SyncRemoteHapTokenCommand()
|
D | base_remote_command.cpp | 143 {"dlpType", tokenInfo.baseInfo.dlpType}, in ToHapTokenInfosJson() 174 hapTokenJson.at("dlpType").get_to(hapTokenBasicInfo.dlpType); in FromHapTokenBasicInfoJson()
|
/base/security/access_token/frameworks/test/unittest/ |
D | accesstoken_parcel_test.cpp | 256 hapTokenInfo.dlpType = 0; 287 hapTokenInfo.dlpType = 0;
|
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | accesstoken_info_manager_test.cpp | 406 .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/ |
D | accesstoken_kit.cpp | 46 … !DataValidator::IsDomainValid(policy.domain) || !DataValidator::IsDlpTypeValid(info.dlpType)) { in AllocHapToken()
|
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/ |
D | accesstoken_kit_test.cpp | 2019 .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,
|