Lines Matching defs:ComponentName

36 public final class ComponentName implements Parcelable, Cloneable, Comparable<ComponentName> {
46 * will return a ComponentName with the package <code>"com.example"</code>and class name
53 * @return the new ComponentName
55 public static ComponentName createRelative(String pkg, String cls) {
68 return new ComponentName(pkg, fullName);
77 * will return a ComponentName with the package <code>"com.example"</code>and class name
84 * @return the new ComponentName
86 public static ComponentName createRelative(Context pkg, String cls) {
98 public ComponentName(String pkg, String cls) {
113 public ComponentName(Context pkg, String cls) {
127 public ComponentName(Context pkg, Class<?> cls) {
132 public ComponentName clone() {
133 return new ComponentName(mPackage, mClass);
193 * class names contained in the ComponentName. You can later recover
194 * the ComponentName from this string through
243 * Recover a ComponentName from a String that was previously created with
253 * @return Returns a new ComponentName containing the package and class
258 public static ComponentName unflattenFromString(String str) {
268 return new ComponentName(pkg, cls);
288 ComponentName other = (ComponentName)obj;
304 public int compareTo(ComponentName that) {
323 * Write a ComponentName to a Parcel, handling null pointers. Must be
326 * @param c The ComponentName to be written.
327 * @param out The Parcel in which the ComponentName will be placed.
331 public static void writeToParcel(ComponentName c, Parcel out) {
340 * Read a ComponentName from a Parcel that was previously written
341 * with {@link #writeToParcel(ComponentName, Parcel)}, returning either
344 * @param in The Parcel from which to read the ComponentName
345 * @return Returns a new ComponentName matching the previously written
348 * @see #writeToParcel(ComponentName, Parcel)
350 public static ComponentName readFromParcel(Parcel in) {
352 return pkg != null ? new ComponentName(pkg, in) : null;
355 public static final Parcelable.Creator<ComponentName> CREATOR
356 = new Parcelable.Creator<ComponentName>() {
357 public ComponentName createFromParcel(Parcel in) {
358 return new ComponentName(in);
361 public ComponentName[] newArray(int size) {
362 return new ComponentName[size];
367 * Instantiate a new ComponentName from the data in a Parcel that was
370 * {@link #writeToParcel(ComponentName, Parcel)} since it is not possible
373 * @param in The Parcel containing the previously written ComponentName,
376 public ComponentName(Parcel in) {
385 private ComponentName(String pkg, Parcel in) {