Loading .gitignore 0 → 100644 +7 −0 Original line number Diff line number Diff line # Generated build files gen/com/android/networkstack/** # IntelliJ project files **/.idea **/*.iml **/*.ipr Android.bp +9 −0 Original line number Diff line number Diff line Loading @@ -114,6 +114,9 @@ java_library { ], sdk_version: "system_30", visibility: ["//visibility:private"], lint: { baseline_filename: "lint-baseline-api-30-shims.xml", }, } // Shims for APIs being added to the current development version of Android. These APIs are not Loading Loading @@ -217,6 +220,9 @@ android_library { "//packages/modules/NetworkStack/tests/unit", "//packages/modules/NetworkStack/tests/integration", ], lint: { baseline_filename: "lint-baseline-current-lib.xml", }, } android_library { Loading @@ -235,6 +241,9 @@ android_library { "//packages/modules/NetworkStack/tests/unit", "//packages/modules/NetworkStack/tests/integration", ], lint: { baseline_filename: "lint-baseline-stable-lib.xml", }, } filegroup { Loading TEST_MAPPING +8 −3 Original line number Diff line number Diff line Loading @@ -5,14 +5,14 @@ }, { "name": "NetworkStackNextTests" }, { "name": "NetworkStackIntegrationTests" } ], "postsubmit": [ { "name": "NetworkStackHostTests" }, { "name": "NetworkStackIntegrationTests" } ], "auto-postsubmit": [ Loading Loading @@ -43,6 +43,11 @@ "name": "NetworkStackTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" } ], "mainline-postsubmit": [ { "name": "NetworkStackIntegrationTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" } ], "imports": [ { "path": "packages/modules/Connectivity" Loading apishim/29/com/android/networkstack/apishim/api29/ConnectivityManagerShimImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ public class ConnectivityManagerShimImpl implements ConnectivityManagerShim { */ @Override public void requestBackgroundNetwork(@NonNull NetworkRequest request, @NonNull Handler handler, @NonNull NetworkCallback networkCallback) @NonNull NetworkCallback networkCallback, @NonNull Handler handler) throws UnsupportedApiLevelException { // Not supported for API 29. throw new UnsupportedApiLevelException("Not supported in API 29."); Loading apishim/30/com/android/networkstack/apishim/api30/ConnectivityManagerShimImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ public class ConnectivityManagerShimImpl */ @Override public void requestBackgroundNetwork(@NonNull NetworkRequest request, @NonNull Handler handler, @NonNull NetworkCallback networkCallback) @NonNull NetworkCallback networkCallback, @NonNull Handler handler) throws UnsupportedApiLevelException { // Not supported for API 30. throw new UnsupportedApiLevelException("Not supported in API 30."); Loading Loading
.gitignore 0 → 100644 +7 −0 Original line number Diff line number Diff line # Generated build files gen/com/android/networkstack/** # IntelliJ project files **/.idea **/*.iml **/*.ipr
Android.bp +9 −0 Original line number Diff line number Diff line Loading @@ -114,6 +114,9 @@ java_library { ], sdk_version: "system_30", visibility: ["//visibility:private"], lint: { baseline_filename: "lint-baseline-api-30-shims.xml", }, } // Shims for APIs being added to the current development version of Android. These APIs are not Loading Loading @@ -217,6 +220,9 @@ android_library { "//packages/modules/NetworkStack/tests/unit", "//packages/modules/NetworkStack/tests/integration", ], lint: { baseline_filename: "lint-baseline-current-lib.xml", }, } android_library { Loading @@ -235,6 +241,9 @@ android_library { "//packages/modules/NetworkStack/tests/unit", "//packages/modules/NetworkStack/tests/integration", ], lint: { baseline_filename: "lint-baseline-stable-lib.xml", }, } filegroup { Loading
TEST_MAPPING +8 −3 Original line number Diff line number Diff line Loading @@ -5,14 +5,14 @@ }, { "name": "NetworkStackNextTests" }, { "name": "NetworkStackIntegrationTests" } ], "postsubmit": [ { "name": "NetworkStackHostTests" }, { "name": "NetworkStackIntegrationTests" } ], "auto-postsubmit": [ Loading Loading @@ -43,6 +43,11 @@ "name": "NetworkStackTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" } ], "mainline-postsubmit": [ { "name": "NetworkStackIntegrationTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" } ], "imports": [ { "path": "packages/modules/Connectivity" Loading
apishim/29/com/android/networkstack/apishim/api29/ConnectivityManagerShimImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ public class ConnectivityManagerShimImpl implements ConnectivityManagerShim { */ @Override public void requestBackgroundNetwork(@NonNull NetworkRequest request, @NonNull Handler handler, @NonNull NetworkCallback networkCallback) @NonNull NetworkCallback networkCallback, @NonNull Handler handler) throws UnsupportedApiLevelException { // Not supported for API 29. throw new UnsupportedApiLevelException("Not supported in API 29."); Loading
apishim/30/com/android/networkstack/apishim/api30/ConnectivityManagerShimImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ public class ConnectivityManagerShimImpl */ @Override public void requestBackgroundNetwork(@NonNull NetworkRequest request, @NonNull Handler handler, @NonNull NetworkCallback networkCallback) @NonNull NetworkCallback networkCallback, @NonNull Handler handler) throws UnsupportedApiLevelException { // Not supported for API 30. throw new UnsupportedApiLevelException("Not supported in API 30."); Loading