Home
last modified time | relevance | path

Searched refs:asByte (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/net/java/android/net/ip/
DRouterAdvertisementDaemon.java74 private static final byte ICMPV6_ND_ROUTER_SOLICIT = asByte(133);
75 private static final byte ICMPV6_ND_ROUTER_ADVERT = asByte(134);
365 private static byte asByte(int value) { return (byte) value; } in asByte() method in RouterAdvertisementDaemon
387 .put(asByte(0)) in putHeader()
391 .put(hasDefaultRoute ? asByte(0x08) : asByte(0)) in putHeader()
499 .put(asByte(prefixLength))
500 .put(asByte(0xc0)) /* L & A set */
528 final byte RIO_NUM_8OCTETS = asByte(
534 .put(asByte(prefixLength))
535 .put(asByte(0x18))
[all …]
DIpServer.java23 import static android.net.util.NetworkConstants.asByte;
472 bytes[3] = getRandomSanitizedByte(DOUG_ADAMS, asByte(0), asByte(1), FF); in getRandomWifiIPv4Address()
987 dnsBytes[dnsBytes.length - 1] = getRandomSanitizedByte(DOUG_ADAMS, asByte(0), asByte(1)); in getLocalDnsIpFor()
/frameworks/base/services/net/java/android/net/util/
DNetworkConstants.java31 public static final byte FF = asByte(0xff);
91 public static byte asByte(int i) { return (byte) i; } in asByte() method in NetworkConstants