Home
last modified time | relevance | path

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

/frameworks/base/wifi/java/android/net/wifi/aware/
DTlvBufferUtils.java81 public TlvConstructor(int typeSize, int lengthSize) { in TlvConstructor() argument
82 if (typeSize < 0 || typeSize > 2 || lengthSize <= 0 || lengthSize > 2) { in TlvConstructor()
84 "Invalid sizes - typeSize=" + typeSize + ", lengthSize=" + lengthSize); in TlvConstructor()
87 mLengthSize = lengthSize; in TlvConstructor()
498 public TlvIterable(int typeSize, int lengthSize, @Nullable byte[] array) { in TlvIterable() argument
499 if (typeSize < 0 || typeSize > 2 || lengthSize <= 0 || lengthSize > 2) { in TlvIterable()
501 "Invalid sizes - typeSize=" + typeSize + ", lengthSize=" + lengthSize); in TlvIterable()
504 mLengthSize = lengthSize; in TlvIterable()
629 public static boolean isValid(@Nullable byte[] array, int typeSize, int lengthSize) { in isValid() argument
630 return isValidEndian(array, typeSize, lengthSize, ByteOrder.BIG_ENDIAN); in isValid()
[all …]