Lines Matching defs:id

278      * @param id the ID of this resource
285 private static Resource createResource(int id,
289 if (id > createFailureId)
290 throw new AssertionError("Resource " + id + " shouldn't be created");
291 boolean createSucceeds = id != createFailureId;
292 boolean closeSucceeds = (closeFailureBitMap & (1 << id)) == 0;
293 return new Resource(id, createSucceeds, closeSucceeds, closedList);
315 * Bit i is set iff id should throw a CloseFailException.
324 int id = ((Resource.CloseFailException) t).resourceId();
325 if ((1 << id & bitMap) == 0)
326 throw new AssertionError("Unexpected suppressed CloseFailException: " + id);
327 if (id > prevCloseFailExceptionId)
328 throw new AssertionError("Suppressed CloseFailException" + id
383 int id = e.resourceId();
385 throw new AssertionError("Unexpected CloseFailException: " + id);
387 if (1 << id != highestCloseFailBit) {
388 throw new AssertionError("CloseFailException: got id " + id
416 int id = e.resourceId();
418 throw new AssertionError("Unexpected CloseFailException: " + id);
420 if (1 << id != highestCloseFailBit) {
421 throw new AssertionError("CloseFailException: got id " + id
450 int id = e.resourceId();
452 throw new AssertionError("Unexpected CloseFailException: " + id);
454 if (1 << id != highestCloseFailBit) {
455 throw new AssertionError("CloseFailException: got id " + id
484 int id = e.resourceId();
486 throw new AssertionError("Unexpected CloseFailException: " + id);
488 if (1 << id != highestCloseFailBit) {
489 throw new AssertionError("CloseFailException: got id " + id
520 int id = e.resourceId();
522 throw new AssertionError("Unexpected CloseFailException: " + id);
524 if (1 << id != highestCloseFailBit) {
525 throw new AssertionError("CloseFailException: got id " + id
555 int id = e.resourceId();
557 throw new AssertionError("Unexpected CloseFailException: " + id);
559 if (1 << id != highestCloseFailBit) {
560 throw new AssertionError("CloseFailException: got id " + id
593 int id = e.resourceId();
595 throw new AssertionError("Unexpected CloseFailException: " + id);
597 if (1 << id != highestCloseFailBit) {
598 throw new AssertionError("CloseFailException: got id " + id
628 int id = e.resourceId();
630 throw new AssertionError("Unexpected CloseFailException: " + id);
632 if (1 << id != highestCloseFailBit) {
633 throw new AssertionError("CloseFailException: got id " + id
667 int id = e.resourceId();
669 throw new AssertionError("Unexpected CloseFailException: " + id);
671 if (1 << id != highestCloseFailBit) {
672 throw new AssertionError("CloseFailException: got id " + id
682 private static Resource createResource(int id,
685 boolean closeSucceeds = (closeFailureBitMap & (1 << id)) == 0;
686 return new Resource(id, true, closeSucceeds, closedList);