/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 144 systemUser.id = UserHandle.USER_SYSTEM; in testDisableModifyAccountsForHeadlessSystemUserOnFirstRun() 148 mCarUserService.setUserLockStatus(UserHandle.USER_SYSTEM, true); in testDisableModifyAccountsForHeadlessSystemUserOnFirstRun() 162 systemUser.id = UserHandle.USER_SYSTEM; in testDisableModifyAccountsForRegularSystemUserOnFirstRun() 166 mCarUserService.setUserLockStatus(UserHandle.USER_SYSTEM, true); in testDisableModifyAccountsForRegularSystemUserOnFirstRun() 180 systemUser.id = UserHandle.USER_SYSTEM; in testDoesNotSetSystemUserRestrictions_IfRestrictionsAlreadySet() 184 mCarUserService.setUserLockStatus(UserHandle.USER_SYSTEM, true); in testDoesNotSetSystemUserRestrictions_IfRestrictionsAlreadySet() 197 mCarUserService.setUserLockStatus(UserHandle.USER_SYSTEM, true); in testDisableLocationForHeadlessSystemUserOnFirstRun() 200 /* enabled= */ false, UserHandle.of(UserHandle.USER_SYSTEM)); in testDisableLocationForHeadlessSystemUserOnFirstRun() 210 mCarUserService.setUserLockStatus(UserHandle.USER_SYSTEM, true); in testDisableLocationForRegularSystemUserOnFirstRun() 213 /* enabled= */ false, UserHandle.of(UserHandle.USER_SYSTEM)); in testDisableLocationForRegularSystemUserOnFirstRun() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/ |
D | OtaControllerTest.java | 101 when(mUserManager.getProfiles(UserHandle.USER_SYSTEM)).thenReturn(mProfiles); in setUp() 115 setDeviceOwner(UserHandle.USER_SYSTEM, ADMIN_COMPONENT); in testDeviceOwnerSystemUser() 122 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testDeviceOwnerSystemUser() 123 Pair.create(UserHandle.USER_SYSTEM, DeleteNonRequiredAppsTask.class), in testDeviceOwnerSystemUser() 124 Pair.create(UserHandle.USER_SYSTEM, DisallowAddUserTask.class)); in testDeviceOwnerSystemUser() 127 verify(mCrossProfileIntentFiltersSetter).resetFilters(UserHandle.USER_SYSTEM); in testDeviceOwnerSystemUser() 145 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testDeviceOwnerSeparate() 150 verify(mCrossProfileIntentFiltersSetter).resetFilters(UserHandle.USER_SYSTEM); in testDeviceOwnerSeparate() 168 Pair.create(UserHandle.USER_SYSTEM, MigrateSystemAppsSnapshotTask.class), in testManagedProfileWithoutMissingSystemIme() 174 verify(mCrossProfileIntentFiltersSetter).resetFilters(UserHandle.USER_SYSTEM); in testManagedProfileWithoutMissingSystemIme() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/ |
D | AutoSyncWorkDataPreferenceControllerTest.java | 85 infos.add(new UserInfo(UserHandle.USER_SYSTEM, "user 1", 0 /* flags */)); in checkIsAvailable_singleUserProfile_shouldNotDisplay() 86 when(mUserManager.getProfiles(eq(UserHandle.USER_SYSTEM))).thenReturn(infos); in checkIsAvailable_singleUserProfile_shouldNotDisplay() 97 infos.add(new UserInfo(UserHandle.USER_SYSTEM, "user 1", 0 /* flags */)); in checkIsAvailable_null_workProfileUserHandle_shouldNotDisplay() 99 when(mUserManager.getProfiles(eq(UserHandle.USER_SYSTEM))).thenReturn(infos); in checkIsAvailable_null_workProfileUserHandle_shouldNotDisplay() 112 infos.add(new UserInfo(UserHandle.USER_SYSTEM, "user 1", 0 /* flags */)); in multipleProfile_shouldInitWithWorkProfileUserHandle() 115 when(mUserManager.getProfiles(eq(UserHandle.USER_SYSTEM))).thenReturn(infos); in multipleProfile_shouldInitWithWorkProfileUserHandle()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | CryptKeeperConfirm.java | 132 utils.isVisiblePatternEnabled(UserHandle.USER_SYSTEM), 133 UserHandle.USER_SYSTEM); 134 if (utils.isOwnerInfoEnabled(UserHandle.USER_SYSTEM)) { 135 utils.setOwnerInfo(utils.getOwnerInfo(UserHandle.USER_SYSTEM), 136 UserHandle.USER_SYSTEM); 141 utils.setVisiblePasswordEnabled(value != 0, UserHandle.USER_SYSTEM);
|
/packages/apps/Settings/src/com/android/settings/ |
D | CryptKeeperConfirm.java | 132 utils.isVisiblePatternEnabled(UserHandle.USER_SYSTEM), 133 UserHandle.USER_SYSTEM); 134 if (utils.isOwnerInfoEnabled(UserHandle.USER_SYSTEM)) { 135 utils.setOwnerInfo(utils.getOwnerInfo(UserHandle.USER_SYSTEM), 136 UserHandle.USER_SYSTEM); 141 utils.setVisiblePasswordEnabled(value != 0, UserHandle.USER_SYSTEM);
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | MigrateSystemAppsSnapshotTaskTest.java | 114 mMigrateSystemAppsSnapshotTask.run(UserHandle.USER_SYSTEM); in testRun_nothingToMigrate() 123 mMigrateSystemAppsSnapshotTask.run(UserHandle.USER_SYSTEM); in testRun_alreadyMigrated() 134 mMigrateSystemAppsSnapshotTask.run(UserHandle.USER_SYSTEM); in testRun_migrate_userExists() 146 mMigrateSystemAppsSnapshotTask.run(UserHandle.USER_SYSTEM); in testRun_migrate_userDoesNotExists() 156 mMigrateSystemAppsSnapshotTask.run(UserHandle.USER_SYSTEM); in testRun_migrate_invalidFileName()
|
D | CrossProfileIntentFiltersSetterTest.java | 88 UserInfo ui = new UserInfo(UserHandle.USER_SYSTEM, null, UserInfo.FLAG_PRIMARY); in testResetFilters_NoProfiles()
|
/packages/services/Car/user/car-user-lib/src/android/car/userlib/ |
D | CarUserManagerHelper.java | 212 /* default user id= */ UserHandle.USER_SYSTEM); in getLastActiveUser() 248 if (lastActiveUser != UserHandle.USER_SYSTEM in getInitialUser() 298 return mUserManager.getUserInfo(UserHandle.USER_SYSTEM); in getSystemUserInfo() 365 return getAllUsersExceptSystemUserAndSpecifiedUser(UserHandle.USER_SYSTEM); in getAllUsers() 454 if (userInfo.id == userId || userInfo.id == UserHandle.USER_SYSTEM) { in getAllUsersExceptSystemUserAndSpecifiedUser() 527 return userInfo.id == UserHandle.USER_SYSTEM; in isSystemUser() 928 if (id == UserHandle.USER_SYSTEM && isHeadlessSystemUser()) { in switchToUserId()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/ |
D | OverlayCategoryPreferenceController.java | 19 import static android.os.UserHandle.USER_SYSTEM; 124 return mOverlayManager.setEnabled(currentPackageName, false, USER_SYSTEM); in setOverlay() 127 USER_SYSTEM); in setOverlay() 185 .getOverlayInfosForTarget(OVERLAY_TARGET_PACKAGE, USER_SYSTEM); in getOverlayInfos()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | InputOptionsFragment.java | 73 TvInputInfo.TvInputSettings.getCustomLabels(context, UserHandle.USER_SYSTEM); in onCreate() 75 TvInputInfo.TvInputSettings.getHiddenTvInputIds(context, UserHandle.USER_SYSTEM); in onCreate() 172 .putCustomLabels(getContext(), mCustomLabels, UserHandle.USER_SYSTEM); in setInputName() 189 .putHiddenTvInputs(getContext(), mHiddenIds, UserHandle.USER_SYSTEM); in setInputVisible()
|
D | InputsFragment.java | 79 TvInputInfo.TvInputSettings.getCustomLabels(context, UserHandle.USER_SYSTEM); in onResume() 81 TvInputInfo.TvInputSettings.getHiddenTvInputIds(context, UserHandle.USER_SYSTEM); in onResume()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | OverlayCategoryPreferenceController.java | 19 import static android.os.UserHandle.USER_SYSTEM; 124 return mOverlayManager.setEnabled(currentPackageName, false, USER_SYSTEM); in setOverlay() 127 USER_SYSTEM); in setOverlay() 185 .getOverlayInfosForTarget(OVERLAY_TARGET_PACKAGE, USER_SYSTEM); in getOverlayInfos()
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 172 if (currentUser > UserHandle.USER_SYSTEM in onReceive() 203 if (userHandle == UserHandle.USER_SYSTEM) { in setUserLockStatus() 291 if (userId == UserHandle.USER_SYSTEM) { in stopBackgroundUser() 365 /* enabled= */ false, UserHandle.of(UserHandle.USER_SYSTEM)); in setSystemUserRestrictions()
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | VendorServiceController.java | 137 if (connectedUserId != UserHandle.USER_SYSTEM && connectedUserId != userId) { in doSwitchUser() 142 if (userId != UserHandle.USER_SYSTEM) { in doSwitchUser() 156 if (unlocked && (userId == currentUserId || userId == UserHandle.USER_SYSTEM)) { in doUserLockChanged() 158 } else if (!unlocked && userId != UserHandle.USER_SYSTEM) { in doUserLockChanged()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/ |
D | VendorServiceControllerTest.java | 101 when(mUserManagerHelper.getCurrentForegroundUserId()).thenReturn(UserHandle.USER_SYSTEM); in setUp() 139 mockUserUnlock(UserHandle.USER_SYSTEM, true); in systemUserUnlocked() 140 runOnMainThread(() -> mCarUserService.setUserLockStatus(UserHandle.USER_SYSTEM, true)); in systemUserUnlocked()
|
/packages/services/Car/service/src/com/android/car/vms/ |
D | VmsClientManager.java | 119 .filter(subscriber -> subscriber.mUserId != UserHandle.USER_SYSTEM)); 241 if (subscriberUserId != mCurrentUser && subscriberUserId != UserHandle.USER_SYSTEM) { in addSubscriber() 312 UserHandle.USER_SYSTEM)); in onHalConnected() 366 if (mCurrentUser == UserHandle.USER_SYSTEM) { in bindToUserClients()
|
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/ |
D | ShadowUserManager.java | 38 private int mCurrentUser = UserHandle.USER_SYSTEM; 48 addUserInfo(new UserInfo(UserHandle.USER_SYSTEM, "system_user", 0)); in addUserInfo() argument
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/ |
D | VmsClientManagerTest.java | 460 notifyUserSwitched(UserHandle.USER_SYSTEM, true); in testUserSwitchedToSystemUser() 713 notifyUserSwitched(UserHandle.USER_SYSTEM, true); in testOnUserSwitched_UserChange_ToSystemUser() 777 notifyUserUnlocked(UserHandle.USER_SYSTEM, true); in testOnUserUnlocked_UserChange_ToSystemUser() 811 mCallingAppUid = UserHandle.getUid(UserHandle.USER_SYSTEM, 0); in testAddSubscriber_SystemUser() 862 mCallingAppUid = UserHandle.getUid(UserHandle.USER_SYSTEM, 0); in testAddSubscriber_MultipleClients_ForegroundAndSystemUsers_SamePackage() 952 mCallingAppUid = UserHandle.getUid(UserHandle.USER_SYSTEM, 0); in testOnUserSwitch_RemoveSubscriber_RetainSystemClient()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/ |
D | CarUserManagerHelperTest.java | 106 mSystemUser = createUserInfoForId(UserHandle.USER_SYSTEM); in setUpMocksAndVariables() 130 testInfo.id = UserHandle.USER_SYSTEM; in checkIsSystemUser() 133 testInfo.id = UserHandle.USER_SYSTEM + 2; // Make it different than system id. in checkIsSystemUser() 212 testInfo.id = UserHandle.USER_SYSTEM; in testUserCanBeRemoved() 215 testInfo.id = UserHandle.USER_SYSTEM + 2; // Make it different than system id. in testUserCanBeRemoved()
|
/packages/services/Car/service/src/com/android/car/garagemode/ |
D | GarageMode.java | 105 int userToStop = UserHandle.USER_SYSTEM; // BG user never becomes system user. 117 if (userToStop != UserHandle.USER_SYSTEM) {
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/ |
D | OtaController.java | 101 if (mContext.getUserId() != UserHandle.USER_SYSTEM) { in run() 106 UserHandle.USER_SYSTEM, new MigrateSystemAppsSnapshotTask( in run()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarPowerManagementServiceTest.java | 21 import static android.os.UserHandle.USER_SYSTEM; 454 setInitialUser(USER_SYSTEM); in testUserSwitchingOnResume_systemUser() 589 setInitialUser(USER_SYSTEM); in testUserSwitchingOnResume_disabledByOEM_systemUser()
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | BootUsbScanner.java | 21 if (context.getUserId() != UserHandle.USER_SYSTEM) { in onReceive()
|
D | BootUsbService.java | 87 if (ActivityManager.getCurrentUser() == UserHandle.USER_SYSTEM) { in onStartCommand()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | DisallowAddUserTask.java | 64 if (mIsSplitSystemUser && (userId == UserHandle.USER_SYSTEM)) { in run()
|