/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
D | SnoozeHelperTest.java | 79 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); in testSnoozeForTime() 89 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 99 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 101 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 103 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.sbn.getPackageName(), "one", 1); 107 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 109 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 121 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 123 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 127 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, false); [all …]
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportProgressServiceTest.java | 116 list(UserHandle.of(UserHandle.USER_SYSTEM))); in findSendToAccount_noWorkProfile() 119 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 128 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 139 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 150 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 161 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 179 list(UserHandle.of(UserHandle.USER_SYSTEM), UserHandle.of(10))); in findSendToAccount_withWorkProfile_noAccounts() 186 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_withWorkProfile_noAccounts() 195 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_withWorkProfile_noAccounts() 206 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_withWorkProfile_noAccounts() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceCreateProfileTest.java | 65 UserHandle.USER_SYSTEM, users.get(0).id); in setup() 81 mUserManagerService.getProfiles(UserHandle.USER_SYSTEM, /*excludeDying*/ false); in testGetProfiles() 84 UserHandle.USER_SYSTEM, users.get(0).id); in testGetProfiles() 99 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM)); in testProfileBadge() 110 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM)); in testProfileBadge() 117 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM)); in testProfileBadge() 126 int nextBadge = mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM); in testProfileBadgeUnique() 169 if (!mUserManagerService.canAddMoreManagedProfiles(UserHandle.USER_SYSTEM, in testCanAddMoreManagedProfiles_removeProfile() 175 while (mUserManagerService.canAddMoreManagedProfiles(UserHandle.USER_SYSTEM, in testCanAddMoreManagedProfiles_removeProfile() 182 mUserManagerService.canAddMoreManagedProfiles(UserHandle.USER_SYSTEM, in testCanAddMoreManagedProfiles_removeProfile() [all …]
|
D | InstallerTest.java | 123 final int[] appIds = getAppIds(UserHandle.USER_SYSTEM); in testGetUserSize() 129 mInstaller.getUserSize(null, UserHandle.USER_SYSTEM, 0, in testGetUserSize() 134 mInstaller.getUserSize(null, UserHandle.USER_SYSTEM, Installer.FLAG_USE_QUOTA, in testGetUserSize() 142 final int[] appIds = getAppIds(UserHandle.USER_SYSTEM); in testGetExternalSize() 145 final long[] stats = mInstaller.getExternalSize(null, UserHandle.USER_SYSTEM, 0, appIds); in testGetExternalSize() 149 final long[] quotaStats = mInstaller.getExternalSize(null, UserHandle.USER_SYSTEM, in testGetExternalSize()
|
D | UserManagerServiceUserInfoTest.java | 69 UserHandle.USER_SYSTEM, users.get(0).id); in setup() 109 mUserManagerService.isUserNameSet(UserHandle.USER_SYSTEM)); in testGetUserName() 110 UserInfo userInfo = mUserManagerService.getUserInfo(UserHandle.USER_SYSTEM); in testGetUserName()
|
/frameworks/base/core/java/com/android/server/backup/ |
D | PreferredActivityBackupHelper.java | 58 return pm.getPreferredActivityBackup(UserHandle.USER_SYSTEM); in getBackupPayload() 60 return pm.getDefaultAppsBackup(UserHandle.USER_SYSTEM); in getBackupPayload() 62 return pm.getIntentFilterVerificationBackup(UserHandle.USER_SYSTEM); in getBackupPayload() 82 pm.restorePreferredActivities(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload() 85 pm.restoreDefaultApps(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload() 88 pm.restoreIntentFilterVerification(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
|
D | ShortcutBackupHelper.java | 45 return getShortcutService().getBackupPayload(UserHandle.USER_SYSTEM); in getBackupPayload() 61 getShortcutService().applyRestore(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
|
D | PermissionBackupHelper.java | 48 return pm.getPermissionGrantBackup(UserHandle.USER_SYSTEM); in getBackupPayload() 68 pm.restorePermissionGrants(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
|
D | AccountManagerBackupHelper.java | 51 return am.backupAccountAccessPermissions(UserHandle.USER_SYSTEM); in getBackupPayload() 74 am.restoreAccountAccessPermissions(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
|
D | NotificationBackupHelper.java | 50 newPayload = nm.getBackupPayload(UserHandle.USER_SYSTEM); in getBackupPayload() 71 nm.applyRestore(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
|
D | UsageStatsBackupHelper.java | 41 out.writeInt(UserHandle.USER_SYSTEM); in getBackupPayload() 42 out.write(localUsageStatsManager.getBackupPayload(UserHandle.USER_SYSTEM, key)); in getBackupPayload()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsProviderPerformanceTest.java | 55 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaFrontEndApi() 64 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaFrontEndApi() 95 FAKE_SETTING_VALUE, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi() 99 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi() 104 FAKE_SETTING_VALUE_1, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi() 108 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi()
|
D | SettingsProviderTest.java | 57 performSetAndGetSettingTestViaFrontEndApi(SETTING_TYPE_GLOBAL, UserHandle.USER_SYSTEM); in testSetAndGetGlobalViaFrontEndApiForSystemUser() 63 if (secondaryUserId == UserHandle.USER_SYSTEM) { in testSetAndGetGlobalViaFrontEndApiForNonSystemUser() 73 performSetAndGetSettingTestViaFrontEndApi(SETTING_TYPE_SECURE, UserHandle.USER_SYSTEM); in testSetAndGetSecureViaFrontEndApiForSystemUser() 79 if (secondaryUserId == UserHandle.USER_SYSTEM) { in testSetAndGetSecureViaFrontEndApiForNonSystemUser() 89 performSetAndGetSettingTestViaFrontEndApi(SETTING_TYPE_SYSTEM, UserHandle.USER_SYSTEM); in testSetAndGetSystemViaFrontEndApiForSystemUser() 95 if (secondaryUserId == UserHandle.USER_SYSTEM) { in testSetAndGetSystemViaFrontEndApiForNonSystemUser() 610 }, type, name, value, UserHandle.USER_SYSTEM); in setSettingViaProviderApiAndAssertSuccessfulChange()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 627 dpm.reportPasswordChanged(UserHandle.USER_SYSTEM); in testSetActivePasswordState_sendToProfiles() 632 intent.putExtra(Intent.EXTRA_USER, UserHandle.of(UserHandle.USER_SYSTEM)); in testSetActivePasswordState_sendToProfiles() 636 MockUtils.checkUserHandle(UserHandle.USER_SYSTEM)); in testSetActivePasswordState_sendToProfiles() 676 MockUtils.checkUserHandle(UserHandle.USER_SYSTEM)); in testSetActivePasswordState_notSentToParent() 689 dpm.setActiveAdmin(admin2, /* refreshing= */ true, UserHandle.USER_SYSTEM); in testSetDeviceOwner() 691 dpm.setProfileOwner(admin2, "owner-name", UserHandle.USER_SYSTEM); in testSetDeviceOwner() 747 eq(UserHandle.USER_SYSTEM), eq(false)); in setDeviceOwner() 751 MockUtils.checkUserHandle(UserHandle.USER_SYSTEM)); in setDeviceOwner() 774 assertEquals(UserHandle.USER_SYSTEM, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi() 793 assertEquals(UserHandle.USER_SYSTEM, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi() [all …]
|
D | DevicePolicyManagerServiceMigrationTest.java | 85 eq(UserHandle.USER_SYSTEM))).thenReturn(DpmTestUtils.newRestrictions( in testMigration() 137 assertFalse(dpms.mOwners.hasProfileOwner(UserHandle.USER_SYSTEM)); in testMigration() 145 UserHandle.USER_SYSTEM)); in testMigration() 155 newBaseRestrictions.get(UserHandle.USER_SYSTEM)); in testMigration() 214 eq(UserHandle.USER_SYSTEM))).thenReturn(DpmTestUtils.newRestrictions( in testMigration2_profileOwnerOnUser0() 249 assertTrue(dpms.mOwners.hasProfileOwner(UserHandle.USER_SYSTEM)); in testMigration2_profileOwnerOnUser0() 254 UserHandle.USER_SYSTEM)); in testMigration2_profileOwnerOnUser0() 261 newBaseRestrictions.get(UserHandle.USER_SYSTEM)); in testMigration2_profileOwnerOnUser0() 270 dpms.getProfileOwnerAdminLocked(UserHandle.USER_SYSTEM).ensureUserRestrictions()); in testMigration2_profileOwnerOnUser0()
|
/frameworks/base/core/java/android/app/backup/ |
D | WallpaperBackupHelper.java | 61 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM), 64 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM), 67 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM), 80 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
|
/frameworks/base/core/java/android/content/pm/ |
D | UserInfo.java | 187 return userId == UserHandle.USER_SYSTEM && UserManager.isSplitSystemUser(); in isSystemOnly() 207 return (!hideSystemUser || id != UserHandle.USER_SYSTEM) && supportsSwitchTo(); in supportsSwitchToByUser() 216 return id != UserHandle.USER_SYSTEM; in canHaveProfile() 218 return id == UserHandle.USER_SYSTEM; in canHaveProfile()
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 92 File wallpaperDir = Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM); in onCreate() 127 mWm.getWallpaperIdForUser(FLAG_SYSTEM, UserHandle.USER_SYSTEM); in onFullBackup() 129 mWm.getWallpaperIdForUser(FLAG_LOCK, UserHandle.USER_SYSTEM); in onFullBackup() 138 … ParcelFileDescriptor lockFd = mWm.getWallpaperFile(FLAG_LOCK, UserHandle.USER_SYSTEM); in onFullBackup() 232 mWm.setWallpaperComponent(wpService, UserHandle.USER_SYSTEM); in onRestoreFinished() 345 0, UserHandle.USER_SYSTEM); in servicePackageExists()
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 77 public static final @UserIdInt int USER_SYSTEM = 0; field in UserHandle 83 public static final UserHandle SYSTEM = new UserHandle(USER_SYSTEM); 151 return UserHandle.USER_SYSTEM; in getUserId() 163 return userId == USER_SYSTEM ? SYSTEM : new UserHandle(userId); in of()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerShellCommand.java | 101 int userId = UserHandle.USER_SYSTEM; in runList() 143 int userId = UserHandle.USER_SYSTEM; in runEnableDisable() 163 int userId = UserHandle.USER_SYSTEM; in runSetPriority()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountManagerServiceTest.java | 138 final UserInfo ui = new UserInfo(UserHandle.USER_SYSTEM, "user0", 0); in setUp() 174 deleteDatabase(new File(mTestInjector.getCeDatabaseName(UserHandle.USER_SYSTEM))); in tearDown() 175 deleteDatabase(new File(mTestInjector.getDeDatabaseName(UserHandle.USER_SYSTEM))); in tearDown() 176 deleteDatabase(new File(mTestInjector.getPreNDatabaseName(UserHandle.USER_SYSTEM))); in tearDown() 342 Account[] accounts = ams2.getAccounts(UserHandle.USER_SYSTEM, mContext.getOpPackageName()); in testRemovedAccountSync() 347 String ceDatabaseName = mTestInjector.getCeDatabaseName(UserHandle.USER_SYSTEM); in testRemovedAccountSync() 352 ams2.onUserUnlocked(newIntentForUser(UserHandle.USER_SYSTEM)); in testRemovedAccountSync() 353 accounts = ams2.getAccounts(UserHandle.USER_SYSTEM, mContext.getOpPackageName()); in testRemovedAccountSync() 362 String preNDatabaseName = mTestInjector.getPreNDatabaseName(UserHandle.USER_SYSTEM); in testPreNDatabaseMigration() 385 String deDatabaseName = mTestInjector.getDeDatabaseName(UserHandle.USER_SYSTEM); in testPreNDatabaseMigration() [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | DatabaseHelper.java | 112 if (userHandle == UserHandle.USER_SYSTEM) { in dbNameForUser() 208 if (mUserHandle == UserHandle.USER_SYSTEM) { in onCreate() 1217 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1267 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1292 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1309 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1328 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1347 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1393 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1413 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() [all …]
|
/frameworks/base/cmds/content/src/com/android/commands/content/ |
D | Content.java | 196 int userId = UserHandle.USER_SYSTEM; in parseInsertCommand() 222 int userId = UserHandle.USER_SYSTEM; in parseDeleteCommand() 244 int userId = UserHandle.USER_SYSTEM; in parseUpdateCommand() 273 int userId = UserHandle.USER_SYSTEM; in parseCallCommand() 305 int userId = UserHandle.USER_SYSTEM; in parseGetTypeCommand() 325 int userId = UserHandle.USER_SYSTEM; in parseReadCommand() 344 int userId = UserHandle.USER_SYSTEM; in parseQueryCommand()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternUtils.java | 586 if (userHandle == UserHandle.USER_SYSTEM) { in clearLock() 618 boolean isSystemUser = UserManager.isSplitSystemUser() && userId == UserHandle.USER_SYSTEM; in isLockScreenDisabled() 649 if (userId == UserHandle.USER_SYSTEM in saveLockPattern() 667 if (userId != UserHandle.USER_SYSTEM) { in updateCryptoUserInfo() 718 setString(LOCK_SCREEN_DEVICE_OWNER_INFO, info, UserHandle.USER_SYSTEM); in setDeviceOwnerInfo() 722 return getString(LOCK_SCREEN_DEVICE_OWNER_INFO, UserHandle.USER_SYSTEM); in getDeviceOwnerInfo() 790 if (userHandle == UserHandle.USER_SYSTEM in updateEncryptionPasswordIfNeeded() 1110 if (userId != UserHandle.USER_SYSTEM) { in setVisiblePatternEnabled() 1133 if (userId != UserHandle.USER_SYSTEM) { in setVisiblePasswordEnabled() 1481 if (userId == UserHandle.USER_SYSTEM) { [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ConfigurationMapTest.java | 64 USER_PROFILES.put(UserHandle.USER_SYSTEM, Arrays.asList( in USER_PROFILES.put() argument 65 new UserInfo(UserHandle.USER_SYSTEM, "Owner", 0), in USER_PROFILES.put() argument 73 private int mCurrentUserId = UserHandle.USER_SYSTEM;
|