Searched refs:addTestPackageUid (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockSystemServices.java | 210 addTestPackageUid("android", DpmMockContext.SYSTEM_UID); in MockSystemServices() 211 addTestPackageUid(realContext.getPackageName(), Binder.getCallingUid()); in MockSystemServices() 430 public void addTestPackageUid(@NonNull String packageName, int uid) { in addTestPackageUid() method in MockSystemServices
|
D | DpmTestBase.java | 154 mServices.addTestPackageUid(packageName, ai.uid); in markPackageAsInstalled()
|
D | DevicePolicyManagerTest.java | 1405 getServices().addTestPackageUid(admin1.getPackageName(), in testClearDeviceOwner() 1506 getServices().addTestPackageUid(admin1.getPackageName(), DpmMockContext.CALLER_UID); in testClearDeviceOwner_fromDifferentUser() 1744 getServices().addTestPackageUid(packageName, uid); in setupPackageInPackageManager() 3971 getServices().addTestPackageUid(admin1.getPackageName(), in clearDeviceOwner() 7027 getServices().addTestPackageUid(testPackage, DpmMockContext.ANOTHER_UID); in testIsPackageAllowedToAccessCalendar_bothAllowed() 7041 getServices().addTestPackageUid(testPackage, DpmMockContext.ANOTHER_UID); in testIsPackageAllowedToAccessCalendar_requiresPermission() 7056 getServices().addTestPackageUid(testPackage, mContext.binder.callingUid); in testIsPackageAllowedToAccessCalendar_samePackageAndSameUser_noPermissionRequired()
|