markchien
48e271bdcb
Add TetheredInterface{Request, Callback} interface
...
Define interfaces that match the signature of the existing
EthernetManager.TetheredInterfaceRequest and TetheredInterfaceCallback
classes and make EthernetManager.TetheredInterfaceRequest and
TetheredInterfaceCallback implement/subinterface these interfaces. The
new bluetooth API could also implement these interfaces to make API surface
consistent.
Test: TH would test the existing tests that use the subclass.
Bug: 190438212
Change-Id: I093972c111cb1d921076782492716d5a046be8fc
2021-11-08 16:44:34 +08:00
Mark Chien
ab61c4e42f
Merge "Separate tethering build target to Tethering and TetheringNext" am: 7509c7a67e
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1870417
Change-Id: I4ba4f4ac5fe1dbce46a78b11063cbc9e6a664aa0
2021-11-08 07:44:33 +00:00
Mark Chien
7509c7a67e
Merge "Separate tethering build target to Tethering and TetheringNext"
2021-11-08 07:29:55 +00:00
Treehugger Robot
db33b9ea65
Merge "Include the failing stats in stats failure assertions." am: 27979bd116
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1883772
Change-Id: I05c36d9718a07041224dded9e32c755321760acd
2021-11-08 06:34:52 +00:00
Treehugger Robot
27979bd116
Merge "Include the failing stats in stats failure assertions."
2021-11-08 06:20:39 +00:00
Lorenzo Colitti
5156e787f3
Include the failing stats in stats failure assertions.
...
Currently debugging IpSecManagerTest counter test failures is
difficult because the assertion message does not say how many
bytes/packets were expected.
Add this information to the assertion message.
Bug: 204860049
Test: test-only change
Change-Id: I4e12be9a58a688fcee3362dceb31d9f21e981d6c
2021-11-08 13:25:45 +09:00
Les Lee
663dfcaec0
Merge "Add test case to test normalize" am: b5ee639fe0
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1881008
Change-Id: Ia6e200fe5543425d8f56d212826ae01ade01fe1e
2021-11-06 01:11:32 +00:00
Les Lee
b5ee639fe0
Merge "Add test case to test normalize"
2021-11-06 00:54:14 +00:00
Treehugger Robot
e90ceefb34
Merge "Add IFF_MULTICAST to test interfaces" am: aa5532cb6f
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1856105
Change-Id: Ia2e1ab3bfd205ab758d0c2ce075e6a202be2609c
2021-11-05 20:18:07 +00:00
Treehugger Robot
aa5532cb6f
Merge "Add IFF_MULTICAST to test interfaces"
2021-11-05 20:01:41 +00:00
Les Lee
5299a2b307
Add test case to test normalize
...
Bug: 194939211
Test: atest -c NetworkTemplateTest
Change-Id: I2f5790b9217357ddcf3f466cec1b2b1afbb47210
2021-11-05 16:59:10 +08:00
Remi NGUYEN VAN
6fc44359eb
Add IFF_MULTICAST to test interfaces
...
This allows using test interfaces for multicast scenarios, such as
testing mDNS behavior.
Test: atest CtsNetTestCases
Change-Id: Ib5d8a997176f910d499021fdcd12c361aff1233d
2021-11-05 17:15:20 +09:00
Remi NGUYEN VAN
e453beefc5
Merge "Use ConnectivityCheckTargetPreparer in CTS" am: defc74fb2f
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1844185
Change-Id: If029b7cb4c7486673c6808f1b6d8a15b67ea0e04
2021-11-05 04:44:35 +00:00
Remi NGUYEN VAN
defc74fb2f
Merge "Use ConnectivityCheckTargetPreparer in CTS"
2021-11-05 04:27:47 +00:00
Maciej Żenczykowski
f1dfa0e50b
Merge "Fix TetheringPrivilegedTests crash" am: 4e141d9514
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1879622
Change-Id: Ia7dfa9f1acfdd6e6a73dd4414242f5477970b3b1
2021-11-04 10:55:51 +00:00
Maciej Żenczykowski
4e141d9514
Merge "Fix TetheringPrivilegedTests crash"
2021-11-04 10:37:04 +00:00
markchien
5a8c806e55
Separate tethering build target to Tethering and TetheringNext
...
To avoid much code diverge between aosp and its downstream, we need to
separate the build target which build with latest stable sdk in release
branch and build with unfreeze sdk in dev branch. So we could use new
API with APIshim in dev branch without impacting release branch.
BYPASS_INCLUSIVE_LANGUAGE_REASON=the wording is the file name of
existing file.
Bug: 204265450
Test: m
Change-Id: I949fd83b1eed7461e0b381193b190cf15080bc1b
2021-11-04 08:53:12 +00:00
markchien
45dc794fb4
Fix TetheringPrivilegedTests crash
...
After separat BpfMap to a library, its package name is jarjar to
com.android.network.stack.util*. Also jarjar BpfMap of
TetheringPrivilegedTests to fix crash in jni registered.
Bug: 179733303
Test: atest TetheringPrivilegedTests
Change-Id: Ia9bc819a44fe26bf2ff7a46351ea60f2eeb02933
2021-11-04 16:40:18 +08:00
Remi NGUYEN VAN
ead12ae16a
Merge "Move fromStableParcelable to KeepaliveController" am: 1d1b1fe999
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1876687
Change-Id: I64a68e527701920a5956fbb51001c42b938159cb
2021-11-04 06:31:02 +00:00
Remi NGUYEN VAN
1d1b1fe999
Merge "Move fromStableParcelable to KeepaliveController"
2021-11-04 06:19:17 +00:00
Maciej Żenczykowski
97ae1b7dd6
Merge "bpfmap: Move to Common Location" am: bb4c6073ec
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1863313
Change-Id: I41e514bc96ddce755e068e921ebe3a14186da8c8
2021-11-04 02:02:54 +00:00
Maciej Żenczykowski
bb4c6073ec
Merge "bpfmap: Move to Common Location"
2021-11-04 01:50:15 +00:00
Treehugger Robot
d2fc9c0c2e
Merge "Add permission update logs" am: f475961aca
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1870419
Change-Id: I4a18e53437973e4d2545a31e7657b885f75b3aa2
2021-11-02 02:44:36 +00:00
Treehugger Robot
f475961aca
Merge "Add permission update logs"
2021-11-02 02:27:56 +00:00
Kimberly Kreider
57699090be
Merge "Replace "mts" with "mts-tethering"." am: 200e42063c
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1864894
Change-Id: I86bfa59c32e41526ab05580d425e7dad7a4f7dd1
2021-11-02 00:06:06 +00:00
Kimberly Kreider
200e42063c
Merge "Replace "mts" with "mts-tethering"."
2021-11-01 23:43:53 +00:00
Treehugger Robot
f4016713ae
Merge "Shorten a timeout" am: a200fe8c1c
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1877219
Change-Id: I10b9f07a30bd017904e4c8c6bc9c38aa49f9c1b1
2021-11-01 12:31:49 +00:00
Treehugger Robot
a200fe8c1c
Merge "Shorten a timeout"
2021-11-01 12:19:28 +00:00
Chalard Jean
0aa49aa970
Merge "Replace mDeps with a custom object" am: 31ac212428
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1868567
Change-Id: I3aaea000117e45aa9ff12b408231eae6c52a93cd
2021-11-01 10:43:44 +00:00
Chalard Jean
31ac212428
Merge "Replace mDeps with a custom object"
2021-11-01 10:31:53 +00:00
Chalard Jean
f63e4597a3
Shorten a timeout
...
This timeout is not very useful but will be incurred every
time
Test: ConnectivityServiceTest
Change-Id: Ia7c76c7c7a148f14844d098be267e16c215776f5
2021-11-01 19:30:10 +09:00
Lucas Lin
3e7abf056d
Merge "Add tests for testing if [start|finish]Op is called or not" am: 5bf4cd9a73
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1853600
Change-Id: Ifa83aca8d550948efd5e4795ca838580b1f9b8b3
2021-11-01 08:46:44 +00:00
paulhu
819e8625e6
Add permission update logs
...
Save permission update result when package added /
package removed / setting changed.
Log:
Permission Monitor:
Interface filtering rules:
Update log:
2021-10-27T11:04:23.472 - Package remove: name=com.vzw.apnlib, uid=10001, nPerm=(NONE/NONE), tPerm=UNINSTALLED
2021-10-27T11:03:38.307 - Setting change: update={}, remove={10001=1}
2021-10-27T11:02:22.589 - Setting change: update={10001=2}, remove={}
2021-10-27T11:01:08.615 - Package add: name=com.vzw.apnlib, uid=10001, nPerm=(NONE/NONE), tPerm=NONE
Bug: 204260474
Test: build / flash / adb shell dumpsys connectivity
Change-Id: I889a8f2c82751f227655b39a4281a6f044508a86
2021-11-01 16:35:06 +08:00
Lucas Lin
5bf4cd9a73
Merge "Add tests for testing if [start|finish]Op is called or not"
2021-11-01 08:33:36 +00:00
Mark Chien
67a3201eb7
Merge "Log received wifiP2p intent into dumpsys for debugging" am: 3a5c822ec1
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1873891
Change-Id: Icfda99fdbd0544b64733b2865163ce5af86f097f
2021-11-01 08:20:54 +00:00
Mark Chien
3a5c822ec1
Merge "Log received wifiP2p intent into dumpsys for debugging"
2021-11-01 08:04:55 +00:00
Chalard Jean
21f4f70d46
Replace mDeps with a custom object
...
Mockito's mocks are not thread-safe. The dependencies object
is used both on the test thread (to set it up) and in the CS
handler thread. This can't work with a mock.
Bug: 195626111
Test: ConnectivityServiceTest
Change-Id: Ia989dd71c3133513a90bc1d1957419fb1b74c300
2021-11-01 16:30:56 +09:00
Remi NGUYEN VAN
5d99aa78f7
Move fromStableParcelable to KeepaliveController
...
TcpKeepaliveController is the only user of
KeepalivePacketDataUtil.fromStableParcelable. Because of
fromStableParcelable, networkstack-client needs to depend on
net-utils-framework-commonm, which pulls a lot of unnecessary classes.
This is particularly problematic considering that networkstack-client
may need to be redistributed as a prebuilt.
Move the method to TcpKeepaliveController, simplifying dependencies.
This also shows that fromStableParcelable could be removed altogether
(or moved to tests) if TcpKeepaliveController built a
TcpKeepalivePacketData class directly.
Test: atest ConnectivityCoverageTests
Change-Id: I554318f6bcd07c73d153598a0231e9fcaf912e90
2021-11-01 13:23:27 +09:00
Tyler Wear
e8043ca762
bpfmap: Move to Common Location
...
Move bpfmap to frameworks/libs/net/common/native.
Bug: 179733303
Change-Id: Id08b216ec6a64968d66d7990f91ea7ce222a1154
2021-10-29 09:05:33 -07:00
Chalard Jean
d988d2c778
Move to f/l/n instead of RouteUtils am: adcec9ebbe
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1873892
Change-Id: I79801cb08d450eb671af7dc269a0476180c0deaa
2021-10-29 12:00:56 +00:00
Chalard Jean
adcec9ebbe
Move to f/l/n instead of RouteUtils
...
Test: TetheringTests
Change-Id: I35b36538463a7fc2f02e142719c898d1694b2d6b
2021-10-29 16:05:46 +09:00
markchien
eb8599c4e3
Log received wifiP2p intent into dumpsys for debugging
...
Bug: 201480425
Test: m
Change-Id: I527c894eff3c068080995333ab8b372ab2aa38a0
2021-10-29 14:45:14 +08:00
Treehugger Robot
9b540a80b4
Merge "Improve logs in checkNrisConsistency" am: f58a955b37
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1872875
Change-Id: If7cb572f01551606024c2dbd3e77cb967f5d9ed6
2021-10-28 19:30:47 +00:00
Treehugger Robot
f58a955b37
Merge "Improve logs in checkNrisConsistency"
2021-10-28 19:09:27 +00:00
Remi NGUYEN VAN
b4923dd4e5
Merge "Add RequiresDevice to relevant tests" am: 8e58917bc3
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1872873
Change-Id: I024ce824e37d00dea22b607119d87a875759619d
2021-10-28 08:48:32 +00:00
Remi NGUYEN VAN
8e58917bc3
Merge "Add RequiresDevice to relevant tests"
2021-10-28 08:30:44 +00:00
Remi NGUYEN VAN
9c358cd831
Use ConnectivityCheckTargetPreparer in CTS
...
The preparer does basic checks for device configuration before any test
is run, so that wrong device configuration can be identified at the
module level, rather than fail individual test cases.
If test devices are not properly configured with a wifi configuration
and data-enabled SIM cards, the run will fail before starting the test
module.
As the preparer uses much of CtsNetUtils code for connecting to wifi,
refactor that code out of CtsNetUtils.
Test: atest CtsNetCasesLatestSdk
Change-Id: I1214b6d6916e836bcd68d15c50486092c7fb9a6e
2021-10-28 15:15:53 +09:00
Chalard Jean
750ec86110
Merge "Apply a workaround, and try to detect a system crash" am: 65571769cd
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1868846
Change-Id: I0fc4d9408438fa5d0da810ae710e6c92d821b8a5
2021-10-28 03:57:53 +00:00
Chalard Jean
65571769cd
Merge "Apply a workaround, and try to detect a system crash"
2021-10-28 03:46:28 +00:00
Chalard Jean
ba551d4dbb
Improve logs in checkNrisConsistency
...
Test: ConnectivityServiceTest
Change-Id: If5235443217ad4abbdd40e89d5721d4f7832d52f
2021-10-28 12:45:12 +09:00