/packages/modules/Connectivity/tests/unit/java/android/net/ipmemorystore/ |
D | ParcelableTests.java | 48 final NetworkAttributes.Builder builder = new NetworkAttributes.Builder(); in testNetworkAttributesParceling() 49 NetworkAttributes in = builder.build(); in testNetworkAttributesParceling() 50 assertEquals(in, new NetworkAttributes(parcelingRoundTrip(in.toParcelable()))); in testNetworkAttributesParceling() 59 assertEquals(in, new NetworkAttributes(parcelingRoundTrip(in.toParcelable()))); in testNetworkAttributesParceling() 69 assertEquals(in, new NetworkAttributes(parcelingRoundTrip(in.toParcelable()))); in testNetworkAttributesParceling() 73 assertEquals(in, new NetworkAttributes(parcelingRoundTrip(in.toParcelable()))); in testNetworkAttributesParceling() 78 assertEquals(6, Arrays.stream(NetworkAttributes.class.getDeclaredFields()) in testNetworkAttributesParceling() 115 final NetworkAttributes.Builder builder = new NetworkAttributes.Builder(); in testIPv6ProvisioningLossQuirkParceling() 123 final NetworkAttributes in = builder.build(); in testIPv6ProvisioningLossQuirkParceling() 125 final NetworkAttributes out = new NetworkAttributes(parcelingRoundTrip(in.toParcelable())); in testIPv6ProvisioningLossQuirkParceling()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/ |
D | IpMemoryStoreServiceTest.java | 39 import android.net.ipmemorystore.NetworkAttributes; 160 private static NetworkAttributes.Builder buildTestNetworkAttributes( in buildTestNetworkAttributes() 163 final NetworkAttributes.Builder na = new NetworkAttributes.Builder(); in buildTestNetworkAttributes() 265 void onNetworkAttributesRetrieved(Status status, String l2Key, NetworkAttributes attr); 275 null == attributes ? null : new NetworkAttributes(attributes)); 375 private NetworkAttributes storeAttributes(final String l2Key, final NetworkAttributes na) { 378 private NetworkAttributes storeAttributes(final String timeoutMessage, final String l2Key, 379 final NetworkAttributes na) { 418 final NetworkAttributes.Builder na = buildTestNetworkAttributes( 457 final NetworkAttributes.Builder na = buildTestNetworkAttributes( [all …]
|
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ipmemorystore/ |
D | NetworkAttributes.java | 38 public class NetworkAttributes { class 107 public NetworkAttributes( in NetworkAttributes() method in NetworkAttributes 128 public NetworkAttributes(@NonNull final NetworkAttributesParcelable parcelable) { in NetworkAttributes() method in NetworkAttributes 201 public float getNetworkGroupSamenessConfidence(@NonNull final NetworkAttributes o) { in getNetworkGroupSamenessConfidence() 248 public Builder(@NonNull final NetworkAttributes attributes) { in Builder() 335 public NetworkAttributes build() { in build() 336 return new NetworkAttributes(mAssignedAddress, mAssignedAddressExpiry, in build() 350 if (!(o instanceof NetworkAttributes)) return false; in equals() 351 final NetworkAttributes other = (NetworkAttributes) o; in equals()
|
D | OnNetworkAttributesRetrievedListener.java | 29 void onNetworkAttributesRetrieved(Status status, String l2Key, NetworkAttributes attributes); in onNetworkAttributesRetrieved() 44 ? null : new NetworkAttributes(networkAttributesParcelable)); in toAIDL()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ipmemorystore/ |
D | NetworkAttributesTest.java | 21 import android.net.ipmemorystore.NetworkAttributes; 52 final Field[] fieldList = NetworkAttributes.class.getDeclaredFields(); in testTotalWeight() 58 assertEquals(sum, NetworkAttributes.TOTAL_WEIGHT, EPSILON); in testTotalWeight() 64 final NetworkAttributes na = in testTotalWeight() 65 new NetworkAttributes( in testTotalWeight()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | IpMemoryStoreTest.java | 35 import android.net.ipmemorystore.NetworkAttributes; 69 private static final NetworkAttributes TEST_NETWORK_ATTRIBUTES = buildTestNetworkAttributes( 110 private static NetworkAttributes buildTestNetworkAttributes(String hint, int mtu) { in buildTestNetworkAttributes() 111 return new NetworkAttributes.Builder() in buildTestNetworkAttributes() 127 assertEquals(TEST_NETWORK_ATTRIBUTES, new NetworkAttributes(mNapCaptor.getValue())); in testNetworkAttributes() 179 assertEquals(TEST_NETWORK_ATTRIBUTES, new NetworkAttributes(mNapCaptor.getValue())); in testFindL2Key() 240 assertEquals(TEST_NETWORK_ATTRIBUTES, new NetworkAttributes(mNapCaptor.getValue())); in testEnqueuedIpMsRequests() 284 assertEquals(TEST_NETWORK_ATTRIBUTES, new NetworkAttributes(mNapCaptor.getValue())); in testEnqueuedIpMsRequestsWithException() 327 assertEquals(TEST_NETWORK_ATTRIBUTES, new NetworkAttributes(mNapCaptor.getValue())); in testEnqueuedIpMsRequestsCallbackFunctionWithException()
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/ |
D | IpMemoryStoreService.java | 38 import android.net.ipmemorystore.NetworkAttributes; 174 final NetworkAttributes na = null == attributes ? null : new NetworkAttributes(attributes); in storeNetworkAttributes() 222 @Nullable final NetworkAttributes attributes, in storeNetworkAttributesAndBlobSync() 280 new NetworkAttributes(attributes)); in findL2Key() 312 final NetworkAttributes attr1 = in isSameNetwork() 314 final NetworkAttributes attr2 = in isSameNetwork() 360 final NetworkAttributes attributes = in retrieveNetworkAttributes()
|
D | IpMemoryStoreDatabase.java | 31 import android.net.ipmemorystore.NetworkAttributes; 254 private static ContentValues toContentValues(@Nullable final NetworkAttributes attributes) { in toContentValues() 282 @Nullable final NetworkAttributes attributes, final long expiry) { in toContentValues() 304 private static NetworkAttributes readNetworkAttributesLine(@NonNull final Cursor cursor) { in readNetworkAttributesLine() 309 final NetworkAttributes.Builder builder = new NetworkAttributes.Builder(); in readNetworkAttributesLine() 371 final long expiry, @Nullable final NetworkAttributes attributes) { in storeNetworkAttributes() 404 static NetworkAttributes retrieveNetworkAttributes(@NonNull final SQLiteDatabase db, in retrieveNetworkAttributes() 556 @NonNull final NetworkAttributes attr) { in findClosestAttributes() 589 final NetworkAttributes read = readNetworkAttributesLine(cursor); in findClosestAttributes()
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientRootTest.kt | 26 import android.net.ipmemorystore.NetworkAttributes in <lambda>() 227 private val future = CompletableFuture<NetworkAttributes?>() in <lambda>() 231 attr: NetworkAttributes? in <lambda>() 245 fun getBlockingNetworkAttributes(timeout: Long): NetworkAttributes? { in <lambda>() 250 override fun getStoredNetworkAttributes(l2Key: String, timeout: Long): NetworkAttributes { in <lambda>()
|
D | IpClientIntegrationTest.kt | 19 import android.net.ipmemorystore.NetworkAttributes 48 override fun getStoredNetworkAttributes(l2Key: String, timeout: Long): NetworkAttributes { in getStoredNetworkAttributes() 49 val networkAttributesCaptor = ArgumentCaptor.forClass(NetworkAttributes::class.java) in getStoredNetworkAttributes()
|
D | IpClientIntegrationTestCommon.java | 111 import android.net.ipmemorystore.NetworkAttributes; 471 protected abstract NetworkAttributes getStoredNetworkAttributes(String l2Key, long timeout); 819 final NetworkAttributes na = getStoredNetworkAttributes(TEST_L2KEY, TEST_TIMEOUT_MS); 946 private DhcpPacket getReplyFromDhcpLease(final NetworkAttributes na, boolean timeout) 1292 new NetworkAttributes.Builder() 1305 new NetworkAttributes.Builder() 1324 new NetworkAttributes.Builder() 1337 new NetworkAttributes.Builder() 2615 new NetworkAttributes.Builder()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | MemoryStoreImpl.java | 24 import android.net.ipmemorystore.NetworkAttributes; 135 NetworkAttributes attributes = new NetworkAttributes.Builder() in setCluster()
|
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ |
D | IpMemoryStoreClient.java | 23 import android.net.ipmemorystore.NetworkAttributes; 88 @NonNull final NetworkAttributes attributes, in storeNetworkAttributes() 140 public void findL2Key(@NonNull final NetworkAttributes attributes, in findL2Key()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 68 import android.net.ipmemorystore.NetworkAttributes; 812 final NetworkAttributes.Builder na = new NetworkAttributes.Builder(); in setLeaseExpiredToIpMemoryStore() 825 final NetworkAttributes.Builder na = new NetworkAttributes.Builder(); in maybeSaveLeaseToIpMemoryStore() 1238 NetworkAttributes attributes = (NetworkAttributes) message.obj; in processMessage()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/ |
D | IpClientTest.java | 55 import android.net.ipmemorystore.NetworkAttributes; 193 final NetworkAttributes attributes) { in verifyNetworkAttributesStored() 409 verifyNetworkAttributesStored(l2Key, new NetworkAttributes.Builder() in testProvisioningWithInitialConfiguration()
|
/packages/modules/Wifi/framework/ |
D | jarjar-rules.txt | 51 rule android.net.ipmemorystore.NetworkAttributes* com.android.wifi.x.@0
|