Lines Matching refs:ComponentName

38 public final class ComponentName implements Parcelable, Cloneable, Comparable<ComponentName> {
48 * will return a ComponentName with the package <code>"com.example"</code>and class name
55 * @return the new ComponentName
57 public static @NonNull ComponentName createRelative(@NonNull String pkg, @NonNull String cls) {
70 return new ComponentName(pkg, fullName);
79 * will return a ComponentName with the package <code>"com.example"</code>and class name
86 * @return the new ComponentName
88 public static @NonNull ComponentName createRelative(@NonNull Context pkg, @NonNull String cls) {
100 public ComponentName(@NonNull String pkg, @NonNull String cls) {
115 public ComponentName(@NonNull Context pkg, @NonNull String cls) {
129 public ComponentName(@NonNull Context pkg, @NonNull Class<?> cls) {
134 public ComponentName clone() {
135 return new ComponentName(mPackage, mClass);
195 * class names contained in the ComponentName. You can later recover
196 * the ComponentName from this string through
245 * Recover a ComponentName from a String that was previously created with
255 * @return Returns a new ComponentName containing the package and class
260 public static @Nullable ComponentName unflattenFromString(@NonNull String str) {
270 return new ComponentName(pkg, cls);
290 ComponentName other = (ComponentName)obj;
306 public int compareTo(ComponentName that) {
325 * Write a ComponentName to a Parcel, handling null pointers. Must be
328 * @param c The ComponentName to be written.
329 * @param out The Parcel in which the ComponentName will be placed.
333 public static void writeToParcel(ComponentName c, Parcel out) {
342 * Read a ComponentName from a Parcel that was previously written
343 * with {@link #writeToParcel(ComponentName, Parcel)}, returning either
346 * @param in The Parcel from which to read the ComponentName
347 * @return Returns a new ComponentName matching the previously written
350 * @see #writeToParcel(ComponentName, Parcel)
352 public static ComponentName readFromParcel(Parcel in) {
354 return pkg != null ? new ComponentName(pkg, in) : null;
357 public static final Parcelable.Creator<ComponentName> CREATOR
358 = new Parcelable.Creator<ComponentName>() {
359 public ComponentName createFromParcel(Parcel in) {
360 return new ComponentName(in);
363 public ComponentName[] newArray(int size) {
364 return new ComponentName[size];
369 * Instantiate a new ComponentName from the data in a Parcel that was
372 * {@link #writeToParcel(ComponentName, Parcel)} since it is not possible
375 * @param in The Parcel containing the previously written ComponentName,
378 public ComponentName(Parcel in) {
387 private ComponentName(String pkg, Parcel in) {