FileDocCategorySizeDatePackage
TaskDescription.javaAPI DocAndroid 5.1 API2760Thu Mar 12 22:22:42 GMT 2015com.android.systemui.recent

TaskDescription

public final class TaskDescription extends Object

Fields Summary
final android.content.pm.ResolveInfo
resolveInfo
final int
taskId
final int
persistentTaskId
final android.content.Intent
intent
final String
packageName
final CharSequence
description
final int
userId
private android.graphics.drawable.Drawable
mThumbnail
private android.graphics.drawable.Drawable
mIcon
private CharSequence
mLabel
private boolean
mLoaded
Constructors Summary
public TaskDescription(int _taskId, int _persistentTaskId, android.content.pm.ResolveInfo _resolveInfo, android.content.Intent _intent, String _packageName, CharSequence _description, int _userId)

        resolveInfo = _resolveInfo;
        intent = _intent;
        taskId = _taskId;
        persistentTaskId = _persistentTaskId;

        description = _description;
        packageName = _packageName;
        userId = _userId;
    
public TaskDescription()

        resolveInfo = null;
        intent = null;
        taskId = -1;
        persistentTaskId = -1;

        description = null;
        packageName = null;
        userId = UserHandle.USER_NULL;
    
Methods Summary
public android.graphics.drawable.DrawablegetIcon()

        return mIcon;
    
public java.lang.CharSequencegetLabel()

        return mLabel;
    
public android.graphics.drawable.DrawablegetThumbnail()

        return mThumbnail;
    
public booleanisLoaded()

        return mLoaded;
    
public booleanisNull()

        return resolveInfo == null;
    
public voidsetIcon(android.graphics.drawable.Drawable icon)

        mIcon = icon;
    
public voidsetLabel(java.lang.CharSequence label)

        mLabel = label;
    
public voidsetLoaded(boolean loaded)

        mLoaded = loaded;
    
public voidsetThumbnail(android.graphics.drawable.Drawable thumbnail)

        mThumbnail = thumbnail;