Searched defs:hex (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pServiceResponse.java273 * Converts hex string to byte array.
275 * @param hex hex string. if invalid, return null.
278 private static byte[] hexStr2Bin(String hex) { argument
279 int sz = hex.length()/2;
280 byte[] b = new byte[hex.length()/2];
284 b[i] = (byte)Integer.parseInt(hex.substring(i*2, i*2+2), 16);
/frameworks/base/libs/common_time/
H A Dcommon_time_server.cpp628 char hex[256]; local
631 hexDumpToString(buf, static_cast<size_t>(recvBytes), hex, sizeof(hex));
635 recvBytes, srcEPStr, hex);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiNative.java778 public boolean setWfdDeviceInfo(String hex) { argument
779 return doBooleanCommand("WFD_SUBELEM_SET 0 " + hex);
1047 * P2P_SERVICE_ADD upnp <version hex> <service>
1078 * P2P_SERVICE_DEL upnp <version hex> <service>
H A DWifiStateMachine.java2234 * @return a hex string representation of the WPS-NFC configuration token
8452 throw new NumberFormatException("" + ch + " is not a valid hex digit");
8456 private byte[] parseHex(String hex) { argument
8458 if (hex == null) {
8462 if (hex.length() % 2 != 0) {
8463 throw new NumberFormatException(hex + " is not a valid hex string");
8466 byte[] result = new byte[(hex.length())/2 + 1];
8467 result[0] = (byte) ((hex.length())/2);
8468 for (int i = 0, j = 1; i < hex
[all...]

Completed in 104 milliseconds