Nick Cook
9033255b96
Docs: fix code formatting.
...
Test: m ds-docs-java
Bug: 149067564
Change-Id: I1900fac17d1dffca2277d6e6d5a510507aa1bc27
2020-04-14 01:06:31 +00:00
Chalard Jean
1b3fb5fff6
Merge "Allow testing of signal strength" am: 2f46cd181a am: 2e2b52d5d8
...
Change-Id: Ib00611c70d9b8fc3e4ee5338980344f5e2167fa1
2020-04-13 17:50:19 +00:00
Chalard Jean
2e2b52d5d8
Merge "Allow testing of signal strength" am: 2f46cd181a
...
Change-Id: I2300fe5c9be8a781fea67358c5e1774872b29f7c
2020-04-13 17:32:30 +00:00
Chalard Jean
46092d9775
Merge "Add instrumentation to test NetworkAgent." am: 40517308f2 am: 833b0bcbf5
...
Change-Id: Ief4f6bd95ba513e08c5d2e9e8fef9d0c426b4478
2020-04-13 15:22:45 +00:00
Chalard Jean
833b0bcbf5
Merge "Add instrumentation to test NetworkAgent." am: 40517308f2
...
Change-Id: I799ad6fa5d6f1bf522414081bac75c952ad2baf7
2020-04-13 15:05:03 +00:00
Chalard Jean
ca241694cb
Allow testing of signal strength
...
- Let any process with NETWORK_SETTINGS register for signal strength
wakeup.
- Allow agents registering test networks to assign them a signal
strength.
Test: NetworkAgentTest
Bug: 139268426
Change-Id: I2b4b89be3e69f4853fd6978d2c8f5c8eb4271f21
2020-04-13 21:55:32 +09:00
Chalard Jean
eea3b016ce
Add instrumentation to test NetworkAgent.
...
Test: NetworkAgentTest, new tests using this API
Bug: 139268426
Change-Id: Ia83b1c896df63bb18e2aa4b74d6cc09eba990eb5
2020-04-13 15:44:07 +09:00
Xin Li
f68e6a03f1
Merge "DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp@6382244 into stag-aosp-master" into stage-aosp-master
2020-04-10 18:42:15 +00:00
Treehugger Robot
df0ee25d57
Merge "Fix a theoretical NPE" am: c312053b39 am: 668661d94c
...
Change-Id: Ibf814e81ca984b47b9be1e423e2cde908cf7f193
2020-04-10 17:08:04 +00:00
Treehugger Robot
c312053b39
Merge "Fix a theoretical NPE"
2020-04-10 16:25:07 +00:00
Chalard Jean
3854ed0c53
Fix a theoretical NPE
...
Test: NetworkAgentTests
Bug: 153718627
Change-Id: I08f57cce0cd85d5cd66e9a0ef948224290e9200e
2020-04-10 23:08:00 +09:00
Xin Li
1aaf25f338
DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp@6382244 into stag-aosp-master
...
Bug: 151763422
Change-Id: Ib0e04b2f16105fad6be0165974ad41d3f5b26882
2020-04-09 18:41:51 -07:00
Cody Kesting
bfa6da0970
Merge "Fix typo in VpnManager Docs." am: 138575a48c am: 245ef6bdf9
...
Change-Id: If72bc191faad9e5024e8d2200aceed88803ef102
2020-04-09 22:10:32 +00:00
Cody Kesting
138575a48c
Merge "Fix typo in VpnManager Docs."
2020-04-09 21:12:23 +00:00
Treehugger Robot
3e33a9cb60
Merge "Fix a stupid NPE" am: 72746119bc am: 77ccd8d055
...
Change-Id: Ic3b10be1bec50271470dfedfa8cb7f8e5ab8f821
2020-04-07 06:19:00 +00:00
Treehugger Robot
2d9fd741ed
Merge "Fix a stupid NPE" am: 72746119bc am: 77ccd8d055
...
Change-Id: I68e5702008a82d93c634fd45c2bd83a33fdf0cd2
2020-04-07 06:18:28 +00:00
Treehugger Robot
72746119bc
Merge "Fix a stupid NPE"
2020-04-07 05:53:10 +00:00
Cody Kesting
87f0bc2e1a
Fix typo in VpnManager Docs.
...
Bug: 153364039
Test: n/a. Docs change only.
Change-Id: I8259bfc09735515f428bb41d69fedd3ea1961f79
2020-04-06 12:57:58 -07:00
Chalard Jean
19ba0bbf1b
Merge "Fix a bug where the legacy extra info is reset on connect." am: 67370a01cb am: a5f7fcacbe
...
Change-Id: Ifa0b2239ccd0c09708085ee68c39454e1eceeffe
2020-04-06 06:34:58 +00:00
Chalard Jean
a072ef0c4b
Merge "Fix a bug where the legacy extra info is reset on connect." am: 67370a01cb am: a5f7fcacbe
...
Change-Id: I127bf621caa39a24265f30cd4c781248410e5348
2020-04-06 06:34:09 +00:00
Chalard Jean
90ef10894c
Fix a bug where the legacy extra info is reset on connect.
...
Bug: 149459996
Test: NetworkAgentTest FrameworksNetTests FrameworksWifiTests FrameworksTelephonyTests
Change-Id: I5f8f6d962ee3317e101d19518c767b3c327c0c47
2020-04-06 12:46:19 +09:00
Lorenzo Colitti
d7c9d9fbfe
Merge "Added a new capability for temporarily unmetered network." into rvc-dev am: 0edabc5e4e
...
Change-Id: I4d43b28d25529d4dd9e4304c4edf95edb5c5110b
2020-04-03 05:07:20 +00:00
Jack Yu
30be5e5d3d
Added a new capability for temporarily unmetered network.
...
Added a new network capability TEMOPORARILY_NOT_METERED to support
the case that a network can temporarily become unmetered. This
allows carriers to deploy unmetered 5G network. When devices
camp on 5G network, this capability will be dynamically added
to the network and will be removed once leaving 5G coverage.
Bug: 153081494
Test: Manual
Change-Id: I10e26cb0852e67f614e7b9c4e49f95e078602e21
2020-04-02 19:28:41 -07:00
Chalard Jean
1c48f85a21
Fix a stupid NPE
...
Okay so this is really not a behavior change as it converts an
NPE into an illegal argument exception, but still, that's what
should happen (and that's what the upcoming test actually tests
for).
Test: upcoming NetworkAgentTest
Bug: 139268426
Change-Id: I3e17211c03bc74426bf5e2e414ec322d73b0060b
2020-04-03 07:17:13 +09:00
Chalard Jean
579665d652
Merge changes from topics "api-fix-networkagent", "satisfiedby" am: 90c292b13e am: 3dcfc3e5c6
...
Change-Id: I237ed648bf6f8533e6c8e79dc44a8240c0e32e7a
2020-04-02 06:38:02 +00:00
Chalard Jean
e49cc246e8
Address further API council comments. am: 47ce6894cc am: 150ebad774
...
Change-Id: I8c9fa0413e3c62180eae20951e559b69e53ea049
2020-04-02 06:37:56 +00:00
Chalard Jean
150ebad774
Address further API council comments. am: 47ce6894cc
...
Change-Id: I237fc6a82df362d5463e8e518967de28735bf2da
2020-04-02 06:14:55 +00:00
Chalard Jean
90c292b13e
Merge changes from topics "api-fix-networkagent", "satisfiedby"
...
* changes:
Rename satisfiedBy into canBeSatisfiedBy
Address further API council comments.
2020-04-02 05:51:02 +00:00
Lorenzo Colitti
d4b0fe443a
Merge "Only apply VPN isolation if it's fully routed" am: 4fa9742c4d am: 7adae30ac0
...
Change-Id: I76fd2c58d688ea45f9b30e9efd24235bea2eadf9
2020-04-02 04:51:36 +00:00
Lorenzo Colitti
ca9ba5c158
Merge "Only apply VPN isolation if it's fully routed" am: 4fa9742c4d am: 7adae30ac0
...
Change-Id: I9230f1a73698344eb40ae3e0ebc5d73cc259f2d0
2020-04-02 04:50:41 +00:00
Lorenzo Colitti
4fa9742c4d
Merge "Only apply VPN isolation if it's fully routed"
2020-04-02 04:10:12 +00:00
junyulai
1062423d8b
[SP26.2] add a method in NetworkStats that removes empty entries am: fb16574069 am: 7bb7d94d39
...
Change-Id: I99eef67c05afb7d6432d5dbf32494d2f5b56b1a5
2020-04-02 02:41:00 +00:00
junyulai
094a459dcf
[SP26.2] add a method in NetworkStats that removes empty entries am: fb16574069 am: 7bb7d94d39
...
Change-Id: I388b1d3677d362da2595739913880efa9a643a03
2020-04-02 02:40:42 +00:00
junyulai
7bb7d94d39
[SP26.2] add a method in NetworkStats that removes empty entries am: fb16574069
...
Change-Id: Ieee0896672625f3bab9ec02a5efa495a9d1f001b
2020-04-02 02:21:20 +00:00
Junyu Lai
6baf734a9b
Merge changes from topic "sp26-networkstats-cts"
...
* changes:
[SP26] add CTS for NetworkStats
[SP26.2] add a method in NetworkStats that removes empty entries
2020-04-02 02:00:59 +00:00
Chalard Jean
3d223986a6
Rename satisfiedBy into canBeSatisfiedBy
...
Test: FrameworksNetTests NetworkStackTests
Bug: 152238712
Change-Id: I076876a6662bde143ef7d315ce3767acafff93c1
Merged-In: I076876a6662bde143ef7d315ce3767acafff93c1
2020-04-01 20:38:30 +08:00
junyulai
fb16574069
[SP26.2] add a method in NetworkStats that removes empty entries
...
In current design, entries with zeros are preserved after
addition/subtraction. These entries are not very useful
and lead to difficulty of verifying the result of
addition/subtraction.
However, change the behavior in the original NetworkStats
is considered risky in current stage.
Thus, this change provide a function that could remove these
empty entries in tests.
Test: atest FrameworksNetTests
Bug: 152827872
Bug: 150644692
Change-Id: I40a76935d55712b8083ee1e17e137a8a4ef5e029
2020-04-01 16:46:08 +08:00
Rubin Xu
080f217945
Only apply VPN isolation if it's fully routed
...
VPN is considered fully routed if both IPv4 and IPv6 have
either a default route or a prohibit route.
Bug: 145332510
Test: atest FrameworksNetTests
Change-Id: I59cf48552bca98092d1212e3d718fd420add5458
2020-04-01 09:36:29 +01:00
Chalard Jean
47ce6894cc
Address further API council comments.
...
Test: FrameworksNetTests NetworkStackTests
Bug: 152238712
Copy from ag/10866511
Change-Id: I8a785ae0e74e659c317deaaa28c203356c7766ed
Merged-In: I8a785ae0e74e659c317deaaa28c203356c7766ed
2020-04-01 16:01:04 +08:00
Aaron Huang
f23594a53a
Merge changes from topics "networkagent_api", "networkprovider_api" am: e99aa91e87 am: b71c5cc720
...
Change-Id: I94103f998bf4648ca5678f1c5f8e8ac3a27668d5
2020-04-01 05:58:42 +00:00
Chalard Jean
b5458a152e
Update NetworkAgentConfig API for council comments am: d670534507 am: d7b73dcc8f
...
Change-Id: Ibbf9c6b33189bd91f6602344eaa0d455e4628977
2020-04-01 05:58:40 +00:00
Chalard Jean
c54c0d8f22
Update the NetworkAgent API for council comments am: d2b02d4c1c am: 84d8e8009c
...
Change-Id: Ic462bc2884a4d8196bec3c997fa01063786553ab
2020-04-01 05:58:37 +00:00
Chalard Jean
d7b73dcc8f
Update NetworkAgentConfig API for council comments am: d670534507
...
Change-Id: I195c50ee1db2dd26b7c06f4ecbd6dbccc38895ef
2020-04-01 05:46:58 +00:00
Chalard Jean
84d8e8009c
Update the NetworkAgent API for council comments am: d2b02d4c1c
...
Change-Id: I1337011740d2c34f886a6d2975bd3da24f371bb8
2020-04-01 05:46:50 +00:00
Aaron Huang
e99aa91e87
Merge changes from topics "networkagent_api", "networkprovider_api"
...
* changes:
Update the NetworkProvider API for council comments
Update NetworkAgentConfig API for council comments
Update the NetworkAgent API for council comments
2020-04-01 05:33:28 +00:00
TreeHugger Robot
4597d66a6f
Merge "[SM06] Collect mobile NetworkStats metrics by collapsed rat type" into rvc-dev am: 1db5f59dcf
...
Change-Id: I70609ad40ecb40a8b6b352e6789a4900313f91fb
2020-04-01 01:29:09 +00:00
Cody Kesting
5add803be8
Merge changes I2431a6d2,I9096969a,I748bd9de,Ia5387ca2,I803bdec8, ... into rvc-dev
...
* changes:
Update CS helper for clearing NetworkCapabilities UIDs.
Simplify unregister logic for Connectivity Diagnostics callbacks.
Clarify comments for Connectivity Diagnostics reports.
Sort administrator UIDs for NetworkCapabilities.
Add combine() and equals() for NetworkCapabilities admin UIDs.
Use IBinder as key for ConnectivityDiagnostics storage in CS.
Decrement networkRequestPerUid when callbacks are unregistered.
Invoke onConnectivityReport on registering ConnectivityDiagnostics.
2020-04-01 01:13:11 +00:00
TreeHugger Robot
1db5f59dcf
Merge "[SM06] Collect mobile NetworkStats metrics by collapsed rat type" into rvc-dev
2020-04-01 01:12:41 +00:00
Cody Kesting
0c96f1d2c9
Merge "Clarify comments for Connectivity Diagnostics reports." am: b187c3c1af am: f4301de657
...
Change-Id: Iebf142364062115dc0272bbb98a74ce4a5e8e98a
2020-03-31 18:17:26 +00:00
Cody Kesting
c2f2e461e2
Merge "Clarify comments for Connectivity Diagnostics reports." am: b187c3c1af am: f4301de657
...
Change-Id: I4e6452b4875a8c3e3739dea4d3bc281a006156eb
2020-03-31 18:17:26 +00:00