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 mClients.add(new ClientRange(startId, endId, client));
118 // ignore duplicate ranges from the same client
125 // there may be more client following with same startId
145 * The message id range for a single client.
152 ClientRange(int startId, int endId, String client) {
155 mClient = client;
177 * List of integer ranges, one per client, sorted by start id.
184 * Enable a range for the specified client and update ranges
190 * @param client the client requesting the enabled range
193 public synchronized boolean enableRange(int startId, int endId, String client) {
199 mRanges.add(new IntRange(startId, endId, client));
212 // duplicate "client" check is done in insert, attempt to insert.
213 range.insert(new ClientRange(startId, endId, client));
235 range.insert(new ClientRange(startId, endId, client));
258 mRanges.add(startIndex, new IntRange(startId, endId, client));
268 range.mClients.add(0, new ClientRange(startId, endId, client));
284 range.mClients.add(0, new ClientRange(startId, endId, client));
309 range.mClients.add(0, new ClientRange(startId, endId, client));
334 range.mClients.add(0, new ClientRange(startId, endId, client));
357 range.insert(new ClientRange(startId, endId, client));
378 range.insert(new ClientRange(startId, endId, client));
397 range.insert(new ClientRange(startId, endId, client));
420 mRanges.add(new IntRange(startId, endId, client));
428 * Disable a range for the specified client and update ranges
434 * @param client the client requesting to disable the range
437 public synchronized boolean disableRange(int startId, int endId, String client) {
445 // found the IntRange that encloses the client range, if any
453 if (cr.mStartId == startId && cr.mEndId == endId && cr.mClient.equals(client)) {
472 // update succeeds, we remove the client range and insert the new IntRanges.
473 // clients are ordered by startId then by endId, so client with largest endId
481 if (cr.mStartId == startId && cr.mEndId == endId && cr.mClient.equals(client)) {