Home | History | Annotate | Download | only in nsd

Lines Matching refs:query

50      * query data field.
61 * The hex dump string of query data for the requested service information.
72 * @param query The part of service specific query.
75 protected WifiP2pServiceRequest(int protocolType, String query) {
76 validateQuery(query);
79 mQuery = query;
80 if (query != null) {
81 mLength = query.length()/2 + 2;
93 * @param query The part of service specific query.
96 int transId, String query) {
100 mQuery = query;
130 * | Query Data (variable) |
151 * Validate query.
154 * @param query The part of service specific query.
156 private void validateQuery(String query) {
157 if (query == null) {
162 if (query.length()%2 == 1) {
164 "query size is invalid. query=" + query);
166 if (query.length()/2 > UNSIGNED_SHORT_MAX) {
168 "query size is too large. len=" + query.length());
171 // check whether query is hex string.
172 query = query.toLowerCase(Locale.ROOT);
173 char[] chars = query.toCharArray();
178 "query should be hex string. query=" + query);
271 String query = in.readString();
272 return new WifiP2pServiceRequest(servType, length, transId, query);