Lines Matching refs:zones
36 public static int zoneToIndex(int zones, int zone) throws IllegalArgumentException { in zoneToIndex() argument
38 (zones == 0) || // check that zones is non-zero in zoneToIndex()
39 ((zone & zones) != zone) || // check that zone is inside of zones in zoneToIndex()
41 throw new IllegalArgumentException("Invalid zones 0x" + Integer.toHexString(zones) + in zoneToIndex()
45 while((zone & zones) != 0) { in zoneToIndex()
47 zones &= zones - 1; in zoneToIndex()
55 public static int getNumberOfZones(int zones) { in getNumberOfZones() argument
57 while (zones != 0) { in getNumberOfZones()
58 zones &= zones - 1; in getNumberOfZones()
69 public static int getFirstZone(int zones) { in getFirstZone() argument
70 if (zones == 0) { in getFirstZone()
75 if ((flag & zones) != 0) { in getFirstZone()
92 public static int getNextZone(int zones, int startingZone) throws IllegalArgumentException { in getNextZone() argument
100 if ((flag & zones) != 0) { in getNextZone()
105 if ((flag & zones) != 0) { in getNextZone()
115 public static int[] listAllZones(int zones) { in listAllZones() argument
116 int numberOfZones = getNumberOfZones(zones); in listAllZones()
124 if ((flag & zones) != 0) { in listAllZones()