Lines Matching defs:template
52 public NetworkTemplate template;
73 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone,
75 this(template, cycleDay, cycleTimezone, warningBytes, limitBytes, SNOOZE_NEVER,
80 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone,
83 this(template, buildRule(cycleDay, ZoneId.of(cycleTimezone)), warningBytes,
88 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes,
91 this(template, cycleRule, warningBytes, limitBytes, lastWarningSnooze, lastLimitSnooze,
95 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes,
98 this.template = Preconditions.checkNotNull(template, "missing NetworkTemplate");
110 template = source.readParcelable(null);
123 dest.writeParcelable(template, flags);
192 return Objects.hash(template, cycleRule, warningBytes, limitBytes,
207 && Objects.equals(template, other.template)
216 .append("template=").append(template)
245 out.write(template.getBytesForBackup());
264 final NetworkTemplate template = NetworkTemplate.getNetworkTemplateFromBackup(in);
285 return new NetworkPolicy(template, cycleRule, warningBytes, limitBytes, lastWarningSnooze,