summaryrefslogtreecommitdiff
path: root/core/java/android/net/NattSocketKeepalive.java
Commit message (Collapse)AuthorAgeFilesLines
* Move module sources to packages/ConnectivityRemi NGUYEN VAN2021-02-011-77/+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
* Use ParcelFileDescriptor instead of FileDescriptor in the aidlChiachang Wang2021-01-211-1/+1
| | | | | | | | | | | | | Using FileDescriptor in the aidl will refer to Parcel.readRawFileDescriptor() and Parcel.writeRawFileDescriptor() whilie trying to do parcel operations. Those two APIs are hidden and not accessible for the incoming ConnectivityService mainline module. For such use cases in a module, it should be replaced by using ParcelFileDescriptor that is designed for such usages. Bug: 170598012 Test: atest FrameworksNetTests CtsNetTestCasesLatestSdk Change-Id: Ia7e3a71ccb4b136cc55c9e90a384870c32cfd37b
* Fix SocketKeepalive APIs which do not meet API review requirementjunyulai2019-03-251-8/+5
| | | | | | | | | | | | | | | | | Per API review, change the use of FileDescriptor to ParcelFileDescriptor. This change also fix nullability according to API review feedbacks. Fix: 126698610 Fix: 126699425 Fix: 126699232 Fix: 126700278 Test: 1. m -j 2. atest FrameworksNetTests --generate-new-metrics 50 3. m -j doc-comment-check-docs Change-Id: I19476c50dd1ca290bf3f41973829da2bd229796a
* [KA02.5] Use binder thread and executor to invoke callbackjunyulai2019-03-141-15/+20
| | | | | | | | | | | | | | | | | Currently, client side of keepalive event handling rely on a newly created thread, looper, messenger and handler per object. However, by creating oneway AIDL interface with the executor, the callbacks can be invoked on the binder thread with user specified context, which not only greatly simplify the design but also reduce the cost of current thread modeling. Bug: 114151147 Bug: 123969871 Test: 1. atest FrameworksNetTests --generate-new-metric 10 2. atest-deflake.sh Change-Id: I27504074cd28d5b5eb94a7ec0e97ebaaaaa1ae3d
* [KA05] Export keepalive offload api for IpSec Nat-T file descriptorjunyulai2019-01-241-7/+9
| | | | | | | | | Adds system api of createSocketKeepalive to take file descriptor, so privileged apps could use it without the need of IpSecService. Bug: 114151147 Test: atest FrameworksNetTests Change-Id: If926c21704b6ed73a0adfcadad732b97b42bacae
* [KA01] export SocketKeepalive API for NAT-T keepalivejunyulai2019-01-231-0/+73
The new set of API replace the PacketKeepalive system API which is only specific for IPsec NAT-T keepalive packet. Allows applications to request different types of keepalives through the same set of API. By using keepalives, applications could request system to periodically send specific packets on their behalf, using hardware offload to save battery power. This change would only address interface change and test part of original functionality. After all reference of PacketKeepalive are removed, another change would be submitted to remove old API. Bug: 114151147 Test: atest FrameworksNetTests Change-Id: I3367666810acc44d5ad20e19acd4bf936e8b5d9c