1 /* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.android.wallpaper.model; 17 18 import android.app.WallpaperInfo; 19 20 import androidx.annotation.Nullable; 21 22 import java.util.List; 23 24 /** 25 * Live wallpaper-specific wrapper for user-facing wallpaper metadata. 26 */ 27 public class LiveWallpaperMetadata extends WallpaperMetadata { LiveWallpaperMetadata(android.app.WallpaperInfo wallpaperComponent)28 public LiveWallpaperMetadata(android.app.WallpaperInfo wallpaperComponent) { 29 super(null, null, 0, 0, null, null, wallpaperComponent); 30 } 31 32 @Override getAttributions()33 public List<String> getAttributions() { 34 throw new UnsupportedOperationException("Not implemented for live wallpapers"); 35 } 36 37 @Override getActionUrl()38 public String getActionUrl() { 39 throw new UnsupportedOperationException("Not implemented for live wallpapers"); 40 } 41 42 @Override getActionLabelRes()43 public int getActionLabelRes() { 44 throw new UnsupportedOperationException("Not implemented for live wallpapers"); 45 } 46 47 @Override getActionIconRes()48 public int getActionIconRes() { 49 throw new UnsupportedOperationException("Not implemented for live wallpapers"); 50 } 51 52 @Override getCollectionId()53 public String getCollectionId() { 54 throw new UnsupportedOperationException("Not implemented for live wallpapers"); 55 } 56 57 @Nullable 58 @Override getBackingFileName()59 public String getBackingFileName() { 60 throw new UnsupportedOperationException("Not implemented for live wallpapers"); 61 } 62 63 @Override getWallpaperComponent()64 public WallpaperInfo getWallpaperComponent() { 65 return mWallpaperComponent; 66 } 67 } 68