1 /* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #include "drm_param.h" 17 18 namespace OHOS::Rosen { 19 IsDrmEnable()20bool DRMParam::IsDrmEnable() 21 { 22 return isDrmEnable_; 23 } 24 SetDrmEnable(bool isEnable)25void DRMParam::SetDrmEnable(bool isEnable) 26 { 27 isDrmEnable_ = isEnable; 28 } 29 IsDrmMarkAllParentBlurEnable()30bool DRMParam::IsDrmMarkAllParentBlurEnable() 31 { 32 return isDrmMarkAllParentBlurEnable_; 33 } 34 SetDrmMarkAllParentBlurEnable(bool isEnable)35void DRMParam::SetDrmMarkAllParentBlurEnable(bool isEnable) 36 { 37 isDrmMarkAllParentBlurEnable_ = isEnable; 38 } 39 AddWhiteList(const std::string & name)40void DRMParam::AddWhiteList(const std::string& name) 41 { 42 whiteMarkBlurList_.push_back(name); 43 } 44 AddBlackList(const std::string & name)45void DRMParam::AddBlackList(const std::string& name) 46 { 47 blackMarkBlurList_.push_back(name); 48 } 49 GetWhiteList()50const std::vector<std::string>& DRMParam::GetWhiteList() 51 { 52 return whiteMarkBlurList_; 53 } 54 GetBlackList()55const std::vector<std::string>& DRMParam::GetBlackList() 56 { 57 return blackMarkBlurList_; 58 } 59 } // namespace OHOS::Rosen