Lines Matching defs:rules

53  * and end rules for a daylight saving time schedule.  Since it only holds
60 * schedule, the schedule can be described with a set of rules,
140 * These parameter rules are also applicable to the set rule methods, such as
162 dstSavings = millisPerHour; // In case user sets rules later
167 * GMT, time zone ID, and rules for starting and ending the daylight
226 * GMT, time zone ID, and rules for starting and ending the daylight
285 * GMT, time zone ID, and rules for starting and ending the daylight
287 * This constructor takes the full set of the start and end rules
802 * advanced with respect to standard time when the daylight saving time rules
820 * respect to standard time when the daylight saving rules are in
907 * Returns <code>true</code> if this zone has the same rules and offset as another zone.
910 * same rules and offset as this one
924 // Only check rules if using DST
1241 * Union rules are specified as UTC time, for example.
1289 // We represent the following flavors of rules:
1315 // and zero values to encode the different rules. This representation
1340 * Given a set of encoded rules in startDay and startDayOfMonth, decode
1469 * Make rules compatible to 1.1 FCS code. Since 1.1 FCS code only understands
1470 * day-of-week-in-month rules, we must modify other modes of rules to their
1472 * out objects of this class. After it is called, the rules will be modified,
1529 * rules have been forced into DOW_IN_MONTH mode already, so we change
1531 * make a more refined adjustment of the original rules first, but in
1533 * rules anyway.
1567 * Pack the start and end rules into an array of bytes. Only pack
1572 byte[] rules = new byte[6];
1573 rules[0] = (byte)startDay;
1574 rules[1] = (byte)startDayOfWeek;
1575 rules[2] = (byte)endDay;
1576 rules[3] = (byte)endDayOfWeek;
1579 rules[4] = (byte)startTimeMode;
1580 rules[5] = (byte)endTimeMode;
1582 return rules;
1587 * as the start and end rules.
1589 private void unpackRules(byte[] rules)
1591 startDay = rules[0];
1592 startDayOfWeek = rules[1];
1593 endDay = rules[2];
1594 endDayOfWeek = rules[3];
1597 if (rules.length >= 6) {
1598 startTimeMode = rules[4];
1599 endTimeMode = rules[5];
1627 * <code>DOW_IN_MONTH_MODE</code> rules, in the required section, followed
1628 * by the full rules, in packed format, in the optional section. The
1643 byte[] rules = packRules();
1646 // Convert to 1.1 FCS rules. This step may cause us to lose information.
1649 // Write out the 1.1 FCS rules
1652 // Write out the binary rules in the optional data area of the stream.
1653 stream.writeInt(rules.length);
1654 stream.write(rules);
1657 // Recover the original rules. This recovers the information lost
1659 unpackRules(rules);
1691 // store the actual rules (which have not be made compatible with 1.1)
1694 byte[] rules = new byte[length];
1695 stream.readFully(rules);
1696 unpackRules(rules);