FileDocCategorySizeDatePackage
ImageWallpaper.javaAPI DocAndroid 5.1 API29577Thu Mar 12 22:22:42 GMT 2015com.android.systemui

ImageWallpaper

public class ImageWallpaper extends android.service.wallpaper.WallpaperService
Default built-in wallpaper that simply shows a static image.

Fields Summary
private static final String
TAG
private static final String
GL_LOG_TAG
private static final boolean
DEBUG
private static final String
PROPERTY_KERNEL_QEMU
static final boolean
FIXED_SIZED_SURFACE
static final boolean
USE_OPENGL
android.app.WallpaperManager
mWallpaperManager
DrawableEngine
mEngine
boolean
mIsHwAccelerated
Constructors Summary
Methods Summary
private static booleanisEmulator()

        return "1".equals(SystemProperties.get(PROPERTY_KERNEL_QEMU, "0"));
    
public voidonCreate()


    
       
        super.onCreate();
        mWallpaperManager = (WallpaperManager) getSystemService(WALLPAPER_SERVICE);

        //noinspection PointlessBooleanExpression,ConstantConditions
        if (FIXED_SIZED_SURFACE && USE_OPENGL) {
            if (!isEmulator()) {
                mIsHwAccelerated = ActivityManager.isHighEndGfx();
            }
        }
    
public EngineonCreateEngine()

        mEngine = new DrawableEngine();
        return mEngine;
    
public voidonTrimMemory(int level)

        if (mEngine != null) {
            mEngine.trimMemory(level);
        }