summaryrefslogtreecommitdiff
path: root/service-t/src/com/android/server/IpSecService.java
Commit message (Collapse)AuthorAgeFilesLines
* Split out the ipsec API surface and use framework-connectivity-tiramisuAaron Huang2022-02-031-28/+1
| | | | | | Bug: 204153604 Test: TH Change-Id: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
* Remove ParcelFileDescriptor hidden API usage from IpSecServiceAaron Huang2022-01-061-10/+26
| | | | | | | | | | | | | IpSec service is going to be a part of Connectivity mainline module and ParcelFileDescriptor(FileDescriptor) is a hidden API that cannot be used by mainline module. Therefore, use ParcelFileDescriptor.dup(FileDescriptor) to get a ParcelFileDescriptor instead. Bug: 204153604 Test: FrameworksNetTests Change-Id: I0ccabdfc5060f4b635e9a7009a67fbd5d32002fd
* Remove NetdService usage from IpSecServiceAaron Huang2021-12-151-116/+78
| | | | | | | | | | | | | | | | | | IpSecService is going to be moved into ConnectivityService module. So, NetdService won't be visible to IpSecService since it is a hidden class. NetdService.get(timeout) is a method that blocks for specified time until INetd instance is available. In SystemServer IpSecService is created after NetworkManagementService and NMS uses NetdService.get() to get INetd instance which is a method that blocks until an INetd instance is available. Thus, connectNativeNetdService can be removed because NMS already waits for INetd instance is available so IpSecService should be able to get INetd instance immediately. Bug: 204153604 Test: FrameworksNetTest Change-Id: I007cb28de63783d60084f93dddb4de78faa0e868
* Refactor IpSecServiceConfiguration to DependenciesAaron Huang2021-12-141-45/+54
| | | | | | | | | | | | | IpSecService is going to be moved into ConnectivityService module, so the hidden API usage should be removed. NetdService.getNetdInstance is a hidden API, therefore the alternative is to get the instance by Context.getSystemService. Bug: 204153604 Test: FrameworksNetTests Change-Id: I1bd8efc03c37654d12a8eadd3e78ed45e10b5691
* Fix style errors for IpSec associated filesAaron Huang2021-12-141-16/+17
| | | | | | Bug: 204153604 Test: build pass. Change-Id: I940de8bef7f693dcce8808148a975bea1f36712c
* Move IpSec associated files to f/b/packages/ConnectivityTAaron Huang2021-12-141-0/+1917
IpSecService is going to be moved into Connectivity mainline module. Move all ipsec associated files to packages/ConnectivityT so that it can be easily migrate these files to connectivity module after clearing the hidden API usages. Bug: 204153604 Test: build pass FrameworksNetTests CtsNetTestCases Change-Id: I562b47f18e345988a2638cf886f86818f9144b91