• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package android.bluetooth;
2 
3 import com.google.protobuf.ByteString;
4 
5 public final class Utils {
addressStringFromByteString(ByteString bs)6     public static String addressStringFromByteString(ByteString bs) {
7         StringBuilder refAddrBuilder = new StringBuilder();
8         for (int i = 0; i < bs.size(); i++) {
9             if (i != 0) {
10               refAddrBuilder.append(':');
11             }
12             refAddrBuilder.append(String.format("%02X", bs.byteAt(i)));
13         }
14         return refAddrBuilder.toString();
15     }
16 }
17