Home
last modified time | relevance | path

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

12

/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/packets/
DNeighborAdvertisementTest.java201 final ByteBuffer na = NeighborAdvertisement.build( in testGratuitousNa_build() local
205 assertArrayEquals(na.array(), TEST_GRATUITOUS_NA); in testGratuitousNa_build()
208 private void assertNeighborAdvertisement(final NeighborAdvertisement na, in assertNeighborAdvertisement() argument
210 assertArrayEquals(TEST_SOURCE_MAC_ADDR, na.ethHdr.srcMac.toByteArray()); in assertNeighborAdvertisement()
211 assertArrayEquals(TEST_DST_MAC_ADDR, na.ethHdr.dstMac.toByteArray()); in assertNeighborAdvertisement()
212 assertEquals(ETH_P_IPV6, na.ethHdr.etherType); in assertNeighborAdvertisement()
213 assertEquals(IPPROTO_ICMPV6, na.ipv6Hdr.nextHeader); in assertNeighborAdvertisement()
214 assertEquals(0xff, na.ipv6Hdr.hopLimit); in assertNeighborAdvertisement()
215 assertEquals(IPV6_ADDR_ALL_ROUTERS_MULTICAST, na.ipv6Hdr.dstIp); in assertNeighborAdvertisement()
216 assertEquals(TEST_SRC_ADDR, na.ipv6Hdr.srcIp); in assertNeighborAdvertisement()
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ipmemorystore/
DIpMemoryStoreServiceTest.java164 final NetworkAttributes.Builder na = new NetworkAttributes.Builder(); in buildTestNetworkAttributes() local
166 na.setAssignedV4Address(ipAddress); in buildTestNetworkAttributes()
169 na.setAssignedV4AddressExpiry(expiry); in buildTestNetworkAttributes()
172 na.setCluster(cluster); in buildTestNetworkAttributes()
175 na.setDnsAddresses(dnsServers); in buildTestNetworkAttributes()
178 na.setMtu(mtu); in buildTestNetworkAttributes()
180 return na; in buildTestNetworkAttributes()
376 private NetworkAttributes storeAttributes(final String l2Key, final NetworkAttributes na) {
377 return storeAttributes("Did not complete storing attributes", l2Key, na);
380 final NetworkAttributes na) {
[all …]
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt296 val na = NetworkAgentWrapper(TRANSPORT_CELLULAR, LinkProperties(), null /* ncTemplate */, in testValidation() constant
298 networkStackClient.verifyNetworkMonitorCreated(na.network, TEST_TIMEOUT_MS) in testValidation()
300 na.addCapability(NET_CAPABILITY_INTERNET) in testValidation()
301 na.connect() in testValidation()
304 testCallback.expectAvailableThenValidatedCallbacks(na.network, TEST_TIMEOUT_MS) in testValidation()
313 na.destroy() in testValidation()
345 val na = NetworkAgentWrapper(TRANSPORT_CELLULAR, lp, null /* ncTemplate */, context) in testCapportApi() constant
348 networkStackClient.verifyNetworkMonitorCreated(na.network, TEST_TIMEOUT_MS) in testCapportApi()
350 na.addCapability(NET_CAPABILITY_INTERNET) in testCapportApi()
351 na.connect() in testCapportApi()
[all …]
/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/tests/integration/root/android/net/ip/
DIpClientRootTest.kt255 val na = listener.getBlockingNetworkAttributes(timeout) in <lambda>() constant
256 assertNotNull(na) in <lambda>()
257 return na in <lambda>()
266 override fun storeNetworkAttributes(l2Key: String, na: NetworkAttributes) { in <lambda>()
267 mStore.storeNetworkAttributes(l2Key, na, null /* listener */) in <lambda>()
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DDadProxyTest.java286 ByteBuffer na = createDadPacket(NeighborPacketForwarder.ICMPV6_NEIGHBOR_ADVERTISEMENT); in testNaForwardingFromUpstreamToTether() local
288 ByteBuffer out = copy(na); in testNaForwardingFromUpstreamToTether()
292 receivePacketAndExpectForwarded(na, mUpstreamPacketReader, out, mTetheredPacketReader); in testNaForwardingFromUpstreamToTether()
298 ByteBuffer na = createDadPacket(NeighborPacketForwarder.ICMPV6_NEIGHBOR_ADVERTISEMENT); in testNaForwardingFromTetherToUpstream() local
300 ByteBuffer out = copy(na); in testNaForwardingFromTetherToUpstream()
304 receivePacketAndExpectNotForwarded(na, mTetheredPacketReader, out, mUpstreamPacketReader); in testNaForwardingFromTetherToUpstream()
/packages/modules/NetworkStack/tests/integration/signature/android/net/ip/
DIpClientSignatureTest.kt78 override fun storeNetworkAttributes(l2Key: String, na: NetworkAttributes) { in <lambda>()
81 listener.onNetworkAttributesRetrieved(Status(SUCCESS), l2Key, na) in <lambda>()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java686 protected abstract void storeNetworkAttributes(String l2Key, NetworkAttributes na);
1241 final NetworkAttributes na = getStoredNetworkAttributes(TEST_L2KEY, TEST_TIMEOUT_MS);
1242 assertNotNull(na);
1243 assertEquals(CLIENT_ADDR, na.assignedV4Address);
1245 assertEquals(Long.MAX_VALUE, na.assignedV4AddressExpiry.longValue());
1250 final long expiry = na.assignedV4AddressExpiry;
1254 assertEquals(Collections.singletonList(SERVER_ADDR), na.dnsAddresses);
1255 assertEquals(new Integer(mtu), na.mtu);
1395 private DhcpPacket getReplyFromDhcpLease(final NetworkAttributes na, boolean timeout)
1400 .onNetworkAttributesRetrieved(new Status(SUCCESS), TEST_L2KEY, na);
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/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/android/net/dhcp/
DDhcpClient.java841 final NetworkAttributes.Builder na = new NetworkAttributes.Builder(); in setLeaseExpiredToIpMemoryStore()
843 na.setAssignedV4AddressExpiry(EXPIRED_LEASE); in setLeaseExpiredToIpMemoryStore()
848 mIpMemoryStore.storeNetworkAttributes(l2Key, na.build(), listener); in setLeaseExpiredToIpMemoryStore()
854 final NetworkAttributes.Builder na = new NetworkAttributes.Builder(); in maybeSaveLeaseToIpMemoryStore()
855 na.setAssignedV4Address((Inet4Address) mDhcpLease.ipAddress.getAddress()); in maybeSaveLeaseToIpMemoryStore()
856 na.setAssignedV4AddressExpiry((mDhcpLease.leaseDuration == INFINITE_LEASE) in maybeSaveLeaseToIpMemoryStore()
859 na.setDnsAddresses(mDhcpLease.dnsServers); in maybeSaveLeaseToIpMemoryStore()
860 na.setMtu(mDhcpLease.mtu); in maybeSaveLeaseToIpMemoryStore()
865 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
Dsl_wordlist.combined.gz ... ,flags=,originalFreq=213 5 word=na,f=205,flags=,originalFreq= ...
Dlv_wordlist.combined.gz1dictionary=main:lv,locale=lv,description=Latviešu,date=1393228136, ...
Dhr_wordlist.combined.gz ... ,flags=,originalFreq=206 6 word=na,f=203,flags=,originalFreq= ...
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
/packages/modules/NetworkStack/src/com/android/networkstack/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/Bluetooth/system/stack/smp/
Dsmp_utils.cc1582 Octet16 na; in smp_calculate_f5_mackey_and_long_term_key() local
1590 na = p_cb->rand; in smp_calculate_f5_mackey_and_long_term_key()
1595 na = p_cb->rrand; in smp_calculate_f5_mackey_and_long_term_key()
1599 crypto_toolbox::f5(p_cb->dhkey, na, nb, a, b, &p_cb->mac_key, &p_cb->ltk); in smp_calculate_f5_mackey_and_long_term_key()
/packages/modules/Connectivity/framework/src/android/net/
DIConnectivityManager.aidl149 Network registerNetworkAgent(in INetworkAgent na, in NetworkInfo ni, in LinkProperties lp, in registerNetworkAgent() argument
DConnectivityManager.java3958 public Network registerNetworkAgent(@NonNull INetworkAgent na, @NonNull NetworkInfo ni, in registerNetworkAgent() argument
3961 return registerNetworkAgent(na, ni, lp, nc, null /* localNetworkConfig */, score, config, in registerNetworkAgent()
3973 public Network registerNetworkAgent(@NonNull INetworkAgent na, @NonNull NetworkInfo ni, in registerNetworkAgent() argument
3978 return mService.registerNetworkAgent(na, ni, lp, nc, score, localNetworkConfig, config, in registerNetworkAgent()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkAgentInfo.java631 public NetworkAgentInfo(INetworkAgent na, Network net, NetworkInfo info, in NetworkAgentInfo() argument
646 networkAgent = na; in NetworkAgentInfo()
/packages/modules/DnsResolver/
Dgetaddrinfo.cpp1028 unsigned long int na = ntohl(addr4->sin_addr.s_addr); in _get_scope() local
1030 if (IN_LOOPBACK(na) || /* 127.0.0.0/8 */ in _get_scope()
1031 (na & 0xffff0000) == 0xa9fe0000) { /* 169.254.0.0/16 */ in _get_scope()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java8829 public Network registerNetworkAgent(INetworkAgent na,
8864 return registerNetworkAgentInternal(na, networkInfo, linkProperties,
8872 private Network registerNetworkAgentInternal(INetworkAgent na, NetworkInfo networkInfo,
8889 final NetworkAgentInfo nai = new NetworkAgentInfo(na,

12