Home
last modified time | relevance | path

Searched refs:USER_SYSTEM (Results 1 – 25 of 58) sorted by relevance

123

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java144 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/
DOtaControllerTest.java101 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/
DAutoSyncWorkDataPreferenceControllerTest.java85 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/
DCryptKeeperConfirm.java132 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/
DCryptKeeperConfirm.java132 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/
DMigrateSystemAppsSnapshotTaskTest.java114 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()
DCrossProfileIntentFiltersSetterTest.java88 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/
DCarUserManagerHelper.java212 /* 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/
DOverlayCategoryPreferenceController.java19 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/
DInputOptionsFragment.java73 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()
DInputsFragment.java79 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/
DOverlayCategoryPreferenceController.java19 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/
DCarUserService.java172 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/
DVendorServiceController.java137 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/
DVendorServiceControllerTest.java101 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/
DVmsClientManager.java119 .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/
DShadowUserManager.java38 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/
DVmsClientManagerTest.java460 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/
DCarUserManagerHelperTest.java106 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/
DGarageMode.java105 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/
DOtaController.java101 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/
DCarPowerManagementServiceTest.java21 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/
DBootUsbScanner.java21 if (context.getUserId() != UserHandle.USER_SYSTEM) { in onReceive()
DBootUsbService.java87 if (ActivityManager.getCurrentUser() == UserHandle.USER_SYSTEM) { in onStartCommand()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDisallowAddUserTask.java64 if (mIsSplitSystemUser && (userId == UserHandle.USER_SYSTEM)) { in run()

123