Loading tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -78,13 +78,12 @@ public class BootImageProfileTest implements IDeviceTest { return false; return false; } } String res = mTestDevice.executeShellCommand("kill -s SIGUSR1 " + pid).trim(); String res = mTestDevice.executeShellCommand("kill -s SIGUSR1 " + pid).trim(); assertTrue("kill SIGUSR1: " + res, res.length() == 0); return res.length() == 0; return true; } } @Test @Test public void testSystemServerProfile() throws Exception { public void testSystemServerProfile() throws Exception { final int numIterations = 20; final int numIterations = 30; String res; String res; // Set properties and wait for them to be readable. // Set properties and wait for them to be readable. for (int i = 1; i <= numIterations; ++i) { for (int i = 1; i <= numIterations; ++i) { Loading Loading
tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -78,13 +78,12 @@ public class BootImageProfileTest implements IDeviceTest { return false; return false; } } String res = mTestDevice.executeShellCommand("kill -s SIGUSR1 " + pid).trim(); String res = mTestDevice.executeShellCommand("kill -s SIGUSR1 " + pid).trim(); assertTrue("kill SIGUSR1: " + res, res.length() == 0); return res.length() == 0; return true; } } @Test @Test public void testSystemServerProfile() throws Exception { public void testSystemServerProfile() throws Exception { final int numIterations = 20; final int numIterations = 30; String res; String res; // Set properties and wait for them to be readable. // Set properties and wait for them to be readable. for (int i = 1; i <= numIterations; ++i) { for (int i = 1; i <= numIterations; ++i) { Loading