summaryrefslogtreecommitdiff
path: root/tests/net/java/com/android
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Have NetworkPolicyManagerService create MultipathPolicyTrackerAaron Huang2020-12-231-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make connectivity service mainline, this patch makes MultipathPolicyTracker as a submodule of NetworkPolicyManagerService to remove the dependencies of ConnectivityService. Bug: 175015282 Test: FrameworksNetTests Change-Id: I82a7c62069ffd0683deb2f5ce2f99de120a2a16f
* | | | | | Merge "[IT04] Add uid as parameter of interfaceClassDataActivityChanged" am: ↵Chiachang Wang2020-12-231-9/+8
|\| | | | | | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | baef452e38 am: 04aa5eac85 am: a817ecd4b5 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1523339 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ieafdf569c13b1421c18fa3086827e6e432b498d7
| * | | | Merge "[IT04] Add uid as parameter of interfaceClassDataActivityChanged"Chiachang Wang2020-12-231-9/+8
| |\ \ \ \ | | | |/ / | | |/| |
| | * | | [IT04] Add uid as parameter of interfaceClassDataActivityChangedChiachang Wang2020-12-221-9/+8
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add uid into interfaceClassDataActivityChanged in INetworkManagementEventObserver. This helps the listeners to use BaseNetworkObserver to listen for target evnets instead of using whole INetdUnsolicitedEventListener with no-op in other event that listeners do not care about. Bug: 170598012 Test: m ; atest FrameworksNetTests Change-Id: I2a42a522c2ff9b1e0be88261a8574bb7f5292fa6
* | | | Merge "Split NetworkUtils and NetworkUtilsInternal" am: 3ed4fd3a89 am: ↵Remi NGUYEN VAN2020-12-232-1/+90
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 635d60201d am: edc6b0fb67 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513140 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ief9d6a1fae360dbe1c43d5d6bac4dad5850c004b
| * | | Merge "Split NetworkUtils and NetworkUtilsInternal"Remi NGUYEN VAN2020-12-232-1/+90
| |\ \ \ | | |/ / | |/| |
| | * | Split NetworkUtils and NetworkUtilsInternalRemi NGUYEN VAN2020-12-072-1/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NetworkUtils is planned to move to a dedicated JAR for connectivity classes, while NetworkUtilsInternal would stay in the frameworks-minus-apex JAR, in the com.android.internal.net package. Bug: 171540887 Test: m, boots, wifi working atest FrameworksNetTests Change-Id: I3d38d72ad23a4bf84af823c7baeb6fed25c0665f
* | | | Merge changes I177ec607,I68f364b4,Ib3b9f52c,If040d61e am: 87eadad550 am: ↵James Mattis2020-12-221-3/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 327f96aa66 am: fc0d3cf553 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1507701 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Id8d45a68283ab29f6928628ebf852143793aff76
| * | | Merge changes I177ec607,I68f364b4,Ib3b9f52c,If040d61eJames Mattis2020-12-201-3/+12
| |\ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | * changes: nits removing extra space, change method name, etc maybeLogBlockedStatusChanged multilayer requests Update getSignalStrengthThresholds for multilayer Update to unneeded for multilayered requests
| | * | nits removing extra space, change method name, etcJames Mattis2020-12-101-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Minor cleanup as per nit comments on approved CLs in the relation chain. Namely: - removing an extranous space - changing requestsSortedById() to be package private - changing releaseNetworkRequest() name to releaseNetworkRequests() - adding final in a couple spots - added some test requests in testDumpDoesNotCrash() Bug: 173145245 Bug: 173292541 Bug: 173146509 Bug: 171991028 Test: atest FrameworksNetTests Change-Id: I177ec6072a44acd247022b65b56e90cc231094b9
* | | | Merge changes Ie0b32460,I21028457,I82754375 am: 29e5346c24 am: e8c002d842 ↵Lorenzo Colitti2020-12-162-23/+314
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 71f05fff22 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1529778 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2e28cde0569c263c6afe5ad722be4060912eae0e
| * | | Allow ConnectivityServiceTest to change the calling UID.Lorenzo Colitti2020-12-151-3/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow ConnectivityServiceTest to change the UID by replacing static calls to Binder.getCallingUid() with a method that can be mocked. Add registerNetworkCallbackAsUid as an initial way to exercise this, and add some test coverage to the always-on lockdown test to confirm that things are working as expected. Bug: 173331190 Test: new unit tests Change-Id: Ie0b32460e20e5906a0f479191e11a062f21cc608
| * | | Add a test for getDefaultNetworkCapabilitiesForUser.Lorenzo Colitti2020-12-151-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 173331190 Test: test-only change Test: new test passes 100 times in a row Change-Id: I210284578e38cd25b8b95235d3390d5bd66a5a70
| * | | Add tests for always-on VPN lockdown mode.Lorenzo Colitti2020-12-152-18/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This requires mocking lots of new things that weren't mocked before but is otherwise fairly straightforward. A few changes to MockVpn are needed as well: 1. Set the VPN's NetworkInfo to CONNECTED, so methods such as isBlockingUid will work. While I'm at it, set the interface on the LinkProperties as well to make things a bit more realistic. 2. Constructs the VpnConfig when registering the agent, not when the MockVpn is created. This is needed because starting and stopping lockdown VPN calls prepare, which nulls out mConfig. But constructing the VpnConfig when registering the agent is more realistic anyway. The production code does that in establish, but we can't do that in ConnectivityServiceTest because some of the test cases don't call establish and call registerAgent directly. Bug: 173331190 Test: atest FrameworksNetTests Change-Id: I827543751dbf5e626a24ec02cd6f50b423f5f761
* | | | Merge "Generalize support for underlying networks." am: 72c26b883f am: ↵Lorenzo Colitti2020-12-141-11/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6731b9992f am: c211cbf9e1 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513052 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ida4e4d7b6d607d6c9f6efc2d06732f7826f7942e
| * | | Merge "Generalize support for underlying networks."Lorenzo Colitti2020-12-141-11/+13
| |\ \ \
| | * | | Generalize support for underlying networks.Lorenzo Colitti2020-12-131-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, ConnectivityService assumes that only VPNs can have underlying networks. Make the code decide this based only on the return value of NetworkAgentInfo#supportsUnderlyingNetworks. This allows non-VPN network types to support underlying networks in the future. This requires storing the original agent's capabilities in NetworkAgentInfo so that applyUnderlyingCapabilities can mix in the underlying network capabilities without overwriting the capabilities of the network itself. Currently, the only information that applyUnderlyingCapabilities takes from the original agent's capabilities are the metered bit (stored in NetworkAgentInfo#declaredMetered) and the transports (assumed to be exactly {TRANSPORT_VPN}. Store the full capabilities instead. This is more state than needed but it ensures that we do not need to make any changes if in the future we want to propagate new types of information from the underlying networks. This should have no impact on current use cases (i.e., VPNs). There is a change in ordering: in disconnectAndDestroyNetwork, the new code propagates underlying network capabilities before removing the network from LegacyTypeTracker, instead of after. This is done to simplify the new code. When the new code propagates underlying network capabilities in response to a change for a particular network (e.g., connect, disconnect, capabilities change), it only considers networks that have the changed network as underlying. Because determining the underlying networks requires knowing the default network, the new code runs before the default network is changed and LegacyTypeTracker is updated. This shouldn't have app implications because the connectivity broadcasts sent by LegacyTypeTracker and the callbacks cannot be ordered, since they run on separate threads with unpredictable delays. The capability change callbacks resulting from propagation of underlying network capabilities were already sent before the rematch, so the callbacks themselves are not reordered in any way. Bug: 173331190 Test: atest FrameworksNetTests \ CtsNetTestCases:NetworkAgentTest \ CtsNetTestCases:Ikev2VpnTest \ CtsNetTestCases:VpnServiceTest \ CtsNetTestCases:android.net.cts.ConnectivityDiagnosticsManagerTest \ HostsideVpnTests com.android.server.connectivity.VpnTest Change-Id: Ic5353a928a3a3541dcf953c35f47277c5e295db8
* | | | | Merge "Fix a crash in eng builds" am: 0fc25a8693 am: 4fb275ef08 am: ea91bdb31eTreehugger Robot2020-12-141-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1527538 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I6e1c20b4c1004e8205d65f318939ee7d8b006f00
| * | | | Merge "Fix a crash in eng builds"Treehugger Robot2020-12-141-2/+2
| |\ \ \ \
| | * | | | Fix a crash in eng buildsChalard Jean2020-12-131-2/+2
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CAPTIVE_PORTAL is a CS-managed capability, and causes CS to log a wtf. When this test is run on an eng build, this sends SIGSEGV to the test, which is pretty difficult to debug. Test: FrameworksNetTests NetworkStackTests Change-Id: I72fc46a6daa4e886425b4dc967318cca9f1a5302
* | | | | Merge "Resolve UidRange dependency between NMS and CS module" am: c3806f72b7 ↵Chiachang Wang2020-12-142-91/+102
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d7795cd590 am: fced6020f8 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1495869 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I6c3474e6522fc67aec5333b323768692619019ee
| * | | | Merge "Resolve UidRange dependency between NMS and CS module"Chiachang Wang2020-12-142-91/+102
| |\ \ \ \
| | * | | | Resolve UidRange dependency between NMS and CS moduleChiachang Wang2020-12-102-91/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ConnectivityService is going to become a mainline module which cannot access hidden APIs. Thus, replace the VPN uid range controlling APIs from NMS to INetd directly. Bug: 170598012 Test: atest FrameworksNetTests Test: atest HostsideVpnTests Test: manually test to connect to VPN and check the uid range Change-Id: Ie6656ef36f54c2f14d5a2899e763a29b70a30f5d
* | | | | | Merge changes from topic "remove_legacy_NA" am: 362fc1ca1f am: c65281e9c4 ↵Chalard Jean2020-12-111-3/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0e91f659ba Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456097 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: If9cd6ce929a7103d2d6b7195a71ee64ea0a4ee0a
| * | | | | Merge changes from topic "remove_legacy_NA"Chalard Jean2020-12-111-3/+4
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Remove support for legacy network agents Remove deprecated constructors for NetworkAgent Migrate NetworkAgentWrapper to the new NA API Cleanup TestNetworkService
| | * | | | | Migrate NetworkAgentWrapper to the new NA APIChalard Jean2020-12-081-3/+4
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Test: FrameworksNetTests NetworkStackTests Bug: 167544279 Change-Id: I5d53a938572682dea827ea681596226b1e271aa6
* | | | | | Merge "Use getUserHandles() instead of getUsers() to get user id" am: ↵Lucas Lin2020-12-111-5/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6bb994193c am: b35b88df27 am: f8816479a3 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513050 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I7fa8802614bf28453501cdc2bc1989b3531b2280
| * | | | | Merge "Use getUserHandles() instead of getUsers() to get user id"Lucas Lin2020-12-111-5/+4
| |\ \ \ \ \ | | |_|_|_|/ | |/| | | |
| | * | | | Use getUserHandles() instead of getUsers() to get user idlucaslin2020-12-101-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UserManager#getUsers() is a hidden API, use getUserHandles() to get user id instead in PermissionMonitor. Bug: 171529940 Test: atest FrameworksNetTests Change-Id: Ic304627688de8e49505a95ebc99628b2e0eafab9
* | | | | | Merge "Add a mutability flag to the PendingIntent" am: e80c5b3335 am: ↵Treehugger Robot2020-12-111-11/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e533762175 am: c5de5cc502 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1505734 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2d71235f8a61e617f95094da1154342c00e9b8d5
| * | | | | Merge "Add a mutability flag to the PendingIntent"Treehugger Robot2020-12-101-11/+17
| |\ \ \ \ \
| | * | | | | Add a mutability flag to the PendingIntentpaulhu2020-12-101-11/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From S, it's required to specify explicitly either FLAG_MUTABLE or FLAG_IMMUTABLE when creating a PendingIntent. Thus, add a mutability flag to the PendingIntent in ConnectivityServiceTest that doesn't specify it before. Bug: 173157160 Test: atest FrameworksNetTests Change-Id: I755c53b90d709dfbac576dc076722476c3edee35
* | | | | | | Merge "Address leftover comments" am: 1ddb4889b6 am: 5c19cb00cc am: b91a2d415fPaul Hu2020-12-111-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1495899 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I3f46b0c6d5c2dcce540fcb1f9d7f2cc22c934f93
| * | | | | | Merge "Address leftover comments"Paul Hu2020-12-101-0/+1
| |\ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | |
| | * | | | | Address leftover commentspaulhu2020-11-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Address leftover comments on aosp/1458063 and aosp/1470942. Bug: 170593746 Test: atest FrameworksNetTests Change-Id: If23a791731ca2034429a14c869902363dd657248
* | | | | | | Merge "Revert "ConnectivityServiceTest: Mark unaudited PendingIntents with ↵Paul Hu2020-12-101-28/+9
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | FLAG_MUTABLE_UNAUDITED""
| * | | | | | | Revert "ConnectivityServiceTest: Mark unaudited PendingIntents with ↵Remi NGUYEN VAN2020-12-101-28/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FLAG_MUTABLE_UNAUDITED" This reverts commit cf0e36923b2fdbbea26a3c86f3c6134c6cfd696a. Reason for revert: Merge conflicts, should have been merged in AOSP Change-Id: Iee0a3e76c42858bcca45517e3ca02c65bc8eac0c
* | | | | | | | Merge changes I6eb6d92b,I638e29fd,I2348b7a3 am: 435d580374 am: 55477377da ↵Lorenzo Colitti2020-12-101-25/+5
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bea9280e6e Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1521657 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I430d7069e1dfbe89780cb459fff9e1eb63daa349
| * | | | | | | Merge changes I6eb6d92b,I638e29fd,I2348b7a3Lorenzo Colitti2020-12-101-25/+5
| |\ \ \ \ \ \ \ | | |_|_|_|/ / / | |/| | | | | / | | | |_|_|_|/ | | |/| | | | | | | | | | | | | | | | | | * changes: Add a convenience method to update a network's capabilities. Disallow NetworkAgents from changing the owner UID. Observe mOwnerUID in NetworkCapabilities#equals.
| | * | | | | Disallow NetworkAgents from changing the owner UID.Lorenzo Colitti2020-12-091-23/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current behaviour with regards to changing the owner UID is bizarre and arguably incorrect. A NetworkAgent can change the owner to whatever other app it wants, regardless of signatures, at any time. This includes, for example, transferring ownership to another UID and then recovering it. Fortunately no existing NetworkAgent appears to do this: - ClientModeImpl sets it to the UID of the app that created the configuration. It doesn't look like it can change while the network is connected. - Vpn sets it to the UID of the VPN owner. That also can't change. - Telephony does not appear to set it at all, it only sets the administrator UIDs (and updates them whenever it gets EVENT_CARRIER_PRIVILEGED_UIDS_CHANGED). Disallow this now before code is written that depends on it. Bug: 175188445 Test: modified tests in ConnectivityServiceTest Change-Id: I638e29fda2481ec3bf4fff562ea66a73322881df
| | * | | | | Observe mOwnerUID in NetworkCapabilities#equals.Lorenzo Colitti2020-12-091-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, NetworkCapabilities's equals and hashCode methods ignore mOwnerUID. This is confusing because it is inconsistent with pretty much every other member of this class. Bug: 175188445 Test: atest CtsNetTestCases:NetworkAgentTest \ CtsNetTestCases:Ikev2VpnTest \ CtsNetTestCases:VpnServiceTest HostsideVpnTests \ CtsNetTestCases:android.net.cts.ConnectivityDiagnosticsManagerTest \ ConnectivityServiceTest com.android.server.connectivity.VpnTest Change-Id: I2348b7a35f32a931687f2d3c2fa57620a12fe06f
* | | | | | | Merge "[Mainline Migration] Migrate NetworkUtils" am: a086c295e7 am: ↵Serik Beketayev2020-12-102-4/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c6218f7977 am: 006d043dfe Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1498168 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Id0749108e03d88af0b8c50a36f1a4ca28b9a40ce
| * | | | | | Merge "[Mainline Migration] Migrate NetworkUtils"Serik Beketayev2020-12-092-4/+3
| |\ \ \ \ \ \
| | * | | | | | [Mainline Migration] Migrate NetworkUtilsSerik Beketayev2020-12-062-4/+3
| | | |_|_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Migrating makeStrings(), numericToInetAddress() APIs Bug: 173089079 Test: atest FrameworksNetTests Change-Id: Ie914fd41bc3ce16d07f5d2768b89ce805b9245a9
* | | | | | | Merge "Test for the current behaviour of updating a network's owner UID." ↵Lorenzo Colitti2020-12-081-0/+51
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e581224c6a am: 183d991f55 am: 447acdf2c8 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1512690 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ic97c893a17dcf7ce18fe31ff05828d4fe9a5e929
| * | | | | | Merge "Test for the current behaviour of updating a network's owner UID."Lorenzo Colitti2020-12-081-0/+51
| |\ \ \ \ \ \ | | |/ / / / / | |/| / / / / | | |/ / / /
| | * | | | Test for the current behaviour of updating a network's owner UID.Lorenzo Colitti2020-12-081-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current behaviour is at least bizarre and arguably incorrect. Add a test to document the current behaviour so we can check that any changes we make to this behaviour are correct. Test: test-only change Change-Id: I345bd320eced96316d92e520f576ae06b8020d9f
* | | | | | Merge "ConnectivityServiceTest: Mark unaudited PendingIntents with ↵Ashwini Oruganti2020-12-071-9/+28
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | FLAG_MUTABLE_UNAUDITED"
| * | | | | ConnectivityServiceTest: Mark unaudited PendingIntents with ↵Ashwini Oruganti2020-11-231-9/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FLAG_MUTABLE_UNAUDITED These PIs need an explicit mutability flag. This temporay flag is being used to mark these points in code and should be replaced ASAP. See go/immutable-pendingintents for more context. Bug: 160794467 Test: TH Exempt-From-Owner-Approval: noop change Change-Id: I963d0d737ecbd8ad07577f2fe93ba178419e7a5e
* | | | | | Merge changes from topic "restricted-networking-mode" am: 176ba02184 am: ↵Patrick Rohr2020-12-031-1/+8
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3148f011e0 am: 09f21a03a2 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1505234 Change-Id: Ia175efd2e152ea4b04feddf3bdc159adca2edab5