OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:admin1
(Results
1 - 2
of
2
) sorted by null
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DpmTestBase.java
48
public ComponentName
admin1
;
field in class:DpmTestBase
63
admin1
= new ComponentName(mRealTestContext, DummyDeviceAdmins.
Admin1
.class);
DevicePolicyManagerTest.java
176
setUpPackageManagerForAdmin(
admin1
, DpmMockContext.CALLER_UID);
182
mAdmin1Context.packageName =
admin1
.getPackageName();
280
() -> dpm.setActiveAdmin(
admin1
, false));
286
() -> dpm.setActiveAdmin(
admin1
, false, DpmMockContext.CALLER_USER_HANDLE + 1));
303
dpm.setActiveAdmin(
admin1
, /* replace =*/ false);
318
eq(
admin1
.getPackageName()),
326
// Make sure it's active
admin1
.
327
assertTrue(dpm.isAdminActive(
admin1
));
331
// But not
admin1
for a different user.
337
assertFalse(dpm.isAdminActiveAsUser(
admin1
, DpmMockContext.CALLER_USER_HANDLE + 1))
[
all
...]
Completed in 63 milliseconds