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.java40 import com.android.server.IpSecService.RefcountedResource;
68 RefcountedResource<IResource> resource, in assertResourceState()
89 private RefcountedResource<IResource> getTestRefcountedResource( in getTestRefcountedResource()
90 RefcountedResource... children) { in getTestRefcountedResource()
95 private RefcountedResource<IResource> getTestRefcountedResource( in getTestRefcountedResource()
96 IBinder binder, RefcountedResource... children) { in getTestRefcountedResource()
99 .new RefcountedResource<IResource>(mock(IResource.class), binder, children)); in getTestRefcountedResource()
105 RefcountedResource<IResource> resource = getTestRefcountedResource(binderMock); in testConstructor()
118 RefcountedResource<IResource> childResource = getTestRefcountedResource(binderMockChild); in testConstructorWithChildren()
119 RefcountedResource<IResource> parentResource = in testConstructorWithChildren()
[all …]
DIpSecServiceParameterizedTest.java241 IpSecService.RefcountedResource refcountedRecord = in testSecurityParameterIndexBinderDeath()
518 IpSecService.RefcountedResource refcountedRecord = in testTransportModeTransformBinderDeath()
599 IpSecService.RefcountedResource refcountedRecord = in testCreateTunnelInterface()
640 IpSecService.RefcountedResource refcountedRecord = in testTunnelInterfaceBinderDeath()
DIpSecServiceTest.java200 IpSecService.RefcountedResource refcountedRecord = in testUdpEncapsulationSocketBinderDeath()
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java191 public class RefcountedResource<T extends IResource> implements IBinder.DeathRecipient { class in IpSecService
193 private final List<RefcountedResource> mChildren;
197 RefcountedResource(T resource, IBinder binder, RefcountedResource... children) { in RefcountedResource() method in IpSecService.RefcountedResource
203 for (RefcountedResource child : children) { in RefcountedResource()
290 for (RefcountedResource<? extends IResource> child : mChildren) { in releaseReference()
537 SparseArray<RefcountedResource<T>> mArray = new SparseArray<>();
558 RefcountedResource<T> getRefcountedResourceOrThrow(int key) { in getRefcountedResourceOrThrow()
559 RefcountedResource<T> resource = mArray.get(key); in getRefcountedResourceOrThrow()
568 void put(int key, RefcountedResource<T> obj) { in put()
1124 new RefcountedResource<SpiRecord>( in allocateSecurityParameterIndex()
[all …]