Home
last modified time | relevance | path

Searched refs:NetworkAttributes (Results 1 – 25 of 35) sorted by relevance

12

/aosp12/packages/modules/Connectivity/tests/unit/java/android/net/ipmemorystore/
H A DParcelableTests.java48 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()
/aosp12/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
H A DIpMemoryStoreServiceTest.java39 import android.net.ipmemorystore.NetworkAttributes;
163 final NetworkAttributes.Builder na = new NetworkAttributes.Builder(); in buildTestNetworkAttributes()
375 private NetworkAttributes storeAttributes(final String l2Key, final NetworkAttributes na) {
379 final NetworkAttributes na) {
460 NetworkAttributes attributes = na.build();
473 final NetworkAttributes.Builder na2 = new NetworkAttributes.Builder();
476 final NetworkAttributes attributes2 = na2.build();
523 final NetworkAttributes na = new NetworkAttributes.Builder().setMtu(2).build();
584 final NetworkAttributes.Builder na = new NetworkAttributes.Builder();
610 final List<NetworkAttributes> stored = storeFixture();
[all …]
/aosp12/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ipmemorystore/
H A DNetworkAttributesTest.java21 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()
/aosp12/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ipmemorystore/
H A DNetworkAttributes.java38 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()
H A DOnNetworkAttributesRetrievedListener.java29 void onNetworkAttributesRetrieved(Status status, String l2Key, NetworkAttributes attributes); in onNetworkAttributesRetrieved()
44 ? null : new NetworkAttributes(networkAttributesParcelable)); in toAIDL()
/aosp12/packages/modules/Connectivity/tests/unit/java/android/net/
H A DIpMemoryStoreTest.java35 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()
/aosp12/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
H A DIpClientIntegrationTest.kt19 import android.net.ipmemorystore.NetworkAttributes
48 override fun getStoredNetworkAttributes(l2Key: String, timeout: Long): NetworkAttributes {
49 val networkAttributesCaptor = ArgumentCaptor.forClass(NetworkAttributes::class.java)
H A DIpClientRootTest.kt26 import android.net.ipmemorystore.NetworkAttributes
227 private val future = CompletableFuture<NetworkAttributes?>()
231 attr: NetworkAttributes?
245 fun getBlockingNetworkAttributes(timeout: Long): NetworkAttributes? {
250 override fun getStoredNetworkAttributes(l2Key: String, timeout: Long): NetworkAttributes {
/aosp12/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/
H A DIpMemoryStoreService.java38 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()
H A DIpMemoryStoreDatabase.java31 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()
/aosp12/frameworks/base/services/core/java/com/android/server/location/gnss/
H A DGnssNetworkConnectivityHandler.java98 private HashMap<Network, NetworkAttributes> mAvailableNetworkAttributes =
126 private static class NetworkAttributes { class in GnssNetworkConnectivityHandler
353 if (!NetworkAttributes.hasCapabilitiesChanged( in createNetworkConnectivityCallback()
440 NetworkAttributes networkAttributes = updateTrackedNetworksState(isConnected, network,
465 NetworkAttributes.getCapabilityFlags(capabilities));
471 private NetworkAttributes updateTrackedNetworksState(boolean isConnected, Network network,
478 NetworkAttributes networkAttributes = mAvailableNetworkAttributes.get(network);
486 networkAttributes = new NetworkAttributes();
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DMemoryStoreImpl.java24 import android.net.ipmemorystore.NetworkAttributes;
135 NetworkAttributes attributes = new NetworkAttributes.Builder() in setCluster()
/aosp12/packages/modules/NetworkStack/common/networkstackclient/src/android/net/
H A DIpMemoryStoreClient.java23 import android.net.ipmemorystore.NetworkAttributes;
88 @NonNull final NetworkAttributes attributes, in storeNetworkAttributes()
140 public void findL2Key(@NonNull final NetworkAttributes attributes, in findL2Key()
/aosp12/hardware/interfaces/gnss/2.0/
H A DIAGnssRil.hal37 struct NetworkAttributes {
70 updateNetworkState_2_0(NetworkAttributes attributes) generates (bool success);
/aosp12/hardware/interfaces/gnss/2.0/default/
H A DAGnssRil.cpp56 const V2_0::IAGnssRil::NetworkAttributes& attributes) { in updateNetworkState_2_0()
H A DAGnssRil.h49 const V2_0::IAGnssRil::NetworkAttributes& attributes) override;
/aosp12/hardware/qcom/sm8150p/gps/android/2.0/
H A DAGnssRil.h72 …Return<bool> updateNetworkState_2_0(const V2_0::IAGnssRil::NetworkAttributes& attributes) override;
H A DAGnssRil.cpp109 Return<bool> AGnssRil::updateNetworkState_2_0(const V2_0::IAGnssRil::NetworkAttributes& attributes)… in updateNetworkState_2_0()
/aosp12/hardware/qcom/sm7250/gps/android/2.0/
H A DAGnssRil.h72 …Return<bool> updateNetworkState_2_0(const V2_0::IAGnssRil::NetworkAttributes& attributes) override;
H A DAGnssRil.cpp110 Return<bool> AGnssRil::updateNetworkState_2_0(const V2_0::IAGnssRil::NetworkAttributes& attributes)… in updateNetworkState_2_0()
/aosp12/hardware/qcom/sm7250/gps/android/2.1/
H A DAGnssRil.h72 …Return<bool> updateNetworkState_2_0(const V2_0::IAGnssRil::NetworkAttributes& attributes) override;
/aosp12/hardware/qcom/sm7150/gps/android/2.0/
H A DAGnssRil.h72 …Return<bool> updateNetworkState_2_0(const V2_0::IAGnssRil::NetworkAttributes& attributes) override;
H A DAGnssRil.cpp109 Return<bool> AGnssRil::updateNetworkState_2_0(const V2_0::IAGnssRil::NetworkAttributes& attributes)… in updateNetworkState_2_0()
/aosp12/hardware/qcom/sm8150/gps/android/2.0/
H A DAGnssRil.h72 …Return<bool> updateNetworkState_2_0(const V2_0::IAGnssRil::NetworkAttributes& attributes) override;
/aosp12/hardware/qcom/sm8150/gps/android/2.1/
H A DAGnssRil.h72 …Return<bool> updateNetworkState_2_0(const V2_0::IAGnssRil::NetworkAttributes& attributes) override;

12