Lines Matching defs:other
99 * @param other The WorkSource to compare against.
102 public boolean diff(WorkSource other) {
104 if (N != other.mNum) {
108 final int[] uids2 = other.mUids;
119 * work source. If <var>other</var> is null, the current work source
122 public void set(WorkSource other) {
123 if (other == null) {
127 mNum = other.mNum;
128 if (other.mUids != null) {
130 System.arraycopy(other.mUids, 0, mUids, 0, mNum);
132 mUids = other.mUids.clone();
147 public WorkSource[] setReturningDiffs(WorkSource other) {
151 updateLocked(other, true, true);
163 * Merge the contents of <var>other</var> WorkSource in to this one.
165 * @param other The other WorkSource whose contents are to be merged.
168 public boolean add(WorkSource other) {
170 return updateLocked(other, false, false);
175 public WorkSource addReturningNewbs(WorkSource other) {
178 updateLocked(other, false, true);
201 public boolean remove(WorkSource other) {
204 final int N2 = other.mNum;
205 final int[] uids2 = other.mUids;
223 private boolean updateLocked(WorkSource other, boolean set, boolean returnNewbs) {
226 final int N2 = other.mNum;
227 final int[] uids2 = other.mUids;
258 // Skip uids that already exist or are not in 'other'.
263 // Remove any uids that don't exist in 'other'.