• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16package OHOS.CameraStandard;
17import ICameraDeviceServiceCallback;
18sequenceable CameraMetadataInfo..OHOS.Camera.CameraMetadata;
19option_stub_hooks on;
20
21interface ICameraDeviceService {
22   [ipccode 0] void Open();
23   [ipccode 1] void Close();
24   [ipccode 2] void Release();
25   [ipccode 3] void SetCallback([in] ICameraDeviceServiceCallback callbackFunc);
26   [ipccode 4] void UpdateSetting([in] sharedptr<CameraMetadata> settings);
27   [ipccode 5] void GetEnabledResults([out] int[] results);
28   [ipccode 6] void EnableResult([in] int[] results);
29   [ipccode 7] void DisableResult([in] int[] results);
30   [ipccode 8] void GetStatus([in] sharedptr<CameraMetadata> metaIn, [out] sharedptr<CameraMetadata> metaOut);
31   [ipccode 9] void SetUsedAsPosition([in] unsigned char value);
32   [ipccode 10] void closeDelayed();
33   [ipccode 11] void UnSetCallback();
34   [ipccode 12] void Open([in] int concurrentTypeofcamera);
35   [ipccode 13] void SetDeviceRetryTime();
36   [ipccode 14] void OpenSecureCamera([out] unsigned long secureSeqId);
37}