Lines Matching refs:client

37  * client that enabled that range (or else rejected).
49 * <p>When a client is added, the IntRange may merge with one or more
51 * <p>When a client is removed, the IntRange may divide into several
61 * Create a new IntRange with a single client.
64 * @param client the client requesting the enabled range
66 IntRange(int startId, int endId, String client) {
70 clients.add(new ClientRange(startId, endId, client));
117 // ignore duplicate ranges from the same client
129 * The message id range for a single client.
134 final String client;
136 ClientRange(int startId, int endId, String client) {
139 this.client = client;
148 client.equals(other.client);
156 return (startId * 31 + endId) * 31 + client.hashCode();
161 * List of integer ranges, one per client, sorted by start id.
168 * Enable a range for the specified client and update ranges
174 * @param client the client requesting the enabled range
177 public synchronized boolean enableRange(int startId, int endId, String client) {
183 mRanges.add(new IntRange(startId, endId, client));
198 mRanges.add(startIndex, new IntRange(startId, endId, client));
207 range.clients.add(0, new ClientRange(startId, endId, client));
222 range.clients.add(0, new ClientRange(startId, endId, client));
245 range.clients.add(0, new ClientRange(startId, endId, client));
269 range.clients.add(0, new ClientRange(startId, endId, client));
289 range.insert(new ClientRange(startId, endId, client));
308 range.insert(new ClientRange(startId, endId, client));
324 range.insert(new ClientRange(startId, endId, client));
346 mRanges.add(new IntRange(startId, endId, client));
354 * Disable a range for the specified client and update ranges
360 * @param client the client requesting to disable the range
363 public synchronized boolean disableRange(int startId, int endId, String client) {
371 // found the IntRange that encloses the client range, if any
379 if (cr.startId == startId && cr.endId == endId && cr.client.equals(client)) {
395 // update succeeds, we remove the client range and insert the new IntRanges.
401 if (cr.startId == startId && cr.endId == endId && cr.client.equals(client)) {