Commit graph android_packages_modules_Co.../framework-t
Message SHA1
Change Ethernet API to use OutcomeReceiver
This change addresses API review feedback. In addition, it changes the
returned result from Network to the interface name. The current API
returning a Network object is racy and cannot be implemented correctly.
Users should instead use the ConnectivityManager#requestNetwork() API to
get hold of the Network for a given interface.

CP note: the Merged-In ID is not the actual Change-Id of this change in
tm-dev. This change was originally merged in aosp, but was subsequently
reverted and cherry-picked into tm-dev. The cherry-pick falsely reused
the Change-Id of the (now reverted) original change. This causes
automerger to skip this change on all branches between aosp-master and
tm-dev when the correct Merged-In ID is used. Therefore, the Merged-In
ID listed is the Change-Id of an unrelated change that is present in
tm-dev but not aosp-master.

Bug: 220017952
Test: TH
Ignore-AOSP-First: CP to make automerger happy.
Merged-In: I61c5209f50ab62327b75813804bde1aa1a014054
Change-Id: I4c204a8489c0be006c00581d833f2bb46ae0e71d

Patrick Rohr   commited 2022-03-23 11:45:06 +00:00
37f302e109
Merge "Add executors to NsdManager" am: b58df4bf13
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2027043

Change-Id: I93294667e79684652dba065583e651148a8d0991

Remi NGUYEN VAN   authored and   Automerger Merge Worker   commited 2022-03-22 08:46:00 +00:00
ef37e45e8a
Merge "Add executors to NsdManager"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2022-03-22 08:33:48 +00:00
b58df4bf13
Merge "Revert "Change Ethernet API to use OutcomeReceiver"" am: 2789c017e6
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2030087

Change-Id: I75374042046405c438c5701413f0b4e1b3c712b0

Quentin Perret   authored and   Automerger Merge Worker   commited 2022-03-17 15:58:08 +00:00
3234a71d32
Revert "Change Ethernet API to use OutcomeReceiver"
Revert "Change Ethernet API to use OutcomeReceiver"

Revert "Change network management listener to outcome receiver"

Revert submission 2028203-ethernet-outcomereceiver

Reason for revert: BuildMonitor investigating b/225169800
Reverted Changes:
I4c204a848:Change Ethernet API to use OutcomeReceiver
I7c46545a4:Change Ethernet API to use OutcomeReceiver
Id8fadfed9:Change network management listener to outcome rece...

Change-Id: Ibd1d70ac3fb691f9a777e59da4886ab60dc969ac

Quentin Perret   commited 2022-03-17 15:20:53 +00:00
41000c6106
Merge "Change Ethernet API to use OutcomeReceiver" am: a8385cc593
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2029244

Change-Id: I250cb3129fe2172082a97662640be8269ad748f8

Patrick Rohr   authored and   Automerger Merge Worker   commited 2022-03-17 14:18:31 +00:00
575ec9bb10
Add executors to NsdManager
Add executors to APIs added in T, and overloads with Executors for
consistency to register/resolve.

Bug: 218752665
Test: atest NsdManagerTest
Change-Id: I9d89ea8352aa8274a90bf6cb273d5b45828f53cc

Remi NGUYEN VAN   commited 2022-03-17 11:01:56 +00:00
59145dc7f8
Merge changes from topic "nullable-ipconfig" am: 1b13af010a
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2026565

Change-Id: I3564ece377766d0e3b2cb6f98209b00dc3a60697

Patrick Rohr   authored and   Automerger Merge Worker   commited 2022-03-17 07:04:24 +00:00
3a74a64079
Change Ethernet API to use OutcomeReceiver
This change addresses API review feedback. In addition, it changes the
returned result from Network to the interface name. The current API
returning a Network object is racy and cannot be implemented correctly.
Users should instead use the ConnectivityManager#requestNetwork() API to
get hold of the Network for a given interface.

Bug: 220017952
Test: TH
Change-Id: I4c204a8489c0be006c00581d833f2bb46ae0e71d

Patrick Rohr   commited 2022-03-17 07:21:33 +01:00
ea7e6d56f4
Add Nullable IpConfiguration to ethernet update request
Test: atest EthernetServiceTests
Bug: 220017952
Change-Id: Icb5af11e67e397628484726ab6f69afa5d1fe7f5

Patrick Rohr   commited 2022-03-16 20:29:05 +01:00
8a910f4ecd
Build ethernet framework source into framework-connectivity-tiramisu am: 0a171c006c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1956052

Change-Id: If7c86d0404571920dddaba492dff4f06448eb141

Xiao Ma   authored and   Automerger Merge Worker   commited 2022-03-16 17:08:56 +00:00
22c83111ec
Merge changes from topic "ethernet_mainline"
* changes:
  Fix the NPE thrown when starting Ethernet service in OS lower than T.
  Remove the stub ethernet service from Connectivity module.
  Update hidden API files for EthernetManager API move.
  Provide a stub ethernet service to build in sc-mainline-prod.
  Build ethernet framework source into framework-connectivity-tiramisu

Patrick Rohr   authored and   Gerrit Code Review   commited 2022-03-16 16:03:30 +00:00
6dde8ac532
Merge "Rename setUidForeground to noteUidForeground" am: 8b7896b51a
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2018880

Change-Id: Ibcc236d2807da26a9aeae3eab6d6b10361a58cb5

Lorenzo Colitti   authored and   Automerger Merge Worker   commited 2022-03-15 23:57:57 +00:00
cf9f545864
Merge "Rename setUidForeground to noteUidForeground"
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-03-15 23:33:26 +00:00
8b7896b51a
Build ethernet framework source into framework-connectivity-tiramisu
- move ethernet APIs, build it into framework-connectivity-tiramisu
- start ethernet service from ConnectivityServiceInitializer
- fix EthernetManager dependnecy in Tethering module
- fix EthernetNetworkSpecifier dependency in framework-connectivity
- fix the ethernet related config resource

Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I54857b8517649048a343c72797668394d5225766
Merged-In: I54857b8517649048a343c72797668394d5225766

Xiao Ma   commited 2022-03-14 14:06:35 +00:00
0a171c006c
Merge "[DU09-3]Modify the NetworkStatsCollection Builder API" am: 3f5703df80
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2010336

Change-Id: I70722dac5d4eb15deece4938a47b2d99fea04ec0

Frank Li   authored and   Automerger Merge Worker   commited 2022-03-14 02:59:58 +00:00
c36cb655e5
Rename setUidForeground to noteUidForeground
Addresses API review feedback. Both setUidForeground in
NetworkStatsManager and NetworkStatsService are renamed to
noteUidForeground. Thus, the caller in test should be also
modified.

Bug: 222291301
Test: atest FrameworksNetTests
Change-Id: Ifa1e1af3d9fd8b1dc75a8f37947a5958f60ed415

Aaron Huang   commited 2022-03-10 18:33:50 +08:00
5417280f17
[DU09-3]Modify the NetworkStatsCollection Builder API
1. Adding the bucketDuration with unit as bucketDurationmillis
2. make the Key class be final
3. The Key set parameter be marked with an IntDef

Bug: 220153505
Test: atest NetworkStatsCollectionTest
Change-Id: I8919ed595c2d339e8a5c0fc163b3c40edb4a2ad8

Frank   commited 2022-03-07 16:31:26 +08:00
349fadfa52
Merge "[MS68.4] Address comments at aosp/1958144" am: 481c0cd100
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1973859

Change-Id: I20538f9c3637fe2282b00ce426c14379fb7899ea

Frank Li   authored and   Automerger Merge Worker   commited 2022-03-03 02:53:23 +00:00
a301247810
Merge "[MS68.4] Address comments at aosp/1958144"
Frank Li   authored and   Gerrit Code Review   commited 2022-03-03 02:26:53 +00:00
481c0cd100
Merge "[SUBID01-1]Grow NetworkIdentity to include a new mSubId field" am: 8039c85336
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1895196

Change-Id: Ifd74ecea09dda5ff534e05ca4bb293bbf32b788e

Frank Li   authored and   Automerger Merge Worker   commited 2022-03-02 12:53:11 +00:00
dfeea7208c
Merge "[SUBID01-1]Grow NetworkIdentity to include a new mSubId field"
Frank Li   authored and   Gerrit Code Review   commited 2022-03-02 12:26:11 +00:00
8039c85336
Merge "[DU03-4]Add NETWORK_STACK Permission check for NetworkStatsService API" am: 1b87cafbc1
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2004490

Change-Id: I6c29156646e99e93120def63394ab02778e754bb

Frank Li   authored and   Automerger Merge Worker   commited 2022-03-02 08:19:19 +00:00
0e9d604526
Merge "[DU03-4]Add NETWORK_STACK Permission check for NetworkStatsService API"
Frank Li   authored and   Gerrit Code Review   commited 2022-03-02 07:48:45 +00:00
1b87cafbc1
[MS68.4] Address comments at aosp/1958144
Test: atest TrafficStatsTest NetworkUsageStatsTest FrameworksNetTests
Bug: 204830222
Ignore-AOSP-First: merge conflict

(cherry-picked from ag/16811186)

Change-Id: I2578e13e2844591adac1d1902f2454ec7079ceea
Merged-In: I2578e13e2844591adac1d1902f2454ec7079ceea

Frank   commited 2022-03-02 03:09:09 +08:00
eeeb76d3bb
[DU03-4]Add NETWORK_STACK Permission check for NetworkStatsService API
1. getUidStatsForTransport API

Bug: 210066922
Test: atest BatteryStatsImplTest WifiPowerCalculatorTest
            MobileRadioPowerCalculatorTest NetworkStatsServiceTest
Ignore-AOSP-First: merge conflict resolutions

(cherry-picked from ag/16822075)

Change-Id: I2d4d79e5bce648b9937311f5039619ba191728fd
Merged-In: I2d4d79e5bce648b9937311f5039619ba191728fd

Frank   commited 2022-03-02 02:23:33 +08:00
d8990c334a
[SUBID01-1]Grow NetworkIdentity to include a new mSubId field
In the previous design of NSS and NPMS, those only had IMSI to identify
the cell network. Now the telephony has created the "subId" handle,
which is the preferred mechanism for identifying subscribers.

This commit adds NetworkStats support for subscriberId as a part of
the network identity key

Bug: 80526261
Test: atest NetworkTemplateTest NetworkStatsCollectionTest
            NetworkStatsServiceTest NetworkIdentityTest
Ignore-AOSP-First: merge conflict resolutions

(cherry-picked from ag/16826535)

Change-Id: I8549b11d0fcfc5a9426724d6b90de27b707cb77c
Merged-In: I8549b11d0fcfc5a9426724d6b90de27b707cb77c

lifr   authored and   Frank   commited 2022-03-01 16:43:28 +08:00
8ba46d804f
Rename framework-connectivity-tiramisu to framework-connectivity-t
Note: There is a difference on Tethering/apex/Android.bp because
      framework-connectivity-tiramisu has been marked on
      bootclasspath_fragment.

Bug: 215434166
Ignore-AOSP-First: Merge conflict. Will cherry-pick to AOSP afterwards.
Test: build, flash, device boot to home.
Merged-In: I9ebedf8813cbfa30d979bc35a3b2306715be682b
Change-Id: I9ebedf8813cbfa30d979bc35a3b2306715be682b
(cherry picked from commit 1d87cbdc88)

paulhu   authored and   Paul Hu   commited 2022-03-01 03:10:41 +00:00
e8054a8ad1
Rename framework-connectivity-tiramisu to framework-connectivity-t
Bug: 215434166
Test: build, flash, device boot to home.
Merged-In: I9ebedf8813cbfa30d979bc35a3b2306715be682b
Change-Id: I9ebedf8813cbfa30d979bc35a3b2306715be682b

paulhu   commited 2022-03-01 09:44:21 +08:00
537f72061a
Merge changes from topic "ms52-movenetstats" am: cebdfba1bb
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1987452

Change-Id: Ia7a6725b6cf8cdfa0ab712f5f2c4fe223892f39a

Lorenzo Colitti   authored and   Automerger Merge Worker   commited 2022-02-28 06:08:47 +00:00
0c0ab875e9
Add setPollForce to module API am: 73a61e7c28
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1987450

Change-Id: Ibec723d59eae973168b0c5715acfd5dff2c99164

Remi NGUYEN VAN   authored and   Automerger Merge Worker   commited 2022-02-28 06:08:44 +00:00
2fa0db3124
[MS54.3] Move NetworkStats to updatable sources am: eb6f4bef96
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1987447

Change-Id: I902a20e0c2304cae6e57a32c5b33403245116f7f

Junyu Lai   authored and   Automerger Merge Worker   commited 2022-02-28 06:08:37 +00:00
0a7c4c5659
Update API files to unhide MATCH_PROXY.
Bug: 204830222
Test: m
Ignore-AOSP-First: part of topic with internal-only code
  (cherry-picked from ag/16786006)
Change-Id: I9e11eea30ea9c988498e005c33f173ba2d0a32ec
Merged-In: I9e11eea30ea9c988498e005c33f173ba2d0a32ec

Lorenzo Colitti   authored and   Junyu Lai   commited 2022-02-28 04:17:19 +00:00
9e066c9faf
Add setPollForce to module API
The API was test API in S, but this is not supported in module API
surfaces. Make it module API instead.

Ignore-AOSP-First: Avoiding merge conflicts. Cherry-pick will follow
Bug: 197717846
Test: Tests already using this API
  (cherry-picked from ag/16780903)
Change-Id: I53959f0ad4c7a41950e9349d539be82b9166b707
Merged-In: I53959f0ad4c7a41950e9349d539be82b9166b707

Remi NGUYEN VAN   authored and   Junyu Lai   commited 2022-02-28 04:17:06 +00:00
73a61e7c28
[MS54.3] Move NetworkStats to updatable sources
This CL builds NetworkStats related codes with the
connectivity module instead of platform.

Test: TH
Bug: 197717846
Change-Id: I4eeb7ea9cfc3139991caf0fc22474e0052a0391c
Merged-In: I4eeb7ea9cfc3139991caf0fc22474e0052a0391c

Junyu Lai   commited 2022-02-28 03:24:19 +00:00
eb6f4bef96
Merge "Fix tab by replacing it with spaces" am: d6751bd159
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1981647

Change-Id: I2099c1f04159a8e32bd4f03ad8cfb78862916b2e

Treehugger Robot   authored and   Automerger Merge Worker   commited 2022-02-11 09:39:23 +00:00
893f5f39ac
Fix tab by replacing it with spaces
Test: no code changes
Change-Id: I3644c4914486189d58c8e59ac62c6856296cce08

Aaron Huang   commited 2022-02-11 13:52:29 +08:00
b5af0fe5dc
Merge "Move IpSec APIs to Connectivity module" am: baefbc3375
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1961307

Change-Id: I5b7c49c3d509a85ac0a351f1a0cd54ea5fd76694

Treehugger Robot   authored and   Automerger Merge Worker   commited 2022-02-10 12:09:04 +00:00
2166ac36e4
Merge "Move IpSec APIs to Connectivity module"
Treehugger Robot   authored and   Gerrit Code Review   commited 2022-02-10 11:45:21 +00:00
baefbc3375
Merge "Add visibility for core tests" am: d54fcc49a7
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1978070

Change-Id: I31bcb348cd17bf27f66952f58eb901ae4fcd18f0

Junyu Lai   authored and   Automerger Merge Worker   commited 2022-02-10 09:51:20 +00:00
3009b9dfe9
Merge "Add visibility for core tests"
Junyu Lai   authored and   Gerrit Code Review   commited 2022-02-10 09:23:57 +00:00
d54fcc49a7
Merge "Add OWNERS for Nearby code" am: bf9d21a6d2
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1976828

Change-Id: Ia5c6ef3db547e24725f6447268043e25c627b497

Lorenzo Colitti   authored and   Automerger Merge Worker   commited 2022-02-10 08:33:46 +00:00
09e6af2b37
Merge "Add OWNERS for Nearby code"
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-02-10 08:16:55 +00:00
bf9d21a6d2
Add OWNERS for Nearby code
Add owners to Nearby members for the nearby directory and framework-t
API directory.

Test: m
Change-Id: I1095064de389ab5f035d8750c0106195d1c167ac

Remi NGUYEN VAN   commited 2022-02-10 15:27:29 +09:00
d8965edd3d
Move IpSec APIs to Connectivity module
(cherry picked from commit 68ca373929)
Bug: 204153604
Test: TH
Change-Id: If4afabdc65ed2ac3e918af1d4a03c4c9173c4a3c
Merged-In: If4afabdc65ed2ac3e918af1d4a03c4c9173c4a3c

Aaron Huang   commited 2022-02-10 14:25:04 +08:00
2e778ee46b
Merge "[MS55.2] Move NetworkStateSnapshot into module folder"
Treehugger Robot   authored and   Gerrit Code Review   commited 2022-02-10 05:02:45 +00:00
a8ae24410d
Add visibility for core tests
Allow core tests to use hidden connectivity APIs. Benchmark tests in
particular cannot be run without these.

Ignore-AOSP-First: Avoiding merge conflicts, cherry-pick will follow
Bug: 197717846
Test: m
  (cherry-picked from ag/16772124)
Change-Id: Ia01f24317d14b063f9a7e24c3ada11b140641c50
Merged-In: Ia01f24317d14b063f9a7e24c3ada11b140641c50

Remi NGUYEN VAN   authored and   junyulai   commited 2022-02-09 23:08:37 +08:00
85a4e07826
[MS55.2] Move NetworkStateSnapshot into module folder
framework-connectivity need to see the aidl files when
compiling IConnectivityManager.aidl, and it can only
include the files by specifying aidl include_dirs.
Thus, move the file into the module since the one outside
of the module is going to be deleted soon.

Ignore-AOSP-First: Avoiding conflicts; cherry-pick will follow
Test: TH
Bug: 197717846
Change-Id: Ide7431d0c98aebd389bee86d13ff44f5ef8b8283
Merged-In: Ide7431d0c98aebd389bee86d13ff44f5ef8b8283

Junyu Lai   commited 2022-02-09 15:00:43 +00:00
d6a6a4ebf3
Merge changes from topic "split-pre-jarjar" am: 0ad3becd60
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1978068

Change-Id: Ief8218d65f06836fbd5c14fe568f161d3e0b86af

Treehugger Robot   authored and   Automerger Merge Worker   commited 2022-02-09 13:09:01 +00:00
668aff4a8d
Split out connectivity-t-pre-jarjar and tests am: 2ba9dbe163
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1975069

Change-Id: Ia410e89d09c8470469a38afa0442e4b9ce42077f

Remi NGUYEN VAN   authored and   Automerger Merge Worker   commited 2022-02-09 13:08:58 +00:00
c033c24658