Home
last modified time | relevance | path

Searched refs:l2Key (Results 1 – 25 of 84) sorted by relevance

1234

/packages/modules/Connectivity/tests/unit/java/android/net/
DIpMemoryStoreTest.java120 final String l2Key = "fakeKey"; in testNetworkAttributes() local
122 mStore.storeNetworkAttributes(l2Key, TEST_NETWORK_ATTRIBUTES, in testNetworkAttributes()
125 verify(mMockService, times(1)).storeNetworkAttributes(eq(l2Key), in testNetworkAttributes()
129 mStore.retrieveNetworkAttributes(l2Key, in testNetworkAttributes()
133 assertEquals(l2Key, key); in testNetworkAttributes()
137 verify(mMockService, times(1)).retrieveNetworkAttributes(eq(l2Key), any()); in testNetworkAttributes()
145 final String l2Key = "fakeKey"; in testPrivateData() local
147 mStore.storeBlob(l2Key, TEST_CLIENT_ID, TEST_DATA_NAME, b, in testPrivateData()
151 verify(mMockService, times(1)).storeBlob(eq(l2Key), eq(TEST_CLIENT_ID), eq(TEST_DATA_NAME), in testPrivateData()
154 mStore.retrieveBlob(l2Key, TEST_CLIENT_ID, TEST_OTHER_DATA_NAME, in testPrivateData()
[all …]
/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreService.java167 public void storeNetworkAttributes(@Nullable final String l2Key, in storeNetworkAttributes() argument
177 final int code = storeNetworkAttributesAndBlobSync(l2Key, na, in storeNetworkAttributes()
198 public void storeBlob(@Nullable final String l2Key, @Nullable final String clientId, in storeBlob() argument
204 final int code = storeNetworkAttributesAndBlobSync(l2Key, in storeBlob()
221 private int storeNetworkAttributesAndBlobSync(@Nullable final String l2Key, in storeNetworkAttributesAndBlobSync() argument
225 if (null == l2Key) return ERROR_ILLEGAL_ARGUMENT; in storeNetworkAttributesAndBlobSync()
230 final long oldExpiry = IpMemoryStoreDatabase.getExpiry(mDb, l2Key); in storeNetworkAttributesAndBlobSync()
234 IpMemoryStoreDatabase.storeNetworkAttributes(mDb, l2Key, newExpiry, attributes); in storeNetworkAttributesAndBlobSync()
238 return IpMemoryStoreDatabase.storeBlob(mDb, l2Key, clientId, name, data); in storeNetworkAttributesAndBlobSync()
241 Log.e(TAG, "Exception while storing for key {" + l2Key in storeNetworkAttributesAndBlobSync()
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreServiceTest.java235 void onBlobRetrieved(Status status, String l2Key, String name, byte[] data);
241 final String l2Key, final String name, final Blob blob) throws RemoteException {
242 functor.onBlobRetrieved(new Status(statusParcelable), l2Key, name,
265 void onNetworkAttributesRetrieved(Status status, String l2Key, NetworkAttributes attr);
272 final String l2Key, final NetworkAttributesParcelable attributes)
274 functor.onNetworkAttributesRetrieved(new Status(status), l2Key,
375 private NetworkAttributes storeAttributes(final String l2Key, final NetworkAttributes na) {
376 return storeAttributes("Did not complete storing attributes", l2Key, na);
378 private NetworkAttributes storeAttributes(final String timeoutMessage, final String l2Key,
380 doLatched(timeoutMessage, latch -> mService.storeNetworkAttributes(l2Key, na.toParcelable(),
[all …]
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/
DIpMemoryStoreClient.java87 public void storeNetworkAttributes(@NonNull final String l2Key, in storeNetworkAttributes() argument
92 () -> service.storeNetworkAttributes(l2Key, attributes.toParcelable(), in storeNetworkAttributes()
112 public void storeBlob(@NonNull final String l2Key, @NonNull final String clientId, in storeBlob() argument
117 () -> service.storeBlob(l2Key, clientId, name, data, in storeBlob()
184 public void retrieveNetworkAttributes(@NonNull final String l2Key, in retrieveNetworkAttributes() argument
188 () -> service.retrieveNetworkAttributes(l2Key, in retrieveNetworkAttributes()
208 public void retrieveBlob(@NonNull final String l2Key, @NonNull final String clientId, in retrieveBlob() argument
212 () -> service.retrieveBlob(l2Key, clientId, name, in retrieveBlob()
236 public void delete(@NonNull final String l2Key, final boolean needWipe, in delete() argument
240 service.delete(l2Key, needWipe, OnDeleteStatusListener.toAIDL(listener)))); in delete()
DIIpMemoryStore.aidl45 void storeNetworkAttributes(String l2Key, in NetworkAttributesParcelable attributes, in storeNetworkAttributes() argument
59 void storeBlob(String l2Key, String clientId, String name, in Blob data, in storeBlob() argument
98 void retrieveNetworkAttributes(String l2Key, IOnNetworkAttributesRetrievedListener listener); in retrieveNetworkAttributes() argument
111 void retrieveBlob(String l2Key, String clientId, String name, in retrieveBlob() argument
134 void delete(String l2Key, boolean needWipe, IOnStatusAndCountListener listener); in delete() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/7/android/net/
DIIpMemoryStore.aidl21 …oneway void storeNetworkAttributes(String l2Key, in android.net.ipmemorystore.NetworkAttributesPar… in storeNetworkAttributes() argument
22 …oneway void storeBlob(String l2Key, String clientId, String name, in android.net.ipmemorystore.Blo… in storeBlob() argument
25 …oneway void retrieveNetworkAttributes(String l2Key, android.net.ipmemorystore.IOnNetworkAttributes… in retrieveNetworkAttributes() argument
26 …oneway void retrieveBlob(String l2Key, String clientId, String name, android.net.ipmemorystore.IOn… in retrieveBlob() argument
28 …oneway void delete(String l2Key, boolean needWipe, android.net.ipmemorystore.IOnStatusAndCountList… in delete() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/9/android/net/
DIIpMemoryStore.aidl21 …oneway void storeNetworkAttributes(String l2Key, in android.net.ipmemorystore.NetworkAttributesPar… in storeNetworkAttributes() argument
22 …oneway void storeBlob(String l2Key, String clientId, String name, in android.net.ipmemorystore.Blo… in storeBlob() argument
25 …oneway void retrieveNetworkAttributes(String l2Key, android.net.ipmemorystore.IOnNetworkAttributes… in retrieveNetworkAttributes() argument
26 …oneway void retrieveBlob(String l2Key, String clientId, String name, android.net.ipmemorystore.IOn… in retrieveBlob() argument
28 …oneway void delete(String l2Key, boolean needWipe, android.net.ipmemorystore.IOnStatusAndCountList… in delete() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/8/android/net/
DIIpMemoryStore.aidl21 …oneway void storeNetworkAttributes(String l2Key, in android.net.ipmemorystore.NetworkAttributesPar… in storeNetworkAttributes() argument
22 …oneway void storeBlob(String l2Key, String clientId, String name, in android.net.ipmemorystore.Blo… in storeBlob() argument
25 …oneway void retrieveNetworkAttributes(String l2Key, android.net.ipmemorystore.IOnNetworkAttributes… in retrieveNetworkAttributes() argument
26 …oneway void retrieveBlob(String l2Key, String clientId, String name, android.net.ipmemorystore.IOn… in retrieveBlob() argument
28 …oneway void delete(String l2Key, boolean needWipe, android.net.ipmemorystore.IOnStatusAndCountList… in delete() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/10/android/net/
DIIpMemoryStore.aidl21 …oneway void storeNetworkAttributes(String l2Key, in android.net.ipmemorystore.NetworkAttributesPar… in storeNetworkAttributes() argument
22 …oneway void storeBlob(String l2Key, String clientId, String name, in android.net.ipmemorystore.Blo… in storeBlob() argument
25 …oneway void retrieveNetworkAttributes(String l2Key, android.net.ipmemorystore.IOnNetworkAttributes… in retrieveNetworkAttributes() argument
26 …oneway void retrieveBlob(String l2Key, String clientId, String name, android.net.ipmemorystore.IOn… in retrieveBlob() argument
28 …oneway void delete(String l2Key, boolean needWipe, android.net.ipmemorystore.IOnStatusAndCountList… in delete() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/current/android/net/
DIIpMemoryStore.aidl21 …oneway void storeNetworkAttributes(String l2Key, in android.net.ipmemorystore.NetworkAttributesPar… in storeNetworkAttributes() argument
22 …oneway void storeBlob(String l2Key, String clientId, String name, in android.net.ipmemorystore.Blo… in storeBlob() argument
25 …oneway void retrieveNetworkAttributes(String l2Key, android.net.ipmemorystore.IOnNetworkAttributes… in retrieveNetworkAttributes() argument
26 …oneway void retrieveBlob(String l2Key, String clientId, String name, android.net.ipmemorystore.IOn… in retrieveBlob() argument
28 …oneway void delete(String l2Key, boolean needWipe, android.net.ipmemorystore.IOnStatusAndCountList… in delete() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/2/android/net/
DIIpMemoryStore.aidl3 …oneway void storeNetworkAttributes(String l2Key, in android.net.ipmemorystore.NetworkAttributesPar… in storeNetworkAttributes() argument
4 …oneway void storeBlob(String l2Key, String clientId, String name, in android.net.ipmemorystore.Blo… in storeBlob() argument
7 …oneway void retrieveNetworkAttributes(String l2Key, android.net.ipmemorystore.IOnNetworkAttributes… in retrieveNetworkAttributes() argument
8 …oneway void retrieveBlob(String l2Key, String clientId, String name, android.net.ipmemorystore.IOn… in retrieveBlob() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/1/android/net/
DIIpMemoryStore.aidl3 …oneway void storeNetworkAttributes(String l2Key, in android.net.ipmemorystore.NetworkAttributesPar… in storeNetworkAttributes() argument
4 …oneway void storeBlob(String l2Key, String clientId, String name, in android.net.ipmemorystore.Blo… in storeBlob() argument
7 …oneway void retrieveNetworkAttributes(String l2Key, android.net.ipmemorystore.IOnNetworkAttributes… in retrieveNetworkAttributes() argument
8 …oneway void retrieveBlob(String l2Key, String clientId, String name, android.net.ipmemorystore.IOn… in retrieveBlob() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/4/android/net/
DIIpMemoryStore.aidl3 …oneway void storeNetworkAttributes(String l2Key, in android.net.ipmemorystore.NetworkAttributesPar… in storeNetworkAttributes() argument
4 …oneway void storeBlob(String l2Key, String clientId, String name, in android.net.ipmemorystore.Blo… in storeBlob() argument
7 …oneway void retrieveNetworkAttributes(String l2Key, android.net.ipmemorystore.IOnNetworkAttributes… in retrieveNetworkAttributes() argument
8 …oneway void retrieveBlob(String l2Key, String clientId, String name, android.net.ipmemorystore.IOn… in retrieveBlob() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/3/android/net/
DIIpMemoryStore.aidl20 …oneway void storeNetworkAttributes(String l2Key, in android.net.ipmemorystore.NetworkAttributesPar… in storeNetworkAttributes() argument
21 …oneway void storeBlob(String l2Key, String clientId, String name, in android.net.ipmemorystore.Blo… in storeBlob() argument
24 …oneway void retrieveNetworkAttributes(String l2Key, android.net.ipmemorystore.IOnNetworkAttributes… in retrieveNetworkAttributes() argument
25 …oneway void retrieveBlob(String l2Key, String clientId, String name, android.net.ipmemorystore.IOn… in retrieveBlob() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/6/android/net/
DIIpMemoryStore.aidl21 …oneway void storeNetworkAttributes(String l2Key, in android.net.ipmemorystore.NetworkAttributesPar… in storeNetworkAttributes() argument
22 …oneway void storeBlob(String l2Key, String clientId, String name, in android.net.ipmemorystore.Blo… in storeBlob() argument
25 …oneway void retrieveNetworkAttributes(String l2Key, android.net.ipmemorystore.IOnNetworkAttributes… in retrieveNetworkAttributes() argument
26 …oneway void retrieveBlob(String l2Key, String clientId, String name, android.net.ipmemorystore.IOn… in retrieveBlob() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/5/android/net/
DIIpMemoryStore.aidl21 …oneway void storeNetworkAttributes(String l2Key, in android.net.ipmemorystore.NetworkAttributesPar… in storeNetworkAttributes() argument
22 …oneway void storeBlob(String l2Key, String clientId, String name, in android.net.ipmemorystore.Blo… in storeBlob() argument
25 …oneway void retrieveNetworkAttributes(String l2Key, android.net.ipmemorystore.IOnNetworkAttributes… in retrieveNetworkAttributes() argument
26 …oneway void retrieveBlob(String l2Key, String clientId, String name, android.net.ipmemorystore.IOn… in retrieveBlob() argument
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.kt48 override fun getStoredNetworkAttributes(l2Key: String, timeout: Long): NetworkAttributes { in getStoredNetworkAttributes()
52 .storeNetworkAttributes(eq(l2Key), networkAttributesCaptor.capture(), any()) in getStoredNetworkAttributes()
56 override fun assertIpMemoryNeverStoreNetworkAttributes(l2Key: String, timeout: Long) { in assertIpMemoryNeverStoreNetworkAttributes()
57 verify(mIpMemoryStore, never()).storeNetworkAttributes(eq(l2Key), any(), any()) in assertIpMemoryNeverStoreNetworkAttributes()
DIpClientRootTest.kt250 override fun getStoredNetworkAttributes(l2Key: String, timeout: Long): NetworkAttributes { in <lambda>()
252 mStore.retrieveNetworkAttributes(l2Key, listener) in <lambda>()
258 override fun assertIpMemoryNeverStoreNetworkAttributes(l2Key: String, timeout: Long) { in <lambda>()
260 mStore.retrieveNetworkAttributes(l2Key, listener) in <lambda>()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/
DLayer2Information.java37 public Layer2Information(@Nullable final String l2Key, @Nullable final String cluster, in Layer2Information() argument
39 mL2Key = l2Key; in Layer2Information()
58 p.l2Key = mL2Key; in toStableParcelable()
70 return new Layer2Information(p.l2Key, p.cluster, p.bssid); in fromStableParcelable()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ipmemorystore/
DOnL2KeyResponseListener.java29 void onL2KeyResponse(Status status, String l2Key); in onL2KeyResponse() argument
37 final String l2Key) { in toAIDL()
40 listener.onL2KeyResponse(new Status(statusParcelable), l2Key); in toAIDL()
DOnNetworkAttributesRetrievedListener.java29 void onNetworkAttributesRetrieved(Status status, String l2Key, NetworkAttributes attributes); in onNetworkAttributesRetrieved() argument
38 final String l2Key, in toAIDL()
43 new Status(statusParcelable), l2Key, null == networkAttributesParcelable in toAIDL()
DOnBlobRetrievedListener.java29 void onBlobRetrieved(Status status, String l2Key, String name, Blob blob); in onBlobRetrieved() argument
36 public void onBlobRetrieved(final StatusParcelable statusParcelable, final String l2Key, in toAIDL()
40 listener.onBlobRetrieved(new Status(statusParcelable), l2Key, name, blob); in toAIDL()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DMemoryStoreImpl.java91 CatchAFallingBlob(String l2Key, WifiScoreCard.BlobListener blobListener) { in CatchAFallingBlob() argument
92 mL2Key = l2Key; in CatchAFallingBlob()
97 public void onBlobRetrieved(Status status, String l2Key, String name, Blob data) { in onBlobRetrieved() argument
98 if (!Objects.equals(mL2Key, l2Key)) { in onBlobRetrieved()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java810 final String l2Key = mConfiguration.l2Key; in setLeaseExpiredToIpMemoryStore() local
811 if (l2Key == null) return; in setLeaseExpiredToIpMemoryStore()
819 mIpMemoryStore.storeNetworkAttributes(l2Key, na.build(), listener); in setLeaseExpiredToIpMemoryStore()
823 final String l2Key = mConfiguration.l2Key; in maybeSaveLeaseToIpMemoryStore() local
824 if (l2Key == null || mDhcpLease == null || mDhcpLease.ipAddress == null) return; in maybeSaveLeaseToIpMemoryStore()
836 mIpMemoryStore.storeNetworkAttributes(l2Key, na.build(), listener); in maybeSaveLeaseToIpMemoryStore()
987 public final String l2Key; field in DhcpClient.Configuration
992 public Configuration(@Nullable final String l2Key, final boolean isPreconnectionEnabled, in Configuration() argument
994 this.l2Key = l2Key; in Configuration()
1214 final OnNetworkAttributesRetrievedListener listener = (status, l2Key, attributes) -> { in enter()
[all …]
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ip/
DIpClientManager.java280 public boolean setL2KeyAndGroupHint(String l2Key, String groupHint) { in setL2KeyAndGroupHint() argument
283 mIpClient.setL2KeyAndGroupHint(l2Key, groupHint); in setL2KeyAndGroupHint()

1234