Home
last modified time | relevance | path

Searched refs:CaptivePortalProbeSpec (Results 1 – 5 of 5) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/captiveportal/
DCaptivePortalProbeSpecTest.java39 CaptivePortalProbeSpec statusRegexSpec = CaptivePortalProbeSpec.parseSpec( in testGetResult_Regex()
43 CaptivePortalProbeSpec redirectSpec = CaptivePortalProbeSpec.parseSpec( in testGetResult_Regex()
70 CaptivePortalProbeSpec.parseSpec(""); in testParseSpec_Empty()
75 CaptivePortalProbeSpec.parseSpec(null); in testParseSpec_Null()
80 CaptivePortalProbeSpec.parseSpec("http://google.com/@@/@@123"); in testParseSpec_MissingParts()
85 CaptivePortalProbeSpec.parseSpec("http://google.com/@@/@@123@@/@@456@@/@@extra"); in testParseSpec_TooManyParts()
90 CaptivePortalProbeSpec.parseSpec("http://google.com/@@/@@unmatched(parenthesis@@/@@456"); in testParseSpec_InvalidStatusRegex()
95 CaptivePortalProbeSpec.parseSpec("http://google.com/@@/@@123@@/@@unmatched[[]bracket"); in testParseSpec_InvalidLocationRegex()
100 CaptivePortalProbeSpec.parseSpec("@@/@@123@@/@@123"); in testParseSpec_EmptyURL()
105 CaptivePortalProbeSpec.parseSpec("invalid"); in testParseSpec_NoParts()
[all …]
/packages/modules/NetworkStack/common/captiveportal/src/android/net/captiveportal/
DCaptivePortalProbeSpec.java40 public abstract class CaptivePortalProbeSpec { class
41 private static final String TAG = CaptivePortalProbeSpec.class.getSimpleName();
49 CaptivePortalProbeSpec(@NonNull String encodedSpec, @NonNull URL url) { in CaptivePortalProbeSpec() method in CaptivePortalProbeSpec
65 public static CaptivePortalProbeSpec parseSpec(@NonNull String spec) throws ParseException, in parseSpec()
104 public static CaptivePortalProbeSpec parseSpecOrNull(@Nullable String spec) { in parseSpecOrNull()
123 public static Collection<CaptivePortalProbeSpec> parseCaptivePortalProbeSpecs( in parseCaptivePortalProbeSpecs()
125 List<CaptivePortalProbeSpec> specs = new ArrayList<>(); in parseCaptivePortalProbeSpecs()
165 private static class RegexMatchProbeSpec extends CaptivePortalProbeSpec {
DCaptivePortalProbeResult.java68 public final CaptivePortalProbeSpec probeSpec;
96 @Nullable String detectUrl, @Nullable CaptivePortalProbeSpec probeSpec, in CaptivePortalProbeResult()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java40 import static android.net.captiveportal.CaptivePortalProbeSpec.parseCaptivePortalProbeSpecs;
112 import android.net.captiveportal.CaptivePortalProbeSpec;
439 private final CaptivePortalProbeSpec[] mCaptivePortalFallbackSpecs;
2067 private CaptivePortalProbeSpec[] makeCaptivePortalFallbackProbeSpecs() { in makeCaptivePortalFallbackProbeSpecs()
2072 final CaptivePortalProbeSpec[] emptySpecs = new CaptivePortalProbeSpec[0]; in makeCaptivePortalFallbackProbeSpecs()
2073 final CaptivePortalProbeSpec[] providerValue = TextUtils.isEmpty(settingsValue) in makeCaptivePortalFallbackProbeSpecs()
2080 CaptivePortalProbeSpec::parseSpecOrNull); in makeCaptivePortalFallbackProbeSpecs()
2243 private CaptivePortalProbeSpec nextFallbackSpec() { in nextFallbackSpec()
2425 @Nullable CaptivePortalProbeSpec probeSpec) { in sendHttpProbe()
2961 final CaptivePortalProbeSpec probeSpec = nextFallbackSpec(); in sendHttpAndHttpsParallelWithFallbackProbes()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java42 import android.net.captiveportal.CaptivePortalProbeSpec;
117 private CaptivePortalProbeSpec mProbeSpec;
173 mProbeSpec = CaptivePortalProbeSpec.parseSpecOrNull(spec); in onCreate()
516 int httpResponseCode, String locationHeader, CaptivePortalProbeSpec probeSpec) { in isDismissed()