Lines Matching refs:spec
63 public static CaptivePortalProbeSpec parseSpec(@NonNull String spec) throws ParseException, in parseSpec() argument
65 if (TextUtils.isEmpty(spec)) { in parseSpec()
69 String[] splits = TextUtils.split(spec, REGEX_SEPARATOR); in parseSpec()
79 return new RegexMatchProbeSpec(spec, new URL(splits[0]), statusRegex, locationRegex); in parseSpec()
102 public static CaptivePortalProbeSpec parseSpecOrNull(@Nullable String spec) { in parseSpecOrNull() argument
103 if (spec != null) { in parseSpecOrNull()
105 return parseSpec(spec); in parseSpecOrNull()
107 Log.e(TAG, "Invalid probe spec: " + spec, e); in parseSpecOrNull()
125 for (String spec : TextUtils.split(settingsVal, SPEC_SEPARATOR)) { in parseCaptivePortalProbeSpecs()
127 specs.add(parseSpec(spec)); in parseCaptivePortalProbeSpecs()
129 Log.e(TAG, "Invalid probe spec: " + spec, e); in parseCaptivePortalProbeSpecs()
169 String spec, URL url, Pattern statusRegex, Pattern locationHeaderRegex) { in RegexMatchProbeSpec() argument
170 super(spec, url); in RegexMatchProbeSpec()