Searched refs:scopes (Results 1 – 10 of 10) sorted by relevance
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/ |
D | DelegatedScopesReceiverActivity.java | 92 final List<String> scopes = intent.getStringArrayListExtra(EXTRA_DELEGATION_SCOPES); in handleIntent() local 93 sendScopeReportBroadcast(scopes); in handleIntent() 98 private void sendScopeReportBroadcast(List<String> scopes) { in sendScopeReportBroadcast() argument 101 intent.putExtra(EXTRA_DELEGATION_SCOPES, scopes.toArray(new String[scopes.size()])); in sendScopeReportBroadcast()
|
D | BlockUninstallDelegateTest.java | 71 final List<String> scopes = mDpm.getDelegatedScopes(null, packageName); in amIBlockUninstallDelegate() local 72 return scopes.contains(DELEGATION_BLOCK_UNINSTALL); in amIBlockUninstallDelegate()
|
D | EnableSystemAppDelegateTest.java | 81 final List<String> scopes = mDpm.getDelegatedScopes(null, packageName); in amIEnableSystemAppDelegate() local 82 return scopes.contains(DELEGATION_ENABLE_SYSTEM_APP); in amIEnableSystemAppDelegate()
|
D | PermissionGrantDelegateTest.java | 99 final List<String> scopes = mDpm.getDelegatedScopes(null, packageName); in amIPermissionGrantDelegate() local 100 return scopes.contains(DELEGATION_PERMISSION_GRANT); in amIPermissionGrantDelegate()
|
D | PackageAccessDelegateTest.java | 100 final List<String> scopes = mDpm.getDelegatedScopes(null, packageName); in amIPackageAccessDelegate() local 101 return scopes.contains(DELEGATION_PACKAGE_ACCESS); in amIPackageAccessDelegate()
|
D | CertInstallDelegateTest.java | 193 final List<String> scopes = mDpm.getDelegatedScopes(null, packageName); in amICertInstallDelegate() local 194 return scopes.contains(DELEGATION_CERT_INSTALL); in amICertInstallDelegate()
|
D | AppRestrictionsDelegateTest.java | 163 final List<String> scopes = mDpm.getDelegatedScopes(null, mContext.getPackageName()); in amIAppRestrictionsDelegate() local 164 return scopes.contains(DELEGATION_APP_RESTRICTIONS); in amIAppRestrictionsDelegate()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | DelegationTest.java | 107 final List<String> scopes = Arrays.asList( in testDelegateReceivesScopeChangedBroadcast() local 117 mDevicePolicyManager.setDelegatedScopes(ADMIN_RECEIVER_COMPONENT, DELEGATE_PKG, scopes); in testDelegateReceivesScopeChangedBroadcast() 125 scopes, reportedScopes); in testDelegateReceivesScopeChangedBroadcast() 131 final List<String> scopes = Arrays.asList( in testCantDelegateToUninstalledPackage() local 137 NON_EXISTENT_PKG, scopes); in testCantDelegateToUninstalledPackage()
|
D | SetPolicyActivity.java | 113 List<String> scopes = scopeArray == null ? new ArrayList() : Arrays.asList(scopeArray); in handleIntent() local 115 packageName, scopes); in handleIntent()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | DeviceAndProfileOwnerTest.java | 378 final List<String> scopes = getDelegationScopes(); in testDelegation() local 379 setDelegatedScopes(DELEGATE_APP_PKG, scopes); in testDelegation() 381 ImmutableMap.of("scopes", String.join(",", scopes))); in testDelegation() 1937 protected void setDelegatedScopes(String packageName, List<String> scopes) in setDelegatedScopes() argument 1941 if (scopes != null && scopes.size() > 0) { in setDelegatedScopes() 1942 scopesExtra = "--esa extra-scopes-list " + scopes.get(0); in setDelegatedScopes() 1943 for (int i = 1; i < scopes.size(); ++i) { in setDelegatedScopes() 1944 scopesExtra += "," + scopes.get(i); in setDelegatedScopes()
|