Lines Matching refs:target

79                                                ByteBuffer target) {
85 target.order(ByteOrder.LITTLE_ENDIAN);
86 target.putShort((short) Constants.ANQP_QUERY_LIST);
87 int lenPos = target.position();
88 target.putShort((short) 0);
93 target.putShort(id.shortValue());
99 target.putShort(lenPos, (short) (target.position() - lenPos - Constants.BYTES_IN_SHORT));
103 target.putShort((short) Constants.ANQP_VENDOR_SPEC);
104 int vsLenPos = target.position();
105 target.putShort((short) 0);
107 target.putInt(Constants.HS20_PREFIX);
108 target.put((byte) Constants.HS_QUERY_LIST);
109 target.put((byte) 0);
117 target.put(id.byteValue());
120 target.putShort(vsLenPos,
121 (short) (target.position() - vsLenPos - Constants.BYTES_IN_SHORT));
124 target.flip();
125 return target;
128 public static ByteBuffer buildHomeRealmRequest(List<String> realmNames, ByteBuffer target) {
129 target.order(ByteOrder.LITTLE_ENDIAN);
130 target.putShort((short) Constants.ANQP_VENDOR_SPEC);
131 int lenPos = target.position();
132 target.putShort((short) 0);
134 target.putInt(Constants.HS20_PREFIX);
135 target.put((byte) Constants.HS_NAI_HOME_REALM_QUERY);
136 target.put((byte) 0);
138 target.put((byte) realmNames.size());
140 target.put((byte) Constants.UTF8_INDICATOR);
142 target.put((byte) octets.length);
143 target.put(octets);
145 target.putShort(lenPos, (short) (target.position() - lenPos - Constants.BYTES_IN_SHORT));
147 target.flip();
148 return target;
151 public static ByteBuffer buildIconRequest(String fileName, ByteBuffer target) {
152 target.order(ByteOrder.LITTLE_ENDIAN);
153 target.putShort((short) Constants.ANQP_VENDOR_SPEC);
154 int lenPos = target.position();
155 target.putShort((short) 0);
157 target.putInt(Constants.HS20_PREFIX);
158 target.put((byte) Constants.HS_ICON_REQUEST);
159 target.put((byte) 0);
161 target.put(fileName.getBytes(StandardCharsets.UTF_8));
162 target.putShort(lenPos, (short) (target.position() - lenPos - Constants.BYTES_IN_SHORT));
164 target.flip();
165 return target;