/frameworks/base/services/core/java/android/app/usage/ |
D | UsageStatsManagerInternal.java | 23 import android.annotation.UserIdInt; 60 public abstract void reportEvent(ComponentName component, @UserIdInt int userId, int eventType, in reportEvent() 74 public abstract void reportEvent(String packageName, @UserIdInt int userId, int eventType); in reportEvent() 84 public abstract void reportConfigurationChange(Configuration config, @UserIdInt int userId); in reportConfigurationChange() 97 @UserIdInt int userId); in reportInterruptiveNotification() 112 @UserIdInt int userId); in reportShortcutUsage() 121 @UserIdInt int userId); in reportContentProviderUsage() 134 public abstract void reportLocusUpdate(@NonNull ComponentName activity, @UserIdInt int userId, in reportLocusUpdate() 146 public abstract void reportUserInteractionEvent(@NonNull String pkgName, @UserIdInt int userId, in reportUserInteractionEvent() 169 public abstract boolean isAppIdle(String packageName, int uidForAppId, @UserIdInt int userId); in isAppIdle() [all …]
|
/frameworks/base/services/core/java/com/android/server/infra/ |
D | ServiceNameResolver.java | 20 import android.annotation.UserIdInt; 42 void onNameResolved(@UserIdInt int userId, @Nullable String serviceName, in onNameResolved() 64 String getDefaultServiceName(@UserIdInt int userId); in getDefaultServiceName() 72 default String[] getDefaultServiceNameList(@UserIdInt int userId) { in getDefaultServiceNameList() 104 default String getServiceName(@UserIdInt int userId) { in getServiceName() 116 default String[] getServiceNameList(@UserIdInt int userId) { in getServiceNameList() 123 default boolean isTemporary(@SuppressWarnings("unused") @UserIdInt int userId) { in isTemporary() 137 default void setTemporaryService(@UserIdInt int userId, @NonNull String componentName, in setTemporaryService() 152 default void setTemporaryServices(@UserIdInt int userId, @NonNull String[] componentNames, in setTemporaryServices() 163 default void resetTemporaryService(@UserIdInt int userId) { in resetTemporaryService() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerInternal.java | 21 import android.annotation.UserIdInt; 150 void onUserVisibilityChanged(@UserIdInt int userId, boolean visible); in onUserVisibilityChanged() 179 public abstract void setUserRestriction(@UserIdInt int userId, @NonNull String key, in setUserRestriction() 363 public abstract @NonNull int[] getProfileIds(@UserIdInt int userId, boolean enabledOnly); in getProfileIds() 403 public abstract @Nullable UserInfo getUserInfo(@UserIdInt int userId); in getUserInfo() 413 public abstract @Nullable LauncherUserInfo getLauncherUserInfo(@UserIdInt int userId); in getLauncherUserInfo() 420 @UserIdInt int parentUserId, @UserIdInt int profileUserId); in setDefaultCrossProfileIntentFilters() 434 public abstract @Nullable UserProperties getUserProperties(@UserIdInt int userId); in getUserProperties() 447 public abstract @UserAssignmentResult int assignUserToDisplayOnStart(@UserIdInt int userId, in assignUserToDisplayOnStart() 448 @UserIdInt int profileGroupId, @UserStartMode int userStartMode, int displayId); in assignUserToDisplayOnStart() [all …]
|
D | Computer.java | 22 import android.annotation.UserIdInt; 203 @UserIdInt int userId); in getPackageStateFiltered() 240 boolean isInstantAppInternal(String packageName, @UserIdInt int userId, int callingUid); in isInstantAppInternal() 241 boolean isSameProfileGroup(@UserIdInt int callerUserId, @UserIdInt int userId); in isSameProfileGroup() 325 void enforceCrossUserOrProfilePermission(int callingUid, @UserIdInt int userId, in enforceCrossUserOrProfilePermission() 335 void enforceCrossUserPermission(int callingUid, @UserIdInt int userId, in enforceCrossUserPermission() 337 void enforceCrossUserPermission(int callingUid, @UserIdInt int userId, in enforceCrossUserPermission() 353 PreferredIntentResolver getPreferredActivities(@UserIdInt int userId); in getPreferredActivities() 372 @UserIdInt int userId); in getPackageStartability() 374 boolean isPackageAvailable(String packageName, @UserIdInt int userId); in isPackageAvailable() [all …]
|
D | ProtectedPackages.java | 20 import android.annotation.UserIdInt; 40 @UserIdInt 80 @UserIdInt int userId, @Nullable List<String> packageNames) { in setOwnerProtectedPackages() 122 private synchronized boolean isProtectedPackage(@UserIdInt int userId, String packageName) { in isProtectedPackage() 132 @UserIdInt int userId, String packageName) { in isOwnerProtectedPackage() 139 @UserIdInt int userId, String packageName) { in isPackageProtectedForUser() 144 private synchronized boolean hasProtectedPackages(@UserIdInt int userId) { in hasProtectedPackages() 154 public boolean isPackageStateProtected(@UserIdInt int userId, String packageName) { in isPackageStateProtected() 163 public boolean isPackageDataProtected(@UserIdInt int userId, String packageName) { in isPackageDataProtected()
|
D | UserVisibilityMediator.java | 36 import android.annotation.UserIdInt; 140 @UserIdInt 233 public @UserAssignmentResult int assignUserToDisplayOnStart(@UserIdInt int userId, in assignUserToDisplayOnStart() 234 @UserIdInt int unResolvedProfileGroupId, @UserStartMode int userStartMode, in assignUserToDisplayOnStart() 344 @UserIdInt int userId, @UserIdInt int unResolvedProfileGroupId, in resolveProfileGroupId() 357 private int getUserVisibilityOnStartLocked(@UserIdInt int userId, @UserIdInt int profileGroupId, in getUserVisibilityOnStartLocked() 440 private int canAssignUserToDisplayLocked(@UserIdInt int userId, in canAssignUserToDisplayLocked() 441 @UserIdInt int profileGroupId, @UserStartMode int userStartMode, int displayId) { in canAssignUserToDisplayLocked() 537 public boolean assignUserToExtraDisplay(@UserIdInt int userId, int displayId) { in assignUserToExtraDisplay() 601 public boolean unassignUserFromExtraDisplay(@UserIdInt int userId, int displayId) { in unassignUserFromExtraDisplay() [all …]
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | InputMethodManagerInternal.java | 23 import android.annotation.UserIdInt; 62 void onInputMethodListUpdated(List<InputMethodInfo> info, @UserIdInt int userId); in onInputMethodListUpdated() 90 public abstract List<InputMethodInfo> getInputMethodListAsUser(@UserIdInt int userId); in getInputMethodListAsUser() 98 public abstract List<InputMethodInfo> getEnabledInputMethodListAsUser(@UserIdInt int userId); in getEnabledInputMethodListAsUser() 109 public abstract void onCreateInlineSuggestionsRequest(@UserIdInt int userId, in onCreateInlineSuggestionsRequest() 122 public abstract boolean switchToInputMethod(String imeId, @UserIdInt int userId); in switchToInputMethod() 137 @UserIdInt int userId); in setInputMethodEnabled() 175 int displayId, @UserIdInt int userId); in transferTouchFocusToImeWindow() 229 IAccessibilityInputMethodSession session, @UserIdInt int userId); in onSessionForAccessibilityCreated() 239 @UserIdInt int userId); in unbindAccessibilityFromCurrentClient() [all …]
|
D | IInputMethodManagerImpl.java | 27 import android.annotation.UserIdInt; 82 InputMethodInfo getCurrentInputMethodInfoAsUser(@UserIdInt int userId); in getCurrentInputMethodInfoAsUser() 85 InputMethodInfoSafeList getInputMethodList(@UserIdInt int userId, in getInputMethodList() 89 InputMethodInfoSafeList getEnabledInputMethodList(@UserIdInt int userId); in getEnabledInputMethodList() 92 List<InputMethodInfo> getInputMethodListLegacy(@UserIdInt int userId, in getInputMethodListLegacy() 96 List<InputMethodInfo> getEnabledInputMethodListLegacy(@UserIdInt int userId); in getEnabledInputMethodListLegacy() 99 boolean allowsImplicitlyEnabledSubtypes, @UserIdInt int userId); in getEnabledInputMethodSubtypeList() 101 InputMethodSubtype getLastInputMethodSubtype(@UserIdInt int userId); in getLastInputMethodSubtype() 121 int unverifiedTargetSdkVersion, @UserIdInt int userId, in startInputOrWindowGainedFocusAsync() 130 int unverifiedTargetSdkVersion, @UserIdInt int userId, in startInputOrWindowGainedFocus() [all …]
|
D | SecureSettingsWrapper.java | 22 import android.annotation.UserIdInt; 59 @UserIdInt 60 private static int getUserIdForClonedSettings(@NonNull String key, @UserIdInt int userId) { in getUserIdForClonedSettings() 82 @UserIdInt 87 UnlockedUserImpl(@UserIdInt int userId, @NonNull ContentResolver contentResolver) { in UnlockedUserImpl() 131 LockedUserImpl(@UserIdInt int userId, @NonNull ContentResolver contentResolver) { in LockedUserImpl() 202 @UserIdInt int userId) { in createImpl() 210 private static ReaderWriter putOrGet(@UserIdInt int userId, in putOrGet() 230 private static ReaderWriter get(@UserIdInt int userId) { in get() 278 static void onUserStarting(@UserIdInt int userId) { in onUserStarting() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionManagerServiceInterface.java | 22 import android.annotation.UserIdInt; 149 @UserIdInt int userId); in getPermissionFlags() 164 @UserIdInt int userId); in updatePermissionFlags() 191 @UserIdInt int userId); in addAllowlistedRestrictedPermission() 236 @PackageManager.PermissionWhitelistFlags int flags, @UserIdInt int userId); in getAllowlistedRestrictedPermissions() 284 @UserIdInt int userId); in removeAllowlistedRestrictedPermission() 304 @UserIdInt int userId); in grantRuntimePermission() 326 @UserIdInt int userId, String reason); in revokeRuntimePermission() 350 String deviceId, @UserIdInt int userId); in shouldShowRequestPermissionRationale() 365 String deviceId, @UserIdInt int userId); in isPermissionRevokedByPolicy() [all …]
|
D | PermissionManagerServiceInternal.java | 21 import android.annotation.UserIdInt; 58 @NonNull String persistentDeviceId, @UserIdInt int userId); in checkPermission() 80 boolean isPermissionsReviewRequired(@NonNull String packageName, @UserIdInt int userId); in isPermissionsReviewRequired() 91 void resetRuntimePermissions(@NonNull AndroidPackage pkg, @UserIdInt int userId); in resetRuntimePermissions() 99 void resetRuntimePermissionsForUser(@UserIdInt int userId); in resetRuntimePermissionsForUser() 140 Set<String> getGrantedPermissions(@NonNull String packageName, @UserIdInt int userId); in getGrantedPermissions() 151 int[] getPermissionGids(@NonNull String permissionName, @UserIdInt int userId); in getPermissionGids() 202 @NonNull String persistentDeviceId, @UserIdInt int userId, in checkPermission() 241 String getDefaultPermissionGrantFingerprint(@UserIdInt int userId); in getDefaultPermissionGrantFingerprint() 246 void setDefaultPermissionGrantFingerprint(@NonNull String fingerprint, @UserIdInt int userId); in setDefaultPermissionGrantFingerprint() [all …]
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | OwnerShellData.java | 20 import android.annotation.UserIdInt; 32 public final @UserIdInt int userId; 33 public final @UserIdInt int parentUserId; 41 private OwnerShellData(@UserIdInt int userId, @UserIdInt int parentUserId, ComponentName admin, in OwnerShellData() 81 static OwnerShellData forDeviceOwner(@UserIdInt int userId, ComponentName admin) { in forDeviceOwner() 87 static OwnerShellData forUserProfileOwner(@UserIdInt int userId, ComponentName admin) { in forUserProfileOwner() 93 static OwnerShellData forManagedProfileOwner(@UserIdInt int userId, @UserIdInt int parentUserId, in forManagedProfileOwner()
|
/frameworks/base/core/java/android/app/admin/ |
D | DevicePolicyManagerInternal.java | 21 import android.annotation.UserIdInt; 167 public abstract void reportSeparateProfileChallengeChanged(@UserIdInt int userId); in reportSeparateProfileChallengeChanged() 176 public abstract CharSequence getPrintingDisabledReasonForUser(@UserIdInt int userId); in getPrintingDisabledReasonForUser() 250 public abstract ComponentName getProfileOwnerAsUser(@UserIdInt int userId); in getProfileOwnerAsUser() 265 @UserIdInt 283 public abstract void resetOp(int op, String packageName, @UserIdInt int userId); in resetOp() 317 public abstract boolean isUserOrganizationManaged(@UserIdInt int userId); in isUserOrganizationManaged() 324 String packageName, @UserIdInt int userId); in getApplicationRestrictionsPerAdminForUser() 330 @UserIdInt int userId); in getUserRestrictionSources()
|
D | DevicePolicyCache.java | 21 import android.annotation.UserIdInt; 50 public abstract boolean isScreenCaptureAllowed(@UserIdInt int userHandle); in isScreenCaptureAllowed() 56 public abstract int getPasswordQuality(@UserIdInt int userHandle); in getPasswordQuality() 62 public abstract int getPermissionPolicy(@UserIdInt int userHandle); in getPermissionPolicy() 68 public abstract @ContentProtectionPolicy int getContentProtectionPolicy(@UserIdInt int userId); in getContentProtectionPolicy() 104 public @ContentProtectionPolicy int getContentProtectionPolicy(@UserIdInt int userId) { in getContentProtectionPolicy()
|
/frameworks/opt/car/services/updatableServices/tests/src/com/android/internal/car/updatable/ |
D | UserMetricsTest.java | 30 import android.annotation.UserIdInt; 42 @UserIdInt 44 @UserIdInt 163 private long sendStartingEvent(@UserIdInt int userId) { in sendStartingEvent() 170 private long sendSwitchingEvent(@UserIdInt int fromUserId, @UserIdInt int userId) { in sendSwitchingEvent() 176 private long sendUnlockingEvent(@UserIdInt int userId) { in sendUnlockingEvent() 183 private long sendUnlockedEvent(@UserIdInt int userId) { in sendUnlockedEvent() 190 private long sendStopingEvent(@UserIdInt int userId) { in sendStopingEvent() 197 private long sendStoppedEvent(@UserIdInt int userId) { in sendStoppedEvent() 204 private void assertStartTime(long timestamp, @UserIdInt int userId) { in assertStartTime() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | UserInfoHelper.java | 28 import android.annotation.UserIdInt; 60 void onUserChanged(@UserIdInt int userId, @UserChange int change); in onUserChanged() 83 protected final void dispatchOnUserStarted(@UserIdInt int userId) { in dispatchOnUserStarted() 93 protected final void dispatchOnUserStopped(@UserIdInt int userId) { in dispatchOnUserStopped() 103 protected final void dispatchOnCurrentUserChanged(@UserIdInt int fromUserId, in dispatchOnCurrentUserChanged() 104 @UserIdInt int toUserId) { in dispatchOnCurrentUserChanged() 126 protected final void dispatchOnVisibleUserChanged(@UserIdInt int userId, boolean visible) { in dispatchOnVisibleUserChanged() 149 public abstract boolean isCurrentUserId(@UserIdInt int userId); in isCurrentUserId() 155 public abstract @UserIdInt int getCurrentUserId(); in getCurrentUserId() 162 public abstract boolean isVisibleUserId(@UserIdInt int userId); in isVisibleUserId() [all …]
|
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/ |
D | UserMetrics.java | 28 import android.annotation.UserIdInt; 86 @UserIdInt int fromUserId, @UserIdInt int toUserId) { in onEvent() 127 private void onUserStartingEventLocked(long timestampMs, @UserIdInt int userId) { in onUserStartingEventLocked() 141 private void onUserSwitchingEventLocked(long timestampMs, @UserIdInt int fromUserId, in onUserSwitchingEventLocked() 142 @UserIdInt int toUserId) { in onUserSwitchingEventLocked() 150 private void onUserUnlockingEventLocked(long timestampMs, @UserIdInt int userId) { in onUserUnlockingEventLocked() 157 private void onUserUnlockedEventLocked(long timestampMs, @UserIdInt int userId) { in onUserUnlockedEventLocked() 166 private void onUserStoppingEventLocked(long timestampMs, @UserIdInt int userId) { in onUserStoppingEventLocked() 178 private void onUserStoppedEventLocked(long timestampMs, @UserIdInt int userId) { in onUserStoppedEventLocked() 188 @NonNull SparseArray<? extends BaseUserMetric> metrics, @UserIdInt int userId) { in getExistingMetricsLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/contentcapture/ |
D | ContentCaptureManagerInternal.java | 20 import android.annotation.UserIdInt; 41 public abstract boolean isContentCaptureServiceForUser(int uid, @UserIdInt int userId); in isContentCaptureServiceForUser() 48 public abstract boolean sendActivityStartAssistData(@UserIdInt int userId, in sendActivityStartAssistData() 56 public abstract boolean sendActivityAssistData(@UserIdInt int userId, in sendActivityAssistData() 67 public abstract ContentCaptureOptions getOptionsForPackage(@UserIdInt int userId, in getOptionsForPackage() 73 public abstract void notifyActivityEvent(@UserIdInt int userId, in notifyActivityEvent()
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationEnforcer.java | 22 import android.annotation.UserIdInt; 135 public boolean assertApprovedUserStateQuerent(int callingUid, @UserIdInt int callingUserId, in assertApprovedUserStateQuerent() 136 @NonNull String packageName, @UserIdInt int targetUserId) throws SecurityException { in assertApprovedUserStateQuerent() 156 public boolean assertApprovedUserSelector(int callingUid, @UserIdInt int callingUserId, in assertApprovedUserSelector() 157 @Nullable String packageName, @UserIdInt int targetUserId) throws SecurityException { in assertApprovedUserSelector() 183 public boolean callerIsLegacyUserSelector(int callingUid, @UserIdInt int callingUserId, in callerIsLegacyUserSelector() 184 @NonNull String packageName, @UserIdInt int targetUserId) { in callerIsLegacyUserSelector() 208 public boolean callerIsLegacyUserQuerent(int callingUid, @UserIdInt int callingUserId, in callerIsLegacyUserQuerent() 209 @NonNull String packageName, @UserIdInt int targetUserId) { in callerIsLegacyUserQuerent() 233 public void assertOwnerQuerent(int callingUid, @UserIdInt int callingUserId, in assertOwnerQuerent() [all …]
|
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/ |
D | CarLaunchParamsModifierUpdatable.java | 20 import android.annotation.UserIdInt; 35 void handleUserVisibilityChanged(@UserIdInt int userId, boolean visible); in handleUserVisibilityChanged() 38 void handleCurrentUserSwitching(@UserIdInt int newUserId); in handleCurrentUserSwitching() 41 void handleUserStarting(@UserIdInt int startingUser); in handleUserStarting() 44 void handleUserStopped(@UserIdInt int stoppedUser); in handleUserStopped()
|
/frameworks/base/services/core/java/com/android/server/pm/resolution/ |
D | ComponentResolverApi.java | 21 import android.annotation.UserIdInt; 58 @Nullable String resolvedType, long flags, @UserIdInt int userId); in queryActivities() 63 @UserIdInt int userId); in queryActivities() 67 @UserIdInt int userId); in queryProvider() 71 @Nullable String resolvedType, long flags, @UserIdInt int userId); in queryProviders() 76 @UserIdInt int userId); in queryProviders() 80 @Nullable String metaDataKey, int uid, long flags, @UserIdInt int userId); in queryProviders() 84 @Nullable String resolvedType, long flags, @UserIdInt int userId); in queryReceivers() 89 @UserIdInt int userId); in queryReceivers() 93 @Nullable String resolvedType, long flags, @UserIdInt int userId); in queryServices() [all …]
|
/frameworks/base/core/java/android/app/ |
D | ActivityManagerInternal.java | 26 import android.annotation.UserIdInt; 124 public abstract String checkContentProviderAccess(String authority, @UserIdInt int userId); in checkContentProviderAccess() 129 public abstract int checkContentProviderUriPermission(Uri uri, @UserIdInt int userId, in checkContentProviderUriPermission() 148 public abstract void onUserRemoved(@UserIdInt int userId); in onUserRemoved() 160 public abstract void killForegroundAppsForUser(@UserIdInt int userId); in killForegroundAppsForUser() 312 public abstract int handleIncomingUser(int callingPid, int callingUid, @UserIdInt int userId, in handleIncomingUser() 332 public abstract boolean isUserRunning(@UserIdInt int userId, int flags); in isUserRunning() 528 ComponentName activity, int uid, @UserIdInt int userId, boolean resumed); in updateBatteryStats() 539 ComponentName activity, @UserIdInt int userId, int event, IBinder appToken, in updateActivityUsageStats() 543 public abstract void sendForegroundProfileChanged(@UserIdInt int userId); in sendForegroundProfileChanged() [all …]
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 24 import android.annotation.UserIdInt; 52 public static final @UserIdInt int USER_ALL = -1; 61 public static final @UserIdInt int USER_CURRENT = -2; 71 public static final @UserIdInt int USER_CURRENT_OR_SELF = -3; 82 public static final @UserIdInt int USER_NULL = -10000; 93 public static final @UserIdInt int USER_OWNER = 0; 107 public static final @UserIdInt int USER_SYSTEM = 0; 197 final @UserIdInt int mHandle; 286 public static @UserIdInt int getUserId(int uid) { in getUserId() 296 public static @UserIdInt int getCallingUserId() { in getCallingUserId() [all …]
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
D | CallerIdentityInjector.java | 19 import android.annotation.UserIdInt; 37 @UserIdInt int resolveUserId(@UserIdInt int userId, String debugInfo); in resolveUserId() 40 @UserIdInt int getCallingUserId(); in getCallingUserId() 55 public int resolveUserId(@UserIdInt int userId, String debugName) { in resolveUserId()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | UserVisibilityChangedEvent.java | 18 import android.annotation.UserIdInt; 25 public @UserIdInt int userId; 28 UserVisibilityChangedEvent(@UserIdInt int userId, boolean visible) { in UserVisibilityChangedEvent() 61 public static UserVisibilityChangedEvent onVisible(@UserIdInt int userId) { in onVisible() 68 public static UserVisibilityChangedEvent onInvisible(@UserIdInt int userId) { in onInvisible()
|