Home
last modified time | relevance | path

Searched refs:TargetUser (Results 1 – 25 of 88) sorted by relevance

1234

/frameworks/base/core/java/android/app/admin/
DTargetUser.java31 public final class TargetUser { class
68 public static final TargetUser LOCAL_USER = new TargetUser(LOCAL_USER_ID);
74 public static final TargetUser PARENT_USER = new TargetUser(PARENT_USER_ID);
80 public static final TargetUser GLOBAL = new TargetUser(GLOBAL_USER_ID);
89 public static final TargetUser UNKNOWN_USER = new TargetUser(UNKNOWN_USER_ID);
96 public TargetUser(int userId) { in TargetUser() method in TargetUser
104 TargetUser other = (TargetUser) o; in equals()
DPolicyUpdateReceiver.java211 static TargetUser getTargetUser(Intent intent) { in getTargetUser()
216 EXTRA_POLICY_TARGET_USER_ID, TargetUser.LOCAL_USER_ID); in getTargetUser()
217 return new TargetUser(targetUserId); in getTargetUser()
250 @NonNull TargetUser targetUser, in onPolicySetResult()
284 @NonNull TargetUser targetUser, in onPolicyChanged()
/frameworks/base/services/core/java/com/android/server/
DSystemService.java147 public static final class TargetUser { class in SystemService
158 public TargetUser(@NonNull UserInfo userInfo) { in TargetUser() method in SystemService.TargetUser
428 public boolean isUserSupported(@NonNull TargetUser user) { in isUserSupported()
442 if (isUserSupported(new TargetUser(user))) { in dumpSupportedUsers()
465 public void onUserStarting(@NonNull TargetUser user) { in onUserStarting()
485 public void onUserUnlocking(@NonNull TargetUser user) { in onUserUnlocking()
496 public void onUserUnlocked(@NonNull TargetUser user) { in onUserUnlocked()
513 public void onUserSwitching(@Nullable TargetUser from, @NonNull TargetUser to) { in onUserSwitching()
529 public void onUserStopping(@NonNull TargetUser user) { in onUserStopping()
542 public void onUserStopped(@NonNull TargetUser user) { in onUserStopped()
[all …]
DSystemServiceManager.java41 import com.android.server.SystemService.TargetUser;
122 private final SparseArray<TargetUser> mTargetUsers = new SparseArray<>();
129 @Nullable private TargetUser mCurrentUser;
375 @Nullable private TargetUser getTargetUser(@UserIdInt int userId) { in getTargetUser()
381 private @NonNull TargetUser newTargetUser(@UserIdInt int userId) { in newTargetUser()
384 return new TargetUser(userInfo); in newTargetUser()
391 final TargetUser targetUser = newTargetUser(userId); in onUserStarting()
433 final TargetUser curUser, prevUser; in onUserSwitching()
491 TargetUser targetUser = getTargetUser(userId); in onUserCompletedEvent()
504 TargetUser targetUser = getTargetUser(userId); in onUser()
[all …]
DContextHubSystemService.java60 public void onUserSwitching(@Nullable TargetUser from, @NonNull TargetUser to) { in onUserSwitching()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetService.java25 import com.android.server.SystemService.TargetUser;
54 public void onUserStopping(@NonNull TargetUser user) { in onUserStopping()
59 public void onUserSwitching(@Nullable TargetUser from, @NonNull TargetUser to) { in onUserSwitching()
/frameworks/base/services/core/java/com/android/server/app/
DGameServiceController.java58 private volatile SystemService.TargetUser mCurrentForegroundUser;
88 void notifyUserStarted(@NonNull SystemService.TargetUser user) { in notifyUserStarted()
96 void notifyNewForegroundUser(@NonNull SystemService.TargetUser user) { in notifyNewForegroundUser()
100 void notifyUserUnlocking(@NonNull SystemService.TargetUser user) { in notifyUserUnlocking()
115 void notifyUserStopped(@NonNull SystemService.TargetUser user) { in notifyUserStopped()
137 @Nullable SystemService.TargetUser user) { in setCurrentForegroundUserAndEvaluateProvider()
DGameServiceProviderSelector.java33 GameServiceConfiguration get(@Nullable SystemService.TargetUser user, in get()
DGameManagerService.java102 import com.android.server.SystemService.TargetUser;
985 public void onUserStarting(@NonNull TargetUser user) {
992 public void onUserUnlocking(@NonNull TargetUser user) {
997 public void onUserStopping(@NonNull TargetUser user) {
1002 public void onUserSwitching(@Nullable TargetUser from, @NonNull TargetUser to) {
1593 void onUserStarting(@NonNull TargetUser user, File settingDataDir) {
1610 void onUserUnlocking(@NonNull TargetUser user) {
1616 void onUserStopping(TargetUser user) {
1631 void onUserSwitching(TargetUser from, TargetUser to) {
DGameServiceProviderSelectorImpl.java61 public GameServiceConfiguration get(@Nullable SystemService.TargetUser user, in get()
/frameworks/base/services/tests/dreamservicetests/src/com/android/server/dreams/
DDreamManagerServiceMockingTest.java108 final SystemService.TargetUser from = in testSettingsQueryUserChange()
109 new SystemService.TargetUser(mock(UserInfo.class)); in testSettingsQueryUserChange()
110 final SystemService.TargetUser to = in testSettingsQueryUserChange()
111 new SystemService.TargetUser(mock(UserInfo.class)); in testSettingsQueryUserChange()
/frameworks/opt/car/services/updatableServices/tests/src/com/android/internal/car/updatable/
DCarServiceProxyTest.java39 import com.android.server.SystemService.TargetUser;
58 private final TargetUser mFromUser = new TargetUser(new UserInfo(101, "fromUser", 0));
59 private final TargetUser mToUser = new TargetUser(new UserInfo(102, "toUser", 0));
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackManagerService.java24 import com.android.server.SystemService.TargetUser;
48 public void onUserUnlocking(@NonNull TargetUser user) { in onUserUnlocking()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/
DGameServiceControllerTest.java64 private static final SystemService.TargetUser USER_10 = user(10);
65 private static final SystemService.TargetUser USER_11 = user(11);
279 private void seedNoConfigurationForUser(SystemService.TargetUser user) { in seedNoConfigurationForUser()
283 private FakeGameServiceProviderInstance seedConfigurationForUser(SystemService.TargetUser user, in seedConfigurationForUser()
295 private static SystemService.TargetUser user(int userId) { in user()
297 return new SystemService.TargetUser(userInfo); in user()
DGameServiceProviderSelectorImplTest.java435 private static SystemService.TargetUser managedTargetUser(UserHandle userHandle) { in managedTargetUser()
436 return new SystemService.TargetUser(managedUserInfo(userHandle.getIdentifier())); in managedTargetUser()
439 private static SystemService.TargetUser eligibleTargetUser(UserHandle userHandle) { in eligibleTargetUser()
440 return new SystemService.TargetUser(eligibleUserInfo(userHandle.getIdentifier())); in eligibleTargetUser()
/frameworks/opt/car/services/builtInServices/tests/src/com/android/internal/car/
DCarServiceHelperServiceTest.java48 import com.android.server.SystemService.TargetUser;
248 private TargetUser newTargetUser(int userId) { in newTargetUser()
252 private TargetUser newTargetUser(int userId, boolean preCreated) { in newTargetUser()
253 TargetUser targetUser = mock(TargetUser.class); in newTargetUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/apphibernation/
DAppHibernationServiceTest.java161 mAppHibernationService.onUserUnlocking(new SystemService.TargetUser(userInfo)); in setUp()
198 mAppHibernationService.onUserUnlocking(new SystemService.TargetUser(user2)); in testSetHibernatingForUser_newUserUnlocked_packageIsHibernating()
237 mAppHibernationService.onUserUnlocking(new SystemService.TargetUser(userInfo)); in testGetHibernatingPackagesForUser_returnsCorrectPackages()
260 mAppHibernationService.onUserUnlocking(new SystemService.TargetUser(userInfo)); in testGetHibernatingPackagesForUser_doesNotReturnPackagesThatArentVisible()
291 mAppHibernationService.onUserUnlocking(new SystemService.TargetUser(user2)); in testUserLevelStatesInitializedFromDisk()
308 mAppHibernationService.onUserUnlocking(new SystemService.TargetUser(user2)); in testNonForceStoppedAppsNotHibernatedOnUnlock()
323 mAppHibernationService.onUserUnlocking(new SystemService.TargetUser(user2)); in testUnhibernatedPackageForUserUnhibernatesPackageGloballyOnUnlock()
466 mAppHibernationService.onUserUnlocking(new SystemService.TargetUser(userInfo)); in testGetHibernationStatsForUser_returnsAllIfNoPackagesSpecified()
/frameworks/base/services/api/
Dcurrent.txt12 method public boolean isUserSupported(@NonNull com.android.server.SystemService.TargetUser);
15 method public void onUserStarting(@NonNull com.android.server.SystemService.TargetUser);
16 method public void onUserStopped(@NonNull com.android.server.SystemService.TargetUser);
17 method public void onUserStopping(@NonNull com.android.server.SystemService.TargetUser);
18 …(@Nullable com.android.server.SystemService.TargetUser, @NonNull com.android.server.SystemService.
19 method public void onUserUnlocked(@NonNull com.android.server.SystemService.TargetUser);
20 method public void onUserUnlocking(@NonNull com.android.server.SystemService.TargetUser);
32 public static final class SystemService.TargetUser {
/frameworks/opt/car/services/builtInServices/src/com/android/internal/car/
DCarServiceHelperService.java425 public void onUserUnlocking(@NonNull TargetUser user) { in onUserUnlocking()
435 public void onUserUnlocked(@NonNull TargetUser user) { in onUserUnlocked()
451 public void onUserStarting(@NonNull TargetUser user) { in onUserStarting()
462 public void onUserStopping(@NonNull TargetUser user) { in onUserStopping()
473 public void onUserStopped(@NonNull TargetUser user) { in onUserStopped()
482 public void onUserSwitching(@Nullable TargetUser from, @NonNull TargetUser to) { in onUserSwitching()
496 public void onUserCompletedEvent(TargetUser user, UserCompletedEventType eventType) { in onUserCompletedEvent()
533 public boolean isUserSupported(TargetUser user) { in isUserSupported()
/frameworks/base/services/core/java/com/android/server/appbinding/
DAppBindingService.java48 import com.android.server.SystemService.TargetUser;
129 public void onUserStarting(@NonNull TargetUser user) { in onUserStarting()
134 public void onUserUnlocking(@NonNull TargetUser user) { in onUserUnlocking()
139 public void onUserStopping(@NonNull TargetUser user) { in onUserStopping()
/frameworks/base/services/core/java/com/android/server/search/
DSearchManagerService.java48 import com.android.server.SystemService.TargetUser;
80 public void onUserStopped(@NonNull TargetUser user) { in onUserStopped()
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java822 public void onUserStarting(@NonNull TargetUser user) { in onUserStarting()
829 public void onUserSwitching(@Nullable TargetUser from, @NonNull TargetUser to) { in onUserSwitching()
839 public void onUserStopping(@NonNull TargetUser user) { in onUserStopping()
847 public void onUserStopped(@NonNull TargetUser user) { in onUserStopped()
/frameworks/base/services/people/java/com/android/server/people/
DPeopleService.java120 public void onUserUnlocked(@NonNull TargetUser user) { in onUserUnlocked()
125 public void onUserStopping(@NonNull TargetUser user) { in onUserStopping()
/frameworks/base/services/core/java/com/android/server/infra/
DAbstractMasterSystemService.java302 public void onUserUnlocking(@NonNull TargetUser user) { in onUserUnlocking()
309 public void onUserStopped(@NonNull TargetUser user) { in onUserStopped()
887 if (isUserSupported(new TargetUser(userInfo))) { in getSupportedUsers()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java75 import com.android.server.SystemService.TargetUser;
105 public void onUserUnlocking(@NonNull TargetUser user) { in onUserUnlocking()
110 public void onUserStopping(@NonNull TargetUser user) { in onUserStopping()

1234