Lines Matching defs:WorkSource

12 public class WorkSource implements Parcelable {
13 static final String TAG = "WorkSource";
22 * The WorkSource object itself is not thread safe, but we need to
25 static final WorkSource sTmpWorkSource = new WorkSource(0);
29 static WorkSource sNewbWork;
33 static WorkSource sGoneWork;
38 public WorkSource() {
43 * Create a new WorkSource that is a copy of an existing one.
44 * If <var>orig</var> is null, an empty WorkSource is created.
46 public WorkSource(WorkSource orig) {
62 public WorkSource(int uid) {
69 public WorkSource(int uid, String name) {
78 WorkSource(Parcel in) {
100 * Clear names from this WorkSource. Uids are left intact.
102 * <p>Useful when combining with another WorkSource that doesn't have names.
124 * Clear this WorkSource to be empty.
132 return o instanceof WorkSource && !diff((WorkSource)o);
150 * Compare this WorkSource with another.
151 * @param other The WorkSource to compare against.
154 public boolean diff(WorkSource other) {
179 public void set(WorkSource other) {
229 public WorkSource[] setReturningDiffs(WorkSource other) {
235 WorkSource[] diffs = new WorkSource[2];
245 * Merge the contents of <var>other</var> WorkSource in to this one.
247 * @param other The other WorkSource whose contents are to be merged.
250 public boolean add(WorkSource other) {
257 public WorkSource addReturningNewbs(WorkSource other) {
313 public WorkSource addReturningNewbs(int uid) {
322 public boolean remove(WorkSource other) {
342 public WorkSource stripNames() {
344 return new WorkSource();
346 WorkSource result = new WorkSource();
357 private boolean removeUids(WorkSource other) {
389 private boolean removeUidsAndNames(WorkSource other) {
427 private boolean updateLocked(WorkSource other, boolean set, boolean returnNewbs) {
443 private static WorkSource addWork(WorkSource cur, int newUid) {
445 return new WorkSource(newUid);
451 private boolean updateUidsLocked(WorkSource other, boolean set, boolean returnNewbs) {
527 private int compare(WorkSource other, int i1, int i2) {
535 private static WorkSource addWork(WorkSource cur, int newUid, String newName) {
537 return new WorkSource(newUid, newName);
543 private boolean updateUidsAndNamesLocked(WorkSource other, boolean set, boolean returnNewbs) {
680 result.append("WorkSource{");
695 public static final Parcelable.Creator<WorkSource> CREATOR
696 = new Parcelable.Creator<WorkSource>() {
697 public WorkSource createFromParcel(Parcel in) {
698 return new WorkSource(in);
700 public WorkSource[] newArray(int size) {
701 return new WorkSource[size];