Home
last modified time | relevance | path

Searched refs:oldUserState (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageUserStateTest.java44 PackageUserState oldUserState; in testPackageUserState01() local
46 oldUserState = new PackageUserState(); in testPackageUserState01()
49 assertThat(testUserState.equals(oldUserState), is(true)); in testPackageUserState01()
51 oldUserState = new PackageUserState(); in testPackageUserState01()
52 oldUserState.appLinkGeneration = 6; in testPackageUserState01()
53 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
55 oldUserState = new PackageUserState(); in testPackageUserState01()
56 oldUserState.ceDataInode = 4000L; in testPackageUserState01()
57 assertThat(testUserState.equals(oldUserState), is(false)); in testPackageUserState01()
59 oldUserState = new PackageUserState(); in testPackageUserState01()
[all …]
DPackageManagerSettingsTests.java463 final PackageUserState oldUserState = oldPkgSetting01.readUserState(0); in testUpdatePackageSetting01() local
464 verifyUserState(userState, oldUserState, false /*userStateChanged*/, false /*notLaunched*/, in testUpdatePackageSetting01()
497 final PackageUserState oldUserState = oldPkgSetting01.readUserState(0); in testUpdatePackageSetting02() local
501 verifyUserState(userState, oldUserState, false /*userStateChanged*/, false /*notLaunched*/, in testUpdatePackageSetting02()
730 private void verifyUserState(PackageUserState userState, PackageUserState oldUserState, in verifyUserState() argument
732 verifyUserState(userState, oldUserState, userStateChanged, false /*notLaunched*/, in verifyUserState()
736 private void verifyUserState(PackageUserState userState, PackageUserState oldUserState, in verifyUserState() argument
745 if (oldUserState != null) { in verifyUserState()
746 assertThat(userState.equals(oldUserState), is(not(userStateChanged))); in verifyUserState()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java1096 UserState oldUserState = getCurrentUserStateLocked(); in switchUser() local
1097 oldUserState.onSwitchToAnotherUserLocked(); in switchUser()
1100 if (oldUserState.mUserClients.getRegisteredCallbackCount() > 0) { in switchUser()
1103 this, 0, oldUserState.mUserId)); in switchUser()
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java849 final PackageUserState oldUserState = oldPackage == null in writeUserRestrictionsLPw() local
852 if (!oldUserState.equals(newPackage.readUserState(user.id))) { in writeUserRestrictionsLPw()