Lines Matching defs:delegatePackage

1742                 final String delegatePackage = policy.mDelegationMap.keyAt(i);
1743 if (isRemovedPackage(packageName, delegatePackage, userHandle)) {
2892 final String delegatePackage = policy.mDelegationMap.keyAt(i);
2898 out.attribute(null, "delegatePackage", delegatePackage);
3171 final String delegatePackage = parser.getAttributeValue(null,
3172 "delegatePackage");
3175 // Get a reference to the scopes list for the delegatePackage.
3176 List<String> scopes = policy.mDelegationMap.get(delegatePackage);
3180 policy.mDelegationMap.put(delegatePackage, scopes);
3182 // Add the new scope to the list of delegatePackage if it's not already there.
5588 private static boolean shouldCheckIfDelegatePackageIsInstalled(String delegatePackage,
5602 // Otherwise it should check that delegatePackage is installed.
5610 * @param delegatePackage the name of the delegate package.
5614 public void setDelegatedScopes(ComponentName who, String delegatePackage,
5617 Preconditions.checkStringNotEmpty(delegatePackage, "Delegate package is null or empty");
5632 if (shouldCheckIfDelegatePackageIsInstalled(delegatePackage,
5635 if (!isPackageInstalledForUser(delegatePackage, userId)) {
5636 throw new IllegalArgumentException("Package " + delegatePackage
5644 policy.mDelegationMap.put(delegatePackage, new ArrayList<>(scopes));
5647 policy.mDelegationMap.remove(delegatePackage);
5656 intent.setPackage(delegatePackage);
5676 * {@code delegatePackage}.
5677 * @param delegatePackage the name of the delegate package whose scopes are to be retrieved.
5678 * @return a list of the delegation scopes currently given to {@code delegatePackage}.
5683 String delegatePackage) throws SecurityException {
5684 Preconditions.checkNotNull(delegatePackage, "Delegate package is null");
5693 // Or ensure calling process is delegatePackage itself.
5698 .getPackageUidAsUser(delegatePackage, userId);
5703 + delegatePackage);
5707 // Retrieve the scopes assigned to delegatePackage, or null if no scope was given.
5708 final List<String> scopes = policy.mDelegationMap.get(delegatePackage);
5825 String delegatePackage, String scope) {
5834 if (delegatePackage != null) {
5836 List<String> scopes = policy.mDelegationMap.get(delegatePackage);
5842 setDelegatedScopes(who, delegatePackage, scopes);
5851 if (!currentPackage.equals(delegatePackage) && currentScopes.contains(scope)) {