Home
last modified time | relevance | path

Searched defs:user (Results 1 – 25 of 473) sorted by relevance

12345678910>>...19

/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DRoleBehavior.java37 default void onRoleAddedAsUser(@NonNull Role role, @NonNull UserHandle user, in onRoleAddedAsUser()
43 default boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
52 default List<String> getDefaultHoldersAsUser(@NonNull Role role, @NonNull UserHandle user, in getDefaultHoldersAsUser()
61 default String getFallbackHolderAsUser(@NonNull Role role, @NonNull UserHandle user, in getFallbackHolderAsUser()
80 @NonNull UserHandle user, @NonNull Context context) { in isPackageQualifiedAsUser()
88 default List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
97 @NonNull UserHandle user, @NonNull Context context) {} in grantAsUser()
103 @NonNull UserHandle user, @NonNull Context context) {} in revokeAsUser()
109 @NonNull UserHandle user, @NonNull Context context) {} in onHolderSelectedAsUser()
114 default void onHolderChangedAsUser(@NonNull Role role, @NonNull UserHandle user, in onHolderChangedAsUser()
[all …]
DPermissions.java71 @NonNull UserHandle user, @NonNull Context context) { in filterBySdkVersionAsUser()
106 boolean setSystemFixed, @NonNull UserHandle user, @NonNull Context context) { in grantAsUser()
210 boolean setGrantedByDefault, boolean setSystemFixed, @NonNull UserHandle user, in grantSingleAsUser()
284 @NonNull String permission, @NonNull UserHandle user, @NonNull Context context) { in isPermissionAndAppOpGrantedAsUser()
342 @NonNull String permission, @NonNull UserHandle user, @NonNull Context context) { in grantPermissionAndAppOpAsUser()
408 boolean onlyIfGrantedByDefault, boolean overrideSystemFixed, @NonNull UserHandle user, in revokeAsUser()
475 boolean overrideSystemFixed, @NonNull UserHandle user, @NonNull Context context) { in revokeSingleAsUser()
520 @NonNull String permission, @NonNull UserHandle user, @NonNull Context context) { in revokePermissionAndAppOpAsUser()
581 @NonNull UserHandle user, @NonNull Context context) { in getPackageInfoAsUser()
587 @NonNull UserHandle user, @NonNull Context context) { in getFactoryPackageInfoAsUser()
[all …]
DRole.java384 public void onRoleAddedAsUser(@NonNull UserHandle user, @NonNull Context context) { in onRoleAddedAsUser()
398 public boolean isAvailableAsUser(@NonNull UserHandle user, @NonNull Context context) { in isAvailableAsUser()
433 public List<String> getDefaultHoldersAsUser(@NonNull UserHandle user, in getDefaultHoldersAsUser()
488 @NonNull UserHandle user, @NonNull Context context) { in getQualifiedDefaultHolderPackageNameAsUser()
542 public String getFallbackHolderAsUser(@NonNull UserHandle user, @NonNull Context context) { in getFallbackHolderAsUser()
583 public boolean isPackageQualifiedAsUser(@NonNull String packageName, @NonNull UserHandle user, in isPackageQualifiedAsUser()
642 public List<String> getQualifyingPackagesAsUser(@NonNull UserHandle user, in getQualifyingPackagesAsUser()
758 @NonNull UserHandle user, in isPackageMinimallyQualifiedAsUser()
802 boolean overrideUser, @NonNull UserHandle user, @NonNull Context context) { in grantAsUser()
848 boolean overrideSystemFixedPermissions, @NonNull UserHandle user, in revokeAsUser()
[all …]
/packages/services/Car/service/src/com/android/car/user/
DUserHandleHelper.java67 public boolean isGuestUser(UserHandle user) { in isGuestUser()
74 public boolean isAdminUser(UserHandle user) { in isAdminUser()
81 public boolean isEphemeralUser(UserHandle user) { in isEphemeralUser()
88 public boolean isEnabledUser(UserHandle user) { in isEnabledUser()
95 public boolean isManagedProfile(UserHandle user) { in isManagedProfile()
102 public boolean isProfileUser(UserHandle user) { in isProfileUser()
109 public boolean isInitializedUser(UserHandle user) { in isInitializedUser()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DHealthConnectPermissionHelper.java98 @NonNull String packageName, @NonNull String permissionName, @NonNull UserHandle user) { in grantHealthPermission()
127 @NonNull UserHandle user) { in revokeHealthPermission()
169 @NonNull String packageName, @Nullable String reason, @NonNull UserHandle user) { in revokeAllHealthPermissions()
185 @NonNull String packageName, @NonNull UserHandle user) { in getGrantedHealthPermissions()
202 @NonNull UserHandle user, in getHealthPermissionsFlags()
222 @NonNull UserHandle user, in setHealthPermissionsUserFixedFlagValue()
246 @NonNull String packageName, @NonNull UserHandle user) { in hasGrantedHealthPermissions()
254 public Optional<Instant> getHealthDataStartDateAccess(String packageName, UserHandle user) in getHealthDataStartDateAccess()
273 public Instant getHealthDataStartDateAccessOrThrow(String packageName, UserHandle user) { in getHealthDataStartDateAccessOrThrow()
316 @NonNull String packageName, @NonNull UserHandle user) { in getGrantedHealthPermissionsUnchecked()
[all …]
DFirstGrantTimeManager.java100 @NonNull String packageName, @NonNull UserHandle user) throws IllegalArgumentException { in getFirstGrantTime()
126 @NonNull String packageName, @NonNull Instant time, @NonNull UserHandle user) { in setFirstGrantTime()
144 user, in setFirstGrantTime() local
177 final UserHandle user = UserHandle.getUserHandleForUid(uid); in updateFirstGrantTimesFromPermissionState() local
206 int uid, UserHandle user, String[] packageNames) { in updateFirstGrantTimesFromPermissionState()
258 public UserGrantTimeState getGrantTimeStateForUser(UserHandle user) { in getGrantTimeStateForUser()
328 private void updateGrantTimesWithStagedDataLocked(UserHandle user) { in updateGrantTimesWithStagedDataLocked()
341 user, in updateGrantTimesWithStagedDataLocked() local
348 private boolean tryUpdateGrantTimeFromStagedDataLocked(UserHandle user, Integer uid) { in tryUpdateGrantTimeFromStagedDataLocked()
384 private void initAndValidateUserStateIfNeedLocked(UserHandle user) { in initAndValidateUserStateIfNeedLocked()
[all …]
DPackageInfoUtils.java82 @NonNull List<PackageInfo> packageInfos, UserHandle user) { in collectSharedUserNameToUidsMappingForUser()
96 public List<PackageInfo> getPackagesHoldingHealthPermissions(UserHandle user, Context context) { in getPackagesHoldingHealthPermissions()
114 @NonNull String[] packageNames, @NonNull UserHandle user, @NonNull Context context) { in hasGrantedHealthPermissions()
125 String[] getPackagesForUid(int packageUid, @NonNull UserHandle user, @NonNull Context context) { in getPackagesForUid()
157 @NonNull String packageName, @NonNull UserHandle user, @NonNull Context context) { in getPackageInfoWithPermissionsAsUser()
171 UserHandle user = UserHandle.getUserHandleForUid(uid); in getSharedUserNameFromUid() local
210 @NonNull String packageName, @NonNull UserHandle user, @NonNull Context context) { in getPackageUid()
225 private PackageManager getPackageManagerAsUser( in getPackageManagerAsUser()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/
DHomeRoleBehavior.java71 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
81 public String getFallbackHolderAsUser(@NonNull Role role, @NonNull UserHandle user, in getFallbackHolderAsUser()
117 @NonNull UserHandle user, @NonNull Context context) { in isSettingsApplicationAsUser()
133 @NonNull UserHandle user, @NonNull Context context) { in onHolderSelectedAsUser()
144 @NonNull UserHandle user, @NonNull Context context) { in grantAsUser()
167 @NonNull UserHandle user, @NonNull Context context) { in revokeAsUser()
189 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
196 @NonNull ApplicationInfo applicationInfo, @NonNull UserHandle user, in isApplicationVisibleAsUser()
DBrowserRoleBehavior.java64 public String getFallbackHolderAsUser(@NonNull Role role, @NonNull UserHandle user, in getFallbackHolderAsUser()
91 public List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
99 @NonNull UserHandle user, @NonNull Context context) { in isPackageQualifiedAsUser()
107 boolean matchSystemOnly, @NonNull UserHandle user, @NonNull Context context) { in getQualifyingPackagesAsUserInternal()
137 @NonNull UserHandle user, @NonNull Context context) { in grantAsUser()
150 @NonNull UserHandle user, @NonNull Context context) { in revokeAsUser()
160 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
DSmsRoleBehavior.java59 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
102 public String getFallbackHolderAsUser(@NonNull Role role, @NonNull UserHandle user, in getFallbackHolderAsUser()
118 @NonNull UserHandle user, @NonNull Context context) { in grantAsUser()
128 @NonNull UserHandle user, @NonNull Context context) { in revokeAsUser()
136 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
DDialerRoleBehavior.java53 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
64 @NonNull UserHandle user, @NonNull Context context) { in grantAsUser()
75 @NonNull UserHandle user, @NonNull Context context) { in revokeAsUser()
83 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
DAssistantRoleBehavior.java59 public void onRoleAddedAsUser(@NonNull Role role, @NonNull UserHandle user, in onRoleAddedAsUser()
74 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
81 public List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
89 @NonNull UserHandle user, @NonNull Context context) { in isPackageQualifiedAsUser()
96 @NonNull UserHandle user, @NonNull Context context) { in getQualifyingPackagesInternal()
199 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/v35/
DWalletRoleBehavior.java63 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
71 public List<String> getDefaultHoldersAsUser(@NonNull Role role, @NonNull UserHandle user, in getDefaultHoldersAsUser()
85 public String getFallbackHolderAsUser(@NonNull Role role, @NonNull UserHandle user, in getFallbackHolderAsUser()
93 @NonNull UserHandle user, @NonNull Context context) { in isPackageQualifiedAsUser()
99 public List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
106 @NonNull UserHandle user, @NonNull Context context) { in getQualifyingPackageNamesInternal()
120 @Nullable String packageName, @NonNull UserHandle user, @NonNull Context context) { in resolvePackageNames()
140 boolean onHost, @NonNull UserHandle user, @NonNull Context context) { in getQualifyingApduServicesAsUser()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/util/
DUserUtils.java42 public static boolean isProfile(@NonNull UserHandle user, @NonNull Context context) { in isProfile()
59 public static boolean isManagedProfile(@NonNull UserHandle user, @NonNull Context context) { in isManagedProfile()
72 public static boolean isCloneProfile(@NonNull UserHandle user, @NonNull Context context) { in isCloneProfile()
89 public static boolean isPrivateProfile(@NonNull UserHandle user, @NonNull Context context) { in isPrivateProfile()
107 public static Context getUserContext(@NonNull Context context, @NonNull UserHandle user) { in getUserContext()
DLegacyRoleFallbackEnabledUtils.java51 private static SharedPreferences getSharedPreferences(@NonNull UserHandle user, in getSharedPreferences()
70 public static List<String> getFallbackDisabledRoles(@NonNull UserHandle user, in getFallbackDisabledRoles()
90 @NonNull UserHandle user, @NonNull Context context) { in isRoleFallbackEnabledAsUser()
99 boolean fallbackEnabled, @NonNull UserHandle user, @NonNull Context context) { in setRoleFallbackEnabledAsUser()
/packages/services/Car/service-builtin/src/com/android/car/admin/
DNotificationHelper.java108 public void cancelNotificationAsUser(UserHandle user, int notificationId) { in cancelNotificationAsUser()
117 public void showUserDisclaimerNotification(UserHandle user) { in showUserDisclaimerNotification()
144 public void cancelUserDisclaimerNotification(UserHandle user) { in cancelUserDisclaimerNotification()
160 UserHandle user) { in getPendingUserDisclaimerIntent()
171 UserHandle user, SparseArray<String> headsUpNotificationPackagesById, in showResourceOveruseNotificationsAsUser()
174 "Invalid user: %s. Must provide the user handle for a specific user.", user); in showResourceOveruseNotificationsAsUser() local
181 showResourceOveruseNotificationsAsUser(getContext(), user, packagesByImportance); in showResourceOveruseNotificationsAsUser() local
218 private static void showResourceOveruseNotificationsAsUser(Context context, UserHandle user, in showResourceOveruseNotificationsAsUser()
282 static PendingIntent getPendingIntent(Context context, String action, UserHandle user, in getPendingIntent()
/packages/modules/DeviceLock/service/java/com/android/server/devicelock/
DDeviceLockService.java65 private static Context getUserContext(@NonNull Context context, @NonNull UserHandle user) { in getUserContext()
74 public boolean isUserSupported(@NonNull TargetUser user) { in isUserSupported()
93 public void onUserUnlocking(@NonNull TargetUser user) { in onUserUnlocking()
98 public void onUserUnlocked(@NonNull TargetUser user) { in onUserUnlocked()
106 public void onUserStopping(@NonNull TargetUser user) { in onUserStopping()
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/data/topics/
DTopicsDaoTest.java80 final int user = 0; in testRecordBlockedTopicAndRetrieveBlockedTopics_duplicateTopics() local
83 mTopicsDao.recordBlockedTopic(List.of(topicToBlock, topicToBlock), user); in testRecordBlockedTopicAndRetrieveBlockedTopics_duplicateTopics() local
84 mTopicsDao.recordBlockedTopic(List.of(topicToBlock), user); in testRecordBlockedTopicAndRetrieveBlockedTopics_duplicateTopics() local
122 final int user = 0; in testRecordBlockedTopicAndRemoveBlockedTopic_duplicateTopics() local
124 mTopicsDao.recordBlockedTopic(List.of(topicToBlock, topicToBlock), user); in testRecordBlockedTopicAndRemoveBlockedTopic_duplicateTopics() local
125 mTopicsDao.recordBlockedTopic(List.of(topicToBlock), user); in testRecordBlockedTopicAndRemoveBlockedTopic_duplicateTopics() local
145 final int user = 0; in testRecordBlockedTopicAndRemoveBlockedTopic_notExistedTopic() local
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarDevicePolicyManagerTest.java68 UserInfo user = createUser(); in testRemoveUser() local
92 UserInfo user = createUser(); in testRemoveUser_currentUserSetEphemeral() local
128 UserHandle user = result.getUserHandle(); in testCreateUser() local
153 UserHandle user = result.getUserHandle(); in testCreateAdminUser() local
179 UserHandle user = result.getUserHandle(); in testCreateGuestUser() local
202 UserInfo user = createUser(); in testStartUserInBackground() local
215 UserInfo user = createUser(); in testStopUser() local
/packages/modules/Permission/service/java/com/android/permission/persistence/
DRuntimePermissionsPersistence.java43 RuntimePermissionsState readForUser(@NonNull UserHandle user); in readForUser()
54 @NonNull UserHandle user); in writeForUser()
63 void deleteForUser(@NonNull UserHandle user); in deleteForUser()
/packages/modules/Permission/service/java/com/android/role/persistence/
DRolesPersistence.java43 RolesState readForUser(@NonNull UserHandle user); in readForUser()
53 void writeForUser(@NonNull RolesState roles, @NonNull UserHandle user); in writeForUser()
62 void deleteForUser(@NonNull UserHandle user); in deleteForUser()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DLocationAccessCheck.java294 UserHandle user = mUserManager.getUserForSerialNumber( in loadAlreadyNotifiedPackagesLocked() local
355 private void markAsNotified(@NonNull String pkg, @NonNull UserHandle user, in markAsNotified()
373 private void createPermissionReminderChannel(@NonNull UserHandle user) { in createPermissionReminderChannel()
533 UserHandle user = getUserHandleForUid(packageOps.getUid()); in getLocationUsersLocked() local
639 UserHandle user = getUserHandleForUid(uid); in createNotificationForLocationUser() local
803 private void forgetAboutPackage(@NonNull String pkg, @NonNull UserHandle user) { in forgetAboutPackage()
840 public void cancelBackgroundAccessWarningNotification(String packageName, UserHandle user, in cancelBackgroundAccessWarningNotification()
889 @Nullable ArraySet<UserPackage> alreadyNotifiedPackages, @Nullable UserHandle user) { in sendToSafetyCenter()
911 new ArrayList<>()), safetyEvent, user); in sendToSafetyCenter() local
944 SafetyEvent safetyEvent, @Nullable UserHandle user) { in sendUserDataToSafetyCenter()
[all …]
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DContextCompat.java49 public ComponentName startServiceAsUser(Intent service, UserHandle user) { in startServiceAsUser()
54 @RequiresPermission @NonNull Intent intent, @NonNull UserHandle user) { in startActivityAsUser()
58 public boolean stopServiceAsUser(Intent service, UserHandle user) { in stopServiceAsUser()
62 public Intent registerReceiverAsUser(BroadcastReceiver receiver, UserHandle user, in registerReceiverAsUser()
/packages/services/Car/car-lib/src/com/android/car/internal/
DNotificationHelperBase.java78 public void showUserDisclaimerNotification(UserHandle user) {}; in showUserDisclaimerNotification()
83 public void cancelUserDisclaimerNotification(UserHandle user) {}; in cancelUserDisclaimerNotification()
90 UserHandle user, SparseArray<String> headsUpNotificationPackagesById, in showResourceOveruseNotificationsAsUser()
102 public void cancelNotificationAsUser(UserHandle user, int notificationId) {}; in cancelNotificationAsUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DInitialUserSetterTest.java167 UserHandle user = expectRegularUserExists(mMockedUserHandleHelper, USER_ID); in testSwitchUser_ok_nonGuest() local
182 UserHandle user = expectSystemUserExists(mMockedUserHandleHelper, UserHandle.USER_SYSTEM); in testSwitchUser_ok_systemUser() local
316 UserHandle user = expectRegularUserExists(mMockedUserHandleHelper, USER_ID); in testReplaceGuestIfNeeded_nonGuest() local
329 UserHandle user = expectGuestUserExists(mMockedUserHandleHelper, USER_ID, in testReplaceGuestIfNeeded_ok_nonEphemeralGuest() local
339 UserHandle user = expectGuestUserExists(mMockedUserHandleHelper, USER_ID, in testReplaceGuestIfNeeded_ok_hasCredentials() local
353 UserHandle user = expectGuestUserExists(mMockedUserHandleHelper, USER_ID, in testReplaceGuestIfNeeded_ok_ephemeralGuest() local
364 UserHandle user = expectGuestUserExists(mMockedUserHandleHelper, USER_ID, in testReplaceGuestIfNeeded_fail_ephemeralGuest_createFailed() local
374 UserHandle user = expectRegularUserExists(mMockedUserHandleHelper, USER_ID); in testCanReplaceGuestUser_fail_notGuest() local
381 UserHandle user = expectGuestUserExists(mMockedUserHandleHelper, USER_ID, in testCanReplaceGuestUser_ok() local
389 UserHandle user = expectGuestUserExists(mMockedUserHandleHelper, USER_ID, in testCanReplaceGuestUser_fail_guestHasCredentials() local
[all …]

12345678910>>...19