Loading services/core/java/com/android/server/wm/RootWindowContainer.java +2 −2 Original line number Diff line number Diff line Loading @@ -1637,8 +1637,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent> return false; } if (!StorageManager.isUserKeyUnlocked(mCurrentUser)) { // Can't launch home on secondary display areas if device is still locked. if (!StorageManager.isCeStorageUnlocked(mCurrentUser)) { // Can't launch home on secondary display areas if CE storage is still locked. return false; } Loading services/tests/wmtests/src/com/android/server/wm/RootWindowContainerTests.java +1 −1 Original line number Diff line number Diff line Loading @@ -870,7 +870,7 @@ public class RootWindowContainerTests extends WindowTestsBase { new TestDisplayContent.Builder(mAtm, 1000, 1500) .setSystemDecorations(true).build(); // Use invalid user id to let StorageManager.isUserKeyUnlocked() return false. // Use invalid user id to let StorageManager.isCeStorageUnlocked() return false. final int currentUser = mRootWindowContainer.mCurrentUser; mRootWindowContainer.mCurrentUser = -1; Loading Loading
services/core/java/com/android/server/wm/RootWindowContainer.java +2 −2 Original line number Diff line number Diff line Loading @@ -1637,8 +1637,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent> return false; } if (!StorageManager.isUserKeyUnlocked(mCurrentUser)) { // Can't launch home on secondary display areas if device is still locked. if (!StorageManager.isCeStorageUnlocked(mCurrentUser)) { // Can't launch home on secondary display areas if CE storage is still locked. return false; } Loading
services/tests/wmtests/src/com/android/server/wm/RootWindowContainerTests.java +1 −1 Original line number Diff line number Diff line Loading @@ -870,7 +870,7 @@ public class RootWindowContainerTests extends WindowTestsBase { new TestDisplayContent.Builder(mAtm, 1000, 1500) .setSystemDecorations(true).build(); // Use invalid user id to let StorageManager.isUserKeyUnlocked() return false. // Use invalid user id to let StorageManager.isCeStorageUnlocked() return false. final int currentUser = mRootWindowContainer.mCurrentUser; mRootWindowContainer.mCurrentUser = -1; Loading