Home | History | Annotate | Download | only in autofill

Lines Matching defs:Builder

50  *     .Builder(ccNumberId, Pattern.compile("^.*(\\d\\d\\d\\d)$"), "...$1")
59 * .Builder(ccExpMonthId, Pattern.compile("^(\\d\\d)$"), "Exp: $1")
70 private CharSequenceTransformation(Builder builder) {
71 mFields = builder.mFields;
110 * Builder for {@link CharSequenceTransformation} objects.
112 public static class Builder {
120 * Creates a new builder and adds the first transformed contents of a field to the overall
129 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @NonNull String subst) {
142 * @return this builder.
144 public Builder addField(@NonNull AutofillId id, @NonNull Pattern regex,
216 // Always go through the builder to ensure the data ingested by
217 // the system obeys the contract of the builder to avoid attacks
219 final CharSequenceTransformation.Builder builder =
220 new CharSequenceTransformation.Builder(ids[0], regexs[0], substs[0]);
224 builder.addField(ids[i], regexs[i], substs[i]);
226 return builder.build();