Lines Matching defs:WorkSource

8 public class WorkSource implements Parcelable {
14 * The WorkSource object itself is not thread safe, but we need to
17 static final WorkSource sTmpWorkSource = new WorkSource(0);
21 static WorkSource sNewbWork;
25 static WorkSource sGoneWork;
30 public WorkSource() {
35 * Create a new WorkSource that is a copy of an existing one.
36 * If <var>orig</var> is null, an empty WorkSource is created.
38 public WorkSource(WorkSource orig) {
52 public WorkSource(int uid) {
57 WorkSource(Parcel in) {
73 * Clear this WorkSource to be empty.
80 * Compare this WorkSource with another.
81 * @param other The WorkSource to compare against.
84 public boolean diff(WorkSource other) {
104 public void set(WorkSource other) {
129 public WorkSource[] setReturningDiffs(WorkSource other) {
135 WorkSource[] diffs = new WorkSource[2];
145 * Merge the contents of <var>other</var> WorkSource in to this one.
147 * @param other The other WorkSource whose contents are to be merged.
150 public boolean add(WorkSource other) {
157 public WorkSource addReturningNewbs(WorkSource other) {
174 public WorkSource addReturningNewbs(int uid) {
183 public boolean remove(WorkSource other) {
205 private boolean updateLocked(WorkSource other, boolean set, boolean returnNewbs) {
231 sNewbWork = new WorkSource(uids2[i2]);
249 sGoneWork = new WorkSource(uids1[i1]);
302 public static final Parcelable.Creator<WorkSource> CREATOR
303 = new Parcelable.Creator<WorkSource>() {
304 public WorkSource createFromParcel(Parcel in) {
305 return new WorkSource(in);
307 public WorkSource[] newArray(int size) {
308 return new WorkSource[size];