/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | SnoozeHelperTest.java | 81 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); in testSnoozeForTime() 91 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 101 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 103 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 105 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.sbn.getPackageName(), "one", 1); 109 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 111 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 123 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 125 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 129 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, false); [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | KeyguardDisableHandlerTest.java | 23 import static android.os.UserHandle.USER_SYSTEM; 108 mKeyguardDisable.disableKeyguard(new Binder(), "Tag", FIRST_APPLICATION_UID, USER_SYSTEM); in disable_fromApp_disables() 122 mKeyguardDisable.disableKeyguard(createLockTaskToken(), "Tag", SYSTEM_UID, USER_SYSTEM); in disable_fromSystem_LockTask_disables() local 129 mKeyguardDisable.disableKeyguard(new Binder(), "Tag", SYSTEM_UID, USER_SYSTEM); in disable_fromSystem_genericToken_fails() 140 mKeyguardDisable.disableKeyguard(new Binder(), "Tag", NFC_UID, USER_SYSTEM); in disable_fromNonApp_genericToken_fails() 150 configureIsSecure(true, USER_SYSTEM); in disable_fromApp_secure_staysEnabled() 151 mKeyguardDisable.disableKeyguard(new Binder(), "Tag", FIRST_APPLICATION_UID, USER_SYSTEM); in disable_fromApp_secure_staysEnabled() 157 configureDpmRequiresPassword(true, USER_SYSTEM); in disable_fromApp_dpmRequiresPassword_staysEnabled() 158 mKeyguardDisable.disableKeyguard(new Binder(), "Tag", FIRST_APPLICATION_UID, USER_SYSTEM); in disable_fromApp_dpmRequiresPassword_staysEnabled() 164 configureIsSecure(true, USER_SYSTEM); in disable_fromSystem_LockTask_secure_disables() [all …]
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportProgressServiceTest.java | 115 list(UserHandle.of(UserHandle.USER_SYSTEM))); in findSendToAccount_noWorkProfile() 118 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 127 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 138 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 149 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 160 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_noWorkProfile() 178 list(UserHandle.of(UserHandle.USER_SYSTEM), UserHandle.of(10))); in findSendToAccount_withWorkProfile_noAccounts() 185 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_withWorkProfile_noAccounts() 194 when(mTestContext.accountManager.getAccountsAsUser(eq(UserHandle.USER_SYSTEM))).thenReturn( in findSendToAccount_withWorkProfile_noAccounts() 205 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 | 66 UserHandle.USER_SYSTEM, users.get(0).id); in setup() 82 mUserManagerService.getProfiles(UserHandle.USER_SYSTEM, /*excludeDying*/ false); in testGetProfiles() 85 UserHandle.USER_SYSTEM, users.get(0).id); in testGetProfiles() 100 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM)); in testProfileBadge() 111 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM)); in testProfileBadge() 118 mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM)); in testProfileBadge() 127 int nextBadge = mUserManagerService.getFreeProfileBadgeLU(UserHandle.USER_SYSTEM); in testProfileBadgeUnique() 170 if (!mUserManagerService.canAddMoreManagedProfiles(UserHandle.USER_SYSTEM, in testCanAddMoreManagedProfiles_removeProfile() 176 while (mUserManagerService.canAddMoreManagedProfiles(UserHandle.USER_SYSTEM, in testCanAddMoreManagedProfiles_removeProfile() 183 mUserManagerService.canAddMoreManagedProfiles(UserHandle.USER_SYSTEM, in testCanAddMoreManagedProfiles_removeProfile() [all …]
|
D | InstallerTest.java | 137 final int[] appIds = getAppIds(UserHandle.USER_SYSTEM); in testGetUserSize() 143 mInstaller.getUserSize(null, UserHandle.USER_SYSTEM, 0, in testGetUserSize() 148 mInstaller.getUserSize(null, UserHandle.USER_SYSTEM, Installer.FLAG_USE_QUOTA, in testGetUserSize() 158 final int[] appIds = getAppIds(UserHandle.USER_SYSTEM); in testGetExternalSize() 161 final long[] stats = mInstaller.getExternalSize(null, UserHandle.USER_SYSTEM, 0, appIds); in testGetExternalSize() 165 final long[] quotaStats = mInstaller.getExternalSize(null, UserHandle.USER_SYSTEM, in testGetExternalSize()
|
D | UserManagerServiceUserInfoTest.java | 70 UserHandle.USER_SYSTEM, users.get(0).id); in setup() 110 mUserManagerService.isUserNameSet(UserHandle.USER_SYSTEM)); in testGetUserName() 111 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 | SystemBackupAgent.java | 68 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath(); 70 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM), 76 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath(); 78 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM), 86 private int mUserId = UserHandle.USER_SYSTEM; 126 if (mUserId != UserHandle.USER_SYSTEM && !sEligibleForMultiUser.contains(keyPrefix)) { in addHelper()
|
D | ShortcutBackupHelper.java | 45 return getShortcutService().getBackupPayload(UserHandle.USER_SYSTEM); in getBackupPayload() 61 getShortcutService().applyRestore(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 | SliceBackupHelper.java | 48 newPayload = sm.getBackupPayload(UserHandle.USER_SYSTEM); in getBackupPayload() 67 sm.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 | 58 performSetAndGetSettingTestViaFrontEndApi(SETTING_TYPE_GLOBAL, UserHandle.USER_SYSTEM); in testSetAndGetGlobalViaFrontEndApiForSystemUser() 64 if (secondaryUserId == UserHandle.USER_SYSTEM) { in testSetAndGetGlobalViaFrontEndApiForNonSystemUser() 74 performSetAndGetSettingTestViaFrontEndApi(SETTING_TYPE_SECURE, UserHandle.USER_SYSTEM); in testSetAndGetSecureViaFrontEndApiForSystemUser() 80 if (secondaryUserId == UserHandle.USER_SYSTEM) { in testSetAndGetSecureViaFrontEndApiForNonSystemUser() 90 performSetAndGetSettingTestViaFrontEndApi(SETTING_TYPE_SYSTEM, UserHandle.USER_SYSTEM); in testSetAndGetSystemViaFrontEndApiForSystemUser() 96 if (secondaryUserId == UserHandle.USER_SYSTEM) { in testSetAndGetSystemViaFrontEndApiForNonSystemUser() 611 }, type, name, value, UserHandle.USER_SYSTEM); in setSettingViaProviderApiAndAssertSuccessfulChange() 701 UserHandle.USER_SYSTEM); in testLocationModeChanges_viaFrontEndApi() 708 UserHandle.USER_SYSTEM)); in testLocationModeChanges_viaFrontEndApi() 714 UserHandle.USER_SYSTEM); in testLocationModeChanges_viaFrontEndApi() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
D | TrampolineTest.java | 97 private static final int NON_USER_SYSTEM = UserHandle.USER_SYSTEM + 1; 98 private static final int UNSTARTED_NON_USER_SYSTEM = UserHandle.USER_SYSTEM + 2; 134 mUserId = UserHandle.USER_SYSTEM; in setUp() 137 serviceUsers.append(UserHandle.USER_SYSTEM, mUserBackupManagerService); in setUp() 141 when(mUserManagerMock.getUserInfo(UserHandle.USER_SYSTEM)).thenReturn(mUserInfoMock); in setUp() 146 TrampolineTestable.sCallingUserId = UserHandle.USER_SYSTEM; in setUp() 188 assertTrue(mTrampoline.isBackupServiceActive(UserHandle.USER_SYSTEM)); in initializeService_successfullyInitializesBackupService() 198 assertFalse(trampoline.isBackupServiceActive(UserHandle.USER_SYSTEM)); in initializeService_globallyDisabled_nonInitialized() 210 assertFalse(mTrampoline.isBackupServiceActive(UserHandle.USER_SYSTEM)); in isBackupServiceActive_calledBeforeInitialize_returnsFalse() 216 mTrampoline.setBackupServiceActive(UserHandle.USER_SYSTEM, true); in isBackupServiceActive_forSystemUser_returnsTrueWhenActivated() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 316 eq(UserHandle.USER_SYSTEM)); in testLoadAdminData() 789 dpm.reportPasswordChanged(UserHandle.USER_SYSTEM); in testSetActivePasswordState_sendToProfiles() 794 intent.putExtra(Intent.EXTRA_USER, UserHandle.of(UserHandle.USER_SYSTEM)); in testSetActivePasswordState_sendToProfiles() 798 MockUtils.checkUserHandle(UserHandle.USER_SYSTEM), in testSetActivePasswordState_sendToProfiles() 842 MockUtils.checkUserHandle(UserHandle.USER_SYSTEM), in testSetActivePasswordState_notSentToParent() 860 dpm.setActiveAdmin(admin2, /* refreshing= */ true, UserHandle.USER_SYSTEM); in testSetDeviceOwner() 863 () -> dpm.setProfileOwner(admin2, "owner-name", UserHandle.USER_SYSTEM)); in testSetDeviceOwner() 914 MockUtils.checkUserHandle(UserHandle.USER_SYSTEM)); in setDeviceOwner() 937 assertEquals(UserHandle.USER_SYSTEM, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi() 956 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/services/backup/java/com/android/server/backup/ |
D | UserBackupManagerFiles.java | 35 if (userId != UserHandle.USER_SYSTEM) { in getBaseStateDir() 44 if (userId != UserHandle.USER_SYSTEM) { in getDataDir() 54 return new File(getBaseStateDir(UserHandle.USER_SYSTEM), "" + userId); in getStateDirInSystemDir()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerShellCommand.java | 111 int userId = UserHandle.USER_SYSTEM; in runList() 185 int userId = UserHandle.USER_SYSTEM; in runEnableDisable() 205 int userId = UserHandle.USER_SYSTEM; in runEnableExclusive() 232 int userId = UserHandle.USER_SYSTEM; in runSetPriority()
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 92 File wallpaperDir = Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM); in onCreate() 129 mWm.getWallpaperIdForUser(FLAG_SYSTEM, UserHandle.USER_SYSTEM); in onFullBackup() 131 mWm.getWallpaperIdForUser(FLAG_LOCK, UserHandle.USER_SYSTEM); in onFullBackup() 140 … ParcelFileDescriptor lockFd = mWm.getWallpaperFile(FLAG_LOCK, UserHandle.USER_SYSTEM); in onFullBackup() 234 mWm.setWallpaperComponent(wpService, UserHandle.USER_SYSTEM); in onRestoreFinished() 347 0, UserHandle.USER_SYSTEM); in servicePackageExists()
|
/frameworks/base/core/java/android/content/pm/ |
D | UserInfo.java | 256 return userId == UserHandle.USER_SYSTEM && UserManager.isSplitSystemUser(); in isSystemOnly() 276 return (!hideSystemUser || id != UserHandle.USER_SYSTEM) && supportsSwitchTo(); in supportsSwitchToByUser() 285 return id != UserHandle.USER_SYSTEM; in canHaveProfile() 287 return id == UserHandle.USER_SYSTEM; in canHaveProfile()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountManagerServiceTest.java | 137 final UserInfo ui = new UserInfo(UserHandle.USER_SYSTEM, "user0", 0); in setUp() 176 deleteDatabase(new File(mTestInjector.getCeDatabaseName(UserHandle.USER_SYSTEM))); in tearDown() 177 deleteDatabase(new File(mTestInjector.getDeDatabaseName(UserHandle.USER_SYSTEM))); in tearDown() 178 deleteDatabase(new File(mTestInjector.getPreNDatabaseName(UserHandle.USER_SYSTEM))); in tearDown() 345 Account[] accounts = ams2.getAccounts(UserHandle.USER_SYSTEM, mContext.getOpPackageName()); in testRemovedAccountSync() 350 String ceDatabaseName = mTestInjector.getCeDatabaseName(UserHandle.USER_SYSTEM); in testRemovedAccountSync() 355 ams2.onUserUnlocked(newIntentForUser(UserHandle.USER_SYSTEM)); in testRemovedAccountSync() 356 accounts = ams2.getAccounts(UserHandle.USER_SYSTEM, mContext.getOpPackageName()); in testRemovedAccountSync() 365 String preNDatabaseName = mTestInjector.getPreNDatabaseName(UserHandle.USER_SYSTEM); in testPreNDatabaseMigration() 388 String deDatabaseName = mTestInjector.getDeDatabaseName(UserHandle.USER_SYSTEM); in testPreNDatabaseMigration() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserSwitchingDialog.java | 98 if (UserManager.isSplitSystemUser() && mNewUser.id == UserHandle.USER_SYSTEM) { in inflateContent() 107 if (mOldUser.id == UserHandle.USER_SYSTEM) { in inflateContent() 109 } else if (mNewUser.id == UserHandle.USER_SYSTEM) { in inflateContent()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | DatabaseHelper.java | 113 if (userHandle == UserHandle.USER_SYSTEM) { in dbNameForUser() 204 if (mUserHandle == UserHandle.USER_SYSTEM) { in onCreate() 1210 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1260 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1285 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1302 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1321 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1340 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1386 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() 1406 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade() [all …]
|
/frameworks/base/cmds/content/src/com/android/commands/content/ |
D | Content.java | 197 int userId = UserHandle.USER_SYSTEM; in parseInsertCommand() 223 int userId = UserHandle.USER_SYSTEM; in parseDeleteCommand() 245 int userId = UserHandle.USER_SYSTEM; in parseUpdateCommand() 274 int userId = UserHandle.USER_SYSTEM; in parseCallCommand() 306 int userId = UserHandle.USER_SYSTEM; in parseGetTypeCommand() 326 int userId = UserHandle.USER_SYSTEM; in parseReadCommand() 345 int userId = UserHandle.USER_SYSTEM; in parseWriteCommand() 364 int userId = UserHandle.USER_SYSTEM; in parseQueryCommand()
|