Home
last modified time | relevance | path

Searched refs:na (Results 1 – 25 of 42) sorted by relevance

12

/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreServiceTest.java163 final NetworkAttributes.Builder na = new NetworkAttributes.Builder(); in buildTestNetworkAttributes() local
165 na.setAssignedV4Address(ipAddress); in buildTestNetworkAttributes()
168 na.setAssignedV4AddressExpiry(expiry); in buildTestNetworkAttributes()
171 na.setCluster(cluster); in buildTestNetworkAttributes()
174 na.setDnsAddresses(dnsServers); in buildTestNetworkAttributes()
177 na.setMtu(mtu); in buildTestNetworkAttributes()
179 return na; in buildTestNetworkAttributes()
375 private NetworkAttributes storeAttributes(final String l2Key, final NetworkAttributes na) {
376 return storeAttributes("Did not complete storing attributes", l2Key, na);
379 final NetworkAttributes na) {
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/packets/
DNeighborAdvertisementTest.java161 final ByteBuffer na = NeighborAdvertisement.build( in testGratuitousNa_build() local
165 assertArrayEquals(na.array(), TEST_GRATUITOUS_NA); in testGratuitousNa_build()
170 final NeighborAdvertisement na = NeighborAdvertisement.parse(TEST_GRATUITOUS_NA, in testGratuitousNa_parse() local
173 assertArrayEquals(TEST_SOURCE_MAC_ADDR, na.ethHdr.srcMac.toByteArray()); in testGratuitousNa_parse()
174 assertArrayEquals(TEST_DST_MAC_ADDR, na.ethHdr.dstMac.toByteArray()); in testGratuitousNa_parse()
175 assertEquals(ETH_P_IPV6, na.ethHdr.etherType); in testGratuitousNa_parse()
176 assertEquals(IPPROTO_ICMPV6, na.ipv6Hdr.nextHeader); in testGratuitousNa_parse()
177 assertEquals(0xff, na.ipv6Hdr.hopLimit); in testGratuitousNa_parse()
178 assertEquals(IPV6_ADDR_ALL_ROUTERS_MULTICAST, na.ipv6Hdr.dstIp); in testGratuitousNa_parse()
179 assertEquals(TEST_SRC_ADDR, na.ipv6Hdr.srcIp); in testGratuitousNa_parse()
[all …]
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt238 val na = NetworkAgentWrapper(TRANSPORT_CELLULAR, LinkProperties(), null /* ncTemplate */, in <lambda>() constant
240 networkStackClient.verifyNetworkMonitorCreated(na.network, TEST_TIMEOUT_MS) in <lambda>()
242 na.addCapability(NET_CAPABILITY_INTERNET) in <lambda>()
243 na.connect() in <lambda>()
245 testCallback.expectAvailableThenValidatedCallbacks(na.network, TEST_TIMEOUT_MS) in <lambda>()
277 val na = NetworkAgentWrapper(TRANSPORT_CELLULAR, lp, null /* ncTemplate */, context) in <lambda>() constant
278 networkStackClient.verifyNetworkMonitorCreated(na.network, TEST_TIMEOUT_MS) in <lambda>()
280 na.addCapability(NET_CAPABILITY_INTERNET) in <lambda>()
281 na.connect() in <lambda>()
283 testCb.expectAvailableCallbacks(na.network, validated = false, tmt = TEST_TIMEOUT_MS) in <lambda>()
[all …]
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DDadProxyTest.java282 ByteBuffer na = createDadPacket(NeighborPacketForwarder.ICMPV6_NEIGHBOR_ADVERTISEMENT); in testNaForwardingFromUpstreamToTether() local
284 ByteBuffer out = copy(na); in testNaForwardingFromUpstreamToTether()
288 receivePacketAndExpectForwarded(na, mUpstreamPacketReader, out, mTetheredPacketReader); in testNaForwardingFromUpstreamToTether()
294 ByteBuffer na = createDadPacket(NeighborPacketForwarder.ICMPV6_NEIGHBOR_ADVERTISEMENT); in testNaForwardingFromTetherToUpstream() local
296 ByteBuffer out = copy(na); in testNaForwardingFromTetherToUpstream()
300 receivePacketAndExpectNotForwarded(na, mTetheredPacketReader, out, mUpstreamPacketReader); in testNaForwardingFromTetherToUpstream()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java819 final NetworkAttributes na = getStoredNetworkAttributes(TEST_L2KEY, TEST_TIMEOUT_MS);
820 assertNotNull(na);
821 assertEquals(CLIENT_ADDR, na.assignedV4Address);
823 assertEquals(Long.MAX_VALUE, na.assignedV4AddressExpiry.longValue());
828 final long expiry = na.assignedV4AddressExpiry;
832 assertEquals(Collections.singletonList(SERVER_ADDR), na.dnsAddresses);
833 assertEquals(new Integer(mtu), na.mtu);
946 private DhcpPacket getReplyFromDhcpLease(final NetworkAttributes na, boolean timeout)
951 .onNetworkAttributesRetrieved(new Status(SUCCESS), TEST_L2KEY, na);
1482 final NeighborAdvertisement na = parseNeighborAdvertisementOrNull(packet);
[all …]
DIpClientRootTest.kt253 val na = listener.getBlockingNetworkAttributes(timeout) in <lambda>() constant
254 assertNotNull(na) in <lambda>()
255 return na in <lambda>()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ipmemorystore/
DNetworkAttributesTest.java64 final NetworkAttributes na = in testTotalWeight() local
72 assertEquals(1.0f, na.getNetworkGroupSamenessConfidence(na), EPSILON); in testTotalWeight()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java812 final NetworkAttributes.Builder na = new NetworkAttributes.Builder(); in setLeaseExpiredToIpMemoryStore()
814 na.setAssignedV4AddressExpiry(EXPIRED_LEASE); in setLeaseExpiredToIpMemoryStore()
819 mIpMemoryStore.storeNetworkAttributes(l2Key, na.build(), listener); in setLeaseExpiredToIpMemoryStore()
825 final NetworkAttributes.Builder na = new NetworkAttributes.Builder(); in maybeSaveLeaseToIpMemoryStore()
826 na.setAssignedV4Address((Inet4Address) mDhcpLease.ipAddress.getAddress()); in maybeSaveLeaseToIpMemoryStore()
827 na.setAssignedV4AddressExpiry((mDhcpLease.leaseDuration == INFINITE_LEASE) in maybeSaveLeaseToIpMemoryStore()
830 na.setDnsAddresses(mDhcpLease.dnsServers); in maybeSaveLeaseToIpMemoryStore()
831 na.setMtu(mDhcpLease.mtu); in maybeSaveLeaseToIpMemoryStore()
836 mIpMemoryStore.storeNetworkAttributes(l2Key, na.build(), listener); in maybeSaveLeaseToIpMemoryStore()
/packages/inputmethods/LatinIME/dictionaries/
Dtr_wordlist.combined.gz1dictionary=main:tr,locale=tr,description=Türkçe,date=1414726261, ...
Dcs_wordlist.combined.gz ... ,flags=,originalFreq=208 5 word=na,f=204,flags=,originalFreq= ...
Dsl_wordlist.combined.gz
Dlv_wordlist.combined.gz1dictionary=main:lv,locale=lv,description=Latviešu,date=1393228136, ...
Dhr_wordlist.combined.gz
Den_emoji.combined.gz1dictionary=emoji:en,description=Emoji for English words,locale=en,date ...
Dfr_emoji.combined.gz1dictionary=emoji:fr,description=Emoji pour mots français,locale=fr,date ...
Dpl_wordlist.combined.gz ... ,flags=,originalFreq=206 5 word=na,f=205,flags=,originalFreq= ...
Dro_wordlist.combined.gz
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/util/
DTetheringUtilsTest.java174 final ByteBuffer na = Ipv6Utils.buildNaPacket(mac1, mac2, ll1, ll2, 0, ll1); in testIcmpSocketFilters() local
178 ByteBuffer received = checkIcmpSocketFilter(na /* passed */, rs /* dropped */, in testIcmpSocketFilters()
/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreService.java174 final NetworkAttributes na = null == attributes ? null : new NetworkAttributes(attributes); in storeNetworkAttributes() local
177 final int code = storeNetworkAttributesAndBlobSync(l2Key, na, in storeNetworkAttributes()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkAgentInfo.java351 public NetworkAgentInfo(INetworkAgent na, Network net, NetworkInfo info, in NetworkAgentInfo() argument
365 networkAgent = na; in NetworkAgentInfo()
/packages/modules/Connectivity/framework/src/android/net/
DIConnectivityManager.aidl142 Network registerNetworkAgent(in INetworkAgent na, in NetworkInfo ni, in LinkProperties lp, in registerNetworkAgent() argument
DConnectivityManager.java3433 public Network registerNetworkAgent(INetworkAgent na, NetworkInfo ni, LinkProperties lp, in registerNetworkAgent() argument
3437 return mService.registerNetworkAgent(na, ni, lp, nc, score, config, providerId); in registerNetworkAgent()
/packages/modules/DnsResolver/
Dgetaddrinfo.cpp1052 unsigned long int na = ntohl(addr4->sin_addr.s_addr); in _get_scope() local
1054 if (IN_LOOPBACK(na) || /* 127.0.0.0/8 */ in _get_scope()
1055 (na & 0xffff0000) == 0xa9fe0000) { /* 169.254.0.0/16 */ in _get_scope()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java6705 public Network registerNetworkAgent(INetworkAgent na, NetworkInfo networkInfo, in registerNetworkAgent() argument
6723 return registerNetworkAgentInternal(na, networkInfo, linkProperties, in registerNetworkAgent()
6730 private Network registerNetworkAgentInternal(INetworkAgent na, NetworkInfo networkInfo, in registerNetworkAgentInternal() argument
6745 final NetworkAgentInfo nai = new NetworkAgentInfo(na, in registerNetworkAgentInternal()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java1012 expectRegisterNetworkAgent((na) -> { in connect() argument
1014 assertNull(na.subscriberId); in connect()

12