Loading wifi/tests/src/android/net/wifi/hotspot2/pps/HomeSpTest.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -189,8 +189,7 @@ public class HomeSpTest { Map<String, Long> homeNetworkIds = new HashMap<>(); Map<String, Long> homeNetworkIds = new HashMap<>(); byte[] rawSsidBytes = new byte[33]; byte[] rawSsidBytes = new byte[33]; Arrays.fill(rawSsidBytes, (byte) 'a'); Arrays.fill(rawSsidBytes, (byte) 'a'); homeNetworkIds.put( homeNetworkIds.put(new String(rawSsidBytes, StandardCharsets.UTF_8), 0x1234L); StringFactory.newStringFromBytes(rawSsidBytes, StandardCharsets.UTF_8), 0x1234L); homeSp.setHomeNetworkIds(homeNetworkIds); homeSp.setHomeNetworkIds(homeNetworkIds); assertFalse(homeSp.validate()); assertFalse(homeSp.validate()); } } Loading Loading
wifi/tests/src/android/net/wifi/hotspot2/pps/HomeSpTest.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -189,8 +189,7 @@ public class HomeSpTest { Map<String, Long> homeNetworkIds = new HashMap<>(); Map<String, Long> homeNetworkIds = new HashMap<>(); byte[] rawSsidBytes = new byte[33]; byte[] rawSsidBytes = new byte[33]; Arrays.fill(rawSsidBytes, (byte) 'a'); Arrays.fill(rawSsidBytes, (byte) 'a'); homeNetworkIds.put( homeNetworkIds.put(new String(rawSsidBytes, StandardCharsets.UTF_8), 0x1234L); StringFactory.newStringFromBytes(rawSsidBytes, StandardCharsets.UTF_8), 0x1234L); homeSp.setHomeNetworkIds(homeNetworkIds); homeSp.setHomeNetworkIds(homeNetworkIds); assertFalse(homeSp.validate()); assertFalse(homeSp.validate()); } } Loading