mobi.voiceassistant.base.content
Class Label

java.lang.Object
  extended by mobi.voiceassistant.base.content.Label
All Implemented Interfaces:
Parcelable

public final class Label
extends Object
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<Label> CREATOR
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
Label(LabeledIntent intent)
           
Label(String packageName, CharSequence nonLocalizedText, int iconId)
           
Label(String packageName, int textId, int iconId)
           
 
Method Summary
 int describeContents()
           
static Label getActivity(ComponentName component)
           
static Label getActivity(ComponentName component, CharSequence nonLocalizedText, int iconId)
           
static Label getActivity(ComponentName component, int textId, int iconId)
           
static Label getProvider(ComponentName component)
           
static Label getProvider(ComponentName component, CharSequence nonLocalizedText, int iconId)
           
static Label getProvider(ComponentName component, int textId, int iconId)
           
static Label getReceiver(ComponentName component)
           
static Label getReceiver(ComponentName component, CharSequence nonLocalizedText, int iconId)
           
static Label getReceiver(ComponentName component, int textId, int iconId)
           
static Label getService(ComponentName component)
           
static Label getService(ComponentName component, CharSequence nonLocalizedText, int iconId)
           
static Label getService(ComponentName component, int textId, int iconId)
           
 Drawable loadIcon(PackageManager manager)
           
 CharSequence loadLabel(PackageManager manager)
           
static void writeToParcel(Label label, Parcel parcel, int flags)
           
 void writeToParcel(Parcel parcel, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATOR

public static final Parcelable.Creator<Label> CREATOR
Constructor Detail

Label

public Label(LabeledIntent intent)

Label

public Label(String packageName,
             CharSequence nonLocalizedText,
             int iconId)

Label

public Label(String packageName,
             int textId,
             int iconId)
Method Detail

loadLabel

public CharSequence loadLabel(PackageManager manager)

loadIcon

public Drawable loadIcon(PackageManager manager)

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel parcel,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

getActivity

public static Label getActivity(ComponentName component)

getActivity

public static Label getActivity(ComponentName component,
                                CharSequence nonLocalizedText,
                                int iconId)

getActivity

public static Label getActivity(ComponentName component,
                                int textId,
                                int iconId)

getService

public static Label getService(ComponentName component)

getService

public static Label getService(ComponentName component,
                               CharSequence nonLocalizedText,
                               int iconId)

getService

public static Label getService(ComponentName component,
                               int textId,
                               int iconId)

getReceiver

public static Label getReceiver(ComponentName component)

getReceiver

public static Label getReceiver(ComponentName component,
                                CharSequence nonLocalizedText,
                                int iconId)

getReceiver

public static Label getReceiver(ComponentName component,
                                int textId,
                                int iconId)

getProvider

public static Label getProvider(ComponentName component)

getProvider

public static Label getProvider(ComponentName component,
                                CharSequence nonLocalizedText,
                                int iconId)

getProvider

public static Label getProvider(ComponentName component,
                                int textId,
                                int iconId)

writeToParcel

public static void writeToParcel(Label label,
                                 Parcel parcel,
                                 int flags)