android_packages_modules_Co.../tests/unit/java/android/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
lesl 70d9ccdc9b Add metered filter for API: buildTemplateCarrier
This CL modifies NetworkTemplate#buildTemplateCarrier to force on
metered carrier network and rename to buildTemplateCarrierMetered.
This method was introduced recently and has no callers.

This method will be used in Settings and NetworkPolicyManagerService
to display and manage data usage on carrier metered networks.

Settings/NetworkPolicyManagerService will use it instead of the existing
method buildTemplateMobileAll method, which only matches metered networks.
That code will change from matching metered mobile networks to matching
metered carrier networks.

Note: The carrier metered network includes metered mobile network and
metered "merged carrier wifi network" that is a specific cerrier wifi network
which provides the same user experience as mobile.

Bug: 176396812
Test: atest -c NetworkTemplateTest
Change-Id: I7196d62bb60844458a6c4b1d94e2baccb71e15cd
2021-05-14 11:04:17 +08:00
..
ipmemorystore Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
nsd Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
util Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
ConnectivityDiagnosticsManagerTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
ConnectivityManagerTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
Ikev2VpnProfileTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
IpMemoryStoreTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
IpSecAlgorithmTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
IpSecConfigTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
IpSecManagerTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
IpSecTransformTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
KeepalivePacketDataUtilTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
MacAddressTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
NetworkIdentityTest.kt Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
NetworkStatsHistoryTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
NetworkStatsTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
NetworkTemplateTest.kt Add metered filter for API: buildTemplateCarrier 2021-05-14 11:04:17 +08:00
NetworkUtilsTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
QosSocketFilterTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
TelephonyNetworkSpecifierTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
VpnManagerTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
VpnTransportInfoTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00