Home | History | Annotate | Download | only in content

Lines Matching defs:ComponentName

33 public final class ComponentName implements Parcelable, Cloneable, Comparable<ComponentName> {
45 public ComponentName(String pkg, String cls) {
60 public ComponentName(Context pkg, String cls) {
74 public ComponentName(Context pkg, Class<?> cls) {
79 public ComponentName clone() {
80 return new ComponentName(mPackage, mClass);
114 * class names contained in the ComponentName. You can later recover
115 * the ComponentName from this string through
144 * Recover a ComponentName from a String that was previously created with
154 * @return Returns a new ComponentName containing the package and class
159 public static ComponentName unflattenFromString(String str) {
169 return new ComponentName(pkg, cls);
189 ComponentName other = (ComponentName)obj;
205 public int compareTo(ComponentName that) {
224 * Write a ComponentName to a Parcel, handling null pointers. Must be
227 * @param c The ComponentName to be written.
228 * @param out The Parcel in which the ComponentName will be placed.
232 public static void writeToParcel(ComponentName c, Parcel out) {
241 * Read a ComponentName from a Parcel that was previously written
242 * with {@link #writeToParcel(ComponentName, Parcel)}, returning either
245 * @param in The Parcel from which to read the ComponentName
246 * @return Returns a new ComponentName matching the previously written
249 * @see #writeToParcel(ComponentName, Parcel)
251 public static ComponentName readFromParcel(Parcel in) {
253 return pkg != null ? new ComponentName(pkg, in) : null;
256 public static final Parcelable.Creator<ComponentName> CREATOR
257 = new Parcelable.Creator<ComponentName>() {
258 public ComponentName createFromParcel(Parcel in) {
259 return new ComponentName(in);
262 public ComponentName[] newArray(int size) {
263 return new ComponentName[size];
268 * Instantiate a new ComponentName from the data in a Parcel that was
271 * {@link #writeToParcel(ComponentName, Parcel)} since it is not possible
274 * @param in The Parcel containing the previously written ComponentName,
277 public ComponentName(Parcel in) {
286 private ComponentName(String pkg, Parcel in) {