- Jan 18, 2022
-
-
Remi NGUYEN VAN authored
Tests in tests/common and tests/cts are run as part of CtsNetTestCases. Many used assertFieldCountEquals in parceling/unparceling tests to ensure that unexpected fields were not added, or that they were not missed when testing parceling/unparceling. However with many of the classes updatable through module updates, the field count may change in the future, breaking CTS tests. Stop checking for the field count, as it would break on module releases, and its value is lower than the maintenance cost. Bug: 205901761 Test: atest CtsNetTestCases Change-Id: I79854741f7e834574d4825bb737ef507785310fe
-
- Jan 06, 2022
- Jan 05, 2022
-
-
James Mattis authored
Update to ConnectivityService to use permission utils to validate the existence of a system feature. Bug: 210485380 Test: atest FrameworksNetTests: com.android.server.ConnectivityServiceTest Change-Id: Ia537cc5b37ef8d80f49f1a83ba572b3b8a9f6874
-
Treehugger Robot authored
-
Junyu Lai authored
Replace intent receiver with callback listener. Test: atest com.android.server.net.NetworkStatsServiceTest Bug: 204830222 Change-Id: I07ef87b08b5d177719a82f79a2866d72b003fb5a
-
Junyu Lai authored
Test: atest com.android.server.net.NetworkStatsSubscriptionsMonitorTest Bug: 204830222 Change-Id: I53cdf9a83a38ea6921bff02be48bc14a4012ba36
-
Junyu Lai authored
This change pass INetd to NetworkStatsFactory to replace NetdService#getNetdInstance. Test: atest FrameworksNetTests Bug: 204830222 Change-Id: I0756188adb394fa5343c8d2ae354567df63acf21
-
- Jan 04, 2022
-
-
lucaslin authored
Add a test to check if onCapabilitiesChanged will be called when the underlying networks are changed. Bug: 191918368 Test: atest CtsHostsideNetworkTests:HostsideVpnTests Change-Id: I8dfb16e01199d41b1b65f69e129ec40e37f9ab0f
-
- Jan 03, 2022
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Les Lee authored
-
Hungming Chen authored
This is a preparation for testing IPv4 BPF offload. - Add an ARP responder. - Add a basic UDP forwarding test. Test: atest EthernetTetheringTest Change-Id: I720a5a2c4b97493eb6a5570cecd73dfc1eabf5cd
-
Les Lee authored
1. Used SSID to be a wifi network identity can't separate wifi data usage when there are two different network with same SSID. Use a new usage key from in WifiInfo to replace wifi SSID to solve this issue. 2. To support to query wifi usage per configured Wifi network. Adding matchWifiNetworkKeys in NetworkTemplate to support querying multi networkKeys wifi data usage since each configured Wifi network configuration might be used to connect different Wifi network. a. Replaced wording SSID with key of the wifi network b. Add mock to handle get wifi network key from WifiInfo c. Add null/empty set unit test to verify matchWifiNetworkKeys Bug: 197520752 Bug: 126299427 Test: atest -c NetworkTemplateTest Test: atest -c NetworkStatsServiceTest Test: atest -c NetworkPolicyManagerServiceTest Change-Id: Id7d66f6548dd1b4e657db8d7427213293618b406
-
- Dec 30, 2021
-
-
Treehugger Robot authored
-
- Dec 29, 2021
-
-
Maciej Żenczykowski authored
Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I5db6285add895edf9354e98d9dffc8343ee4b259
-
- Dec 28, 2021
-
-
Junyu Lai authored
Replaced by public interface. Test: TH Bug: 204830222 Change-Id: I1071bcaa74429885165d9dc8d1b02a1c1c48c685
-
Junyu Lai authored
Check NetworkStack permission instead. Test: NetworkStatsAccessTest Bug: 20483022 Change-Id: Ie345cfa7dec8e001246efec8a27a1dc67a5c989c
-
Chiachang Wang authored
-
Chiachang Wang authored
-
Chiachang Wang authored
Add API to allow network agent to set whether the local traffic is excluded from the network. This commit is nonfunctional currently but only storing the boolean inside the NAI. Bug: 184750836 Test: atest FrameworksNetTests Change-Id: I3799216ac8fdf22eb4bcabc6c6136d8edbf69360
-
- Dec 27, 2021
-
-
Treehugger Robot authored
-
Chiachang Wang authored
This test was temporarily disabled because prebuilt module is not updated in the branch. Now the prebuilt was S already, so add the test back to test to ensure the coverage. Test: atest FrameworksNetTests CtsNetTestCases Bug: 189074532 Change-Id: I510f457d2869c2904404fe7ef55828e84636e4c5
-
Chiachang Wang authored
-
- Dec 23, 2021
-
-
Treehugger Robot authored
-
Maciej Żenczykowski authored
-
Sooraj Sasindran authored
Add enterpriseSpecifier to network capability Bug: 194332512 CTS-Coverage-Bug: 211133973 Test: CTS and unit test. Change-Id: If16c8e17cee71cc6788c43a8818bcca68a00bf99
-
Taras Antoshchuk authored
-
Taras Antoshchuk authored
-
markchien authored
This is the preparing CL for connectivity module to use bpf. Bug: 179733303 Bug: 205088391 Test: atest ConnectivityCoverageTests Change-Id: Ibe49d7f671b5050461e2c63c080d9457ad76c26c
-
Treehugger Robot authored
-
Junyu Lai authored
-
- Dec 22, 2021
-
-
Frank Li authored
-
Treehugger Robot authored
-
Chiachang Wang authored
Address TODO since 31 is available now Test: atest ConnectivityCoverageTests Change-Id: I40618bd4a3d8b314bf0ed7c75cd15f48439c5520
-
Junyu Lai authored
Subscriber Id Match Rules won't be exposed as system Api. Any caller who references NetworkTemplate#SUBSCRIBER_ID_MATCH_RULE_* should use the one in NetworkStatsUtils instead. And remove the need of the constants as soon as possible. Test: atest NetworkPolicyManagerServiceTest \ FrameworksNetTests Bug: 204830222 Change-Id: I363a4440f85f1ca818eaf1125e45b141dd6f0e55
-
Chiachang Wang authored
testRegisterCallbackWithCarrierPrivileges was marked as SkipPresubmit. The bug is expected to be fixed, so add the test back into presubmit. Test: atest android.net.cts.ConnectivityDiagnosticsManagerTest Bug: 159718782 Change-Id: Ic7dc050de0d9f03f0e157927928b4c45f76fe2d7
-
- Dec 21, 2021
-
-
Jack Yu authored
Added NET_CAPABILITY_MMTEL to indicate a network support MMTEL (Multimedia telephony). This is for IMS service to request an IMS network that supports voice or PS (VoPS for 4G, VoNR for 5G). This was previously submitted as aosp/1927841, but which got reverted due to breaking the mainline build, which uses the pre-built module. Bug: 210774375 Test: atest ConnectivityServiceTest Change-Id: If8b691ff4999a4dbf54e7567d9ca74d743dc5ded
-
lifr authored
NetworkStatsAccess is using DevicePolicyManagerInternal APIs, which cannot be accessed after moving into the mainline module. So, replace and remove those hidden API usages. Bug: 207100745 Test: atest NetworkStatsAccessTest Change-Id: I0430ed2c47e5a695206cb660e3971ddab6c467dd
-
Treehugger Robot authored
-