Snap for 9035719 from 47c5b46c6746a060bf564eebbf52c64ec59c4a2a to mainline-cellbroadcast-release

Change-Id: Ia63ce927edd3d9339f35615dccad4a00df701703
diff --git a/luni/src/test/java/libcore/java/util/TimeZoneTest.java b/luni/src/test/java/libcore/java/util/TimeZoneTest.java
index 145c2d1..f871da1 100644
--- a/luni/src/test/java/libcore/java/util/TimeZoneTest.java
+++ b/luni/src/test/java/libcore/java/util/TimeZoneTest.java
@@ -108,7 +108,10 @@
     public void testGetDisplayNameShort_nonHourOffsets() {
         TimeZone iranTz = TimeZone.getTimeZone("Asia/Tehran");
         assertEquals("GMT+03:30", iranTz.getDisplayName(false, TimeZone.SHORT, Locale.UK));
-        assertEquals("GMT+04:30", iranTz.getDisplayName(true, TimeZone.SHORT, Locale.UK));
+
+        TimeZone chathamTz = TimeZone.getTimeZone("Pacific/Chatham");
+        assertEquals("GMT+12:45", chathamTz.getDisplayName(false, TimeZone.SHORT, Locale.UK));
+        assertEquals("GMT+13:45", chathamTz.getDisplayName(true, TimeZone.SHORT, Locale.UK));
     }
 
     public void testPreHistoricOffsets() throws Exception {
diff --git a/luni/src/test/java/libcore/javax/net/ServerSocketFactoryTest.java b/luni/src/test/java/libcore/javax/net/ServerSocketFactoryTest.java
index bf544b1..2643d26 100644
--- a/luni/src/test/java/libcore/javax/net/ServerSocketFactoryTest.java
+++ b/luni/src/test/java/libcore/javax/net/ServerSocketFactoryTest.java
@@ -122,7 +122,10 @@
          * We've observed that Linux always adds 3 to the user-specified
          * backlog.
          */
-        assertTrue(peak >= specifiedBacklog && peak <= (specifiedBacklog + 3) * 1.5);
+        int maxBacklog = (int) ((specifiedBacklog + 3) * 1.5);
+        assertTrue(String.format("Backlog = %d, but expected between %d and %d.",
+                peak, specifiedBacklog, maxBacklog),
+            peak >= specifiedBacklog && peak <= maxBacklog);
     }
 
     private void transfer(InputStream in, ByteArrayOutputStream out) throws IOException {