OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:DevicePolicyManager
(Results
1 - 25
of
283
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
PreDeviceOwnerTest.java
18
import android.app.admin.
DevicePolicyManager
;
28
protected
DevicePolicyManager
mDevicePolicyManager;
34
mDevicePolicyManager = (
DevicePolicyManager
)
39
assertFalse(mDevicePolicyManager.isProvisioningAllowed(
DevicePolicyManager
.ACTION_PROVISION_MANAGED_DEVICE));
44
.isProvisioningAllowed(
DevicePolicyManager
.ACTION_PROVISION_MANAGED_PROFILE));
ForceEphemeralUsersTest.java
19
import android.app.admin.
DevicePolicyManager
;
26
* Test {@link
DevicePolicyManager
#getForceEphemeralUser} and
27
* {@link
DevicePolicyManager
#setForceEphemeralUser}.
38
Method setForceEphemeralUsersMethod =
DevicePolicyManager
.class.getDeclaredMethod(
42
Method getForceEphemeralUsersMethod =
DevicePolicyManager
.class.getDeclaredMethod(
53
Method setForceEphemeralUsersMethod =
DevicePolicyManager
.class.getDeclaredMethod(
RemoteBugreportTest.java
20
import android.app.admin.
DevicePolicyManager
;
39
private
DevicePolicyManager
mDevicePolicyManager;
48
mDevicePolicyManager = (
DevicePolicyManager
)
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
PreManagedProfileTest.java
19
import android.app.admin.
DevicePolicyManager
;
25
protected
DevicePolicyManager
mDevicePolicyManager;
31
mDevicePolicyManager = (
DevicePolicyManager
) mContext
37
.isProvisioningAllowed(
DevicePolicyManager
.ACTION_PROVISION_MANAGED_PROFILE));
42
.isProvisioningAllowed(
DevicePolicyManager
.ACTION_PROVISION_MANAGED_PROFILE));
CrossProfileUtils.java
21
import android.app.admin.
DevicePolicyManager
;
55
final
DevicePolicyManager
dpm = (
DevicePolicyManager
) getContext().getSystemService(
58
DevicePolicyManager
.FLAG_PARENT_CAN_ACCESS_MANAGED);
64
final
DevicePolicyManager
dpm = (
DevicePolicyManager
) getContext().getSystemService(
67
DevicePolicyManager
.FLAG_MANAGED_CAN_ACCESS_PARENT);
80
final
DevicePolicyManager
dpm = (
DevicePolicyManager
) getContext().getSystemService(
86
DevicePolicyManager
dpm = (DevicePolicyManager
[
all
...]
BaseManagedProfileTest.java
19
import android.app.admin.
DevicePolicyManager
;
39
protected
DevicePolicyManager
mDevicePolicyManager;
40
protected
DevicePolicyManager
mParentDevicePolicyManager;
48
mDevicePolicyManager = (
DevicePolicyManager
)
63
protected
DevicePolicyManager
getDevicePolicyManager(boolean isParent) {
PrimaryUserAdminHelper.java
18
import android.app.admin.
DevicePolicyManager
;
28
private
DevicePolicyManager
mDpm;
33
mDpm = (
DevicePolicyManager
) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE);
PrimaryUserFilterSetterActivity.java
4
import android.app.admin.
DevicePolicyManager
;
25
DevicePolicyManager
devicePolicyManager
= (
DevicePolicyManager
)
29
devicePolicyManager
.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT,
30
testIntentFilter,
DevicePolicyManager
.FLAG_MANAGED_CAN_ACCESS_PARENT);
34
devicePolicyManager
.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT,
35
testIntentFilter,
DevicePolicyManager
.FLAG_MANAGED_CAN_ACCESS_PARENT);
39
devicePolicyManager
.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT,
40
testIntentFilter,
DevicePolicyManager
.FLAG_MANAGED_CAN_ACCESS_PARENT)
[
all
...]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
ResetPasswordHelper.java
18
import android.app.admin.
DevicePolicyManager
;
28
private
DevicePolicyManager
mDpm;
33
mDpm = (
DevicePolicyManager
) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE);
49
DevicePolicyManager
.PASSWORD_QUALITY_UNSPECIFIED);
Utils.java
18
import android.app.admin.
DevicePolicyManager
;
29
final
DevicePolicyManager
dpm = context.getSystemService(
DevicePolicyManager
.class);
37
final
DevicePolicyManager
dpm = context.getSystemService(
DevicePolicyManager
.class);
ClearProfileOwnerNegativeTest.java
19
import android.app.admin.
DevicePolicyManager
;
26
private
DevicePolicyManager
mDevicePolicyManager;
30
mDevicePolicyManager = (
DevicePolicyManager
)
PermissionsTest.java
18
import android.app.admin.
DevicePolicyManager
;
40
* Test Runtime Permissions APIs in
DevicePolicyManager
.
94
assertSetPermissionGrantState(
DevicePolicyManager
.PERMISSION_GRANT_STATE_DENIED);
98
assertSetPermissionGrantState(
DevicePolicyManager
.PERMISSION_GRANT_STATE_DEFAULT);
102
assertSetPermissionGrantState(
DevicePolicyManager
.PERMISSION_GRANT_STATE_GRANTED);
106
assertSetPermissionGrantState(
DevicePolicyManager
.PERMISSION_GRANT_STATE_DEFAULT);
113
assertSetPermissionGrantState(
DevicePolicyManager
.PERMISSION_GRANT_STATE_DENIED);
114
assertSetPermissionGrantState(
DevicePolicyManager
.PERMISSION_GRANT_STATE_DEFAULT);
116
assertSetPermissionPolicy(
DevicePolicyManager
.PERMISSION_POLICY_AUTO_DENY);
119
assertSetPermissionPolicy(
DevicePolicyManager
.PERMISSION_POLICY_PROMPT)
[
all
...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
KeyguardSecurityModel.java
18
import android.app.admin.
DevicePolicyManager
;
73
case
DevicePolicyManager
.PASSWORD_QUALITY_NUMERIC:
74
case
DevicePolicyManager
.PASSWORD_QUALITY_NUMERIC_COMPLEX:
77
case
DevicePolicyManager
.PASSWORD_QUALITY_ALPHABETIC:
78
case
DevicePolicyManager
.PASSWORD_QUALITY_ALPHANUMERIC:
79
case
DevicePolicyManager
.PASSWORD_QUALITY_COMPLEX:
80
case
DevicePolicyManager
.PASSWORD_QUALITY_MANAGED:
83
case
DevicePolicyManager
.PASSWORD_QUALITY_SOMETHING:
85
case
DevicePolicyManager
.PASSWORD_QUALITY_UNSPECIFIED:
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DevicePolicyManagerTestable.java
18
import android.app.admin.
DevicePolicyManager
;
22
* Overrides {@link #
DevicePolicyManager
} for dependency injection.
24
public class DevicePolicyManagerTestable extends
DevicePolicyManager
{
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
ClearDeviceAdminWithNoProtectionTest.java
18
import android.app.admin.
DevicePolicyManager
;
32
final
DevicePolicyManager
dpm = getContext().getSystemService(
DevicePolicyManager
.class);
/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/
BaseProfileOwnerTest.java
19
import android.app.admin.
DevicePolicyManager
;
31
protected
DevicePolicyManager
mDevicePolicyManager;
37
mDevicePolicyManager = (
DevicePolicyManager
)
42
static void assertProfileOwner(
DevicePolicyManager
dpm) {
ClearProfileOwnerTest.java
19
import android.app.admin.
DevicePolicyManager
;
26
private
DevicePolicyManager
mDevicePolicyManager;
30
mDevicePolicyManager = (
DevicePolicyManager
)
/cts/tests/admin/app/src/android/admin/app/
DeactivationTest.java
19
import android.app.admin.
DevicePolicyManager
;
35
DevicePolicyManager
manager = (
DevicePolicyManager
)
52
private boolean isActive(
DevicePolicyManager
manager) {
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
MessageParser.java
19
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE;
20
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
21
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME;
22
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION_CODE;
23
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM;
24
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_COOKIE_HEADER;
25
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION;
26
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME;
27
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM;
28
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED
[
all
...]
ExtrasProvisioningDataParser.java
19
import static android.app.admin.
DevicePolicyManager
.ACTION_PROVISION_MANAGED_DEVICE;
20
import static android.app.admin.
DevicePolicyManager
.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE;
21
import static android.app.admin.
DevicePolicyManager
.ACTION_PROVISION_MANAGED_PROFILE;
22
import static android.app.admin.
DevicePolicyManager
.ACTION_PROVISION_MANAGED_SHAREABLE_DEVICE;
23
import static android.app.admin.
DevicePolicyManager
.ACTION_PROVISION_MANAGED_USER;
24
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE;
25
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
26
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME;
27
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION_CODE;
28
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM
[
all
...]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
RemoteBugreportUtils.java
22
import android.app.admin.
DevicePolicyManager
;
44
DevicePolicyManager
.NOTIFICATION_BUGREPORT_STARTED,
45
DevicePolicyManager
.NOTIFICATION_BUGREPORT_ACCEPTED_NOT_FINISHED,
46
DevicePolicyManager
.NOTIFICATION_BUGREPORT_FINISHED_NOT_ACCEPTED
61
dialogIntent.putExtra(
DevicePolicyManager
.EXTRA_BUGREPORT_NOTIFICATION_TYPE, type);
74
if (type ==
DevicePolicyManager
.NOTIFICATION_BUGREPORT_ACCEPTED_NOT_FINISHED) {
78
} else if (type ==
DevicePolicyManager
.NOTIFICATION_BUGREPORT_STARTED) {
82
} else if (type ==
DevicePolicyManager
.NOTIFICATION_BUGREPORT_FINISHED_NOT_ACCEPTED) {
84
new Intent(
DevicePolicyManager
.ACTION_BUGREPORT_SHARING_ACCEPTED),
88
DevicePolicyManager
.ACTION_BUGREPORT_SHARING_DECLINED)
[
all
...]
/development/samples/training/device-management-policy/src/com/example/training/deviceadmin/
Policy.java
21
import android.app.admin.
DevicePolicyManager
;
39
DevicePolicyManager
.PASSWORD_QUALITY_UNSPECIFIED,
40
DevicePolicyManager
.PASSWORD_QUALITY_SOMETHING,
41
DevicePolicyManager
.PASSWORD_QUALITY_NUMERIC,
42
DevicePolicyManager
.PASSWORD_QUALITY_ALPHABETIC,
43
DevicePolicyManager
.PASSWORD_QUALITY_ALPHANUMERIC,
44
DevicePolicyManager
.PASSWORD_QUALITY_COMPLEX
51
private
DevicePolicyManager
mDPM;
59
mDPM = (
DevicePolicyManager
) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/parser/
PropertiesProvisioningDataParserTest.java
18
import static android.app.admin.
DevicePolicyManager
.ACTION_PROVISION_MANAGED_DEVICE;
19
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE;
20
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
21
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME;
22
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION_CODE;
23
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM;
24
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_COOKIE_HEADER;
25
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION;
26
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME;
27
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM
[
all
...]
MessageParserTest.java
18
import static android.app.admin.
DevicePolicyManager
.ACTION_PROVISION_MANAGED_DEVICE;
19
import static android.app.admin.
DevicePolicyManager
.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE;
20
import static android.app.admin.
DevicePolicyManager
.ACTION_PROVISION_MANAGED_USER;
21
import static android.app.admin.
DevicePolicyManager
.ACTION_PROVISION_MANAGED_PROFILE;
22
import static android.app.admin.
DevicePolicyManager
.ACTION_PROVISION_MANAGED_SHAREABLE_DEVICE;
23
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE;
24
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
25
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME;
26
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME;
27
import static android.app.admin.
DevicePolicyManager
.EXTRA_PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED
[
all
...]
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
SimpleIntentReceiverActivity.java
19
import android.app.admin.
DevicePolicyManager
;
40
DevicePolicyManager
dpm =
41
(
DevicePolicyManager
) getSystemService(Context.DEVICE_POLICY_SERVICE);
Completed in 450 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>