• 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
16option_parcel_hooks on;
17sequenceable WallpaperPictureInfoByParcel..WallpaperPictureInfoByParcel;
18rawdata WallpaperRawdata..WallpaperRawData;
19interface OHOS.WallpaperMgrService.IWallpaperEventListener;
20interface OHOS.WallpaperMgrService.IWallpaperCallback;
21
22interface OHOS.WallpaperMgrService.IWallpaperService {
23    void SetWallpaper([in] FileDescriptor fd, [in] int wallpaperType, [in] int length);
24    void SetAllWallpapers([in] WallpaperPictureInfoByParcel allWallpaperPictures, [in] int wallpaperType, [in] FileDescriptor[] fdVector);
25    void SetWallpaperByPixelMap([in] WallpaperRawData wallpaperRawdata, [in] int wallpaperType);
26    void GetPixelMap([in] int wallpaperType, [out] int size, [out] FileDescriptor fd);
27    void GetCorrespondWallpaper([in] int wallpaperType, [in] int foldState, [in] int rotateState, [out] int size, [out] FileDescriptor fd);
28    void GetColors([in] int wallpaperType, [out] unsigned long[] colors);
29    void GetFile([in] int wallpaperType, [out] FileDescriptor wallpaperFd);
30    void GetWallpaperId([in] int wallpaperType);
31    void IsChangePermitted([out] boolean isChangePermitted);
32    void IsOperationAllowed([out] boolean isOperationAllowed);
33    void ResetWallpaper([in] int wallpaperType);
34    void On([in] String type, [in] IWallpaperEventListener listener);
35    void Off([in] String type, [in] IWallpaperEventListener listener);
36    void RegisterWallpaperCallback([in] IWallpaperCallback wallpaperCallback, [out] boolean registerWallpaperCallback);
37    void SetWallpaperV9([in] FileDescriptor fd, [in] int wallpaperType, [in] int length);
38    void SetWallpaperV9ByPixelMap([in] WallpaperRawData wallpaperRawdata, [in] int wallpaperType);
39    void GetPixelMapV9([in] int wallpaperType, [out] int size, [out] FileDescriptor fd);
40    void GetColorsV9([in] int wallpaperType, [out] unsigned long[] colors);
41    void ResetWallpaperV9([in] int wallpaperType);
42    void SetVideo([in] FileDescriptor fd, [in] int wallpaperType, [in] int length);
43    void SetCustomWallpaper([in] FileDescriptor fd, [in] int wallpaperType, [in] int length);
44    void SendEvent([in] String eventType);
45    void IsDefaultWallpaperResource([in] int userId, [in] int wallpaperType, [out] boolean isDefaultWallpaperResource);
46}
47