Home
last modified time | relevance | path

Searched refs:addTestPackageUid (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java210 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
DDpmTestBase.java154 mServices.addTestPackageUid(packageName, ai.uid); in markPackageAsInstalled()
DDevicePolicyManagerTest.java1405 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()