Home
last modified time | relevance | path

Searched refs:RefcountedResource (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceRefcountedResourceTest.java41 import com.android.server.IpSecService.RefcountedResource;
70 RefcountedResource<IResource> resource, in assertResourceState()
91 private RefcountedResource<IResource> getTestRefcountedResource( in getTestRefcountedResource()
92 RefcountedResource... children) { in getTestRefcountedResource()
97 private RefcountedResource<IResource> getTestRefcountedResource( in getTestRefcountedResource()
98 IBinder binder, RefcountedResource... children) { in getTestRefcountedResource()
101 .new RefcountedResource<IResource>(mock(IResource.class), binder, children)); in getTestRefcountedResource()
107 RefcountedResource<IResource> resource = getTestRefcountedResource(binderMock); in testConstructor()
120 RefcountedResource<IResource> childResource = getTestRefcountedResource(binderMockChild); in testConstructorWithChildren()
121 RefcountedResource<IResource> parentResource = in testConstructorWithChildren()
[all …]
DIpSecServiceParameterizedTest.java244 IpSecService.RefcountedResource refcountedRecord = in testSecurityParameterIndexBinderDeath()
521 IpSecService.RefcountedResource refcountedRecord = in testTransportModeTransformBinderDeath()
645 IpSecService.RefcountedResource refcountedRecord = in testCreateTunnelInterface()
687 IpSecService.RefcountedResource refcountedRecord = in testTunnelInterfaceBinderDeath()
DIpSecServiceTest.java203 IpSecService.RefcountedResource refcountedRecord = in testUdpEncapsulationSocketBinderDeath()
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java194 public class RefcountedResource<T extends IResource> implements IBinder.DeathRecipient { class in IpSecService
196 private final List<RefcountedResource> mChildren;
200 RefcountedResource(T resource, IBinder binder, RefcountedResource... children) { in RefcountedResource() method in IpSecService.RefcountedResource
206 for (RefcountedResource child : children) { in RefcountedResource()
293 for (RefcountedResource<? extends IResource> child : mChildren) { in releaseReference()
544 SparseArray<RefcountedResource<T>> mArray = new SparseArray<>();
565 RefcountedResource<T> getRefcountedResourceOrThrow(int key) { in getRefcountedResourceOrThrow()
566 RefcountedResource<T> resource = mArray.get(key); in getRefcountedResourceOrThrow()
575 void put(int key, RefcountedResource<T> obj) { in put()
1135 new RefcountedResource<SpiRecord>( in allocateSecurityParameterIndex()
[all …]