summaryrefslogtreecommitdiff
path: root/core/java/android/net/TcpSocketKeepalive.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-3/+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-7/+4
| | | | | | | | | | | | | | | | | 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/+18
| | | | | | | | | | | | | | | | | 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
* Improve keepalive offload documentation and error handlingjunyulai2019-03-071-5/+6
| | | | | | Bug: 123987401 Test: atest FrameworksNetTests Change-Id: Id651cfb743f02b05ca3845af3c393eaf5762bb20
* [KA04] Expose TCP socket keepalive APIjunyulai2019-02-061-0/+78
The new set of API allows applications to request keepalives offload for established TCP sockets over wifi. However, the application must not write to or read from the socket after calling this method, until specific callbacks are called. Bug: 114151147 Test: atest FrameworksNetTests FrameworksWifiTests NetworkStackTests Change-Id: I3880505dbc35fefa34ef6c79555458ecf5d296a4