summaryrefslogtreecommitdiff
path: root/core/java/android/net/NattKeepalivePacketData.java
Commit message (Collapse)AuthorAgeFilesLines
* Move module sources to packages/ConnectivityRemi NGUYEN VAN2021-02-011-144/+0
| | | | | | | | | | | | | | Files that are planned to be part of the connectivity module are grouped in packages/Connectivity, so they can be built separately and moved in one operation with their history into packages/modules/Connectivity. This places the files in the existing framework-connectivity-sources filegroup instead of the current framework-core-sources filegroup. Both are used the same way in framework-non-updatable-sources. Bug: 171540887 Test: m Change-Id: I62d9d91574ace6f5c4624035d190260c3126b91e
* Move IpUtils to frameworks/libs/netRemi NGUYEN VAN2020-10-051-1/+2
| | | | | | | | | The utility classes are useful for mainline modules and their tests, for example IpClientIntegrationTest. Bug: 168868607 Test: m && atest NetworkStaticLibTests Change-Id: If2b1613aa18a7990391e2d31cc2951ca93f1cf3c
* API review: access field by methodAaron Huang2020-03-241-10/+12
| | | | | | | | | | | | | | | - InvalidPacketException, public field should be a method so add getter to get error code. - KeepalivePacketData, public fields should be methods so add getter for fields. Bug: 151322799 Test: atest FrameworksNetTests atest FrameworksWifiTests atest FrameworksTelephonyTests: some failure in CarrierAppUtilsTest Copy from ag/10731108 Change-Id: Id01e6135193716cc21bba11da529bf1507a954f7 Merged-In: Id01e6135193716cc21bba11da529bf1507a954f7
* Add NattKeepalivePacketDataTestChiachang Wang2020-03-171-0/+17
| | | | | | | | | Add test for constructor and parcel Test: atest CtsNetTestCasesLatestSdk:android.net.NattKeepalivePacketDataTest on both Q and R devices Bug: 151402211 Change-Id: I97015365604be1846e3ecbaf60ac99e334705565
* Make NattKeepalivePacketData @SystemApiAaron Huang2020-01-141-6/+10
| | | | | | | | Bug: 139268426 Bug: 135998869 Test: atest FrameworksNetTests Change-Id: I687f1a8a4b82cb7e4a0dfeb24f0b23a4de6d5287
* Add keepalive related methods and fields to system APIsAaron Huang2019-12-171-1/+3
| | | | | | | | | | | | | | | | | | | | Add KeepalivePacketData to system API for mainline support. Also, remove InvalidPacketException class from SocketKeepalive and create a new InvalidPacketException class in android.net Bug: 139268426 Bug: 135998869 Bug: 138306002 Test: atest FrameworksNetTests atest NetworkStackTests atest FrameworksTelephonyTests ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh atest android.net.cts atest android.net.wifi.cts atest android.telephony.cts Change-Id: I2d982e8abb5cb6b4c74a20483550b18cf814320d Merged-In: I2d982e8abb5cb6b4c74a20483550b18cf814320d
* Fix cannot create Nat-T keepalive on mobile datajunyulai2019-06-041-0/+118
| | | | | | | | | | | | | | | | | | Currently phone process fail to unparcel NattKeepalivePacketData since it is not in framework. Moves NattKeepalivePacketData to framework to make it can be utilized by telephony. This change also removes the error feedback triggered by calling add keepalive packet filter to an unsupported network agent. This is misinterpreted by KeepaliveTracker that start keepalive is failing. Bug: 134048171 Test: 1. atest android.net.cts.ConnectivityManagerTest#testSocketKeepaliveLimitTelephony 2. atest android.net.cts.ConnectivityManagerTest 3. atest FrameworksNetTests 4. atest FrameworksTelephonyTests Change-Id: If630d5b339aa722717258c721daa8ead8c431e2d
* Move NattKeepalivePacketData out of the frameworkAaron Huang2019-04-201-80/+0
| | | | | | | | | | | | | | | For implementing parcelable interface for NattKeepalivePacketData. Move this class out of framework.jar and move to services.jar This class is used in telephony-common.jar and it also loads service.jar. Bug: 33530442 Test: - build pass - atest NetworkStackTests - atest ConnectivityServiceTest Change-Id: Id2fdec5c4015d2cefd8a93e0cfdcc3c304fc9b64
* [KA03] Support tcp keepalive offloadmarkchien2019-02-061-2/+5
| | | | | | | | | | | | | | When offload is starting, socket will be switched to repair mode. Read and write on the socket will not be allowed until repair mode is turned off. If remote packet arrives, repair mode will be turned off automatically and a callback will be raised to indicate that socket is ready to read from. Bug: 114151147 Test: -atest FrameworksNetTests -manual Change-Id: I0c335865912e183e7ad32a8ea12188f02ccde5fd
* [KA02] internal cleanup and refactor for SocketKeepalivejunyulai2019-02-051-0/+77
In previous change, the new SocketKeepalive API was exported. But internally, old PacketKeepalive names and structures are still used. This change rename them properly for code consistency and also refactor KeepalivePacketData to support different types of KeepalivePacketData. Bug: 114151147 Test: 1. atest FrameworksNetTests 2. atest FrameworksWifiTests 3. atest FrameworksTelephonyTests Change-Id: Ia9917d12987e91e87e34ffb3f126e7bc7c9c187e Merged-In: Ia9917d12987e91e87e34ffb3f126e7bc7c9c187e