Home
last modified time | relevance | path

Searched refs:dhcpInfo (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tests/net/common/java/android/net/
DDhcpInfoTest.java51 final DhcpInfo dhcpInfo = new DhcpInfo(); in createDhcpInfoObject() local
52 dhcpInfo.ipAddress = ipToInteger(STR_ADDR1); in createDhcpInfoObject()
53 dhcpInfo.gateway = ipToInteger(STR_ADDR2); in createDhcpInfoObject()
54 dhcpInfo.netmask = ipToInteger(STR_ADDR3); in createDhcpInfoObject()
55 dhcpInfo.dns1 = ipToInteger(STR_ADDR4); in createDhcpInfoObject()
56 dhcpInfo.dns2 = ipToInteger(STR_ADDR4); in createDhcpInfoObject()
57 dhcpInfo.serverAddress = ipToInteger(STR_ADDR2); in createDhcpInfoObject()
58 dhcpInfo.leaseDuration = LEASE_TIME; in createDhcpInfoObject()
59 return dhcpInfo; in createDhcpInfoObject()
72 DhcpInfo dhcpInfo = new DhcpInfo(); in testToString() local
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java1608 DhcpInfo dhcpInfo = new DhcpInfo(); in testGetDhcpInfo() local
1610 when(mWifiService.getDhcpInfo()).thenReturn(dhcpInfo); in testGetDhcpInfo()
1611 assertEquals(dhcpInfo, mWifiManager.getDhcpInfo()); in testGetDhcpInfo()