Loading src/com/android/settings/development/PageAgnosticNotificationService.java +1 −1 Original line number Diff line number Diff line Loading @@ -134,6 +134,6 @@ public class PageAgnosticNotificationService extends Service { // No updates should be allowed in page-agnostic mode disableAutomaticUpdates(); return Service.START_NOT_STICKY; return Service.START_REDELIVER_INTENT; } } tests/Enable16KbTests/src/com/android/test/Enable16KbTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -76,11 +76,13 @@ public class Enable16KbTest extends BaseHostJUnit4Test { installTestApp(); // Enable developer option and switch to 16kb kernel and Check page size getDevice().enableAdbRoot(); runTestAndWait(SWITCH_TO_16KB); result = getDevice().executeShellCommand("getconf PAGE_SIZE"); assertEquals("16384", result.strip()); // switch back to 4kb kernel and check page size getDevice().enableAdbRoot(); runTestAndWait(SWITCH_TO_4KB); result = getDevice().executeShellCommand("getconf PAGE_SIZE"); assertEquals("4096", result.strip()); Loading tests/Enable16KbTests/test_16kb_app/src/com/android/settings/development/test/Enable16KbDeviceTest.java +3 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,8 @@ public class Enable16KbDeviceTest { throw new RuntimeException("failed to freeze device orientation", e); } mDevice.executeShellCommand("am start -a com.android.setupwizard.FOUR_CORNER_EXIT"); mDevice.waitForWindowUpdate(null, TIMEOUT); mDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP"); mDevice.executeShellCommand("wm dismiss-keyguard"); } Loading Loading @@ -150,6 +152,7 @@ public class Enable16KbDeviceTest { private void openPersistentNotification(String title) { mDevice.openNotification(); mDevice.waitForWindowUpdate(null, TIMEOUT); verifyTextOnScreen(title); mDevice.wait(Until.findObject(By.text(title)), TIMEOUT).click(); mDevice.waitForWindowUpdate(null, TIMEOUT); Loading Loading
src/com/android/settings/development/PageAgnosticNotificationService.java +1 −1 Original line number Diff line number Diff line Loading @@ -134,6 +134,6 @@ public class PageAgnosticNotificationService extends Service { // No updates should be allowed in page-agnostic mode disableAutomaticUpdates(); return Service.START_NOT_STICKY; return Service.START_REDELIVER_INTENT; } }
tests/Enable16KbTests/src/com/android/test/Enable16KbTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -76,11 +76,13 @@ public class Enable16KbTest extends BaseHostJUnit4Test { installTestApp(); // Enable developer option and switch to 16kb kernel and Check page size getDevice().enableAdbRoot(); runTestAndWait(SWITCH_TO_16KB); result = getDevice().executeShellCommand("getconf PAGE_SIZE"); assertEquals("16384", result.strip()); // switch back to 4kb kernel and check page size getDevice().enableAdbRoot(); runTestAndWait(SWITCH_TO_4KB); result = getDevice().executeShellCommand("getconf PAGE_SIZE"); assertEquals("4096", result.strip()); Loading
tests/Enable16KbTests/test_16kb_app/src/com/android/settings/development/test/Enable16KbDeviceTest.java +3 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,8 @@ public class Enable16KbDeviceTest { throw new RuntimeException("failed to freeze device orientation", e); } mDevice.executeShellCommand("am start -a com.android.setupwizard.FOUR_CORNER_EXIT"); mDevice.waitForWindowUpdate(null, TIMEOUT); mDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP"); mDevice.executeShellCommand("wm dismiss-keyguard"); } Loading Loading @@ -150,6 +152,7 @@ public class Enable16KbDeviceTest { private void openPersistentNotification(String title) { mDevice.openNotification(); mDevice.waitForWindowUpdate(null, TIMEOUT); verifyTextOnScreen(title); mDevice.wait(Until.findObject(By.text(title)), TIMEOUT).click(); mDevice.waitForWindowUpdate(null, TIMEOUT); Loading