Home
last modified time | relevance | path

Searched refs:userManagerInternal (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/inputmethod/
DSecureSettingsWrapper.java201 private static ReaderWriter createImpl(@NonNull UserManagerInternal userManagerInternal, in createImpl() argument
203 return userManagerInternal.isUserUnlockingOrUnlocked(userId) in createImpl()
237 final UserManagerInternal userManagerInternal = in get() local
239 if (!userManagerInternal.exists(userId)) { in get()
242 return putOrGet(userId, createImpl(userManagerInternal, userId)); in get()
256 final UserManagerInternal userManagerInternal = in onStart() local
258 putOrGet(userId, createImpl(userManagerInternal, userId)); in onStart()
260 userManagerInternal.addUserLifecycleListener( in onStart()
DInputMethodSettingsRepository.java58 final UserManagerInternal userManagerInternal = in initialize() local
61 userManagerInternal.addUserLifecycleListener( in initialize()
74 for (int userId : userManagerInternal.getUserIds()) { in initialize()
DUserDataRepository.java56 UserDataRepository(@NonNull Handler handler, @NonNull UserManagerInternal userManagerInternal, in UserDataRepository() argument
59 userManagerInternal.addUserLifecycleListener( in UserDataRepository()
DAdditionalSubtypeMapRepository.java229 final UserManagerInternal userManagerInternal = in initialize() local
232 userManagerInternal.addUserLifecycleListener( in initialize()
268 for (int userId : userManagerInternal.getUserIds()) { in initialize()
DInputMethodUtils.java224 final UserManagerInternal userManagerInternal = in resolveUserId() local
228 return userManagerInternal.getUserIds(); in resolveUserId()
241 } else if (userManagerInternal.exists(userIdToBeResolved)) { in resolveUserId()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageMetrics.java107 final UserManagerInternal userManagerInternal = in reportInstallationStats() local
109 if (userManagerInternal == null) { in reportInstallationStats()
155 userManagerInternal.getUserTypesForStatsd(newUsers) /* user_types */, in reportInstallationStats()
157 userManagerInternal.getUserTypesForStatsd(originalUsers) /* original_user_types */, in reportInstallationStats()
280 final UserManagerInternal userManagerInternal = in onUninstallSucceeded() local
282 if (userManagerInternal == null) { in onUninstallSucceeded()
287 final int[] removedUserTypes = userManagerInternal.getUserTypesForStatsd(removedUsers); in onUninstallSucceeded()
289 final int[] originalUserTypes = userManagerInternal.getUserTypesForStatsd(originalUsers); in onUninstallSucceeded()
DCrossProfileIntentFilterHelper.java35 PackageManagerTracedLock lock, UserManagerInternal userManagerInternal, in CrossProfileIntentFilterHelper() argument
41 mUserManagerInternal = userManagerInternal; in CrossProfileIntentFilterHelper()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotPersister.java113 boolean isReady(UserManagerInternal userManagerInternal) { in isReady() argument
115 if (!userManagerInternal.isUserUnlocked(mRunningUserIds[i])) { in isReady()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DGracePeriodObserverTest.java57 UserManagerInternal userManagerInternal = mock(UserManagerInternal.class); in setUpOnce() local
58 LocalServices.addService(UserManagerInternal.class, userManagerInternal); in setUpOnce()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTestable.java68 UserManagerInternal userManagerInternal, DeviceStateCache deviceStateCache) { in MockInjector() argument
76 mUserManagerInternal = userManagerInternal; in MockInjector()
DRebootEscrowManagerTests.java153 UserManagerInternal userManagerInternal, in MockInjector() argument
159 super(context, storage, userManagerInternal); in MockInjector()
172 mUserManagerInternal = userManagerInternal; in MockInjector()
180 UserManagerInternal userManagerInternal, in MockInjector() argument
185 super(context, storage, userManagerInternal); in MockInjector()
204 mUserManagerInternal = userManagerInternal; in MockInjector()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterTestBase.java99 final UserManagerInternal userManagerInternal = in setUp() local
101 when(userManagerInternal.isUserUnlocked(mTestUserId)).thenReturn(true); in setUp()
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DPermissionService.kt122 private lateinit var userManagerInternal: UserManagerInternal in <lambda>() variable in com.android.server.permission.access.permission.PermissionService
158 userManagerInternal = LocalServices.getService(UserManagerInternal::class.java) in <lambda>()
469 if (!userManagerInternal.exists(userId)) { in <lambda>()
529 if (!userManagerInternal.exists(userId)) { in <lambda>()
748 if (!userManagerInternal.exists(userId)) { in <lambda>()
1058 if (!userManagerInternal.exists(userId)) { in <lambda>()
1102 if (!userManagerInternal.exists(userId)) { in <lambda>()
1151 if (!userManagerInternal.exists(userId)) { in <lambda>()
1201 if (!userManagerInternal.exists(userId)) { in <lambda>()
1300 if (!userManagerInternal.exists(userId)) { in <lambda>()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DOwnersTest.java131 return new Owners(services.userManager, services.userManagerInternal, in makeOwners()
DDevicePolicyManagerTest.java276 when(getServices().userManagerInternal.getUserIds()).thenReturn(new int[]{0}); in setUp()
1432 verify(getServices().userManagerInternal).setDevicePolicyUserRestrictions( in testClearDeviceOwner()
1987 reset(getServices().userManagerInternal); in testSetUserRestriction_asDo()
1990 verify(getServices().userManagerInternal).setDevicePolicyUserRestrictions( in testSetUserRestriction_asDo()
1994 reset(getServices().userManagerInternal); in testSetUserRestriction_asDo()
1997 verify(getServices().userManagerInternal).setDevicePolicyUserRestrictions( in testSetUserRestriction_asDo()
2003 reset(getServices().userManagerInternal); in testSetUserRestriction_asDo()
2017 verify(getServices().userManagerInternal).setDevicePolicyUserRestrictions( in testSetUserRestriction_asDo()
2023 reset(getServices().userManagerInternal); in testSetUserRestriction_asDo()
2035 verify(getServices().userManagerInternal).setDevicePolicyUserRestrictions( in testSetUserRestriction_asDo()
[all …]
DMockSystemServices.java105 public final UserManagerInternal userManagerInternal; field in MockSystemServices
163 userManagerInternal = mock(UserManagerInternal.class); in MockSystemServices()
328 when(userManagerInternal.getUserInfos()).thenReturn( in addUser()
DDevicePolicyManagerServiceMigrationTest.java83 when(getServices().userManagerInternal.getUserIds()).thenReturn(new int[]{0}); in setUp()
DDevicePolicyManagerServiceTestable.java133 return services.userManagerInternal; in getUserManagerInternal()
DDpmMockContext.java271 return mMockSystemServices.userManagerInternal; in getUserManagerInternal()
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowManager.java236 UserManagerInternal userManagerInternal) { in Injector() argument
240 mUserManagerInternal = userManagerInternal; in Injector()
420 Handler handler, UserManagerInternal userManagerInternal) { in RebootEscrowManager() argument
421 this(new Injector(context, storage, userManagerInternal), callbacks, storage, handler); in RebootEscrowManager()
DLockSettingsService.java2891 final UserManagerInternal userManagerInternal = mInjector.getUserManagerInternal(); in callToAuthSecretIfNeeded() local
2892 final UserInfo userInfo = userManagerInternal.getUserInfo(userId); in callToAuthSecretIfNeeded()
3543 final UserManagerInternal userManagerInternal = mInjector.getUserManagerInternal();
3546 if (userManagerInternal.isUserManaged(userId)) {
3552 if (userManagerInternal.isDeviceManaged()) {
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DMockSystem.kt205 val userManagerInternal: UserManagerInternal = mock() constant in com.android.server.pm.Mocks
301 whenever(mocks.injector.userManagerInternal).thenReturn(mocks.userManagerInternal) in stageNominalSystemState()
344 whenever(mocks.userManagerInternal.getUsers(true, false, false)).thenReturn(DEFAULT_USERS) in stageNominalSystemState()
DDeletePackageHelperTest.kt59 mUserManagerInternal = rule.mocks().injector.userManagerInternal in setup()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java87 UserManagerInternal userManagerInternal, in Owners() argument
94 mUserManagerInternal = userManagerInternal; in Owners()
/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/
DPackageManagerComponentLabelIconOverrideTest.kt394 whenever(this.userManagerInternal) { mockUserManagerInternal } in <lambda>()

12