Home
last modified time | relevance | path

Searched refs:DhcpServingParams (Results 1 – 5 of 5) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServingParamsTest.java20 import static android.net.dhcp.DhcpServingParams.MTU_UNSET;
31 import android.net.dhcp.DhcpServingParams.InvalidParameterException;
53 private DhcpServingParams.Builder mBuilder;
72 mBuilder = new DhcpServingParams.Builder() in setUp()
91 final DhcpServingParams params = mBuilder in testBuild_Immutable()
134 final DhcpServingParams params = mBuilder in testBuild_InfiniteLeaseTime()
142 final DhcpServingParams params = mBuilder.setLinkMtu(MTU_UNSET).build(); in testBuild_UnsetMtu()
180 final DhcpServingParams params = mBuilder.setLeasesSubnetPrefixLength(0).build(); in testBuild_LeasesSubnetPrefixLengthDefault()
199 final DhcpServingParams params = mBuilder.build(); in testFromParcelableObject()
212 final DhcpServingParams parceled = DhcpServingParams.fromParcelableObject(parcel); in testFromParcelableObject()
[all …]
DDhcpServerTest.java142 MyDhcpServer(Context context, String ifName, DhcpServingParams params, SharedLog log, in MyDhcpServer()
176 private DhcpServingParams makeServingParams() throws Exception { in makeServingParams()
177 return new DhcpServingParams.Builder() in makeServingParams()
415 final IpPrefix servingPrefix = DhcpServingParams.makeIpPrefix(TEST_SERVER_LINKADDR); in testChangePrefixOnDecline()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServer.java117 private DhcpServingParams mServingParams;
171 DhcpLeaseRepository makeLeaseRepository(@NonNull DhcpServingParams servingParams, in makeLeaseRepository()
216 public DhcpLeaseRepository makeLeaseRepository(@NonNull DhcpServingParams servingParams, in makeLeaseRepository()
219 DhcpServingParams.makeIpPrefix(servingParams.serverAddr), in makeLeaseRepository()
259 @NonNull DhcpServingParams params, @NonNull SharedLog log) { in DhcpServer()
264 DhcpServer(@NonNull Context context, @NonNull String ifName, @NonNull DhcpServingParams params, in DhcpServer()
365 final DhcpServingParams parsedParams; in updateParams()
368 parsedParams = DhcpServingParams.fromParcelableObject(params); in updateParams()
369 } catch (DhcpServingParams.InvalidParameterException e) { in updateParams()
398 private void handleUpdateServingParams(@NonNull DhcpServingParams params, in handleUpdateServingParams()
[all …]
DDhcpServingParams.java49 public class DhcpServingParams { class
119 private DhcpServingParams(@NonNull LinkAddress serverAddr, in DhcpServingParams() method in DhcpServingParams
140 public static DhcpServingParams fromParcelableObject(@Nullable DhcpServingParamsParcel parcel) in fromParcelableObject()
384 public DhcpServingParams build() throws InvalidParameterException { in build()
434 return new DhcpServingParams(mServerAddr, in build()
/packages/modules/NetworkStack/src/com/android/server/
DNetworkStackService.java45 import android.net.dhcp.DhcpServingParams;
168 @NonNull DhcpServingParams params, @NonNull SharedLog log) { in makeDhcpServer()
352 DhcpServingParams.fromParcelableObject(params), in makeDhcpServer()
354 } catch (DhcpServingParams.InvalidParameterException e) { in makeDhcpServer()