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 16sequenceable OHOS.Rosen.DisplayInfo; 17sequenceable OHOS.Rosen.CutoutInfo; 18sequenceable OHOS.Rosen.ScreenInfo; 19interface zidl..OHOS.Rosen.IDisplayManagerAgent; 20 21interface OHOS.Rosen.IDisplayManagerLite { 22 void RegisterDisplayManagerAgent([in] IDisplayManagerAgent displayManagerAgent, [in] unsigned int type, 23 [out] int dmError); 24 void UnregisterDisplayManagerAgent([in] IDisplayManagerAgent displayManagerAgent, [in] unsigned int type, 25 [out] int dmError); 26 void GetDefaultDisplayInfo([out] sptr<DisplayInfo> displayInfo); 27 void GetDisplayInfoById([in] unsigned long displayId, [out] sptr<DisplayInfo> displayInfo); 28 void GetCutoutInfo([in] unsigned long displayId, [out] sptr<CutoutInfo> cutoutInfo); 29 void WakeUpBegin([in] unsigned int reason, [out] boolean isSucc); 30 void WakeUpEnd([out] boolean isSucc); 31 void SuspendBegin([in] unsigned int reason, [out] boolean isSucc); 32 void SuspendEnd([out] boolean isSucc); 33 void SetSpecifiedScreenPower([in] unsigned long screenId, [in] unsigned int screenPowerState, 34 [in] unsigned int reason, [out] boolean isSucc); 35 void SetScreenPowerForAll([in] unsigned int screenPowerState, [in] unsigned int reason, [out] boolean isSucc); 36 void GetScreenPower([in] unsigned long dmsScreenId, [out] unsigned int screenPowerState); 37 void GetScreenPower([out] unsigned int screenPowerState); 38 void SetDisplayState([in] unsigned int displayState, [out] boolean isSucc); 39 void GetDisplayState([in] unsigned long displayId, [out] unsigned int displayState); 40 void TryToCancelScreenOff([out] boolean isSucc); 41 void GetAllDisplayIds([out] unsigned long[] displayIds); 42 void GetAllScreenInfos([out] sptr<ScreenInfo>[] screenInfos, [out] int dmError); 43 void GetScreenInfoById([in] unsigned long screenId, [out] sptr<ScreenInfo> screenInfo); 44 void SetScreenBrightness([in] unsigned long screenId, [in] unsigned int level, [out] boolean isSucc); 45 void GetScreenBrightness([in] unsigned long screenId, [out] unsigned int level); 46} 47