/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/ |
D | DelegatedScopesReceiverActivity.java | 96 final List<String> scopes = intent.getStringArrayListExtra(EXTRA_DELEGATION_SCOPES); in handleIntent() local 97 sendScopeReportBroadcast(scopes); in handleIntent() 102 private void sendScopeReportBroadcast(List<String> scopes) { in sendScopeReportBroadcast() argument 105 intent.putExtra(EXTRA_DELEGATION_SCOPES, scopes.toArray(new String[scopes.size()])); in sendScopeReportBroadcast() 106 Log.d(TAG, "Broadcasting " + ACTION_REPORT_SCOPES + " with scopes " + scopes); in sendScopeReportBroadcast()
|
D | BlockUninstallDelegateTest.java | 59 final List<String> scopes = mDpm.getDelegatedScopes(null, packageName); in amIBlockUninstallDelegate() local 60 return scopes.contains(DELEGATION_BLOCK_UNINSTALL); in amIBlockUninstallDelegate()
|
D | EnableSystemAppDelegateTest.java | 69 final List<String> scopes = mDpm.getDelegatedScopes(null, packageName); in amIEnableSystemAppDelegate() local 70 return scopes.contains(DELEGATION_ENABLE_SYSTEM_APP); in amIEnableSystemAppDelegate()
|
D | PackageAccessDelegateTest.java | 87 final List<String> scopes = mDpm.getDelegatedScopes(null, packageName); in amIPackageAccessDelegate() local 88 return scopes.contains(DELEGATION_PACKAGE_ACCESS); in amIPackageAccessDelegate()
|
D | PermissionGrantDelegateTest.java | 87 final List<String> scopes = mDpm.getDelegatedScopes(null, packageName); in amIPermissionGrantDelegate() local 88 return scopes.contains(DELEGATION_PERMISSION_GRANT); in amIPermissionGrantDelegate()
|
D | CertInstallDelegateTest.java | 112 final List<String> scopes = mDpm.getDelegatedScopes(null, packageName); in amICertInstallDelegate() local 113 return scopes.contains(DELEGATION_CERT_INSTALL); in amICertInstallDelegate()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SetPolicyActivity.java | 110 List<String> scopes = scopeArray == null ? new ArrayList<>() in handleIntent() local 112 Log.i(TAG, "Setting delegated scopes for package: " + packageName + " " + scopes); in handleIntent() 114 packageName, scopes); in handleIntent()
|
D | NetworkLoggingTest.java | 210 protected void setDelegatedScopes(String delegatePackage, List<String> scopes) { in setDelegatedScopes() argument 212 + ", " + delegatePackage + ", " + scopes + ") using " + mDpm); in setDelegatedScopes() 213 mDpm.setDelegatedScopes(ADMIN_RECEIVER_COMPONENT, delegatePackage, scopes); in setDelegatedScopes()
|
D | BaseDeviceAdminTest.java | 216 protected void setDelegatedScopes(String delegatePackage, List<String> scopes) { in setDelegatedScopes() argument 218 + ", " + delegatePackage + ", " + scopes + ") using " + mDevicePolicyManager); in setDelegatedScopes() 219 mDevicePolicyManager.setDelegatedScopes(ADMIN_RECEIVER_COMPONENT, delegatePackage, scopes); in setDelegatedScopes()
|
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/annotations/enterprise/ |
D | EnsureHasDelegate.java | 57 String[] scopes(); in scopes() method
|
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/ |
D | Policy.java | 218 String[] scopes, boolean isPrimary) { in ensureHasDelegate() argument 219 return new AutoAnnotation_Policy_ensureHasDelegate(admin, scopes, isPrimary); in ensureHasDelegate() 385 String[] scopes = ALL_DELEGATE_SCOPES.stream() 399 for (String scope : scopes) { 411 EnsureHasDelegate.AdminType.PRIMARY, scopes, /* isPrimary= */ true);
|
D | DeviceState.java | 360 Arrays.asList(ensureHasDelegateAnnotation.scopes()), 1435 EnsureHasDelegate.AdminType adminType, List<String> scopes, boolean isPrimary) { 1457 dpc.componentName(), delegate.packageName(), scopes);
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | DeviceAndProfileOwnerTest.java | 315 final List<String> scopes = getDelegationScopes(); in testDelegation() local 316 setDelegatedScopes(DELEGATE_APP_PKG, scopes); in testDelegation() 318 ImmutableMap.of("scopes", String.join(",", scopes))); in testDelegation() 1831 protected void setDelegatedScopes(String packageName, List<String> scopes) in setDelegatedScopes() argument 1835 if (scopes != null && scopes.size() > 0) { in setDelegatedScopes() 1836 scopesExtra = "--esa extra-scopes-list " + scopes.get(0); in setDelegatedScopes() 1837 for (int i = 1; i < scopes.size(); ++i) { in setDelegatedScopes() 1838 scopesExtra += "," + scopes.get(i); in setDelegatedScopes()
|