Commit graph android_packages_modules_Co.../staticlibs
Message SHA1
Merge "Address MacAddressUtils / NetworkFactory comments"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2020-01-22 04:35:49 +00:00
8c06cabb4f
Merge "Add DnsSdTxtRecord to common net static library"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2020-01-22 04:35:37 +00:00
9a208493ba
Merge "Fix visibility for services-common lib"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2020-01-22 04:35:25 +00:00
062272b951
Merge "Build module common libs as system_current"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2020-01-22 04:35:11 +00:00
1fe6903738
Add a CompareOrUpdateResult class.
This is like CompareResult, but also has the concept of an item
being "updated" (i.e., the same, but with different properties,
in the old and the new list of items). This is needed to support
updating routes.

Bug: 142892223
Test: new unit test
Change-Id: Ide5e31acb9baa6a5d3f50e9965d4019eb7c82cd4

Lorenzo Colitti   commited 2020-01-21 17:26:48 +09:00
9c0c6a5c05
Run NetworkStaticLibTests on the actual source files.
Currently, NetworkStaticLibTests tests the class files that are
on the bootclasspath of the device. This makes running these
tests slow and/or confusing, because the framework must be
rebuilt and the device flashed before running the tests, and if
this is not done, the old code will be tested instead.

Instead, jarjar the tests so the test can be run without updating
the device.

Bug: 142892223
Test: atest NetworkStaticLibTests passes on device that does not have the library
Change-Id: I6a0dbebddbd0b64e2722078345ffe6b0c0a1801e

Lorenzo Colitti   commited 2020-01-21 15:52:34 +09:00
5d9f8ed872
Address MacAddressUtils / NetworkFactory comments
Remove unused code, and make NetworkRequest iterating order
deterministic.

Test: atest FrameworksNetTests FrameworksWifiTests \
          FrameworksTelephonyTests
Bug: 138306002

Merged-In: I1a8f2b07dd1b3ef8286c8b578ed7ae38c87bb38c
Change-Id: I1a8f2b07dd1b3ef8286c8b578ed7ae38c87bb38c
(clean cherry-pick from internal branch)

Remi NGUYEN VAN   commited 2020-01-21 10:41:14 +09:00
fc8056d7bd
Add DnsSdTxtRecord to common net static library
Move DnsSdTxtRecord from framework to net-utils-framework-common
for mainline support.

Bug: 139268426
Bug: 135998869
Test: build lib pass
      atest FrameworksNetTests
     ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Merged-In: I16c37b1c0b70bd57f38bde1171bd7d84cf3fa9ce
Change-Id: I16c37b1c0b70bd57f38bde1171bd7d84cf3fa9ce
(clean cherry-pick from internal branch)

Aaron Huang   authored and   Remi NGUYEN VAN   commited 2020-01-21 10:41:14 +09:00
0331db1c2c
Fix visibility for services-common lib
f/b/services/net should be allowed, not just f/b/services.

Test: Dependent change using the build rule builds
Bug: 138306002
Merged-In: Ide48e637df6e1c21cd7c0c688e3fef2ba1c97deb
Change-Id: Ide48e637df6e1c21cd7c0c688e3fef2ba1c97deb
(clean cherry-pick from internal branch)

Remi NGUYEN VAN   commited 2020-01-21 10:41:14 +09:00
376f8d4922
Build module common libs as system_current
The libraries need to build as system_current since they will be used in
modules that should build against that SDK.

As notable changes, NetworkFactory stops using a common BASE for
handler messages, as no message ID is shared with other handlers (all
public messages numbers are for receiving only). It also indexes
NetworkRequests by using the request itself in the request table; this
is fine because .equals() / .hashCode() are implemented properly, and
no request can be used that has the same ID but differences in other
members.

Test: built, flashed, WiFi and telephony working
Test: atest FrameworksNetTests FrameworksWifiTests \
          FrameworksTelephonyTests
Bug: 138306002
Merged-In: I2ea2be0039b67ba34fc26e62bdb839ab7d42300c
Change-Id: I2ea2be0039b67ba34fc26e62bdb839ab7d42300c
(clean cherry-pick from internal branch)

Remi NGUYEN VAN   commited 2020-01-21 10:41:14 +09:00
ce241a3b79
Add a net-utils-telephony-common library for NetworkFactory.
A separate target is necessary for telephony as it needs to jarjar
included classes.

Test: atest FrameworksNetTests FrameworksWifiTests \
          FrameworksTelephonyTests
Bug: 138306002
Change-Id: I4b7f79fc43fe5820c94226662bee0216b61fc599
Merged-In: I4b7f79fc43fe5820c94226662bee0216b61fc599
(clean cherry-pick from internal branch)

Lorenzo Colitti   authored and   Remi NGUYEN VAN   commited 2020-01-21 10:41:05 +09:00
e14bd343e0
Add net-utils-services-common library
net-utils-services-common-srcs for files in src_servicescommon
and library net-utils-services-common could be used in services.jar
or modules.

Bug: 138306002
Bug: 139268426
Test: atest FrameworksNetTests FrameworksTelephonyTests
Change-Id: I5043a34100e9ef26148e3a0c1743363d063a3604
Merged-In: I5043a34100e9ef26148e3a0c1743363d063a3604
(clean cherry-pick from internal branch)

Aaron Huang   authored and   Remi NGUYEN VAN   commited 2020-01-21 10:40:58 +09:00
57a9496f19
Add NetUtils to net static library
This class includes network common utilities.

Bug: 139268426
Bug: 135998869
Bug: 138306002
Bug: 143925787
Test: build lib pass
      atest NetworkStaticLibTests
Change-Id: I1ffe723aa4ff2ed7bc46f34106701c91fe93032a

Aaron Huang   commited 2020-01-13 00:43:54 +08:00
05a9dfef78
Add a new static library for mainline modules
Add a network static library for common utilities. This
library could be used by all mainline modules. Initially
create LinkPropertiesUtils and MacAddressUtils.

Bug: 139268426
Bug: 135998869
Bug: 138306002
Test: build lib pass
      atest NetworkStaticLibTests
Change-Id: I8f79e4f836819ac83007acffb55103e5d69873e0

Aaron Huang   commited 2020-01-13 00:43:22 +08:00
f73ff8cfce