Home
last modified time | relevance | path

Searched refs:admin (Results 1 – 25 of 127) sorted by relevance

123456

/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java17 package android.app.admin;
35 import android.app.admin.SecurityLog.SecurityEvent;
1558 public boolean isAdminActive(@NonNull ComponentName admin) { in isAdminActive() argument
1560 return isAdminActiveAsUser(admin, myUserId()); in isAdminActive()
1567 public boolean isAdminActiveAsUser(@NonNull ComponentName admin, int userId) { in isAdminActiveAsUser() argument
1570 return mService.isAdminActive(admin, userId); in isAdminActiveAsUser()
1583 public boolean isRemovingAdmin(@NonNull ComponentName admin, int userId) { in isRemovingAdmin() argument
1586 return mService.isRemovingAdmin(admin, userId); in isRemovingAdmin()
1658 public void removeActiveAdmin(@NonNull ComponentName admin) { in removeActiveAdmin() argument
1662 mService.removeActiveAdmin(admin, myUserId()); in removeActiveAdmin()
[all …]
DIDevicePolicyManager.aidl18 package android.app.admin;
20 import android.app.admin.NetworkEvent;
23 import android.app.admin.SystemUpdateInfo;
24 import android.app.admin.SystemUpdatePolicy;
25 import android.app.admin.PasswordMetrics;
83 void setMaximumFailedPasswordsForWipe(in ComponentName admin, int num, boolean parent); in setMaximumFailedPasswordsForWipe() argument
84 int getMaximumFailedPasswordsForWipe(in ComponentName admin, int userHandle, boolean parent); in getMaximumFailedPasswordsForWipe() argument
99 ComponentName setGlobalProxy(in ComponentName admin, String proxySpec, String exclusionList); in setGlobalProxy() argument
101 void setRecommendedGlobalProxy(in ComponentName admin, in ProxyInfo proxyInfo); in setRecommendedGlobalProxy() argument
154 …String[] setPackagesSuspended(in ComponentName admin, in String callerPackage, in String[] package… in setPackagesSuspended() argument
[all …]
DIDeviceAdminService.aidl17 package android.app.admin;
DDnsEvent.aidl17 package android.app.admin;
DPasswordMetrics.aidl18 package android.app.admin;
DConnectEvent.aidl17 package android.app.admin;
DSystemUpdateInfo.aidl18 package android.app.admin;
DNetworkEvent.aidl17 package android.app.admin;
DSystemUpdatePolicy.aidl18 package android.app.admin;
DDeviceAdminService.java16 package android.app.admin;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtils.java19 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE;
20 import static android.app.admin.DevicePolicyManager.PROFILE_KEYGUARD_FEATURES_AFFECT_OWNER;
26 import android.app.admin.DevicePolicyManager;
144 final LockSettingCheck check = (dpm, admin, checkUser) -> { in checkIfKeyguardFeaturesDisabled()
145 int effectiveFeatures = dpm.getKeyguardDisabledFeatures(admin, checkUser); in checkIfKeyguardFeaturesDisabled()
180 for (ComponentName admin : admins) { in findEnforcedAdmin()
181 if (check.isEnforcing(dpm, admin, userId)) { in findEnforcedAdmin()
183 enforcedAdmin = new EnforcedAdmin(admin, userId); in findEnforcedAdmin()
241 EnforcedAdmin admin = getProfileOrDeviceOwner(context, userId); in checkIfInputMethodDisallowed() local
243 if (admin != null) { in checkIfInputMethodDisallowed()
[all …]
DRestrictedPreferenceHelper.java137 EnforcedAdmin admin = RestrictedLockUtils.checkIfRestrictionEnforced(mContext, in checkRestrictionAndSetDisabled() local
139 setDisabledByAdmin(admin); in checkRestrictionAndSetDisabled()
149 public boolean setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin() argument
150 final boolean disabled = (admin != null ? true : false); in setDisabledByAdmin()
151 mEnforcedAdmin = admin; in setDisabledByAdmin()
DRestrictedPreference.java110 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin() argument
111 if (mHelper.setDisabledByAdmin(admin)) { in setDisabledByAdmin()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java27 import android.app.admin.DevicePolicyManager;
133 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid) in setUpPackageManagerForAdmin() argument
135 setUpPackageManagerForAdmin(admin, packageUid, in setUpPackageManagerForAdmin()
139 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForAdmin() argument
141 setUpPackageManagerForAdmin(admin, packageUid, enabledSetting, /* appTargetSdk = */ null); in setUpPackageManagerForAdmin()
144 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForAdmin() argument
146 setUpPackageManagerForFakeAdmin(admin, packageUid, enabledSetting, appTargetSdk, in setUpPackageManagerForAdmin()
147 admin); in setUpPackageManagerForAdmin()
150 protected void setUpPackageManagerForFakeAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForFakeAdmin() argument
153 setUpPackageManagerForFakeAdmin(admin, packageUid, in setUpPackageManagerForFakeAdmin()
[all …]
DNetworkEventTest.java18 import android.app.admin.ConnectEvent;
19 import android.app.admin.DnsEvent;
DDummyDeviceAdmins.java18 import android.app.admin.DeviceAdminReceiver;
DDevicePolicyManagerTestable.java18 import android.app.admin.DevicePolicyManager;
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java21 import static android.app.admin.DevicePolicyManager.CODE_ACCOUNTS_NOT_EMPTY;
22 import static android.app.admin.DevicePolicyManager.CODE_ADD_MANAGED_PROFILE_DISALLOWED;
23 import static android.app.admin.DevicePolicyManager.CODE_CANNOT_ADD_MANAGED_PROFILE;
24 import static android.app.admin.DevicePolicyManager.CODE_DEVICE_ADMIN_NOT_SUPPORTED;
25 import static android.app.admin.DevicePolicyManager.CODE_HAS_DEVICE_OWNER;
26 import static android.app.admin.DevicePolicyManager.CODE_HAS_PAIRED;
27 import static android.app.admin.DevicePolicyManager.CODE_MANAGED_USERS_NOT_SUPPORTED;
28 import static android.app.admin.DevicePolicyManager.CODE_NONSYSTEM_USER_EXISTS;
29 import static android.app.admin.DevicePolicyManager.CODE_NOT_SYSTEM_USER;
30 import static android.app.admin.DevicePolicyManager.CODE_NOT_SYSTEM_USER_SPLIT;
[all …]
DOwners.java20 import android.app.admin.SystemUpdateInfo;
21 import android.app.admin.SystemUpdatePolicy;
196 return Pair.create(mDeviceOwnerUserId, mDeviceOwner.admin); in getDeviceOwnerUserIdAndComponent()
209 return mDeviceOwner != null ? mDeviceOwner.admin : null; in getDeviceOwnerComponent()
225 void setDeviceOwner(ComponentName admin, String ownerName, int userId) { in setDeviceOwner() argument
232 setDeviceOwnerWithRestrictionsMigrated(admin, ownerName, userId, in setDeviceOwner()
239 void setDeviceOwnerWithRestrictionsMigrated(ComponentName admin, String ownerName, int userId, in setDeviceOwnerWithRestrictionsMigrated() argument
242 mDeviceOwner = new OwnerInfo(ownerName, admin, userRestrictionsMigrated, in setDeviceOwnerWithRestrictionsMigrated()
261 void setProfileOwner(ComponentName admin, String ownerName, int userId) { in setProfileOwner() argument
264 mProfileOwners.put(userId, new OwnerInfo(ownerName, admin, in setProfileOwner()
[all …]
DNetworkLogger.java19 import android.app.admin.ConnectEvent;
20 import android.app.admin.DnsEvent;
21 import android.app.admin.NetworkEvent;
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedLockUtilsTest.java19 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE;
20 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT;
21 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_REMOTE_INPUT;
22 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS;
30 import android.app.admin.DevicePolicyManager;
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTests.java19 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC;
20 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_COMPLEX;
21 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_SOMETHING;
22 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLockPatternUtilsTest.java19 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_MANAGED;
20 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/vo/
DUser.java85 public void setAdmin(boolean admin) { in setAdmin() argument
86 mAdmin = admin; in setAdmin()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java27 import android.app.admin.DeviceAdminInfo;
28 import android.app.admin.DevicePolicyManagerInternal;

123456