Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java17 package android.app.admin;
28 import android.app.admin.NetworkEvent;
29 import android.app.admin.SecurityLog.SecurityEvent;
1073 public boolean isAdminActive(@NonNull ComponentName admin) { in isAdminActive() argument
1074 return isAdminActiveAsUser(admin, myUserId()); in isAdminActive()
1081 public boolean isAdminActiveAsUser(@NonNull ComponentName admin, int userId) { in isAdminActiveAsUser() argument
1084 return mService.isAdminActive(admin, userId); in isAdminActiveAsUser()
1096 public boolean isRemovingAdmin(@NonNull ComponentName admin, int userId) { in isRemovingAdmin() argument
1099 return mService.isRemovingAdmin(admin, userId); in isRemovingAdmin()
1170 public void removeActiveAdmin(@NonNull ComponentName admin) { in removeActiveAdmin() argument
[all …]
DIDevicePolicyManager.aidl18 package android.app.admin;
20 import android.app.admin.NetworkEvent;
21 import android.app.admin.SystemUpdatePolicy;
77 void setMaximumFailedPasswordsForWipe(in ComponentName admin, int num, boolean parent); in setMaximumFailedPasswordsForWipe() argument
78 int getMaximumFailedPasswordsForWipe(in ComponentName admin, int userHandle, boolean parent); in getMaximumFailedPasswordsForWipe() argument
93 ComponentName setGlobalProxy(in ComponentName admin, String proxySpec, String exclusionList); in setGlobalProxy() argument
95 void setRecommendedGlobalProxy(in ComponentName admin, in ProxyInfo proxyInfo); in setRecommendedGlobalProxy() argument
148 …String[] setPackagesSuspended(in ComponentName admin, in String[] packageNames, boolean suspended); in setPackagesSuspended() argument
149 boolean isPackageSuspended(in ComponentName admin, String packageName); in isPackageSuspended() argument
151 boolean installCaCert(in ComponentName admin, in byte[] certBuffer); in installCaCert() argument
[all …]
DSystemUpdatePolicy.aidl18 package android.app.admin;
DDnsEvent.aidl17 package android.app.admin;
DConnectEvent.aidl17 package android.app.admin;
DNetworkEvent.aidl17 package android.app.admin;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtils.java20 import android.app.admin.DevicePolicyManager;
134 for (ComponentName admin : admins) { in checkIfKeyguardFeaturesDisabled()
135 if ((dpm.getKeyguardDisabledFeatures(admin, userId) & keyguardFeatures) != 0) { in checkIfKeyguardFeaturesDisabled()
137 enforcedAdmin = new EnforcedAdmin(admin, userId); in checkIfKeyguardFeaturesDisabled()
153 for (ComponentName admin : admins) { in checkIfKeyguardFeaturesDisabled()
155 if ((dpm.getKeyguardDisabledFeatures(admin, userInfo.id) in checkIfKeyguardFeaturesDisabled()
158 enforcedAdmin = new EnforcedAdmin(admin, userInfo.id); in checkIfKeyguardFeaturesDisabled()
173 if ((parentDpm.getKeyguardDisabledFeatures(admin, userInfo.id) in checkIfKeyguardFeaturesDisabled()
176 enforcedAdmin = new EnforcedAdmin(admin, userInfo.id); in checkIfKeyguardFeaturesDisabled()
237 EnforcedAdmin admin = getProfileOrDeviceOwner(context, userId); in checkIfInputMethodDisallowed() local
[all …]
DRestrictedPreferenceHelper.java134 EnforcedAdmin admin = RestrictedLockUtils.checkIfRestrictionEnforced(mContext, in checkRestrictionAndSetDisabled() local
136 setDisabledByAdmin(admin); in checkRestrictionAndSetDisabled()
146 public boolean setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin() argument
147 final boolean disabled = (admin != null ? true : false); in setDisabledByAdmin()
148 mEnforcedAdmin = admin; in setDisabledByAdmin()
DRestrictedPreference.java102 public void setDisabledByAdmin(EnforcedAdmin admin) { in setDisabledByAdmin() argument
103 if (mHelper.setDisabledByAdmin(admin)) { in setDisabledByAdmin()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java87 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid) in setUpPackageManagerForAdmin() argument
89 setUpPackageManagerForAdmin(admin, packageUid, in setUpPackageManagerForAdmin()
93 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForAdmin() argument
95 setUpPackageManagerForAdmin(admin, packageUid, enabledSetting, /* appTargetSdk = */ null); in setUpPackageManagerForAdmin()
98 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForAdmin() argument
100 setUpPackageManagerForFakeAdmin(admin, packageUid, enabledSetting, appTargetSdk, in setUpPackageManagerForAdmin()
101 admin); in setUpPackageManagerForAdmin()
111 protected void setUpPackageManagerForFakeAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForFakeAdmin() argument
129 ai.packageName = admin.getPackageName(); in setUpPackageManagerForFakeAdmin()
130 ai.name = admin.getClassName(); in setUpPackageManagerForFakeAdmin()
[all …]
DNetworkEventTest.java18 import android.app.admin.ConnectEvent;
19 import android.app.admin.DnsEvent;
DDummyDeviceAdmins.java18 import android.app.admin.DeviceAdminReceiver;
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java20 import static android.app.admin.DevicePolicyManager.ACTION_SHOW_DEVICE_MONITORING_DIALOG;
21 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_COMPLEX;
22 import static android.app.admin.DevicePolicyManager.WIPE_EXTERNAL_STORAGE;
23 import static android.app.admin.DevicePolicyManager.WIPE_RESET_PROTECTION_DATA;
50 import android.app.admin.DeviceAdminInfo;
51 import android.app.admin.DeviceAdminReceiver;
52 import android.app.admin.DevicePolicyManager;
53 import android.app.admin.DevicePolicyManagerInternal;
54 import android.app.admin.IDevicePolicyManager;
55 import android.app.admin.NetworkEvent;
[all …]
DOwners.java20 import android.app.admin.SystemUpdatePolicy;
189 return Pair.create(mDeviceOwnerUserId, mDeviceOwner.admin); in getDeviceOwnerUserIdAndComponent()
202 return mDeviceOwner != null ? mDeviceOwner.admin : null; in getDeviceOwnerComponent()
218 void setDeviceOwner(ComponentName admin, String ownerName, int userId) { in setDeviceOwner() argument
225 setDeviceOwnerWithRestrictionsMigrated(admin, ownerName, userId, in setDeviceOwner()
232 void setDeviceOwnerWithRestrictionsMigrated(ComponentName admin, String ownerName, int userId, in setDeviceOwnerWithRestrictionsMigrated() argument
235 mDeviceOwner = new OwnerInfo(ownerName, admin, userRestrictionsMigrated, in setDeviceOwnerWithRestrictionsMigrated()
254 void setProfileOwner(ComponentName admin, String ownerName, int userId) { in setProfileOwner() argument
257 mProfileOwners.put(userId, new OwnerInfo(ownerName, admin, in setProfileOwner()
276 return profileOwner != null ? profileOwner.admin : null; in getProfileOwnerComponent()
[all …]
DNetworkLogger.java19 import android.app.admin.ConnectEvent;
20 import android.app.admin.DnsEvent;
21 import android.app.admin.NetworkEvent;
DSecurityLogMonitor.java19 import android.app.admin.DeviceAdminReceiver;
20 import android.app.admin.SecurityLog;
21 import android.app.admin.SecurityLog.SecurityEvent;
DNetworkLoggingHandler.java21 import android.app.admin.DeviceAdminReceiver;
22 import android.app.admin.NetworkEvent;
/frameworks/base/docs/html/guide/topics/admin/
Ddevice-admin.jd27 <li>{@link android.app.admin.DeviceAdminReceiver}</li>
28 <li>{@link android.app.admin.DevicePolicyManager}</li>
29 <li>{@link android.app.admin.DeviceAdminInfo}</li>
68 <p>You use the Device Administration API to write device admin applications that users
69 install on their devices. The device admin application enforces the desired
71 <li>A system administrator writes a device admin application that enforces
87 <li>The system prompts the user to enable the device admin application. How
89 <li>Once users enable the device admin application, they are subject to
93 <p>If users do not enable the device admin app, it remains on the device, but in an inactive state.…
104 <p>If a device contains multiple enabled admin applications, the strictest policy is
[all …]
/frameworks/base/docs/html/training/articles/
Ddirect-boot.jd199 {@link android.app.admin.DevicePolicyManager#getStorageEncryptionStatus
203 {@link android.app.admin.DevicePolicyManager#getStorageEncryptionStatus
205 {@link android.app.admin.DevicePolicyManager#ENCRYPTION_STATUS_ACTIVE
210 {@link android.app.admin.DevicePolicyManager#getStorageEncryptionStatus
212 {@link android.app.admin.DevicePolicyManager#ENCRYPTION_STATUS_ACTIVE
215 {@link android.app.admin.DevicePolicyManager#ENCRYPTION_STATUS_ACTIVE_PER_USER
221 {@link android.app.admin.DevicePolicyManager#ENCRYPTION_STATUS_ACTIVE
223 {@link android.app.admin.DevicePolicyManager#ENCRYPTION_STATUS_ACTIVE_PER_USER
/frameworks/base/docs/html/work/
Ddevice-management-policy.jd21 <li><a href="{@docRoot}guide/topics/admin/device-admin.html">Device Administration</a></li>
55 android.app.admin.DevicePolicyManager} (defining minimum password length and minimum number of
66 &lt;device-admin xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
70 &lt;/device-admin&gt;
120 {@link android.app.admin.DevicePolicyManager#EXTRA_ADD_EXPLANATION} extra in the intent.</p>
123 <img src="/images/training/device-mgmt-activate-device-admin.png" />
Dcosu.jd182 {@link android.app.admin.DevicePolicyManager#setLockTaskPackages setLockTaskPackages}</li>
191 You can call {@link android.app.admin.DevicePolicyManager#isLockTaskPermitted isLockTaskPermitted}
193 {@link android.app.admin.DevicePolicyManager#setLockTaskPackages setLockTaskPackages}.
227 android.app.admin.DevicePolicyManager#setLockTaskPackages setLockTaskPackages},
260 {@link android.app.admin.DevicePolicyManager#setLockTaskPackages setLockTaskPackages},
332 {@link android.app.admin.DevicePolicyManager#setKeyguardDisabled setKeyguardDisabled()}
337 {@link android.app.admin.DevicePolicyManager#setStatusBarDisabled setStatusBarDisabled()}
347 {@link android.app.admin.DevicePolicyManager#addUserRestriction addUserRestriction()}
352 {@link android.app.admin.DevicePolicyManager#setSystemUpdatePolicy setSystemUpdatePolicy()}
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java27 import android.app.admin.DeviceAdminInfo;
28 import android.app.admin.DevicePolicyManagerInternal;
/frameworks/base/docs/html/about/versions/marshmallow/
Dandroid-6.0-changes.jd331 {@link android.app.admin.DevicePolicyManager#setCrossProfileCallerIdDisabled(android.content.Compon…
334 you set {@link android.app.admin.DevicePolicyManager#setBluetoothContactSharingDisabled(android.con…
354 <li><strong>Changes to specific {@link android.app.admin.DevicePolicyManager} API behaviors:</stron…
357 {@link android.app.admin.DevicePolicyManager#setCameraDisabled(android.content.ComponentName,boolea…
361 {@link android.app.admin.DevicePolicyManager#setKeyguardDisabledFeatures(android.content.ComponentN…
365 <li>{@link android.app.admin.DevicePolicyManager#KEYGUARD_DISABLE_TRUST_AGENTS} and
366 {@link android.app.admin.DevicePolicyManager#KEYGUARD_DISABLE_FINGERPRINT}, which affect the
368 … <li>{@link android.app.admin.DevicePolicyManager#KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS}, which
373 …<li>The {@link android.app.admin.DevicePolicyManager#setScreenCaptureDisabled(android.content.Comp…
375 <li>{@link android.app.admin.DevicePolicyManager#EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM}
[all …]
/frameworks/base/docs/html/samples/
Dadmin.jd5 <div id="samples" class="admin">
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/
DDpm.java21 import android.app.admin.DevicePolicyManager;
22 import android.app.admin.IDevicePolicyManager;

12345