Home
last modified time | relevance | path

Searched refs:userId (Results 1 – 25 of 804) sorted by relevance

12345678910>>...33

/frameworks/base/services/backup/java/com/android/server/backup/
DTrampoline.java144 protected File getRememberActivatedFileForNonSystemUser(int userId) { in getRememberActivatedFileForNonSystemUser() argument
145 return UserBackupManagerFiles.getStateFileInSystemDir(REMEMBER_ACTIVATED_FILENAME, userId); in getRememberActivatedFileForNonSystemUser()
149 protected File getActivatedFileForNonSystemUser(int userId) { in getActivatedFileForNonSystemUser() argument
150 return UserBackupManagerFiles.getStateFileInSystemDir(BACKUP_ACTIVATED_FILENAME, userId); in getActivatedFileForNonSystemUser()
182 private void deactivateBackupForUserLocked(int userId) throws IOException { in deactivateBackupForUserLocked() argument
183 if (userId == UserHandle.USER_SYSTEM) { in deactivateBackupForUserLocked()
186 deleteFile(getActivatedFileForNonSystemUser(userId)); in deactivateBackupForUserLocked()
197 private void activateBackupForUserLocked(int userId) throws IOException { in activateBackupForUserLocked() argument
198 if (userId == UserHandle.USER_SYSTEM) { in activateBackupForUserLocked()
201 createFile(getActivatedFileForNonSystemUser(userId)); in activateBackupForUserLocked()
[all …]
DBackupManagerService.java101 int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL);
102 if (userId > 0) { // for only non system users
103 onRemovedNonSystemUser(userId);
133 private void onRemovedNonSystemUser(int userId) { in onRemovedNonSystemUser() argument
134 Slog.i(TAG, "Removing state for non system user " + userId); in onRemovedNonSystemUser()
135 File dir = UserBackupManagerFiles.getStateDirInSystemDir(userId); in onRemovedNonSystemUser()
137 Slog.w(TAG, "Failed to delete state dir for removed user: " + userId); in onRemovedNonSystemUser()
148 private void enforceCallingPermissionOnUserId(@UserIdInt int userId, String message) { in enforceCallingPermissionOnUserId() argument
149 if (Binder.getCallingUserHandle().getIdentifier() != userId) { in enforceCallingPermissionOnUserId()
164 protected void startServiceForUser(int userId) { in startServiceForUser() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java81 int userId = 12; in insertKey_replacesOldKey() local
90 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, wrappedKey); in insertKey_replacesOldKey()
103 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, wrappedKey); in insertKey_replacesOldKey()
114 int userId = 6; in insertKey_allowsTwoUidsToHaveSameAlias() local
127 mRecoverableKeyStoreDb.insertKey(userId, /*uid=*/ 1, alias, key1); in insertKey_allowsTwoUidsToHaveSameAlias()
128 mRecoverableKeyStoreDb.insertKey(userId, /*uid=*/ 2, alias, key2); in insertKey_allowsTwoUidsToHaveSameAlias()
140 int userId = 6; in removeKey_removesAKey() local
148 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, key); in removeKey_removesAKey()
165 int userId = 12; in getKey_returnsInsertedKey() local
175 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, wrappedKey); in getKey_returnsInsertedKey()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionsState.java184 public boolean isPermissionReviewRequired(int userId) { in isPermissionReviewRequired() argument
185 return mPermissionReviewRequired != null && mPermissionReviewRequired.get(userId); in isPermissionReviewRequired()
221 public int grantRuntimePermission(BasePermission permission, int userId) { in grantRuntimePermission() argument
222 enforceValidUserId(userId); in grantRuntimePermission()
223 if (userId == UserHandle.USER_ALL) { in grantRuntimePermission()
226 return grantPermission(permission, userId); in grantRuntimePermission()
238 public int revokeRuntimePermission(BasePermission permission, int userId) { in revokeRuntimePermission() argument
239 enforceValidUserId(userId); in revokeRuntimePermission()
240 if (userId == UserHandle.USER_ALL) { in revokeRuntimePermission()
243 return revokePermission(permission, userId); in revokeRuntimePermission()
[all …]
DDefaultPermissionGrantPolicy.java287 public boolean wereDefaultPermissionsGrantedSinceBoot(int userId) { in wereDefaultPermissionsGrantedSinceBoot() argument
289 return mDefaultPermissionsGrantedUsers.indexOfKey(userId) >= 0; in wereDefaultPermissionsGrantedSinceBoot()
293 public void grantDefaultPermissions(int userId) { in grantDefaultPermissions() argument
294 grantPermissionsToSysComponentsAndPrivApps(userId); in grantDefaultPermissions()
295 grantDefaultSystemHandlerPermissions(userId); in grantDefaultPermissions()
296 grantDefaultPermissionExceptions(userId); in grantDefaultPermissions()
298 mDefaultPermissionsGrantedUsers.put(userId, userId); in grantDefaultPermissions()
302 private void grantRuntimePermissionsForSystemPackage(int userId, PackageInfo pkg) { in grantRuntimePermissionsForSystemPackage() argument
314 grantRuntimePermissions(pkg, permissions, true /*systemFixed*/, userId); in grantRuntimePermissionsForSystemPackage()
322 private void grantPermissionsToSysComponentsAndPrivApps(int userId) { in grantPermissionsToSysComponentsAndPrivApps() argument
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java261 protected void handleStrongAuthRequiredChanged(int strongAuthFlags, int userId) { in handleStrongAuthRequiredChanged() argument
263 super.handleStrongAuthRequiredChanged(strongAuthFlags, userId); in handleStrongAuthRequiredChanged()
268 public int getStrongAuthForUser(int userId) { in getStrongAuthForUser() argument
270 return super.getStrongAuthForUser(userId); in getStrongAuthForUser()
477 private void maybeShowEncryptionNotificationForUser(@UserIdInt int userId) { in maybeShowEncryptionNotificationForUser() argument
478 final UserInfo user = mUserManager.getUserInfo(userId); in maybeShowEncryptionNotificationForUser()
486 if (isUserKeyUnlocked(userId)) { in maybeShowEncryptionNotificationForUser()
493 final boolean isSecure = isUserSecure(userId); in maybeShowEncryptionNotificationForUser()
495 UserInfo parent = mUserManager.getProfileParent(userId); in maybeShowEncryptionNotificationForUser()
560 public void onCleanupUser(int userId) { in onCleanupUser() argument
[all …]
DLockSettingsStorage.java191 public void writeKeyValue(String key, String value, int userId) { in writeKeyValue() argument
192 writeKeyValue(mOpenHelper.getWritableDatabase(), key, value, userId); in writeKeyValue() local
195 public void writeKeyValue(SQLiteDatabase db, String key, String value, int userId) { in writeKeyValue() argument
198 cv.put(COLUMN_USERID, userId); in writeKeyValue()
204 new String[] {key, Integer.toString(userId)}); in writeKeyValue()
207 mCache.putKeyValue(key, value, userId); in writeKeyValue()
214 public String readKeyValue(String key, String defaultValue, int userId) { in readKeyValue() argument
217 if (mCache.hasKeyValue(key, userId)) { in readKeyValue()
218 return mCache.peekKeyValue(key, defaultValue, userId); in readKeyValue()
228 new String[] { Integer.toString(userId), key }, in readKeyValue()
[all …]
/frameworks/base/media/java/android/media/tv/
DITvInputManager.aidl43 List<TvInputInfo> getTvInputList(int userId); in getTvInputList() argument
44 TvInputInfo getTvInputInfo(in String inputId, int userId); in getTvInputInfo() argument
45 void updateTvInputInfo(in TvInputInfo inputInfo, int userId); in updateTvInputInfo() argument
46 int getTvInputState(in String inputId, int userId); in getTvInputState() argument
48 List<TvContentRatingSystemInfo> getTvContentRatingSystemList(int userId); in getTvContentRatingSystemList() argument
50 void registerCallback(in ITvInputManagerCallback callback, int userId); in registerCallback() argument
51 void unregisterCallback(in ITvInputManagerCallback callback, int userId); in unregisterCallback() argument
53 boolean isParentalControlsEnabled(int userId); in isParentalControlsEnabled() argument
54 void setParentalControlsEnabled(boolean enabled, int userId); in setParentalControlsEnabled() argument
55 boolean isRatingBlocked(in String rating, int userId); in isRatingBlocked() argument
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManager.java127 public int getGenerationId(int userId) { in getGenerationId() argument
128 return mDatabase.getPlatformKeyGenerationId(userId); in getGenerationId()
139 public boolean isAvailable(int userId) { in isAvailable() argument
140 return mContext.getSystemService(KeyguardManager.class).isDeviceSecure(userId); in isAvailable()
152 public void invalidatePlatformKey(int userId, int generationId) { in invalidatePlatformKey() argument
155 mKeyStore.deleteEntry(getEncryptAlias(userId, generationId)); in invalidatePlatformKey()
156 mKeyStore.deleteEntry(getDecryptAlias(userId, generationId)); in invalidatePlatformKey()
178 void regenerate(int userId) in regenerate() argument
181 if (!isAvailable(userId)) { in regenerate()
183 Locale.US, "%d does not have a lock screen set.", userId)); in regenerate()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java189 public boolean isTrustUsuallyManaged(int userId) { in isTrustUsuallyManaged() argument
195 return getLockSettings().getBoolean(IS_TRUST_USUALLY_MANAGED, false, userId); in isTrustUsuallyManaged()
201 public void setTrustUsuallyManaged(boolean managed, int userId) { in setTrustUsuallyManaged() argument
203 getLockSettings().setBoolean(IS_TRUST_USUALLY_MANAGED, managed, userId); in setTrustUsuallyManaged()
209 public void userPresent(int userId) { in userPresent() argument
211 getLockSettings().userPresent(userId); in userPresent()
284 public int getRequestedMinimumPasswordLength(int userId) { in getRequestedMinimumPasswordLength() argument
285 return getDevicePolicyManager().getPasswordMinimumLength(null, userId); in getRequestedMinimumPasswordLength()
296 public int getRequestedPasswordQuality(int userId) { in getRequestedPasswordQuality() argument
297 return getDevicePolicyManager().getPasswordQuality(null, userId); in getRequestedPasswordQuality()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerServiceImpl.java178 mSettings.remove(oi.packageName, oi.userId); in updateOverlaysForUser()
246 void onUserRemoved(final int userId) { in onUserRemoved() argument
248 Slog.d(TAG, "onUserRemoved userId=" + userId); in onUserRemoved()
250 mSettings.removeUser(userId); in onUserRemoved()
253 void onTargetPackageAdded(@NonNull final String packageName, final int userId) { in onTargetPackageAdded() argument
255 Slog.d(TAG, "onTargetPackageAdded packageName=" + packageName + " userId=" + userId); in onTargetPackageAdded()
258 updateAndRefreshOverlaysForTarget(packageName, userId, 0); in onTargetPackageAdded()
261 void onTargetPackageChanged(@NonNull final String packageName, final int userId) { in onTargetPackageChanged() argument
263 Slog.d(TAG, "onTargetPackageChanged packageName=" + packageName + " userId=" + userId); in onTargetPackageChanged()
266 updateAndRefreshOverlaysForTarget(packageName, userId, 0); in onTargetPackageChanged()
[all …]
DOverlayManagerService.java380 for (final int userId : userIds) { in onPackageAdded()
382 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, userId, in onPackageAdded()
385 mPackageManager.cachePackageInfo(packageName, userId, pi); in onPackageAdded()
387 mImpl.onOverlayPackageAdded(packageName, userId); in onPackageAdded()
389 mImpl.onTargetPackageAdded(packageName, userId); in onPackageAdded()
403 for (int userId : userIds) { in onPackageChanged()
405 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, userId, in onPackageChanged()
408 mPackageManager.cachePackageInfo(packageName, userId, pi); in onPackageChanged()
410 mImpl.onOverlayPackageChanged(packageName, userId); in onPackageChanged()
412 mImpl.onTargetPackageChanged(packageName, userId); in onPackageChanged()
[all …]
/frameworks/base/core/java/android/print/
DIPrintManager.aidl40 List<PrintJobInfo> getPrintJobInfos(int appId, int userId); in getPrintJobInfos() argument
41 PrintJobInfo getPrintJobInfo(in PrintJobId printJobId, int appId, int userId); in getPrintJobInfo() argument
43 in PrintAttributes attributes, String packageName, int appId, int userId); in print() argument
44 void cancelPrintJob(in PrintJobId printJobId, int appId, int userId); in cancelPrintJob() argument
45 void restartPrintJob(in PrintJobId printJobId, int appId, int userId); in restartPrintJob() argument
48 int appId, int userId); in addPrintJobStateChangeListener() argument
50 int userId); in removePrintJobStateChangeListener() argument
61 int userId); in addPrintServicesChangeListener() argument
72 int userId); in removePrintServicesChangeListener() argument
82 List<PrintServiceInfo> getPrintServices(int selectionFlags, int userId); in getPrintServices() argument
[all …]
/frameworks/base/core/java/android/content/pm/
DPackageManagerInternal.java100 int checkPermission(String permName, String pkgName, int userId, in checkPermission() argument
125 public String[] getPackages(int userId); in getPackages() argument
139 public String[] getPackages(String authority, int userId); in getPackages() argument
155 String getDefaultBrowser(@UserIdInt int userId); in getDefaultBrowser() argument
165 boolean setDefaultBrowser(@Nullable String packageName, @UserIdInt int userId); in setDefaultBrowser() argument
173 void setDefaultBrowserAsync(@Nullable String packageName, @UserIdInt int userId); in setDefaultBrowserAsync() argument
189 String getDefaultDialer(@UserIdInt int userId); in getDefaultDialer() argument
205 String getDefaultHome(@UserIdInt int userId); in getDefaultHome() argument
214 void setDefaultHomeAsync(@Nullable String packageName, @UserIdInt int userId, in setDefaultHomeAsync() argument
254 public void onDefaultSmsAppChanged(String packageName, int userId) {} in onDefaultSmsAppChanged() argument
[all …]
DIPackageManager.aidl65 void checkPackageStartable(String packageName, int userId); in checkPackageStartable() argument
67 boolean isPackageAvailable(String packageName, int userId); in isPackageAvailable() argument
69 PackageInfo getPackageInfo(String packageName, int flags, int userId); in getPackageInfo() argument
71 int flags, int userId); in getPackageInfoVersioned() argument
73 int getPackageUid(String packageName, int flags, int userId); in getPackageUid() argument
74 int[] getPackageGids(String packageName, int flags, int userId); in getPackageGids() argument
91 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId); in getApplicationInfo() argument
94 ActivityInfo getActivityInfo(in ComponentName className, int flags, int userId); in getActivityInfo() argument
100 ActivityInfo getReceiverInfo(in ComponentName className, int flags, int userId); in getReceiverInfo() argument
103 ServiceInfo getServiceInfo(in ComponentName className, int flags, int userId); in getServiceInfo() argument
[all …]
DIShortcutService.aidl30 int userId); in setDynamicShortcuts() argument
32 ParceledListSlice getDynamicShortcuts(String packageName, int userId); in getDynamicShortcuts() argument
34 ParceledListSlice getManifestShortcuts(String packageName, int userId); in getManifestShortcuts() argument
37 int userId); in addDynamicShortcuts() argument
39 void removeDynamicShortcuts(String packageName, in List shortcutIds, int userId); in removeDynamicShortcuts() argument
41 void removeAllDynamicShortcuts(String packageName, int userId); in removeAllDynamicShortcuts() argument
43 ParceledListSlice getPinnedShortcuts(String packageName, int userId); in getPinnedShortcuts() argument
45 boolean updateShortcuts(String packageName, in ParceledListSlice shortcuts, int userId); in updateShortcuts() argument
48 in IntentSender resultIntent, int userId); in requestPinShortcut() argument
50 Intent createShortcutResultIntent(String packageName, in ShortcutInfo shortcut, int userId); in createShortcutResultIntent() argument
[all …]
/frameworks/base/services/core/java/com/android/server/infra/
DAbstractMasterSystemService.java229 final int userId = users.get(i).id; in AbstractMasterSystemService() local
230 final boolean disabled = umi.getUserRestriction(userId, disallowProperty); in AbstractMasterSystemService()
232 Slog.i(mTag, "Disabling by restrictions user " + userId); in AbstractMasterSystemService()
233 mDisabledByUserRestriction.put(userId, disabled); in AbstractMasterSystemService()
236 umi.addUserRestrictionsListener((userId, newRestrictions, prevRestrictions) -> { in AbstractMasterSystemService() argument
240 final boolean disabledBefore = mDisabledByUserRestriction.get(userId); in AbstractMasterSystemService()
244 Slog.d(mTag, "Restriction did not change for user " + userId); in AbstractMasterSystemService()
248 Slog.i(mTag, "Updating for user " + userId + ": disabled=" + disabledNow); in AbstractMasterSystemService()
249 mDisabledByUserRestriction.put(userId, disabledNow); in AbstractMasterSystemService()
250 updateCachedServiceLocked(userId, disabledNow); in AbstractMasterSystemService()
[all …]
DFrameworkResourcesServiceNameResolver.java99 public String getDefaultServiceName(@UserIdInt int userId) { in getDefaultServiceName() argument
107 public String getServiceName(@UserIdInt int userId) { in getServiceName() argument
109 final String temporaryName = mTemporaryServiceNames.get(userId); in getServiceName()
113 + " for user " + userId); in getServiceName()
116 final boolean disabled = mDefaultServicesDisabled.get(userId); in getServiceName()
120 + "user " + userId); in getServiceName()
123 return getDefaultServiceName(userId); in getServiceName()
128 public boolean isTemporary(@UserIdInt int userId) { in isTemporary() argument
130 return mTemporaryServiceNames.get(userId) != null; in isTemporary()
135 public void setTemporaryService(@UserIdInt int userId, @NonNull String componentName, in setTemporaryService() argument
[all …]
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java270 private void maybeLockScreen(int userId) { in maybeLockScreen() argument
271 if (userId != mCurrentUser) { in maybeLockScreen()
285 TrustTimeoutAlarmListener alarm = mTrustTimeoutAlarmListenerForUser.get(userId); in maybeLockScreen()
293 private void scheduleTrustTimeout(int userId, boolean override) { in scheduleTrustTimeout() argument
298 mHandler.obtainMessage(MSG_SCHEDULE_TRUST_TIMEOUT, userId, shouldOverride).sendToTarget(); in scheduleTrustTimeout()
301 private void handleScheduleTrustTimeout(int userId, int shouldOverride) { in handleScheduleTrustTimeout() argument
303 userId = mCurrentUser; in handleScheduleTrustTimeout()
304 TrustTimeoutAlarmListener alarm = mTrustTimeoutAlarmListenerForUser.get(userId); in handleScheduleTrustTimeout()
314 alarm = new TrustTimeoutAlarmListener(userId); in handleScheduleTrustTimeout()
315 mTrustTimeoutAlarmListenerForUser.put(userId, alarm); in handleScheduleTrustTimeout()
[all …]
/frameworks/base/core/java/android/os/
DUserManagerInternal.java39 void onUserRestrictionsChanged(int userId, Bundle newRestrictions, Bundle prevRestrictions); in onUserRestrictionsChanged() argument
53 public abstract void setDevicePolicyUserRestrictions(int userId, @Nullable Bundle restrictions, in setDevicePolicyUserRestrictions() argument
62 public abstract Bundle getBaseUserRestrictions(int userId); in getBaseUserRestrictions() argument
68 public abstract void setBaseUserRestrictionsByDpmsForMigration(int userId, in setBaseUserRestrictionsByDpmsForMigration() argument
72 public abstract boolean getUserRestriction(int userId, String key); in getUserRestriction() argument
90 public abstract void setUserManaged(int userId, boolean isManaged); in setUserManaged() argument
99 public abstract void setUserIcon(int userId, Bitmap bitmap); in setUserIcon() argument
125 public abstract void onEphemeralUserStop(int userId); in onEphemeralUserStop() argument
143 public abstract boolean removeUserEvenWhenDisallowed(int userId); in removeUserEvenWhenDisallowed() argument
150 public abstract boolean isUserUnlockingOrUnlocked(int userId); in isUserUnlockingOrUnlocked() argument
[all …]
/frameworks/base/services/core/java/com/android/server/role/
DRoleManagerService.java117 List<String> getRoleHolders(@NonNull String roleName, @UserIdInt int userId); in getRoleHolders() argument
174 int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0); in registerUserRemovedReceiver()
175 onRemoveUser(userId); in registerUserRemovedReceiver()
196 int userId = UserHandle.getUserId(intent.getIntExtra(Intent.EXTRA_UID, -1)); in onStart()
199 + userId); in onStart()
206 performInitialGrantsIfNecessaryAsync(userId); in onStart()
212 public void onStartUser(@UserIdInt int userId) { in onStartUser() argument
213 performInitialGrantsIfNecessary(userId); in onStartUser()
216 private CompletableFuture<Void> performInitialGrantsIfNecessaryAsync(@UserIdInt int userId) { in performInitialGrantsIfNecessaryAsync() argument
218 userState = getOrCreateUserState(userId); in performInitialGrantsIfNecessaryAsync()
[all …]
/frameworks/base/core/java/android/app/backup/
DIBackupManager.aidl52 void dataChangedForUser(int userId, String packageName); in dataChangedForUser() argument
72 void clearBackupDataForUser(int userId, String transportName, String packageName); in clearBackupDataForUser() argument
91 void initializeTransportsForUser(int userId, in String[] transportNames, in initializeTransportsForUser() argument
103 void agentConnectedForUser(int userId, String packageName, IBinder agent); in agentConnectedForUser() argument
119 void agentDisconnectedForUser(int userId, String packageName); in agentDisconnectedForUser() argument
135 void restoreAtInstallForUser(int userId, String packageName, int token); in restoreAtInstallForUser() argument
155 void setBackupEnabledForUser(int userId, boolean isEnabled); in setBackupEnabledForUser() argument
179 void setAutoRestoreForUser(int userId, boolean doAutoRestore); in setAutoRestoreForUser() argument
196 boolean isBackupEnabledForUser(int userId); in isBackupEnabledForUser() argument
235 void backupNowForUser(int userId); in backupNowForUser() argument
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSettingBase.java273 private PackageUserState modifyUserState(int userId) { in modifyUserState() argument
274 PackageUserState state = mUserState.get(userId); in modifyUserState()
277 mUserState.put(userId, state); in modifyUserState()
282 public PackageUserState readUserState(int userId) { in readUserState() argument
283 PackageUserState state = mUserState.get(userId); in readUserState()
291 void setEnabled(int state, int userId, String callingPackage) { in setEnabled() argument
292 PackageUserState st = modifyUserState(userId); in setEnabled()
297 int getEnabled(int userId) { in getEnabled() argument
298 return readUserState(userId).enabled; in getEnabled()
301 String getLastDisabledAppCaller(int userId) { in getLastDisabledAppCaller() argument
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DCleanupManager.java81 public synchronized void registerRecoveryAgent(int userId, int uid) { in registerRecoveryAgent() argument
87 Long storedSerialNumber = mSerialNumbers.get(userId); in registerRecoveryAgent()
96 long currentSerialNumber = mUserManager.getSerialNumberForUser(UserHandle.of(userId)); in registerRecoveryAgent()
98 storeUserSerialNumber(userId, currentSerialNumber); in registerRecoveryAgent()
109 Integer userId = entry.getKey(); in verifyKnownUsers() local
114 long currentSerialNumber = mUserManager.getSerialNumberForUser(UserHandle.of(userId)); in verifyKnownUsers()
117 deletedUserIds.add(userId); in verifyKnownUsers()
118 removeDataForUser(userId); in verifyKnownUsers()
121 storeUserSerialNumber(userId, currentSerialNumber); in verifyKnownUsers()
124 deletedUserIds.add(userId); in verifyKnownUsers()
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStatsManagerInternal.java47 public abstract void reportEvent(ComponentName component, @UserIdInt int userId, int eventType, in reportEvent() argument
58 public abstract void reportEvent(String packageName, @UserIdInt int userId, int eventType); in reportEvent() argument
65 public abstract void reportConfigurationChange(Configuration config, @UserIdInt int userId); in reportConfigurationChange() argument
75 @UserIdInt int userId); in reportInterruptiveNotification() argument
87 @UserIdInt int userId); in reportShortcutUsage() argument
96 @UserIdInt int userId); in reportContentProviderUsage() argument
118 public abstract boolean isAppIdle(String packageName, int uidForAppId, @UserIdInt int userId); in isAppIdle() argument
131 @UserIdInt int userId, long nowElapsed); in getAppStandbyBucket() argument
138 public abstract int[] getIdleUidsForUser(@UserIdInt int userId); in getIdleUidsForUser() argument
163 public abstract void onAppIdleStateChanged(String packageName, @UserIdInt int userId, in onAppIdleStateChanged() argument
[all …]

12345678910>>...33