OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mAdminComponent
(Results
1 - 8
of
8
) sorted by null
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DeviceAdminWithEnterprisePoliciesBlockedTest.java
27
boolean originalValue = dpm.getCameraDisabled(
mAdminComponent
);
28
assertSecurityException(() -> dpm.setCameraDisabled(
mAdminComponent
, true));
29
assertEquals(originalValue, dpm.getCameraDisabled(
mAdminComponent
));
33
int originalValue = dpm.getKeyguardDisabledFeatures(
mAdminComponent
);
34
assertSecurityException(() -> dpm.setKeyguardDisabledFeatures(
mAdminComponent
,
36
assertEquals(originalValue, dpm.getKeyguardDisabledFeatures(
mAdminComponent
));
48
int originalValue = dpm.getPasswordHistoryLength(
mAdminComponent
);
49
assertSecurityException(() -> dpm.setPasswordHistoryLength(
mAdminComponent
, 3));
50
assertEquals(originalValue, dpm.getPasswordHistoryLength(
mAdminComponent
));
54
int originalValue = dpm.getPasswordMinimumLength(
mAdminComponent
);
[
all
...]
DeviceAdminTest.java
47
dpm.setMaximumFailedPasswordsForWipe(
mAdminComponent
, 3);
48
assertEquals(3, dpm.getMaximumFailedPasswordsForWipe(
mAdminComponent
));
50
dpm.setMaximumFailedPasswordsForWipe(
mAdminComponent
, 5);
51
assertEquals(5, dpm.getMaximumFailedPasswordsForWipe(
mAdminComponent
));
60
dpm.setPasswordQuality(
mAdminComponent
,
62
int originalValue = dpm.getPasswordHistoryLength(
mAdminComponent
);
64
dpm.setPasswordHistoryLength(
mAdminComponent
, 3);
65
assertEquals(3, dpm.getPasswordHistoryLength(
mAdminComponent
));
70
dpm.setPasswordHistoryLength(
mAdminComponent
, originalValue);
78
long originalValue = dpm.getPasswordExpirationTimeout(
mAdminComponent
);
[
all
...]
DeviceOwnerPasswordTest.java
47
dpm.setPasswordQuality(
mAdminComponent
,
50
dpm.getPasswordQuality(
mAdminComponent
));
58
dpm.setPasswordMinimumLength(
mAdminComponent
, 10);
60
assertEquals(10, dpm.getPasswordMinimumLength(
mAdminComponent
));
68
dpm.setPasswordMinimumLength(
mAdminComponent
, 4);
71
mAdminComponent
));
80
dpm.setPasswordQuality(
mAdminComponent
,
83
dpm.getPasswordQuality(
mAdminComponent
));
91
dpm.setPasswordMinimumLength(
mAdminComponent
, 10);
93
assertEquals(10, dpm.getPasswordMinimumLength(
mAdminComponent
));
[
all
...]
BaseDeviceAdminTest.java
31
protected ComponentName
mAdminComponent
;
42
mAdminComponent
= new ComponentName(mContext, AdminReceiver.class);
59
return dpm.isDeviceOwnerApp(
mAdminComponent
.getPackageName());
71
for (int i = 0; i < 1000 && dpm.isAdminActive(
mAdminComponent
); i++) {
74
assertFalse("Still active admin", dpm.isAdminActive(
mAdminComponent
));
82
dpm.setPasswordMinimumLength(
mAdminComponent
, 0);
83
dpm.setPasswordMinimumUpperCase(
mAdminComponent
, 0);
84
dpm.setPasswordMinimumLowerCase(
mAdminComponent
, 0);
85
dpm.setPasswordMinimumLetters(
mAdminComponent
, 0);
86
dpm.setPasswordMinimumNumeric(
mAdminComponent
, 0)
[
all
...]
ClearDeviceAdminTest.java
27
if (dpm.isAdminActive(
mAdminComponent
)) {
28
dpm.removeActiveAdmin(
mAdminComponent
);
DeviceAdminPasswordTest.java
71
final int currentQuality = dpm.getPasswordQuality(
mAdminComponent
);
72
dpm.setPasswordQuality(
mAdminComponent
, DevicePolicyManager.PASSWORD_QUALITY_SOMETHING);
82
dpm.setPasswordQuality(
mAdminComponent
, currentQuality);
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DeviceWideLoggingFeaturesTest.java
34
private ComponentName
mAdminComponent
;
41
mAdminComponent
= AdminReceiver.getComponentName(mContext);
50
mDevicePolicyManager.retrieveSecurityLogs(
mAdminComponent
);
56
mDevicePolicyManager.retrievePreRebootSecurityLogs(
mAdminComponent
);
62
mDevicePolicyManager.retrieveNetworkLogs(
mAdminComponent
, NETWORK_LOGGING_BATCH_TOKEN);
69
mDevicePolicyManager.retrieveSecurityLogs(
mAdminComponent
);
70
mDevicePolicyManager.retrievePreRebootSecurityLogs(
mAdminComponent
);
71
mDevicePolicyManager.retrieveNetworkLogs(
mAdminComponent
, NETWORK_LOGGING_BATCH_TOKEN);
76
mDevicePolicyManager.requestBugreport(
mAdminComponent
);
83
mDevicePolicyManager.requestBugreport(
mAdminComponent
);
[
all
...]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
AffiliationTest.java
44
private ComponentName
mAdminComponent
;
51
mAdminComponent
= BasicAdminReceiver.getComponentName(context);
57
mDevicePolicyManager.setAffiliationIds(
mAdminComponent
, null);
67
mDevicePolicyManager.setAffiliationIds(
mAdminComponent
, Collections.singleton(null));
93
mDevicePolicyManager.setLockTaskPackages(
mAdminComponent
, packages);
94
assertArrayEquals(packages, mDevicePolicyManager.getLockTaskPackages(
mAdminComponent
));
99
mDevicePolicyManager.getAffiliationIds(
mAdminComponent
);
108
assertEquals(0, mDevicePolicyManager.getLockTaskPackages(
mAdminComponent
).length);
111
mDevicePolicyManager.setAffiliationIds(
mAdminComponent
, previousAffiliationIds);
116
mDevicePolicyManager.setAffiliationIds(
mAdminComponent
, ids)
[
all
...]
Completed in 592 milliseconds