summaryrefslogtreecommitdiff
path: root/service-t/src
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Remove InterruptedException from NsdService#createpaulhu2022-04-112-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - NsdService isn't using NativeDaemonConnector to connect to mdnsresponder after aosp/2049246, so NsdService#create won't throw InterruptedException. - Also no need to catch InterruptedException in ConnectivityServiceInitializer. Bug: 209894875 Test: atest FrameworksNetTests CtsNetTestCases Merged-In: I1d0b973f9dac0f1d4f9d4d03faef66f05edde3fc Change-Id: I1d0b973f9dac0f1d4f9d4d03faef66f05edde3fc
* | | [automerge] Remove InterruptedException from NsdService#create 2p: 71251ed50bpaulhu2022-04-112-7/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/17679971 Bug: 209894875 Change-Id: I52b953d0a911d6fa37c4da1293d74ee0bfd9cbf3
| * | | Remove InterruptedException from NsdService#createpaulhu2022-04-112-7/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - NsdService isn't using NativeDaemonConnector to connect to mdnsresponder after aosp/2049246, so NsdService#create won't throw InterruptedException. - Also no need to catch InterruptedException in ConnectivityServiceInitializer. Bug: 209894875 Test: atest FrameworksNetTests CtsNetTestCases Ignore-AOSP-First: BB on this branch when running TH on AOSP. Change-Id: I1d0b973f9dac0f1d4f9d4d03faef66f05edde3fc
* | | Merge "Clear test ethernet data when no longer enabled" am: b8a7c9bb65 am: ↵James Mattis2022-04-081-1/+25
|\| | | | | | | | | | | | | | | | | | | | | | | | | | 4cd7d82b25 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2052025 Change-Id: Ie63dbcb50428baa795f00277b67cece5749cb108 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | Clear test ethernet data when no longer enabledJames Mattis2022-04-081-1/+25
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When test interface are no longer tracked in ethernet, clear out associated data. Besides polluting the dumpsys and taking up memory, unexpected results could happen if other CTS tests or the like were to use a test interface which happened to have an existing configuration for it (i.e., the tests could fail). This is more problematic since IP configuration data is written to disc, therefore test data was being persisted across reboots. Bug: 210485380 Bug: 210487893 Test: atest EthernetServiceTests atest CtsNetTestCases Change-Id: If85c625ebbf8da27b226d9ae3651c4fb83a9a8da
* | Merge changes from topic "MDns_AIDL" am: 09475308b7 am: 06e59627bbPaul Hu2022-04-071-265/+141
|\| | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2049246 Change-Id: I16b7ec71fbfee1dd0de84b1f64d5e9fbbd62f4e3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Merge changes from topic "MDns_AIDL"Paul Hu2022-04-071-265/+141
| |\ | | | | | | | | | | | | | | | * changes: Use MDns aidl on NsdService Add MDnsManager
| | * Use MDns aidl on NsdServicepaulhu2022-04-041-265/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use MDns aidl to communicate with mdns service and register event listener to receive callback. - Remove all NDC relevant code on NsdService. - Use MDns aidl on NsdServiceTest. Bug: 209894875 Test: atest FrameworksNetTests CtsNetTestCases Change-Id: I65929dee3838fef753396e86c665abd66b6fec81
* | | Merge changes Iafa8979d,I44eac159,I27ad3298 am: 6097358382 am: ec84e33d10Maciej Żenczykowski2022-04-061-2/+1
|\| | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2042596 Change-Id: I8f6867128057d092e916515049078c1d68b427a4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | Fix linter errorsPatrick Rohr2022-04-041-2/+1
| | | | | | | | | | | | | | | Test: TH Change-Id: I27ad329811a4794050b25976e79909ce8c57d7a3
| * | Merge "Merge EthernetServiceTests into FrameworksNetTests"Remi NGUYEN VAN2022-04-041-114/+0
| |\ \ | | |/ | |/|
| | * Merge EthernetServiceTests into FrameworksNetTestsRemi NGUYEN VAN2022-04-011-114/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per the TODO, merge EthernetServiceTests into the larger FrameworksNetTests suite. Similarly to NetworkStats, NSD or IpSec tests, the tests are also marked as "non-connectivity-module-test", where "module" actually refers to modules being built for release (from an S-based branch) today. This is necessary as the tests and associated code cannot build without T APIs. Also add FrameworksNetTests to presubmit as non-connectivity-module tests are not run in presubmit without this. Test: TH Merged-In: Id533cdb4ac184b963f570af299dea04754ba88e9 Change-Id: I9950fcb49fdc2217134a59e993941cbe5da0b556
* | | Merge changes from topic "block_port" am: 6de87582c1 am: 5ba013208fLorenzo Colitti2022-04-011-0/+22
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2008366 Change-Id: Ife6c089fb4c10c86f8f0caac5de23ff3cae7ad9a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | Merge changes from topic "block_port" am: 6de87582c1Lorenzo Colitti2022-04-011-0/+22
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2008366 Change-Id: I26cf3956cbe0c2d5da015eb3e2edf0504d01e7fd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | Merge changes from topic "block_port"Lorenzo Colitti2022-04-011-0/+22
| | |\ \ | | | |/ | | |/| | | | | | | | | | | | | * changes: Add connectivity_native_test to Presubmit Vendor AIDL interface for port blocking via eBPF
| | | * Vendor AIDL interface for port blocking via eBPFTyler Wear2022-03-251-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New Connectivity Service exposed to vendor for restricting certain ports for use only in vendor. Bug: 179733303 Change-Id: Iad9aff6924498ede5a08cfa5482082f094c0a90b
| | * | Merge history of opt/net/ethernetRemi NGUYEN VAN2022-03-316-0/+2226
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renamed files/directories: java/ --> service-t/src/ tests/ --> tests/ethernet/ Android.bp --> (removed) OWNERS --> (removed) .gitignore --> (removed) BUG: 222234190 TEST: TH Merged-In: I770bf8db3f4c18467934eb2184f5dc2408fc28ec Merged-In: I3e5df1bd44defbb9dd0c382c625a21e176368f2a Change-Id: Ifc02784499d114e12d8ad64ba011dd23b97fb78b
| | | * \ Merge "Fixing multithreading issues in Ethernet Factory"Patrick Rohr2022-03-241-26/+24
| | | |\ \
| | | | * | Fixing multithreading issues in Ethernet FactoryJames Mattis2022-03-221-26/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IP client callbacks could be executed updating the state of an ethernet interface even if they were no longer the callbacks for the currently active interface. This can happen as IP client callbacks were being called from a thread separate from ethernet. Bug: 224890356 Test: atest EthernetServiceTests atest CtsNetTestCasesLatestSdk :android.net.cts.EthernetManagerTest --iterations 30 Change-Id: I238cb75caa01472bccc79db5bafa82bccdaeba52
| | | * | | Add getInterfaceList API implementation in Ethernet service.Xiao Ma2022-03-232-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 171872016 Test: m Merged-In: I8eeb2cd211c6a2ec6bc997c5e18995b585c6118a Change-Id: Ic36d26be7dae5fd3f72abce3cea1ee845813a6e5
| | | * | | Add global change ethernet state APImarkchien2022-03-233-3/+67
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a new API to enable or disable ethernet. Also have a listener for call to check whether enable state is sucessful. Bug: 171872016 Test: atest EthernetServiceTests Change-Id: Iee4b48511ff668a2a7df90fd9bfe563d7ff23940 Merged-In: Iee4b48511ff668a2a7df90fd9bfe563d7ff23940
| | | * | Revert "Revert "Change network management listener to outcome re..."Patrick Rohr2022-03-183-31/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert submission 2030087-revert-2028203-ethernet-outcomereceiver-WFKWDORBPY Reason for revert: Reinstate changes Reverted Changes: Ibd1d70ac3:Revert "Change Ethernet API to use OutcomeReceiver... I45af594f7:Revert "Change Ethernet API to use OutcomeReceiver... I45ba68452:Revert "Change network management listener to outc... Merged-In: Id8fadfed9fcfd22f04f6d7c3460b5956e571e01f Change-Id: If3854c1c3a39aa6de84807c6bde267cf88f3d277
| | | * | Revert "Change network management listener to outcome receiver"Quentin Perret2022-03-173-33/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: I45ba68452b9dccedf72b68fdea6e31c07b86546d
| | | * | Change network management listener to outcome receiverPatrick Rohr2022-03-173-31/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adopts new API according to API review feedback. The outcome receiver can later be removed from most of the ethernet code; in a perfect world, a result can be generated and an exception captured directly from EthernetServiceImpl. This will greatly simplify the current implementation. Bug: 220017952 Test: atest EthernetServiceTests Change-Id: Id8fadfed9fcfd22f04f6d7c3460b5956e571e01f
| | | * | Add support for Nullable IpConfigurationPatrick Rohr2022-03-162-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | Test: atest EthernetServiceTests Change-Id: I6b415ffb2f5825a9dffda1366b60c1e0d26f4e64
| | | * | Build ethernet service into service-connectivity-tiramisu-pre-jarjar.Xiao Ma2022-03-143-34/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Along with ethernet service is going to be moved into Connectivity module, this CL contains the corresponding changes as below: 1. deprecate the etherent-service lib and create a new filegroup: When the ethernet mainline code migration completes, ethernet-service lib won't be kept any more, instead the ethernet service should be started from ConnectivityServiceInitializer. So deprecate the current ethernet-service lib and cleanup the usages on other places later. Create a new filegroup which includes all ethernet service code, that will be built into service-connectivity-tiramisu-pre-jarjar. 2. Move the implementation of starting ethernet service: ConnectivityServiceInitializer should take responsibility to start ethernet service and EthernetTracker on boot phase. Move this code to ConnectivityServiceInitializer and remove the current onStart and onBootPhase implemenation. 3. Move below ethernet service related config resources: - config_ethernet_tcp_buffers - config_ethernet_interfaces - config_ethernet_iface_regex Move the definition of these resource from frameworks/base/core to p/m/Connectivity/service/ServiceConnectivityResources, and import the ServiceConnectivityResources lib to adapt the ethernet update. 4. Update the EthernetServiceTests dependencies and refactor the code which uses ConnectivityResources instead of internal Resource to make the tests pass. Bug: 210586283 Test: m Test: atest FrameworksNetTests atest EthernetServiceTests Change-Id: I0bbecfb64f720213ee2b02417bc8357ccf4725b6 Merged-In: I0bbecfb64f720213ee2b02417bc8357ccf4725b6
| | | * | Clean up permission validation in EthernetServiceImplPatrick Rohr2022-03-101-28/+25
| | | | | | | | | | | | | | | | | | | | | | | | | Test: atest EthernetServiceImplTest Change-Id: I0ca54e09dd98cab348fc855e8a0bf70a703fffed
| | | * | Rename logIfEthernetNotStarted to throwIfEthernetNotStartedPatrick Rohr2022-03-091-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The functions does not log but throws an exception instead. Changing the name to reflect that. Test: TH Change-Id: I6207aababaccc9bc553f7f731e3b8a1d26eb16a1
| | | * | Allow all device types to call updateConfigurationPatrick Rohr2022-03-091-29/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Usage of this API should not be limited to Automotive devices as TvSettings also needs to update the IpConfiguration. Test: TH Change-Id: I838a0a8684e9f944801718a4d688666de45f42fb
| | | * | Allowing for null net caps in updateConfigurationJames Mattis2022-03-073-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Marking NetworkCapabilities as nullable in updateConfiguration and updating where needed to support this. This will allow callers of the ethernet network management updateConfiguration API to use it primarily for setting an ethernet network's IP configuration. Bug: 222565654 Bug: 220017952 Bug: 210485380 Test: atest EthernetServiceTests Change-Id: Ifd908639a00470e599fe1a15487cc6383a56b2f5
| | | * | Eth Management APIs to Support TEST InterfacesJames Mattis2022-03-072-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating Ethernet Network Management APIs to allow support for test interfaces when the caller has the MANAGE_TEST_NETWORKS permission, test interfaces are being tracked in ethernet and if updating a network's capabilities, they include the TEST transport. Bug: 210487893 Test: atest EthernetServiceTests atest CtsNetTestCasesLatestSdk :android.net.cts.EthernetManagerTest Change-Id: I0e0bc9632d9b3d5d61f23e74150586f42c0b5bd2
| | | * | Ethernet validate if iface is tracked on handlerJames Mattis2022-03-022-22/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing synchronous validation of whether a particular interface is tracked or not and instead relying on asynchronous validation and callbacks. An interface can be in the midst of being provisioned and checking if it is tracked sychronously before provisioning is complete will erroneously throw an error for a call that would have been successful when executed on the ethernet handler thread. Bug: 210487893 Bug: 210485380 Test: atest EthernetServiceTests Change-Id: Ib70312a240cab412a54ca7f598893aa9b1e108fd
| | | * | Using a builder for eth requestsJames Mattis2022-02-242-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating ethernet classes to use a builder when creating an EthernetNetworkUpdateRequest and also changing to use IpConfiguration instead of StaticIpConfiguration for the UpdateConfiguration API. Bug: 220017952 Bug: 210487893 Bug: 210485380 Test: atest EthernetServiceTests Change-Id: I2647115bf867dfaa3f3dadf00e3c875aa7e8d88f
| | | * | Merge "Set EthernetNetworkSpecifier on ethernet networks"Remi NGUYEN VAN2022-02-141-2/+6
| | | |\ \
| | | | * | Set EthernetNetworkSpecifier on ethernet networksMilim Lee2022-02-081-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 175199512 Test: atest EthernetServiceTests Change-Id: I4a4762a6509099a5c0954296cbf1b42e3a6cfc25
| | | * | | Implement the new added EthernetManager APIs.Xiao Ma2022-02-113-33/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EthernetManager is moving to the connectivity mainline module and some of its hidden methods are being exposed as module-lib APIs. This CL updates the implementation. 1. Rename onAvailabilityChanged to onInterfaceStateChanged in IEthernetServiceListener.aidl, to match the name of the public callback method. 2. Add the interface state, role and IpConfiguration to the callback, so that clients can use this information without having to call synchronous methods. 3. Call the new callback whenever any of the above parameters changes, or when a callback is registered. Also make some package-private methods in EthernetNetworkFactory protected @VisibleForTesting because otherwise mockito can't mock them. Bug: 210586283 Test: m Test: atest EthernetServiceTests EthernetTetheringTest Change-Id: Ib27bf119b0d61b78f19b6447a38b4468d8035c78 Merged-In: Ib27bf119b0d61b78f19b6447a38b4468d8035c78
| | | * | | Updating Eth Service to use Eth Network PermissionJames Mattis2022-02-021-2/+8
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating Ethernet Service network management APIs to require the manage ethernet networks permission. Bug: 210485380 Test: atest EthernetServiceTests Change-Id: Ibc9b2930fc0069efd7c6f4b833aba7d6c8e93311
| | | * | Renaming Ethernet Network Management ClassesJames Mattis2022-02-013-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renaming InternalNetwork* files and classes related to ethernet network management to EthernetNetwork* as ethernet is the only trasnport these particular files are used with. Bug: 210485380 Test: atest EthernetServiceTests Change-Id: I5be8543afd70f2edca76a9366cee4ccf61f0d0e7
| | | * | Implementation of Eth Connect & Disconnect NetworkJames Mattis2022-02-013-6/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementation of EthernetService APIs for ConnectNetwork() and DisconnectNetwork(). Bug: 210485380 Test: atest EthernetServiceTests Change-Id: I4c3e361d052206cb28b97fc439bfeac8e7e0fec0
| | | * | Updates so Network Mgmt Callbacks Are SentJames Mattis2022-01-271-56/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates so that network management API updates in the ethernet stack can handle concurrent requests correctly in regards to notifying caller supplied callbacks. Bug: 210485380 Test: atest EthernetServiceTests Change-Id: I8073251b2c63309da031c2b1c98d61614deadfe8
| | | * | Replace the NetdService usage in the EthernetService.Xiao Ma2022-01-241-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ethernet service related files are going to be moved into Connectivity module. NetdService won't be visible to EthernetService. Use asInterface to get the Netd service instead. Bug: 210586283 Test: m Change-Id: I3bf504cd947f74bf5830659915483fe5331ac9eb
| | | * | Replace runWithScissors with a custom implementation.Chalard Jean2022-01-201-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is not any better than the previous code though... But it should behave the same. Test: FrameworksNetTests Change-Id: Ia3d379681cb0f17dd5f86062b7cfe84f1547fadb
| | | * | Synchronize the IpClient eventsPavan Kumar M2022-01-131-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the ipClient is stopped before handling the events in Handler thread, ethernet network factory might end up creating a network agent for a network which is already cleared. This change fixes the issue by handling the events only if ipClient is initialized. Tests: Builds, Boots, EthernetNetworkFactoryTest. Ethernet related test scenarios Bug: 207057937 Change-Id: If7ff7abf5f0dcdb0e94de0502bfdf981f9f20298
| | | * | Implementation of Eth Service updateConfigurationJames Mattis2022-01-114-79/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EthernetServiceImpl#updateConfiguration API implementation to allow for dynamically updating the network capability or ip configuration of an ethernet based interface. Bug: 210485380 Test: atest EthernetServiceTests Change-Id: Idd3b7875a24643d245d0f4bb6f2f4c459898116e
| | | * | Replacing IIpClient with Manager in ethNetFactoryJames Mattis2022-01-051-38/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replacing IIpClient with IpClientManager to reduce code duplication, increase readability and maintainability as well as making EthernetNetworkFactory easier to unit test. Bug: 210485380 Test: atest EthernetServiceTests Change-Id: I283653171c0cc47ad94a67d6dbd65b924cdf1ada
| | | * | Using PermissionUtils for common net permissionsJames Mattis2022-01-051-27/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code clean-up to use PermissionUtils for common networking permissions. Should be a no-op. Bug: 210485380 Test: make, flash and boot Change-Id: I4be08243156e9d04f4b3b44ab7328d0f6f7fdda1
| | | * | Changes to make eth service methods more testableJames Mattis2022-01-053-18/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates to make methods in EthernetServiceImpl that rely on EthernetTracker unit testable. This CL also includes added tests for such methods in EthernetServiceImplTest. Bug: 210485380 Test: atest EthernetServiceTests Change-Id: I63969b60cc4cf9d391e2cd21d02e1bdc8988aba8
| | | * | Eth Service updates to validate net mgmt callsJames Mattis2022-01-051-4/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates to ethernet service code to validate calls to ethernet network management APIs. Bug: 210485380 Test: atest EthernetServiceTests Change-Id: I66b91c6d12e6859de33760ab21bb00f1477720e8
| | | * | Remove INetworkManagementService usage from EthernetTracker.Xiao Ma2021-12-241-27/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ethernet service related files are going to be moved into Connectivity module. INetworkManagementService won't be visible to EthernetTracker since it's a hidden class. Alternatively, use INetd APIs to replace INetworkManagementService usages, including below API changes: - mNMService.listInterfaces -> mNetd.interfaceGetList - mNMService.getInterfaceConfig -> NetdUtils.getInterfaceConfigParcel - remove InterfaceConfiguration usage, use NetdUtils APIs instead. - mNMService.registerObserver -> mNetd.registerUnsolicitedEventListener - for this API change, also replace the parameter BaseNetworkObserver class with BaseNetdUnsolicitedEventListener class. Bug: 210586283 Test: atest FrameworksNetTests Test: atest EthernetServiceTests Change-Id: Ic14c55a6a36b774006931a6fbcbfdec0c51a16e9
| | | * | Stubbed net mgmt API methods in eth serviceJames Mattis2021-12-221-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stubbed API methods in EthernetServiceImpl to be used for network management. Bug: 210487086 Bug: 210485380 Test: make, flash and boot and atest EthernetServiceTests Change-Id: I8bd5a6eca07d00e0f155b71e2960371989a13013