@Test public void isFatBeaconTest() { assertFalse(EddystoneBeacon.isFatBeacon(null)); assertFalse(EddystoneBeacon.isFatBeacon(new byte[]{})); assertFalse(EddystoneBeacon.isFatBeacon(new byte[]{0x01})); assertFalse(EddystoneBeacon.isFatBeacon(new byte[]{0x01, 0x02})); assertFalse(EddystoneBeacon.isFatBeacon(new byte[]{0x01, 0x02, 0x03})); assertFalse(EddystoneBeacon.isFatBeacon(new byte[]{0x01, 0x02, 0x0e, 0x04})); assertFalse(EddystoneBeacon.isFatBeacon(new byte[]{0x10, 0x02, 0x03, 0x04})); assertTrue(EddystoneBeacon.isFatBeacon(new byte[]{0x10, 0x02, 0x0e, 0x04})); }
public static boolean isFatBeacon(byte[] serviceData) { return (serviceData != null && serviceData.length > 3 && isUrlFrame(serviceData) && serviceData[2] == TITLE_TYPE); }
EddystoneBeacon { public static boolean isFatBeacon(byte[] serviceData) { return (serviceData != null && serviceData.length > 3 && isUrlFrame(serviceData) && serviceData[2] == TITLE_TYPE); } }
EddystoneBeacon { public static boolean isFatBeacon(byte[] serviceData) { return (serviceData != null && serviceData.length > 3 && isUrlFrame(serviceData) && serviceData[2] == TITLE_TYPE); } private  EddystoneBeacon(byte flags, byte txPower, String url); }
EddystoneBeacon { public static boolean isFatBeacon(byte[] serviceData) { return (serviceData != null && serviceData.length > 3 && isUrlFrame(serviceData) && serviceData[2] == TITLE_TYPE); } private  EddystoneBeacon(byte flags, byte txPower, String url); static String getFatBeaconTitle(byte[] serviceData); static boolean isFatBeacon(byte[] serviceData); static boolean isUrlFrame(byte[] serviceData); static EddystoneBeacon parseFromServiceData(byte[] urlServiceData, byte[] uriServiceData); String getUrl(); byte getTxPowerLevel(); byte getFlags(); }
EddystoneBeacon { public static boolean isFatBeacon(byte[] serviceData) { return (serviceData != null && serviceData.length > 3 && isUrlFrame(serviceData) && serviceData[2] == TITLE_TYPE); } private  EddystoneBeacon(byte flags, byte txPower, String url); static String getFatBeaconTitle(byte[] serviceData); static boolean isFatBeacon(byte[] serviceData); static boolean isUrlFrame(byte[] serviceData); static EddystoneBeacon parseFromServiceData(byte[] urlServiceData, byte[] uriServiceData); String getUrl(); byte getTxPowerLevel(); byte getFlags();  }