Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/com/android/server/backup/
DPreferredActivityBackupHelper.java58 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()
DShortcutBackupHelper.java45 return getShortcutService().getBackupPayload(UserHandle.USER_SYSTEM); in getBackupPayload()
61 getShortcutService().applyRestore(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
DPermissionBackupHelper.java48 return pm.getPermissionGrantBackup(UserHandle.USER_SYSTEM); in getBackupPayload()
68 pm.restorePermissionGrants(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
DNotificationBackupHelper.java50 newPayload = nm.getBackupPayload(UserHandle.USER_SYSTEM); in getBackupPayload()
71 nm.applyRestore(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
DUsageStatsBackupHelper.java41 out.writeInt(UserHandle.USER_SYSTEM); in getBackupPayload()
42 out.write(localUsageStatsManager.getBackupPayload(UserHandle.USER_SYSTEM, key)); in getBackupPayload()
DSystemBackupAgent.java62 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath();
68 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath();
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsProviderPerformanceTest.java50 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaFrontEndApi()
59 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaFrontEndApi()
89 FAKE_SETTING_VALUE, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi()
93 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi()
98 FAKE_SETTING_VALUE_1, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi()
102 FAKE_SETTING_NAME, UserHandle.USER_SYSTEM); in testSetAndGetPerformanceForGlobalViaProviderApi()
DSettingsProviderTest.java50 performSetAndGetSettingTestViaFrontEndApi(SETTING_TYPE_GLOBAL, UserHandle.USER_SYSTEM); in testSetAndGetGlobalViaFrontEndApiForSystemUser()
54 if (mSecondaryUserId == UserHandle.USER_SYSTEM) { in testSetAndGetGlobalViaFrontEndApiForNonSystemUser()
63 performSetAndGetSettingTestViaFrontEndApi(SETTING_TYPE_SECURE, UserHandle.USER_SYSTEM); in testSetAndGetSecureViaFrontEndApiForSystemUser()
67 if (mSecondaryUserId == UserHandle.USER_SYSTEM) { in testSetAndGetSecureViaFrontEndApiForNonSystemUser()
76 performSetAndGetSettingTestViaFrontEndApi(SETTING_TYPE_SYSTEM, UserHandle.USER_SYSTEM); in testSetAndGetSystemViaFrontEndApiForSystemUser()
80 if (mSecondaryUserId == UserHandle.USER_SYSTEM) { in testSetAndGetSystemViaFrontEndApiForNonSystemUser()
360 }, type, name, value, UserHandle.USER_SYSTEM); in setSettingViaProviderApiAndAssertSuccessfulChange()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceMigrationTest.java88 eq(UserHandle.USER_SYSTEM))).thenReturn(DpmTestUtils.newRestrictions( in testMigration()
143 assertFalse(dpms.mOwners.hasProfileOwner(UserHandle.USER_SYSTEM)); in testMigration()
151 UserHandle.USER_SYSTEM)); in testMigration()
161 newBaseRestrictions.get(UserHandle.USER_SYSTEM)); in testMigration()
219 eq(UserHandle.USER_SYSTEM))).thenReturn(DpmTestUtils.newRestrictions( in testMigration2_profileOwnerOnUser0()
257 assertTrue(dpms.mOwners.hasProfileOwner(UserHandle.USER_SYSTEM)); in testMigration2_profileOwnerOnUser0()
262 UserHandle.USER_SYSTEM)); in testMigration2_profileOwnerOnUser0()
269 newBaseRestrictions.get(UserHandle.USER_SYSTEM)); in testMigration2_profileOwnerOnUser0()
278 dpms.getProfileOwnerAdminLocked(UserHandle.USER_SYSTEM).ensureUserRestrictions()); in testMigration2_profileOwnerOnUser0()
DDevicePolicyManagerTest.java553 dpm.setActiveAdmin(admin2, /* refreshing= */ true, UserHandle.USER_SYSTEM); in testSetDeviceOwner()
555 dpm.setProfileOwner(admin2, "owner-name", UserHandle.USER_SYSTEM); in testSetDeviceOwner()
611 eq(UserHandle.USER_SYSTEM), eq(false)); in setDeviceOwner()
615 MockUtils.checkUserHandle(UserHandle.USER_SYSTEM)); in setDeviceOwner()
638 assertEquals(UserHandle.USER_SYSTEM, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi()
657 assertEquals(UserHandle.USER_SYSTEM, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi()
677 assertEquals(UserHandle.USER_SYSTEM, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi()
694 assertEquals(UserHandle.USER_SYSTEM, dpm.getDeviceOwnerUserId()); in checkGetDeviceOwnerInfoApi()
823 assertFalse(dpm.isRemovingAdmin(admin1, UserHandle.USER_SYSTEM)); in testClearDeviceOwner()
851 eq(UserHandle.USER_SYSTEM), in testClearDeviceOwner()
[all …]
DOwnersTest.java114 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId()); in testUpgrade02()
134 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId()); in testUpgrade02()
250 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId()); in testUpgrade04()
282 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId()); in testUpgrade04()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java73 SQLiteDatabase.deleteDatabase(new File(mAms.getCeDatabaseName(UserHandle.USER_SYSTEM))); in tearDown()
74 SQLiteDatabase.deleteDatabase(new File(mAms.getDeDatabaseName(UserHandle.USER_SYSTEM))); in tearDown()
75 SQLiteDatabase.deleteDatabase(new File(mAms.getPreNDatabaseName(UserHandle.USER_SYSTEM))); in tearDown()
227 Account[] accounts = ams2.getAccounts(UserHandle.USER_SYSTEM, mContext.getOpPackageName()); in testRemovedAccountSync()
232 String ceDatabaseName = mAms.getCeDatabaseName(UserHandle.USER_SYSTEM); in testRemovedAccountSync()
237 ams2.onUserUnlocked(newIntentForUser(UserHandle.USER_SYSTEM)); in testRemovedAccountSync()
240 accounts = ams2.getAccounts(UserHandle.USER_SYSTEM, mContext.getOpPackageName()); in testRemovedAccountSync()
246 String preNDatabaseName = mAms.getPreNDatabaseName(UserHandle.USER_SYSTEM); in testPreNDatabaseMigration()
267 String deDatabaseName = mAms.getDeDatabaseName(UserHandle.USER_SYSTEM); in testPreNDatabaseMigration()
268 String ceDatabaseName = mAms.getCeDatabaseName(UserHandle.USER_SYSTEM); in testPreNDatabaseMigration()
[all …]
/frameworks/base/core/java/android/content/pm/
DUserInfo.java171 return userId == UserHandle.USER_SYSTEM && UserManager.isSplitSystemUser(); in isSystemOnly()
192 return (!hideSystemUser || id != UserHandle.USER_SYSTEM) && supportsSwitchTo(); in supportsSwitchToByUser()
201 return id != UserHandle.USER_SYSTEM; in canHaveProfile()
203 return id == UserHandle.USER_SYSTEM; in canHaveProfile()
/frameworks/base/core/java/android/os/
DUserHandle.java75 public static final @UserIdInt int USER_SYSTEM = 0; field in UserHandle
81 public static final UserHandle SYSTEM = new UserHandle(USER_SYSTEM);
149 return UserHandle.USER_SYSTEM; in getUserId()
161 return userId == USER_SYSTEM ? SYSTEM : new UserHandle(userId); in of()
/frameworks/base/core/java/android/app/backup/
DWallpaperBackupHelper.java61 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
64 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
77 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java112 if (userHandle == UserHandle.USER_SYSTEM) { in dbNameForUser()
208 if (mUserHandle == UserHandle.USER_SYSTEM) { in onCreate()
1273 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade()
1327 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade()
1352 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade()
1369 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade()
1388 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade()
1407 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade()
1453 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade()
1473 if (mUserHandle == UserHandle.USER_SYSTEM) { in onUpgrade()
[all …]
DSettingsProvider.java556 if (userId == UserHandle.USER_SYSTEM) { in dumpForUser()
607 UserHandle.USER_SYSTEM); in registerBroadcastReceivers()
734 SETTINGS_TYPE_GLOBAL, UserHandle.USER_SYSTEM); in getAllGlobalSettings()
762 UserHandle.USER_SYSTEM, name); in getGlobalSetting()
811 .insertSettingLocked(SETTINGS_TYPE_GLOBAL, UserHandle.USER_SYSTEM, in mutateGlobalSetting()
817 UserHandle.USER_SYSTEM, name, forceNotify); in mutateGlobalSetting()
822 .updateSettingLocked(SETTINGS_TYPE_GLOBAL, UserHandle.USER_SYSTEM, in mutateGlobalSetting()
1290 if (userId == UserHandle.USER_SYSTEM) { in getGroupParentLocked()
1653 if (userId == UserHandle.USER_SYSTEM) { in ensureSettingsForUserLocked()
1654 final int globalKey = makeKey(SETTINGS_TYPE_GLOBAL, UserHandle.USER_SYSTEM); in ensureSettingsForUserLocked()
[all …]
/frameworks/base/cmds/content/src/com/android/commands/content/
DContent.java187 int userId = UserHandle.USER_SYSTEM; in parseInsertCommand()
213 int userId = UserHandle.USER_SYSTEM; in parseDeleteCommand()
235 int userId = UserHandle.USER_SYSTEM; in parseUpdateCommand()
264 int userId = UserHandle.USER_SYSTEM; in parseCallCommand()
296 int userId = UserHandle.USER_SYSTEM; in parseReadCommand()
315 int userId = UserHandle.USER_SYSTEM; in parseQueryCommand()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java101 private int mLastNonGuestUser = UserHandle.USER_SYSTEM;
238 || currentUserInfo.id == UserHandle.USER_SYSTEM) in refreshUsers()
323 if (currentUser != UserHandle.USER_SYSTEM) { in logoutCurrentUser()
330 if (userId == UserHandle.USER_SYSTEM) { in removeUserId()
335 switchToUserId(UserHandle.USER_SYSTEM); in removeUserId()
410 int newId = UserHandle.USER_SYSTEM; in exitGuest()
411 if (mLastNonGuestUser != UserHandle.USER_SYSTEM) { in exitGuest()
501 && userInfo.id != UserHandle.USER_SYSTEM) {
514 if (userId != UserHandle.USER_SYSTEM) {
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DConfigurationMapTest.java65 USER_PROFILES.put(UserHandle.USER_SYSTEM, Arrays.asList( in USER_PROFILES.put() argument
66 new UserInfo(UserHandle.USER_SYSTEM, "Owner", 0), in USER_PROFILES.put() argument
74 private int mCurrentUserId = UserHandle.USER_SYSTEM;
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/
DDpm.java50 private int mUserId = UserHandle.USER_SYSTEM;
154 mDevicePolicyManager.removeActiveAdmin(mComponent, UserHandle.USER_SYSTEM); in runSetDeviceOwner()
/frameworks/base/cmds/pm/src/com/android/commands/pm/
DPm.java273 return displayPackageFilePath(args[1], UserHandle.USER_SYSTEM); in run()
522 userId = UserHandle.USER_SYSTEM; in doCreateSession()
648 int userId = UserHandle.USER_SYSTEM; in runPath()
702 int userId = UserHandle.USER_SYSTEM; in runSetAppLink()
786 int userId = UserHandle.USER_SYSTEM; in runGetAppLink()
940 int parentUserId = userId >= 0 ? userId : UserHandle.USER_SYSTEM; in runCreateUser()
1062 int userId = UserHandle.USER_SYSTEM; in runSetUserRestriction()
1108 int userId = UserHandle.USER_SYSTEM; in runClear()
1178 int userId = UserHandle.USER_SYSTEM; in runSetEnabledSetting()
1225 int userId = UserHandle.USER_SYSTEM; in runSetHiddenSetting()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DTrampoline.java67 if (whichUser == UserHandle.USER_SYSTEM) { in initialize()
97 if (userHandle == UserHandle.USER_SYSTEM) { in setBackupServiceActive()
126 if (userHandle == UserHandle.USER_SYSTEM) { in isBackupServiceActive()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java118 private int mCurrentUserId = UserHandle.USER_SYSTEM;
169 mStartedUsers.put(UserHandle.USER_SYSTEM, uss); in UserController()
170 mUserLru.add(UserHandle.USER_SYSTEM); in UserController()
203 if (oldUserId == UserHandle.USER_SYSTEM || oldUserId == mCurrentUserId) { in stopRunningUsersLocked()
380 if (userId != UserHandle.USER_SYSTEM) { in finishUserUnlockedCompleted()
421 if (userId < 0 || userId == UserHandle.USER_SYSTEM) { in stopUser()
436 if (userId == UserHandle.USER_SYSTEM) { in stopUsersLocked()
446 if ((UserHandle.USER_SYSTEM == relatedUserId) || isCurrentUserLocked(relatedUserId)) { in stopUsersLocked()
666 if (oldUserId == UserHandle.USER_SYSTEM || oldUserId == mCurrentUserId in stopGuestOrEphemeralUserIfBackground()
1024 if (oldUserId == UserHandle.USER_SYSTEM) { in stopBackgroundUsersIfEnforced()
[all …]
/frameworks/base/core/java/android/net/
DNetworkScorerAppManager.java114 if (UserHandle.getCallingUserId() != UserHandle.USER_SYSTEM) { in getAllValidScorers()
123 … pm.queryBroadcastReceiversAsUser(SCORE_INTENT, 0 /* flags */, UserHandle.USER_SYSTEM); in getAllValidScorers()

12345