[VCN19] Rename get/setSubIds to get/setSubscriptionIds
...
Test: atest FrameworksNetTests FrameworksVcnTests
Fix: 185215036
Merged-In: I9d90df5fc13b36d2cdc4920b456dcc87fcd2b3a7
Change-Id: I9d90df5fc13b36d2cdc4920b456dcc87fcd2b3a7
(cherry-picked from ag/14198665)
junyulai
commited 2021-04-19 17:41:01 +08:00
651928c310
Rename getAllNetworkStateSnapshot which should be pluralized
...
Address API review feedback, ConnectivityManager#getAllNetworkStateSnapshot
should be pluralized so rename the method to getAllNetworkStateSnapshots
Bug: 183972554
Test: make, FrameworksNetTests
FrameworksServicesTests
Change-Id: Ic18d17d05984fa2466c962c7843c0ef7183ce77c
Aaron Huang
commited 2021-04-17 14:08:49 +08:00
ab615e5c03
Merge "[VCN20] Change requestBackgroundNetwork argument order"
Junyu Lai
authored and
Gerrit Code Review
commited 2021-04-16 16:04:31 +00:00
c8499660b2
Merge "[VCN19] Rename get/setSubIds to get/setSubscriptionIds" into sc-dev
Junyu Lai
authored and
Android (Google) Code Review
commited 2021-04-16 15:59:16 +00:00
05614b419a
Merge "Don't expose raw IBinder APIs." am: 6f68764bf2 am: c0c07c1b57 am: 15f9321d90
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1676436
Change-Id: Ic45558c739cfb065e5c9d6fb5ebf485ceb9a630f
Lorenzo Colitti
authored and
Automerger Merge Worker
commited 2021-04-16 08:48:41 +00:00
5caa63278d
Merge "Don't expose raw IBinder APIs."
Lorenzo Colitti
authored and
Gerrit Code Review
commited 2021-04-16 07:22:13 +00:00
6f68764bf2
Merge "Extend framework-connectivity.impl visibility" into sc-dev
Chiachang Wang
authored and
Android (Google) Code Review
commited 2021-04-16 01:13:34 +00:00
dab31a3374
[VCN20] Change requestBackgroundNetwork argument order
...
Test: atest FrameworksNetTests FrameworksVcnTests
Fix: 185215095
Merged-In: Id281678fe85ce0894b0e92e11c0283d4d1b4ecdb
Change-Id: Id281678fe85ce0894b0e92e11c0283d4d1b4ecdb
(cherry-picked from ag/14198667)
junyulai
commited 2021-04-16 00:16:21 +08:00
8c8ac36d9a
Merge "[VCN20] Change requestBackgroundNetwork argument order" into sc-dev
Junyu Lai
authored and
Android (Google) Code Review
commited 2021-04-15 15:57:42 +00:00
b1ec3133c3
Merge "Remove hidden method link in public addRoute API" am: fe09ad78cd am: 79edf2d346 am: 01d4caea3c
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1676435
Change-Id: I80ed5448b854960cea0ae58c93491990d54ffd86
Chiachang Wang
authored and
Automerger Merge Worker
commited 2021-04-15 13:16:16 +00:00
f7cd354de5
Merge "Add documentation" into sc-dev
TreeHugger Robot
authored and
Android (Google) Code Review
commited 2021-04-15 10:52:46 +00:00
a39ee08b57
[VCN20] Change requestBackgroundNetwork argument order
...
Test: atest FrameworksNetTests FrameworksVcnTests
Fix: 185215095
Ignore-AOSP-First: avoid build break caused by multipatch automerge
Change-Id: Id281678fe85ce0894b0e92e11c0283d4d1b4ecdb
junyulai
commited 2021-04-15 18:43:48 +08:00
ca657cbca4
[VCN19] Rename get/setSubIds to get/setSubscriptionIds
...
Test: atest FrameworksNetTests FrameworksVcnTests
Fix: 185215036
Ignore-AOSP-First: avoid merge conflict
Change-Id: I9d90df5fc13b36d2cdc4920b456dcc87fcd2b3a7
junyulai
commited 2021-04-15 18:05:38 +08:00
9605391498
Don't expose raw IBinder APIs.
...
APIs should not expose raw IBinder objects.
Fix: 184735751
Test: builds, boots
Test: atest CtsNetTestCases:android.net.cts.ConnectivityManagerTest
Test: atest CtsNetTestCases:android.net.cts.DnsResolverTest
Change-Id: Ia0c4170def31123f0b79318fec2cfe02e4fcd3bf
Lorenzo Colitti
commited 2021-04-15 18:47:21 +09:00
12bcbe5efa
Add documentation
...
Bug: 185121472
Test: doc-only change
Change-Id: I5fd68b209959043f6fe15ac34629c51233fea596
Chalard Jean
commited 2021-04-15 18:07:56 +09:00
3c824eca72
Remove hidden method link in public addRoute API
...
The build will complain after moving connectivity framework code
outside framework because the hidden methods/members accesses are
not allowed anymore. Link to a hidden class will not work since
it's not visible in public.
Bug: 182859030
Test: make docs
Change-Id: I5726f80be7cf92b648ce851d9601d5f58bc2b647
Chiachang Wang
commited 2021-04-15 16:21:00 +08:00
7ceeabe0da
Extend framework-connectivity.impl visibility
...
Allow netlegacy22.api to use hidden connectivity methods.
Bug: 182859030
Test: m
Change-Id: I92936afb9fb533ea3b426490eb9617389f99fc8b
Chiachang Wang
commited 2021-04-15 13:06:39 +08:00
3270871367
Allow network providers to set the linger duration.
...
Test: atest CtsNetTestCases:NetworkAgentTest#testSetLingerDuration
Ignore-AOSP-First: prevent merge conflict
CTS-Coverage-Bug: 184796264
Bug: 184227264
Change-Id: I7f420faa40863385114705d6971cf00887d03318
Chalard Jean
authored and
junyulai
commited 2021-04-14 20:26:12 +08:00
85e65c8fc1
Merge "Add @RedactionType annotations to VpnTransportInfo." am: 97b4639efa am: 7dc61be0da am: b09793ab41
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1674568
Change-Id: I1193382337088113bf64a636b0b70429d28f8be6
Lorenzo Colitti
authored and
Automerger Merge Worker
commited 2021-04-14 03:00:32 +00:00
f40b20ec1c
Add @RedactionType annotations to VpnTransportInfo.
...
This is in response to API council feedback.
Test: m
Bug: 185226718
Change-Id: I63d7249e7d14ac00558f311a3583f6adbf80e3d9
Lorenzo Colitti
commited 2021-04-14 00:28:19 +09:00
a34d4892a4
Merge "Add lint baseline to address NewApi errors" into sc-dev
Pedro Loureiro
authored and
Android (Google) Code Review
commited 2021-04-13 14:12:41 +00:00
386aeaa3d9
Merge "Extend framework-connectivity.impl visibility to more test" into sc-dev
Chiachang Wang
authored and
Android (Google) Code Review
commited 2021-04-13 13:27:45 +00:00
229de02f5b
Merge "Make getUid a method on UserHandle itself instead of static" am: 9500ca6b5f am: e2a6a92c30 am: c3f73bd1ac
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1669185
Change-Id: Ic0b7887630c00404ff354c193b82a96930940556
Chiachang Wang
authored and
Automerger Merge Worker
commited 2021-04-13 13:06:43 +00:00
bb996c3b1d
Add lint baseline to address NewApi errors
...
We are enabling a new lint check where the min sdk != compile sdk.
It has produced a lot of errors and adding the baseline file(s)
allows us to continue work without introducing more problems.
Bug: 150847901
Test: m lint-check
Change-Id: Ide8a8fe80ba31396f23853ab266afcbcc33af9a6
Pedro Loureiro
authored and
Anton Hansson
commited 2021-04-13 10:51:51 +01:00
57bc16e08a
Merge "Make getUid a method on UserHandle itself instead of static"
Chiachang Wang
authored and
Gerrit Code Review
commited 2021-04-13 08:15:47 +00:00
9500ca6b5f
Extend framework-connectivity.impl visibility to more test
...
Allow captive portal tests to use hidden connectivity methods.
Bug: 182859030
Test: m
Change-Id: I2c51cbefa6d56c7ec53bacfffe735fa9d14c6510
Chiachang Wang
commited 2021-04-13 12:53:06 +08:00
426a6de6b3
Merge "Rename APIs in NetworkAgentConfig.Builder" am: f212a922e9 am: 3786083176 am: d811a2671d
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1669047
Change-Id: I1988750dd4b65a3d74c33c8fc120bb3bcb705320
Chiachang Wang
authored and
Automerger Merge Worker
commited 2021-04-12 15:14:26 +00:00
e2239bc4b2
Merge "Remove TcpRepairWindow from module-lib API" am: b82fad9aa9 am: a69d2280fc am: 89edca00d1
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1671788
Change-Id: I1d472c9cffaa0c7f35b284b97fa374b03232a7f4
Paul Hu
authored and
Automerger Merge Worker
commited 2021-04-12 15:13:48 +00:00
f63d85dc00
Merge "Rename APIs in NetworkAgentConfig.Builder"
Chiachang Wang
authored and
Gerrit Code Review
commited 2021-04-12 14:10:46 +00:00
f212a922e9
Rename APIs in NetworkAgentConfig.Builder
...
As API review feedback, rename disableProvisioningNotification()
to setEnabledProvisioningNotification and disableNat64Detection()
to setEnabledNat64Detection. Also, update code in caller side
accordingly.
Bug: 184735772
Test: make update-api ; atest FrameworksNetTests
Change-Id: If7305634863d1503c967e5593ebd0c8af2174bea
Chiachang Wang
commited 2021-04-12 17:27:47 +08:00
f5324d7d03
Remove TcpRepairWindow from module-lib API
...
Both TcpRepairWindow and TcpKeepaliveController(user) are in the
connectivity module, so TcpRepairWindow doesn't need to be
the module-lib API. Thus, remove TcpRepairWindow from
module-lib API.
Bug: 172183305
Test: m update-api
Change-Id: I8fde726f8ad73637e6deab69ea83b3699bb2cf45
paulhu
commited 2021-04-12 14:26:55 +08:00
c3663377e7
Merge "Add doc for NetworkScore#getLegacyInt" into sc-dev
TreeHugger Robot
authored and
Android (Google) Code Review
commited 2021-04-09 04:38:09 +00:00
d9c09ee7cb
Merge "Improve documentation on simulateDataStall" am: 3b4f0832bd am: b241ce07a9 am: 3c5cdf0dbc
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1669505
Change-Id: I9484583b0249f4f67fdf6216f9ca72b900320699
Remi NGUYEN VAN
authored and
Automerger Merge Worker
commited 2021-04-09 02:36:41 +00:00
cb7360eecb
Merge "Set ParseException constructors as public" am: a2a324f843 am: 7251eb2f0c am: 352fc488f2
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1669051
Change-Id: I7b744bdacf5e5929a1d0ac60832a355ebe8ce9a9
Remi NGUYEN VAN
authored and
Automerger Merge Worker
commited 2021-04-09 02:35:43 +00:00
6a0e0809b4
Merge "Replace fields with getters in keepalive API" am: 445fd7e9d9 am: e5bc9e1aa1 am: bec77cd512
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1669345
Change-Id: I73f6f89eb2d1255743d10c1ec1c92770845bdd63
Remi NGUYEN VAN
authored and
Automerger Merge Worker
commited 2021-04-09 02:34:59 +00:00
e09cf913ca
Merge "Add RequiresPermission to TestNetworkManager" am: 58a22b1d8f am: 6e9d84438c am: e58f448568
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1669187
Change-Id: Ifba7b5b88e162caaf7c5393051f867655cf1b9fb
Remi NGUYEN VAN
authored and
Automerger Merge Worker
commited 2021-04-09 02:34:17 +00:00
a4ad1df2da
Make getUid a method on UserHandle itself instead of static
...
This commit addresses the API review feedback that getUid()
will be better to make it be a method on UserHandle itself
rather than a static method.
Update as it is and update the corresponding usages.
Fix: 184735865
Test: make update-api
Test: atest FrameworksNetTests
Test: atest CtsNetTestCasesLatestSdk
Change-Id: I33844309224d84764704255d251fadc8940202ca
Chiachang Wang
commited 2021-04-09 08:33:07 +08:00
1091a06338
Merge "Improve documentation on simulateDataStall"
Remi NGUYEN VAN
authored and
Gerrit Code Review
commited 2021-04-09 00:21:34 +00:00
3b4f0832bd
Merge "Set ParseException constructors as public"
Remi NGUYEN VAN
authored and
Gerrit Code Review
commited 2021-04-09 00:20:33 +00:00
a2a324f843
Merge "Replace fields with getters in keepalive API"
Remi NGUYEN VAN
authored and
Gerrit Code Review
commited 2021-04-09 00:20:13 +00:00
445fd7e9d9
Merge "Add RequiresPermission to TestNetworkManager"
Remi NGUYEN VAN
authored and
Gerrit Code Review
commited 2021-04-09 00:19:51 +00:00
58a22b1d8f
Merge "Use String in CaptivePortalData underlying types"
Remi NGUYEN VAN
authored and
Gerrit Code Review
commited 2021-04-09 00:17:59 +00:00
55d93ddb7e
Merge "Adding OEM Network Preferences for testing" am: ee638e2670 am: bad8f6262f am: c4c1b9c820
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1659163
Change-Id: Ia028efd68ae8ce229c5382dc4798671da9124a5b
James Mattis
authored and
Automerger Merge Worker
commited 2021-04-08 22:58:14 +00:00
148043b2a0
Merge "Adding OEM Network Preferences for testing"
James Mattis
authored and
Gerrit Code Review
commited 2021-04-08 20:51:05 +00:00
ee638e2670
Add doc for NetworkScore#getLegacyInt
...
Test: comment-only change
Fixes: 184786246
Change-Id: I8306f01f3d247986683e272074047e3ad190f68e
Chalard Jean
commited 2021-04-08 13:52:40 +00:00
ff4e69f2be
Use String in CaptivePortalData underlying types
...
The venue friendly name comes from the network, and only plain strings
should be used in practice. writeCharSequence is also not usable in
CaptivePortalData, as it must build using module_api.
Use a String as the underlying type in CaptivePortalData, keeping
CharSequence in the API for consistency with UI-related elements.
This brings CaptivePortalData in line with downstream branches.
Bug: 183174863
Test: atest FrameworksNetTests
Merged-In: Ifa3ea9aae0cabf5757791c4ae13e6f551759ed97
Change-Id: Ic662d3b546d52f825f9c3a24c5e0d4ba03818ab0
Remi NGUYEN VAN
commited 2021-04-08 08:23:20 +00:00
495d9ba693
Merge "Move ACTION_CLEAR_DNS_CACHE to ConnectivityManager" am: ed4117ff40 am: 2cac9e94ba am: 21dbcf362f
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1667080
Change-Id: I5fd350d67065211b84dbea769d258daff9780276
Paul Hu
authored and
Automerger Merge Worker
commited 2021-04-08 07:48:14 +00:00
324810d572
Improve documentation on simulateDataStall
...
Explain that:
- The method does not cause an actual data stall.
- The detectionMethod parameter refers to
ConnectivityDiagnosticsManager.DataStallReport constants (which
already use an IntDef).
- timestampMillis is relative to SystemClock.elapsedRealtime.
Fixes: 183972768
Test: m
Change-Id: I2eeb79e0e8ec6e8fd3b8fe1dcb1abbf2e6338983
Remi NGUYEN VAN
commited 2021-04-08 16:30:25 +09:00
564f7f8df3
Add RequiresPermission to TestNetworkManager
...
All API methods in TestNetworkManager require the MANAGE_TEST_NETWORKS
permission.
Fixes: 183972672
Test: m
Change-Id: Ic5929c24ea88d7259d367a81fec8f223a2e3ecb0
Remi NGUYEN VAN
commited 2021-04-08 16:12:23 +09:00
c5174c3c10
Set ParseException constructors as public
...
As there is no strong reason to keep the constructors module-lib, set
them as public API.
This is in response to API feedback.
Fixes: 183446251
Test: m
Change-Id: I01daa6f6f8095f7a4db94d1ca05f913166939df3
Remi NGUYEN VAN
commited 2021-04-08 15:57:31 +09:00
84a217a6ef