summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-06[SP26.1] Add assert function for parceling NetworkStatsJunyu Lai
In ParcelUtils there are methods that help to verify parceling correctness. However, they can only be applied to objects which implement equals. For NetworkStats, equals are not overrided due to performace might be impacted if everyone use it. Hence specfic function to verify parceling correectness is needed. Test: atest NetworkStatsApiTest NetworkStackTests Bug: 150644692 Change-Id: I48aa73117bc7db981ffaef5365f96e46d431bd6e Merged-In: I48aa73117bc7db981ffaef5365f96e46d431bd6e
2020-04-04[automerger skipped] Import translations. DO NOT MERGE am: 74d48f7229 -s ↵Bill Yi
ours am: 989f54651a -s ours am skip reason: subject contains skip directive Change-Id: I8ba45602385030f6faa0e9947915b069c0f108c0
2020-04-04[automerger skipped] Import translations. DO NOT MERGE am: 74d48f7229 -s oursBill Yi
am skip reason: subject contains skip directive Change-Id: I787e19ca5cbbe412c425b059a262e3ed7fba2625
2020-04-04Import translations. DO NOT MERGEBill Yi
Auto-generated-cl: translation import Change-Id: I73c07a842c533f0386eb26f49ddddaf167b4162b
2020-04-03Merge "Update NetworkStack version check in NetworkMonitor." into rvc-dev ↵Cody Kesting
am: 7071551a70 am: 8de732907c Change-Id: I8186ce8a12c4fc16edf0a925f08f02b80479126a
2020-04-03Merge "Update NetworkStack version check in NetworkMonitor." into rvc-dev ↵Cody Kesting
am: 7071551a70 Change-Id: I42f94bd2c838e2c5c73c23b3af9604d798cf9a14
2020-04-03Merge "Update NetworkStack version check in NetworkMonitor." into rvc-devCody Kesting
2020-04-03Merge "Add new method to update Layer2 information when L2 roaming happens." ↵Xiao Ma
into rvc-dev am: 7d3fbd8b33 am: 21db0d49d7 Change-Id: I1bc8ca540b080c2003f8736274ad8da2a0020d03
2020-04-03Merge "Add new method to update Layer2 information when L2 roaming happens." ↵Xiao Ma
into rvc-dev am: 7d3fbd8b33 Change-Id: Idc6c990878bc7c50b2a524346e89dc37fddb24c5
2020-04-03Merge "Add new method to update Layer2 information when L2 roaming happens." ↵Xiao Ma
into rvc-dev
2020-04-03Merge "Getting interface params in ClearingIpAddressState#enter." into ↵TreeHugger Robot
rvc-dev am: 87f896aa4b am: 01e7fee5cd Change-Id: Ie677a988370f32d56dc18d54947a3064f68fd150
2020-04-03Merge "Add ignore class parameters to DevSdkIgnoreRule" into rvc-dev am: ↵Remi NGUYEN VAN
24f8cd78e0 am: 68ca1f048f Change-Id: I2c2e750e9a296e80dd649177f4fe8ff636eebb5f
2020-04-03Merge "Getting interface params in ClearingIpAddressState#enter." into ↵TreeHugger Robot
rvc-dev am: 87f896aa4b Change-Id: I16bce6a61dae23e67c556562d67de1ba14f4a4dc
2020-04-03Merge "Add ignore class parameters to DevSdkIgnoreRule" into rvc-dev am: ↵Remi NGUYEN VAN
24f8cd78e0 Change-Id: I723d367dc4bfbcb4e4040921014955cf907004b6
2020-04-03Merge "Getting interface params in ClearingIpAddressState#enter." into rvc-devTreeHugger Robot
2020-04-03Merge "Add ignore class parameters to DevSdkIgnoreRule" into rvc-devRemi NGUYEN VAN
2020-04-03Test that DhcpClient sets the server address in LinkProperties. am: ↵Lorenzo Colitti
b5bc4f9244 am: 0888c179d3 Change-Id: I4863c889ede54e96034277025d04ae97e243fbc2
2020-04-03Test that DhcpClient sets the server address in LinkProperties. am: b5bc4f9244Lorenzo Colitti
Change-Id: Ic50a7d6034c4b05fd84505fee963b175a6c65318
2020-04-03Test that DhcpClient sets the server address in LinkProperties.Lorenzo Colitti
This test should only run on R and above because the DHCP server was added to LinkProperties in R. Bug: 134098566 Test: test-only change Merged-In: Ic99c913f34ecfaca0645c56478d7de75eb176da1 Change-Id: I1162d9d9fd47ffe6d48e962ee7d3b7dbcba93767
2020-04-03Getting interface params in ClearingIpAddressState#enter.Xiao Ma
In case of wifi might stop IpClient and then restart prov immediately to avoid wifi disconnection especially when roaming happens, this might cause getting interface params with incorrect interface mtu when starting provisioning again before interface mtu hasn't been restored. Moving getting interface params to ClearingIpAddressState#enter ensures that interface parameters are fetched on the handler thread so they are properly ordered with other events, such as restoring the interface MTU on teardown. Bug: 152169857 Test: atest NetworkStackIntegrationTests NetworkStackTests Merged-In: Ifd06b8d18ce570b1aa424ad215111c80f094ca97 (cherry picked from commit a6aba532103a3258d09e6931106d6fb05368c130) Change-Id: I0c8c1ed1646ab12bc30da2b7f8e5819d2d9495ba
2020-04-02Add new method to update Layer2 information when L2 roaming happens.Xiao Ma
This change adds an new method updateLayer2Information in IIpClient.aidl to update layer2 info (e.g. bssid, l2key and grouphint) to detect whether L2 roaming happens or not. Bug: 131797393 Test: atest NetworkStackTests FrameworksNetTests Merged-In: I85eabccb6f5d5f322c8e3df556ceef6647616f5a (cherry picked from commit 3168e392320087c51a677b4d14e783c853ac652d) Change-Id: Ife93fd162803ae89fa85905b45a4bb1cfb5e7e43
2020-04-02Add ignore class parameters to DevSdkIgnoreRuleRemi NGUYEN VAN
The parameters are useful to avoid annotating every method in a class with @IgnoreAfter / @IgnoreUpTo. Test: Tests using this class Bug: 150918852 Merged-In: Ic17e7a253c7f3a86011298e177e76b53c966a47b Change-Id: Ic17e7a253c7f3a86011298e177e76b53c966a47b
2020-04-01Correct tests for verifying data stall metrics am: 9b105a99a3 am: 95d0632b07Chiachang Wang
Change-Id: If2ec8c20725150616338f29b55c2e5987e378070
2020-04-01Correct tests for verifying data stall metrics am: 9b105a99a3Chiachang Wang
Change-Id: I6317d8a997abf3148915d209e3df0854e5f83f60
2020-04-01[MP02] Make multiple probe url configration overlayableChiachang Wang
Bug: 139034276 Test: atest NetworkStackTests NetworkStackNextTests Merged-In: Ifdf54ace6dcc05efc14c182018848880cfb0a00f Change-Id: Ifdf54ace6dcc05efc14c182018848880cfb0a00f
2020-04-01Update NetworkStack version check in NetworkMonitor.Cody Kesting
NetworkMonitor calls INetworkMonitorCallbacks#notifyNetworkTested when network validation is complete. NetworkMonitor will transition to using to NetworkStack Stable AIDL version 6. However, the current version check changes behavior for version 5, which is incorrect. Bug: 152931568 Test: atest NetworkStackTests Change-Id: Ib88b8b0c0b23079287e72e50cbe840fa8c642047 Merged-In: Ib88b8b0c0b23079287e72e50cbe840fa8c642047 (cherry picked from commit 82808cb4eb433d861536199adc7bdaecd614e37d)
2020-04-01[MP01] Add configuration to support multiple probesChiachang Wang
Add configuration to allow configuring multiple probe. Bug: 139034276 Test: atest NetworkStackTests NetworkStackNextTests Merged-In: Ib2c1d16d2088ef043cdc6f9cb323a9df552beefb Change-Id: Ib2c1d16d2088ef043cdc6f9cb323a9df552beefb
2020-04-01Correct tests for verifying data stall metricsChiachang Wang
NetworkMonitor sends data stall metrics data via static method. The DataStallStatsUtils object from its constructor is never used. Tests in NetworkMonitorTest that verify the interaction with the mock object are incorrect. Bug: 152374582 Test: atest NetworkStackTests NetworkStackNextTests Merged-In: I308344a80deef6aaf3ed4fb57723f2f210b30483 Change-Id: I308344a80deef6aaf3ed4fb57723f2f210b30483
2020-03-31[automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-dev ↵TreeHugger Robot
am: 014f79a870 -s ours am: d3368e7eea -s ours am skip reason: subject contains skip directive Change-Id: I79e2c6c9bfcf356ad4e2837103c864180d8a3f57
2020-03-31[automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-dev ↵TreeHugger Robot
am: 014f79a870 -s ours am skip reason: subject contains skip directive Change-Id: I45f1d048528cbf11e71f5d75345cd4911d6c5738
2020-03-31Merge "Import translations. DO NOT MERGE" into rvc-devTreeHugger Robot
2020-03-31[automerger skipped] Import translations. DO NOT MERGE am: 62788578c9 -s ↵Bill Yi
ours am: ea58d46b23 -s ours am skip reason: subject contains skip directive Change-Id: Ifb5c15c9d45342b47091ecc7419a5bf2dfacdfe2
2020-03-31[automerger skipped] Import translations. DO NOT MERGE am: 62788578c9 -s oursBill Yi
am skip reason: subject contains skip directive Change-Id: I6a9785429283d6b8d010cb50a29ed96c79a6fdaa
2020-03-31Import translations. DO NOT MERGEBill Yi
Auto-generated-cl: translation import Change-Id: I3ab73cbb146ceb6d6c44cd055179d1a363e0a661
2020-03-31Import translations. DO NOT MERGEBill Yi
Auto-generated-cl: translation import Change-Id: Ib273031cc7620ed779b761c84f4890bdd6f14979
2020-03-26Add TestNetworkTracker to test utils. am: bc5ce1bfc8 am: 5e33a41cb3Remi NGUYEN VAN
Change-Id: Ia6302bfd97f2cef1c97bf7c5e764f9645a6a90d8
2020-03-26Add TestNetworkTracker to test utils. am: bc5ce1bfc8Remi NGUYEN VAN
Change-Id: I621534c7c541f324be5a95c575b977a0aed07a09
2020-03-26Add TestNetworkTracker to test utils.Remi NGUYEN VAN
The tracker allows easily creating valid Network objects that are based on test (TUN) interfaces. It is taken from GTS NetworkStack test code and adapted to Kotlin. Test: tests based on this class (e.g. CaptivePortalLoginTests) Bug: 131401028 Merged-In: I6f8d1e36670c46ebcbca01e0a64ce579bcdcc1f9 Change-Id: I6f8d1e36670c46ebcbca01e0a64ce579bcdcc1f9
2020-03-26Merge "Make all DHCP option numbers public." into rvc-dev am: 01673425dd am: ↵Remi NGUYEN VAN
9a8cf456be Change-Id: I8801881f5a224d58950d481f8497584739b61b36
2020-03-26Move TapPacketReader into its own utility class. am: 3e814f7938 am: 86927ac51fAutomerger Merge Worker
Change-Id: I4b5bb16a8a3d41073962cd0604546ce1d691cac8
2020-03-26Merge "Make all DHCP option numbers public." into rvc-dev am: 01673425ddRemi NGUYEN VAN
Change-Id: Ifadc8578df24a7526c0f1d053f2460660b2e2a71
2020-03-26Move TapPacketReader into its own utility class. am: 3e814f7938Automerger Merge Worker
Change-Id: Ia3ae09b243f0e4006301369f6d87007da61549f9
2020-03-26Merge "Make all DHCP option numbers public." into rvc-devRemi NGUYEN VAN
2020-03-25Make all DHCP option numbers public.Automerger Merge Worker
This allows tests that emulate DHCP clients to include options. The values are specified by the RFC and cannot change, so there is no downside to making them public. Test: builds Bug: 150644681 Change-Id: I939bfac5ec14175b74ce3713f5af1362de577839 Merged-In: I939bfac5ec14175b74ce3713f5af1362de577839 (cherry picked from commit f75cd4768124c20c9eda14e21368f83c4963a260)
2020-03-25Move TapPacketReader into its own utility class.Automerger Merge Worker
This class is generally useful for tests that manipulate packets using a TestNetworkInterface. It will be used in upcoming tethering tests. Also make it take a FileDescriptor instead of a ParcelFileDescriptor, since that is more generally more useful. As part of this change, create a filegroup of files that the test utilities can depend on. Bug: 150644681 Test: atest NetworkStackIntegrationTests:IpClientIntegrationTest Change-Id: I73e9c1919956aa665a8cccec11d3444e486426ec Merged-In: I73e9c1919956aa665a8cccec11d3444e486426ec (cherry picked from commit f5e20cdc22dd017adec10efff5346ddf67628230)
2020-03-25Merge "Add test to verify make urls configuration" into rvc-dev am: ↵Chiachang Wang
858f64b4d7 am: bbb9ea20e1 Change-Id: Ic4125fe232bdec1064e897a093553bef642659b4
2020-03-25Merge "Add test to verify make urls configuration" into rvc-dev am: 858f64b4d7Chiachang Wang
Change-Id: I7162856039e709e3772690be5f97f50210b67573
2020-03-25Merge "Add test to verify make urls configuration" into rvc-devChiachang Wang
2020-03-24[automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-dev ↵TreeHugger Robot
am: 3a8d2298f4 -s ours am: 62a0cd08dc -s ours am skip reason: subject contains skip directive Change-Id: Id79b973c9bad5d71f1bc7fb90d62d0de2438d9c4
2020-03-24[automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-dev ↵TreeHugger Robot
am: 3a8d2298f4 -s ours am skip reason: subject contains skip directive Change-Id: I3ada7ca143664935ec73cbeec0c13bf8bd5d0a21