1 /* 2 * Copyright (c) 2021 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 "dcamera_sink_access_control.h" 17 18 #include "distributed_camera_constants.h" 19 #include "distributed_camera_errno.h" 20 #include "distributed_hardware_log.h" 21 22 namespace OHOS { 23 namespace DistributedHardware { IsSensitiveSrcAccess(const std::string & srcType)24bool DCameraSinkAccessControl::IsSensitiveSrcAccess(const std::string& srcType) 25 { 26 DHLOGI("DCameraSinkAccessControl::IsSensitiveSrcAccess srcType: %{public}s", srcType.c_str()); 27 return true; 28 } 29 NotifySensitiveSrc(const std::string & srcType)30bool DCameraSinkAccessControl::NotifySensitiveSrc(const std::string& srcType) 31 { 32 DHLOGI("DCameraSinkAccessControl::NotifySensitiveSrc srcType: %{public}s", srcType.c_str()); 33 return true; 34 } 35 TriggerFrame(const std::string & deviceName)36int32_t DCameraSinkAccessControl::TriggerFrame(const std::string& deviceName) 37 { 38 DHLOGI("DCameraSinkAccessControl::TriggerFrame deviceName: %{public}s", deviceName.c_str()); 39 return DCAMERA_OK; 40 } 41 GetAccessControlType(const std::string & accessType)42int32_t DCameraSinkAccessControl::GetAccessControlType(const std::string& accessType) 43 { 44 DHLOGI("DCameraSinkAccessControl::GetAccessControlType accessType: %{public}s", accessType.c_str()); 45 return DCAMERA_SAME_ACCOUNT; 46 } 47 } // namespace DistributedHardware 48 } // namespace OHOS