Lines Matching defs:ComponentName

35 public final class ComponentName implements Parcelable, Cloneable, Comparable<ComponentName> {
47 public ComponentName(String pkg, String cls) {
62 public ComponentName(Context pkg, String cls) {
76 public ComponentName(Context pkg, Class<?> cls) {
81 public ComponentName clone() {
82 return new ComponentName(mPackage, mClass);
142 * class names contained in the ComponentName. You can later recover
143 * the ComponentName from this string through
192 * Recover a ComponentName from a String that was previously created with
202 * @return Returns a new ComponentName containing the package and class
207 public static ComponentName unflattenFromString(String str) {
217 return new ComponentName(pkg, cls);
237 ComponentName other = (ComponentName)obj;
253 public int compareTo(ComponentName that) {
272 * Write a ComponentName to a Parcel, handling null pointers. Must be
275 * @param c The ComponentName to be written.
276 * @param out The Parcel in which the ComponentName will be placed.
280 public static void writeToParcel(ComponentName c, Parcel out) {
289 * Read a ComponentName from a Parcel that was previously written
290 * with {@link #writeToParcel(ComponentName, Parcel)}, returning either
293 * @param in The Parcel from which to read the ComponentName
294 * @return Returns a new ComponentName matching the previously written
297 * @see #writeToParcel(ComponentName, Parcel)
299 public static ComponentName readFromParcel(Parcel in) {
301 return pkg != null ? new ComponentName(pkg, in) : null;
304 public static final Parcelable.Creator<ComponentName> CREATOR
305 = new Parcelable.Creator<ComponentName>() {
306 public ComponentName createFromParcel(Parcel in) {
307 return new ComponentName(in);
310 public ComponentName[] newArray(int size) {
311 return new ComponentName[size];
316 * Instantiate a new ComponentName from the data in a Parcel that was
319 * {@link #writeToParcel(ComponentName, Parcel)} since it is not possible
322 * @param in The Parcel containing the previously written ComponentName,
325 public ComponentName(Parcel in) {
334 private ComponentName(String pkg, Parcel in) {